Autogenerated update (2019-05-11)

Update:
- appengine_v1
- appengine_v1alpha
- appengine_v1beta
- pubsub_v1
- run_v1alpha1
- script_v1
- servicecontrol_v1
- spanner_v1
This commit is contained in:
Google APIs 2019-05-11 00:37:31 +00:00
parent ea6fcbe5be
commit dc13fa66cd
19 changed files with 1239 additions and 16 deletions

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/ # @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1 module AppengineV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20190411' REVISION = '20190503'
# View and manage your applications deployed on Google App Engine # View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin' AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'

View File

@ -1841,8 +1841,8 @@ module Google
attr_accessor :metadata attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that # The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the name should # originally returns it. If you use the default HTTP mapping, the name should be
# have the format of operations/some/unique/name. # a resource name ending with operations/`unique_id`.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/ # @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1alpha module AppengineV1alpha
VERSION = 'V1alpha' VERSION = 'V1alpha'
REVISION = '20190214' REVISION = '20190503'
# View and manage your applications deployed on Google App Engine # View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin' AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'

View File

@ -573,8 +573,8 @@ module Google
attr_accessor :metadata attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that # The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the name should # originally returns it. If you use the default HTTP mapping, the name should be
# have the format of operations/some/unique/name. # a resource name ending with operations/`unique_id`.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/ # @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1beta module AppengineV1beta
VERSION = 'V1beta' VERSION = 'V1beta'
REVISION = '20190419' REVISION = '20190503'
# View and manage your applications deployed on Google App Engine # View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin' AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'

View File

@ -1958,8 +1958,8 @@ module Google
attr_accessor :metadata attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that # The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the name should # originally returns it. If you use the default HTTP mapping, the name should be
# have the format of operations/some/unique/name. # a resource name ending with operations/`unique_id`.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/pubsub/docs # @see https://cloud.google.com/pubsub/docs
module PubsubV1 module PubsubV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20190412' REVISION = '20190429'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/run/ # @see https://cloud.google.com/run/
module RunV1alpha1 module RunV1alpha1
VERSION = 'V1alpha1' VERSION = 'V1alpha1'
REVISION = '20190415' REVISION = '20190508'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -413,6 +413,13 @@ module Google
# @return [Google::Apis::RunV1alpha1::RevisionTemplate] # @return [Google::Apis::RunV1alpha1::RevisionTemplate]
attr_accessor :revision_template attr_accessor :revision_template
# RevisionTemplateSpec describes the data a revision should have when created
# from a template. Based on:
# https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190
# Corresponds to the JSON property `template`
# @return [Google::Apis::RunV1alpha1::RevisionTemplate]
attr_accessor :template
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -421,6 +428,7 @@ module Google
def update!(**args) def update!(**args)
@generation = args[:generation] if args.key?(:generation) @generation = args[:generation] if args.key?(:generation)
@revision_template = args[:revision_template] if args.key?(:revision_template) @revision_template = args[:revision_template] if args.key?(:revision_template)
@template = args[:template] if args.key?(:template)
end end
end end
@ -1615,6 +1623,51 @@ module Google
end end
end end
# ListTriggersResponse is a list of Trigger resources.
class ListTriggersResponse
include Google::Apis::Core::Hashable
# The API version for this call such as "v1alpha1".
# Corresponds to the JSON property `apiVersion`
# @return [String]
attr_accessor :api_version
# List of Triggers.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::RunV1alpha1::Trigger>]
attr_accessor :items
# The kind of this resource, in this case "TriggerList".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# ListMeta describes metadata that synthetic resources must have, including
# lists and various status objects. A resource may have only one of
# `ObjectMeta, ListMeta`.
# Corresponds to the JSON property `metadata`
# @return [Google::Apis::RunV1alpha1::ListMeta]
attr_accessor :metadata
# Locations that could not be reached.
# Corresponds to the JSON property `unreachable`
# @return [Array<String>]
attr_accessor :unreachable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@api_version = args[:api_version] if args.key?(:api_version)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@metadata = args[:metadata] if args.key?(:metadata)
@unreachable = args[:unreachable] if args.key?(:unreachable)
end
end
# LocalObjectReference contains enough information to let you locate the # LocalObjectReference contains enough information to let you locate the
# referenced object inside the same namespace. # referenced object inside the same namespace.
class LocalObjectReference class LocalObjectReference
@ -1895,6 +1948,87 @@ module Google
end end
end end
# ObjectReference contains enough information to let you inspect or modify the
# referred object.
class ObjectReference
include Google::Apis::Core::Hashable
# API version of the referent.
# +optional
# Corresponds to the JSON property `apiVersion`
# @return [String]
attr_accessor :api_version
# If referring to a piece of an object instead of an entire object, this
# string should contain a valid JSON/Go field access statement, such as
# desiredState.manifest.containers[2]. For example, if the object reference
# is to a container within a pod, this would take on a value like:
# "spec.containers`name`" (where "name" refers to the name of the container
# that triggered the event) or if no container name is specified
# "spec.containers[2]" (container with index 2 in this pod). This syntax is
# chosen only to have some well-defined way of referencing a part of an
# object.
# Corresponds to the JSON property `fieldPath`
# @return [String]
attr_accessor :field_path
# Kind of the referent.
# More info:
# https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
# +optional
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Name of the referent.
# More info:
# https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
# +optional
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Namespace of the referent.
# More info:
# https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
# +optional
# Corresponds to the JSON property `namespace`
# @return [String]
attr_accessor :namespace
# Specific resourceVersion to which this reference is made, if any.
# More info:
# https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-
# control-and-consistency
# +optional
# Corresponds to the JSON property `resourceVersion`
# @return [String]
attr_accessor :resource_version
# UID of the referent.
# More info:
# https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
# +optional
# Corresponds to the JSON property `uid`
# @return [String]
attr_accessor :uid
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@api_version = args[:api_version] if args.key?(:api_version)
@field_path = args[:field_path] if args.key?(:field_path)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@namespace = args[:namespace] if args.key?(:namespace)
@resource_version = args[:resource_version] if args.key?(:resource_version)
@uid = args[:uid] if args.key?(:uid)
end
end
# OwnerReference contains enough information to let you identify an owning # OwnerReference contains enough information to let you identify an owning
# object. Currently, an owning object must be in the same namespace, so there # object. Currently, an owning object must be in the same namespace, so there
# is no namespace field. # is no namespace field.
@ -2352,6 +2486,13 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :container_concurrency attr_accessor :container_concurrency
# Containers holds the single container that defines the unit of execution
# for this Revision. In the context of a Revision, we disallow a number of
# fields on this Container, including: name and lifecycle.
# Corresponds to the JSON property `containers`
# @return [Array<Google::Apis::RunV1alpha1::Container>]
attr_accessor :containers
# Deprecated and not currently populated by Cloud Run. See # Deprecated and not currently populated by Cloud Run. See
# metadata.generation instead, which is the sequence number containing the # metadata.generation instead, which is the sequence number containing the
# latest generation of the desired state. # latest generation of the desired state.
@ -2391,6 +2532,7 @@ module Google
@concurrency_model = args[:concurrency_model] if args.key?(:concurrency_model) @concurrency_model = args[:concurrency_model] if args.key?(:concurrency_model)
@container = args[:container] if args.key?(:container) @container = args[:container] if args.key?(:container)
@container_concurrency = args[:container_concurrency] if args.key?(:container_concurrency) @container_concurrency = args[:container_concurrency] if args.key?(:container_concurrency)
@containers = args[:containers] if args.key?(:containers)
@generation = args[:generation] if args.key?(:generation) @generation = args[:generation] if args.key?(:generation)
@service_account_name = args[:service_account_name] if args.key?(:service_account_name) @service_account_name = args[:service_account_name] if args.key?(:service_account_name)
@serving_state = args[:serving_state] if args.key?(:serving_state) @serving_state = args[:serving_state] if args.key?(:serving_state)
@ -2992,6 +3134,22 @@ module Google
# @return [Google::Apis::RunV1alpha1::ServiceSpecRunLatest] # @return [Google::Apis::RunV1alpha1::ServiceSpecRunLatest]
attr_accessor :run_latest attr_accessor :run_latest
# RevisionTemplateSpec describes the data a revision should have when created
# from a template. Based on:
# https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190
# Corresponds to the JSON property `template`
# @return [Google::Apis::RunV1alpha1::RevisionTemplate]
attr_accessor :template
# Traffic specifies how to distribute traffic over a collection of Knative
# Revisions and Configurations. This will replace existing service specs
# (ServiceSpecRunLatest, ServiceSpecPinnedType, ServiceSpecReleaseType, and
# ServiceSpecManualType).
# Not currently supported by Cloud Run.
# Corresponds to the JSON property `traffic`
# @return [Array<Google::Apis::RunV1alpha1::TrafficTarget>]
attr_accessor :traffic
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -3003,6 +3161,8 @@ module Google
@pinned = args[:pinned] if args.key?(:pinned) @pinned = args[:pinned] if args.key?(:pinned)
@release = args[:release] if args.key?(:release) @release = args[:release] if args.key?(:release)
@run_latest = args[:run_latest] if args.key?(:run_latest) @run_latest = args[:run_latest] if args.key?(:run_latest)
@template = args[:template] if args.key?(:template)
@traffic = args[:traffic] if args.key?(:traffic)
end end
end end
@ -3250,6 +3410,34 @@ module Google
end end
end end
#
class SubscriberSpec
include Google::Apis::Core::Hashable
# ObjectReference contains enough information to let you inspect or modify the
# referred object.
# Corresponds to the JSON property `ref`
# @return [Google::Apis::RunV1alpha1::ObjectReference]
attr_accessor :ref
# Reference to a 'known' endpoint where no resolving is done.
# http://k8s-service for example
# http://myexternalhandler.example.com/foo/bar
# Corresponds to the JSON property `uri`
# @return [String]
attr_accessor :uri
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ref = args[:ref] if args.key?(:ref)
@uri = args[:uri] if args.key?(:uri)
end
end
# TCPSocketAction describes an action based on opening a socket # TCPSocketAction describes an action based on opening a socket
class TcpSocketAction class TcpSocketAction
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -3372,6 +3560,214 @@ module Google
end end
end end
#
class Trigger
include Google::Apis::Core::Hashable
# The API version for this call such as "v1alpha1".
# Corresponds to the JSON property `apiVersion`
# @return [String]
attr_accessor :api_version
# The kind of resource, in this case "Trigger".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# ObjectMeta is metadata that all persisted resources must have, which includes
# all objects users must create.
# Corresponds to the JSON property `metadata`
# @return [Google::Apis::RunV1alpha1::ObjectMeta]
attr_accessor :metadata
# The desired state of the Trigger.
# Corresponds to the JSON property `spec`
# @return [Google::Apis::RunV1alpha1::TriggerSpec]
attr_accessor :spec
# TriggerStatus represents the current state of a Trigger.
# Corresponds to the JSON property `status`
# @return [Google::Apis::RunV1alpha1::TriggerStatus]
attr_accessor :status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@api_version = args[:api_version] if args.key?(:api_version)
@kind = args[:kind] if args.key?(:kind)
@metadata = args[:metadata] if args.key?(:metadata)
@spec = args[:spec] if args.key?(:spec)
@status = args[:status] if args.key?(:status)
end
end
# TriggerCondition contains state information for an Trigger.
class TriggerCondition
include Google::Apis::Core::Hashable
# Last time the condition transitioned from one status to another.
# +optional
# Corresponds to the JSON property `lastTransitionTime`
# @return [String]
attr_accessor :last_transition_time
# Human readable message indicating details about the current status.
# +optional
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
# One-word CamelCase reason for the condition's current status.
# +optional
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# Status of the condition, one of True, False, Unknown.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# Type of Trigger condition.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@last_transition_time = args[:last_transition_time] if args.key?(:last_transition_time)
@message = args[:message] if args.key?(:message)
@reason = args[:reason] if args.key?(:reason)
@status = args[:status] if args.key?(:status)
@type = args[:type] if args.key?(:type)
end
end
#
class TriggerFilter
include Google::Apis::Core::Hashable
# TriggerFilterSourceAndType filters events based on exact matches on the cloud
# event's type and source attributes. Only exact matches will pass the filter.
# Corresponds to the JSON property `sourceAndType`
# @return [Google::Apis::RunV1alpha1::TriggerFilterSourceAndType]
attr_accessor :source_and_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@source_and_type = args[:source_and_type] if args.key?(:source_and_type)
end
end
# TriggerFilterSourceAndType filters events based on exact matches on the cloud
# event's type and source attributes. Only exact matches will pass the filter.
class TriggerFilterSourceAndType
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `source`
# @return [String]
attr_accessor :source
#
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@source = args[:source] if args.key?(:source)
@type = args[:type] if args.key?(:type)
end
end
# The desired state of the Trigger.
class TriggerSpec
include Google::Apis::Core::Hashable
# Broker is the broker that this trigger receives events from. If not
# specified, will default to 'default'.
# Not currently supported by Cloud Run.
# Corresponds to the JSON property `broker`
# @return [String]
attr_accessor :broker
# Filter is the filter to apply against all events from the Broker. Only
# events that pass this filter will be sent to the Subscriber. If not
# specified, will default to allowing all events.
# This must be specified in Cloud Run.
# Corresponds to the JSON property `filter`
# @return [Google::Apis::RunV1alpha1::TriggerFilter]
attr_accessor :filter
# Subscriber is the addressable that receives events from the Broker that
# pass the Filter. It is required.
# E.g. https://us-central1-myproject.cloudfunctions.net/myfunction or
# /namespaces/my-project/services/my-service.
# Corresponds to the JSON property `subscriber`
# @return [Google::Apis::RunV1alpha1::SubscriberSpec]
attr_accessor :subscriber
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@broker = args[:broker] if args.key?(:broker)
@filter = args[:filter] if args.key?(:filter)
@subscriber = args[:subscriber] if args.key?(:subscriber)
end
end
# TriggerStatus represents the current state of a Trigger.
class TriggerStatus
include Google::Apis::Core::Hashable
# Array of observed TriggerConditions, indicating the current state
# of the Trigger.
# Corresponds to the JSON property `conditions`
# @return [Array<Google::Apis::RunV1alpha1::TriggerCondition>]
attr_accessor :conditions
# ObservedGeneration is the 'Generation' of the Trigger that
# was last processed by the controller.
# Corresponds to the JSON property `observedGeneration`
# @return [Fixnum]
attr_accessor :observed_generation
# SubscriberURI is the resolved URI of the receiver for this Trigger.
# Corresponds to the JSON property `subscriberUri`
# @return [String]
attr_accessor :subscriber_uri
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@conditions = args[:conditions] if args.key?(:conditions)
@observed_generation = args[:observed_generation] if args.key?(:observed_generation)
@subscriber_uri = args[:subscriber_uri] if args.key?(:subscriber_uri)
end
end
# volumeDevice describes a mapping of a raw block device within a container. # volumeDevice describes a mapping of a raw block device within a container.
class VolumeDevice class VolumeDevice
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -244,6 +244,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListTriggersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LocalObjectReference class LocalObjectReference
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -262,6 +268,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ObjectReference
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OwnerReference class OwnerReference
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -424,6 +436,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class SubscriberSpec
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TcpSocketAction class TcpSocketAction
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -448,6 +466,42 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Trigger
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TriggerCondition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TriggerFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TriggerFilterSourceAndType
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TriggerSpec
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TriggerStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VolumeDevice class VolumeDevice
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -550,6 +604,8 @@ module Google
property :generation, as: 'generation' property :generation, as: 'generation'
property :revision_template, as: 'revisionTemplate', class: Google::Apis::RunV1alpha1::RevisionTemplate, decorator: Google::Apis::RunV1alpha1::RevisionTemplate::Representation property :revision_template, as: 'revisionTemplate', class: Google::Apis::RunV1alpha1::RevisionTemplate, decorator: Google::Apis::RunV1alpha1::RevisionTemplate::Representation
property :template, as: 'template', class: Google::Apis::RunV1alpha1::RevisionTemplate, decorator: Google::Apis::RunV1alpha1::RevisionTemplate::Representation
end end
end end
@ -857,6 +913,19 @@ module Google
end end
end end
class ListTriggersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :api_version, as: 'apiVersion'
collection :items, as: 'items', class: Google::Apis::RunV1alpha1::Trigger, decorator: Google::Apis::RunV1alpha1::Trigger::Representation
property :kind, as: 'kind'
property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ListMeta, decorator: Google::Apis::RunV1alpha1::ListMeta::Representation
collection :unreachable, as: 'unreachable'
end
end
class LocalObjectReference class LocalObjectReference
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -899,6 +968,19 @@ module Google
end end
end end
class ObjectReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :api_version, as: 'apiVersion'
property :field_path, as: 'fieldPath'
property :kind, as: 'kind'
property :name, as: 'name'
property :namespace, as: 'namespace'
property :resource_version, as: 'resourceVersion'
property :uid, as: 'uid'
end
end
class OwnerReference class OwnerReference
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -996,6 +1078,8 @@ module Google
property :container, as: 'container', class: Google::Apis::RunV1alpha1::Container, decorator: Google::Apis::RunV1alpha1::Container::Representation property :container, as: 'container', class: Google::Apis::RunV1alpha1::Container, decorator: Google::Apis::RunV1alpha1::Container::Representation
property :container_concurrency, as: 'containerConcurrency' property :container_concurrency, as: 'containerConcurrency'
collection :containers, as: 'containers', class: Google::Apis::RunV1alpha1::Container, decorator: Google::Apis::RunV1alpha1::Container::Representation
property :generation, as: 'generation' property :generation, as: 'generation'
property :service_account_name, as: 'serviceAccountName' property :service_account_name, as: 'serviceAccountName'
property :serving_state, as: 'servingState' property :serving_state, as: 'servingState'
@ -1146,6 +1230,10 @@ module Google
property :run_latest, as: 'runLatest', class: Google::Apis::RunV1alpha1::ServiceSpecRunLatest, decorator: Google::Apis::RunV1alpha1::ServiceSpecRunLatest::Representation property :run_latest, as: 'runLatest', class: Google::Apis::RunV1alpha1::ServiceSpecRunLatest, decorator: Google::Apis::RunV1alpha1::ServiceSpecRunLatest::Representation
property :template, as: 'template', class: Google::Apis::RunV1alpha1::RevisionTemplate, decorator: Google::Apis::RunV1alpha1::RevisionTemplate::Representation
collection :traffic, as: 'traffic', class: Google::Apis::RunV1alpha1::TrafficTarget, decorator: Google::Apis::RunV1alpha1::TrafficTarget::Representation
end end
end end
@ -1207,6 +1295,15 @@ module Google
end end
end end
class SubscriberSpec
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ref, as: 'ref', class: Google::Apis::RunV1alpha1::ObjectReference, decorator: Google::Apis::RunV1alpha1::ObjectReference::Representation
property :uri, as: 'uri'
end
end
class TcpSocketAction class TcpSocketAction
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1240,6 +1337,68 @@ module Google
end end
end end
class Trigger
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :api_version, as: 'apiVersion'
property :kind, as: 'kind'
property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ObjectMeta, decorator: Google::Apis::RunV1alpha1::ObjectMeta::Representation
property :spec, as: 'spec', class: Google::Apis::RunV1alpha1::TriggerSpec, decorator: Google::Apis::RunV1alpha1::TriggerSpec::Representation
property :status, as: 'status', class: Google::Apis::RunV1alpha1::TriggerStatus, decorator: Google::Apis::RunV1alpha1::TriggerStatus::Representation
end
end
class TriggerCondition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :last_transition_time, as: 'lastTransitionTime'
property :message, as: 'message'
property :reason, as: 'reason'
property :status, as: 'status'
property :type, as: 'type'
end
end
class TriggerFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :source_and_type, as: 'sourceAndType', class: Google::Apis::RunV1alpha1::TriggerFilterSourceAndType, decorator: Google::Apis::RunV1alpha1::TriggerFilterSourceAndType::Representation
end
end
class TriggerFilterSourceAndType
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :source, as: 'source'
property :type, as: 'type'
end
end
class TriggerSpec
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :broker, as: 'broker'
property :filter, as: 'filter', class: Google::Apis::RunV1alpha1::TriggerFilter, decorator: Google::Apis::RunV1alpha1::TriggerFilter::Representation
property :subscriber, as: 'subscriber', class: Google::Apis::RunV1alpha1::SubscriberSpec, decorator: Google::Apis::RunV1alpha1::SubscriberSpec::Representation
end
end
class TriggerStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :conditions, as: 'conditions', class: Google::Apis::RunV1alpha1::TriggerCondition, decorator: Google::Apis::RunV1alpha1::TriggerCondition::Representation
property :observed_generation, as: 'observedGeneration'
property :subscriber_uri, as: 'subscriberUri'
end
end
class VolumeDevice class VolumeDevice
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -779,6 +779,210 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a new trigger.
# @param [String] parent
# The project ID or project number in which this trigger should
# be created.
# @param [Google::Apis::RunV1alpha1::Trigger] trigger_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RunV1alpha1::Trigger] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RunV1alpha1::Trigger]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_namespace_trigger(parent, trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'apis/eventing.knative.dev/v1alpha1/{+parent}/triggers', options)
command.request_representation = Google::Apis::RunV1alpha1::Trigger::Representation
command.request_object = trigger_object
command.response_representation = Google::Apis::RunV1alpha1::Trigger::Representation
command.response_class = Google::Apis::RunV1alpha1::Trigger
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Rpc to delete a trigger.
# @param [String] name
# The name of the trigger being deleted. If needed, replace
# `namespace_id` with the project ID.
# @param [String] api_version
# Cloud Run currently ignores this parameter.
# @param [String] kind
# Cloud Run currently ignores this parameter.
# @param [String] propagation_policy
# Specifies the propagation policy of delete. Cloud Run currently ignores
# this setting, and deletes in the background. Please see
# kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for
# more information.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RunV1alpha1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_namespace_trigger(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'apis/eventing.knative.dev/v1alpha1/{+name}', options)
command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
command.response_class = Google::Apis::RunV1alpha1::Empty
command.params['name'] = name unless name.nil?
command.query['apiVersion'] = api_version unless api_version.nil?
command.query['kind'] = kind unless kind.nil?
command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Rpc to get information about a trigger.
# @param [String] name
# The name of the trigger being retrieved. If needed, replace
# `namespace_id` with the project ID.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RunV1alpha1::Trigger] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RunV1alpha1::Trigger]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_namespace_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'apis/eventing.knative.dev/v1alpha1/{+name}', options)
command.response_representation = Google::Apis::RunV1alpha1::Trigger::Representation
command.response_class = Google::Apis::RunV1alpha1::Trigger
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Rpc to list triggers.
# @param [String] parent
# The project ID or project number from which the triggers should
# be listed.
# @param [String] continue
# Optional encoded string to continue paging.
# @param [String] field_selector
# Allows to filter resources based on a specific value for a field name.
# Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
# Not currently used by Cloud Run.
# @param [Boolean] include_uninitialized
# Not currently used by Cloud Run.
# @param [String] label_selector
# Allows to filter resources based on a label. Supported operations are
# =, !=, exists, in, and notIn.
# @param [Fixnum] limit
# The maximum number of records that should be returned.
# @param [String] resource_version
# The baseline resource version from which the list or watch operation should
# start. Not currently used by Cloud Run.
# @param [Boolean] watch
# Flag that indicates that the client expects to watch this resource as well.
# Not currently used by Cloud Run.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RunV1alpha1::ListTriggersResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RunV1alpha1::ListTriggersResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_namespace_triggers(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'apis/eventing.knative.dev/v1alpha1/{+parent}/triggers', options)
command.response_representation = Google::Apis::RunV1alpha1::ListTriggersResponse::Representation
command.response_class = Google::Apis::RunV1alpha1::ListTriggersResponse
command.params['parent'] = parent unless parent.nil?
command.query['continue'] = continue unless continue.nil?
command.query['fieldSelector'] = field_selector unless field_selector.nil?
command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
command.query['labelSelector'] = label_selector unless label_selector.nil?
command.query['limit'] = limit unless limit.nil?
command.query['resourceVersion'] = resource_version unless resource_version.nil?
command.query['watch'] = watch unless watch.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Rpc to replace a trigger.
# Only the spec and metadata labels and annotations are modifiable. After
# the Update request, Cloud Run will work to make the 'status'
# match the requested 'spec'.
# May provide metadata.resourceVersion to enforce update from last read for
# optimistic concurrency control.
# @param [String] name
# The name of the trigger being retrieved. If needed, replace
# `namespace_id` with the project ID.
# @param [Google::Apis::RunV1alpha1::Trigger] trigger_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RunV1alpha1::Trigger] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RunV1alpha1::Trigger]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def replace_namespace_trigger_trigger(name, trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'apis/eventing.knative.dev/v1alpha1/{+name}', options)
command.request_representation = Google::Apis::RunV1alpha1::Trigger::Representation
command.request_object = trigger_object
command.response_representation = Google::Apis::RunV1alpha1::Trigger::Representation
command.response_class = Google::Apis::RunV1alpha1::Trigger
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists information about the supported locations for this service. # Lists information about the supported locations for this service.
# @param [String] name # @param [String] name
# The resource that owns the locations collection, if applicable. # The resource that owns the locations collection, if applicable.
@ -1650,6 +1854,210 @@ module Google
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a new trigger.
# @param [String] parent
# The project ID or project number in which this trigger should
# be created.
# @param [Google::Apis::RunV1alpha1::Trigger] trigger_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RunV1alpha1::Trigger] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RunV1alpha1::Trigger]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_trigger(parent, trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1alpha1/{+parent}/triggers', options)
command.request_representation = Google::Apis::RunV1alpha1::Trigger::Representation
command.request_object = trigger_object
command.response_representation = Google::Apis::RunV1alpha1::Trigger::Representation
command.response_class = Google::Apis::RunV1alpha1::Trigger
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Rpc to delete a trigger.
# @param [String] name
# The name of the trigger being deleted. If needed, replace
# `namespace_id` with the project ID.
# @param [String] api_version
# Cloud Run currently ignores this parameter.
# @param [String] kind
# Cloud Run currently ignores this parameter.
# @param [String] propagation_policy
# Specifies the propagation policy of delete. Cloud Run currently ignores
# this setting, and deletes in the background. Please see
# kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for
# more information.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RunV1alpha1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_location_trigger(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
command.response_class = Google::Apis::RunV1alpha1::Empty
command.params['name'] = name unless name.nil?
command.query['apiVersion'] = api_version unless api_version.nil?
command.query['kind'] = kind unless kind.nil?
command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Rpc to get information about a trigger.
# @param [String] name
# The name of the trigger being retrieved. If needed, replace
# `namespace_id` with the project ID.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RunV1alpha1::Trigger] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RunV1alpha1::Trigger]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
command.response_representation = Google::Apis::RunV1alpha1::Trigger::Representation
command.response_class = Google::Apis::RunV1alpha1::Trigger
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Rpc to list triggers.
# @param [String] parent
# The project ID or project number from which the triggers should
# be listed.
# @param [String] continue
# Optional encoded string to continue paging.
# @param [String] field_selector
# Allows to filter resources based on a specific value for a field name.
# Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
# Not currently used by Cloud Run.
# @param [Boolean] include_uninitialized
# Not currently used by Cloud Run.
# @param [String] label_selector
# Allows to filter resources based on a label. Supported operations are
# =, !=, exists, in, and notIn.
# @param [Fixnum] limit
# The maximum number of records that should be returned.
# @param [String] resource_version
# The baseline resource version from which the list or watch operation should
# start. Not currently used by Cloud Run.
# @param [Boolean] watch
# Flag that indicates that the client expects to watch this resource as well.
# Not currently used by Cloud Run.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RunV1alpha1::ListTriggersResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RunV1alpha1::ListTriggersResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_triggers(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+parent}/triggers', options)
command.response_representation = Google::Apis::RunV1alpha1::ListTriggersResponse::Representation
command.response_class = Google::Apis::RunV1alpha1::ListTriggersResponse
command.params['parent'] = parent unless parent.nil?
command.query['continue'] = continue unless continue.nil?
command.query['fieldSelector'] = field_selector unless field_selector.nil?
command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
command.query['labelSelector'] = label_selector unless label_selector.nil?
command.query['limit'] = limit unless limit.nil?
command.query['resourceVersion'] = resource_version unless resource_version.nil?
command.query['watch'] = watch unless watch.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Rpc to replace a trigger.
# Only the spec and metadata labels and annotations are modifiable. After
# the Update request, Cloud Run will work to make the 'status'
# match the requested 'spec'.
# May provide metadata.resourceVersion to enforce update from last read for
# optimistic concurrency control.
# @param [String] name
# The name of the trigger being retrieved. If needed, replace
# `namespace_id` with the project ID.
# @param [Google::Apis::RunV1alpha1::Trigger] trigger_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RunV1alpha1::Trigger] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RunV1alpha1::Trigger]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def replace_project_location_trigger_trigger(name, trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1alpha1/{+name}', options)
command.request_representation = Google::Apis::RunV1alpha1::Trigger::Representation
command.request_object = trigger_object
command.response_representation = Google::Apis::RunV1alpha1::Trigger::Representation
command.response_class = Google::Apis::RunV1alpha1::Trigger
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected protected

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/apps-script/api/ # @see https://developers.google.com/apps-script/api/
module ScriptV1 module ScriptV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20190303' REVISION = '20190509'
# Read, compose, send, and permanently delete all your email from Gmail # Read, compose, send, and permanently delete all your email from Gmail
AUTH_SCOPE = 'https://mail.google.com/' AUTH_SCOPE = 'https://mail.google.com/'

View File

@ -207,6 +207,28 @@ module Google
end end
end end
# The response for executing or debugging a function in an Apps Script project.
class ExecuteStreamResponse
include Google::Apis::Core::Hashable
# The result of an execution
# Based on ScriptExecutionResult at:
# google3/apps/maestro/api/frontend_execution_common.proto?q=message%5c%
# 20ScriptExecutionResult
# Corresponds to the JSON property `result`
# @return [Google::Apis::ScriptV1::ScriptExecutionResult]
attr_accessor :result
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@result = args[:result] if args.key?(:result)
end
end
# An object that provides information about the nature of an error resulting # An object that provides information about the nature of an error resulting
# from an attempted execution of a script function using the Apps Script API. # from an attempted execution of a script function using the Apps Script API.
# If a run call # If a run call
@ -746,6 +768,27 @@ module Google
end end
end end
# `ListValue` is a wrapper around a repeated field of values.
# Based on LustValue at:
# google3/apps/maestro/api/struct.proto?q=message%5c%20ListValue
class ListValue
include Google::Apis::Core::Hashable
# Repeated field of dynamically typed values.
# Corresponds to the JSON property `values`
# @return [Array<Google::Apis::ScriptV1::Value>]
attr_accessor :values
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@values = args[:values] if args.key?(:values)
end
end
# Response with the list of the versions for the specified script project. # Response with the list of the versions for the specified script project.
class ListVersionsResponse class ListVersionsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -952,6 +995,31 @@ module Google
end end
end end
# The result of an execution
# Based on ScriptExecutionResult at:
# google3/apps/maestro/api/frontend_execution_common.proto?q=message%5c%
# 20ScriptExecutionResult
class ScriptExecutionResult
include Google::Apis::Core::Hashable
# `Value` represents a dynamically typed value which is the outcome of an
# executed script
# Based on Value at:
# google3/apps/maestro/api/struct.proto?q=message%5c%20Value
# Corresponds to the JSON property `returnValue`
# @return [Google::Apis::ScriptV1::Value]
attr_accessor :return_value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@return_value = args[:return_value] if args.key?(:return_value)
end
end
# A stack trace through the script that shows where the execution failed. # A stack trace through the script that shows where the execution failed.
class ScriptStackTraceElement class ScriptStackTraceElement
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1014,6 +1082,28 @@ module Google
end end
end end
# `Struct` represents a structured data value, consisting of fields which map
# to dynamically typed values.
# Based on Struct at:
# google3/apps/maestro/api/struct.proto?q=message%5c%20Struct
class Struct
include Google::Apis::Core::Hashable
# Unordered map of dynamically typed values.
# Corresponds to the JSON property `fields`
# @return [Hash<String,Google::Apis::ScriptV1::Value>]
attr_accessor :fields
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@fields = args[:fields] if args.key?(:fields)
end
end
# Request with deployment information to update an existing deployment. # Request with deployment information to update an existing deployment.
class UpdateDeploymentRequest class UpdateDeploymentRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1033,6 +1123,83 @@ module Google
end end
end end
# `Value` represents a dynamically typed value which is the outcome of an
# executed script
# Based on Value at:
# google3/apps/maestro/api/struct.proto?q=message%5c%20Value
class Value
include Google::Apis::Core::Hashable
# Represents a boolean value.
# Corresponds to the JSON property `boolValue`
# @return [Boolean]
attr_accessor :bool_value
alias_method :bool_value?, :bool_value
# Represents raw byte values.
# Corresponds to the JSON property `bytesValue`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :bytes_value
# Represents a date in ms since the epoch.
# Corresponds to the JSON property `dateValue`
# @return [Fixnum]
attr_accessor :date_value
# `ListValue` is a wrapper around a repeated field of values.
# Based on LustValue at:
# google3/apps/maestro/api/struct.proto?q=message%5c%20ListValue
# Corresponds to the JSON property `listValue`
# @return [Google::Apis::ScriptV1::ListValue]
attr_accessor :list_value
# Represents a null value.
# Corresponds to the JSON property `nullValue`
# @return [String]
attr_accessor :null_value
# Represents a double value.
# Corresponds to the JSON property `numberValue`
# @return [Float]
attr_accessor :number_value
# Represents a structured proto value.
# Corresponds to the JSON property `protoValue`
# @return [Hash<String,Object>]
attr_accessor :proto_value
# Represents a string value.
# Corresponds to the JSON property `stringValue`
# @return [String]
attr_accessor :string_value
# `Struct` represents a structured data value, consisting of fields which map
# to dynamically typed values.
# Based on Struct at:
# google3/apps/maestro/api/struct.proto?q=message%5c%20Struct
# Corresponds to the JSON property `structValue`
# @return [Google::Apis::ScriptV1::Struct]
attr_accessor :struct_value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bool_value = args[:bool_value] if args.key?(:bool_value)
@bytes_value = args[:bytes_value] if args.key?(:bytes_value)
@date_value = args[:date_value] if args.key?(:date_value)
@list_value = args[:list_value] if args.key?(:list_value)
@null_value = args[:null_value] if args.key?(:null_value)
@number_value = args[:number_value] if args.key?(:number_value)
@proto_value = args[:proto_value] if args.key?(:proto_value)
@string_value = args[:string_value] if args.key?(:string_value)
@struct_value = args[:struct_value] if args.key?(:struct_value)
end
end
# A resource representing a script project version. A version is a "snapshot" # A resource representing a script project version. A version is a "snapshot"
# of a script project and is similar to a read-only branched release. When # of a script project and is similar to a read-only branched release. When
# creating deployments, the version to use must be specified. # creating deployments, the version to use must be specified.

View File

@ -58,6 +58,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ExecuteStreamResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExecutionError class ExecutionError
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -154,6 +160,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListValue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListVersionsResponse class ListVersionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -184,6 +196,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ScriptExecutionResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ScriptStackTraceElement class ScriptStackTraceElement
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -196,12 +214,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Struct
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateDeploymentRequest class UpdateDeploymentRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Value
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Version class Version
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -266,6 +296,14 @@ module Google
end end
end end
class ExecuteStreamResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :result, as: 'result', class: Google::Apis::ScriptV1::ScriptExecutionResult, decorator: Google::Apis::ScriptV1::ScriptExecutionResult::Representation
end
end
class ExecutionError class ExecutionError
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -417,6 +455,14 @@ module Google
end end
end end
class ListValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :values, as: 'values', class: Google::Apis::ScriptV1::Value, decorator: Google::Apis::ScriptV1::Value::Representation
end
end
class ListVersionsResponse class ListVersionsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -472,6 +518,14 @@ module Google
end end
end end
class ScriptExecutionResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :return_value, as: 'returnValue', class: Google::Apis::ScriptV1::Value, decorator: Google::Apis::ScriptV1::Value::Representation
end
end
class ScriptStackTraceElement class ScriptStackTraceElement
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -489,6 +543,14 @@ module Google
end end
end end
class Struct
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :fields, as: 'fields', class: Google::Apis::ScriptV1::Value, decorator: Google::Apis::ScriptV1::Value::Representation
end
end
class UpdateDeploymentRequest class UpdateDeploymentRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -497,6 +559,23 @@ module Google
end end
end end
class Value
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bool_value, as: 'boolValue'
property :bytes_value, :base64 => true, as: 'bytesValue'
property :date_value, :numeric_string => true, as: 'dateValue'
property :list_value, as: 'listValue', class: Google::Apis::ScriptV1::ListValue, decorator: Google::Apis::ScriptV1::ListValue::Representation
property :null_value, as: 'nullValue'
property :number_value, as: 'numberValue'
hash :proto_value, as: 'protoValue'
property :string_value, as: 'stringValue'
property :struct_value, as: 'structValue', class: Google::Apis::ScriptV1::Struct, decorator: Google::Apis::ScriptV1::Struct::Representation
end
end
class Version class Version
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-control/ # @see https://cloud.google.com/service-control/
module ServicecontrolV1 module ServicecontrolV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20190422' REVISION = '20190509'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -653,6 +653,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :service_config_id attr_accessor :service_config_id
# Unimplemented. The current service rollout id used to process the request.
# Corresponds to the JSON property `serviceRolloutId`
# @return [String]
attr_accessor :service_rollout_id
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -664,6 +669,7 @@ module Google
@operation_id = args[:operation_id] if args.key?(:operation_id) @operation_id = args[:operation_id] if args.key?(:operation_id)
@quota_info = args[:quota_info] if args.key?(:quota_info) @quota_info = args[:quota_info] if args.key?(:quota_info)
@service_config_id = args[:service_config_id] if args.key?(:service_config_id) @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
@service_rollout_id = args[:service_rollout_id] if args.key?(:service_rollout_id)
end end
end end
@ -1862,6 +1868,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :service_config_id attr_accessor :service_config_id
# Unimplemented. The current service rollout id used to process the request.
# Corresponds to the JSON property `serviceRolloutId`
# @return [String]
attr_accessor :service_rollout_id
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -1871,6 +1882,7 @@ module Google
@report_errors = args[:report_errors] if args.key?(:report_errors) @report_errors = args[:report_errors] if args.key?(:report_errors)
@report_infos = args[:report_infos] if args.key?(:report_infos) @report_infos = args[:report_infos] if args.key?(:report_infos)
@service_config_id = args[:service_config_id] if args.key?(:service_config_id) @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
@service_rollout_id = args[:service_rollout_id] if args.key?(:service_rollout_id)
end end
end end

View File

@ -399,6 +399,7 @@ module Google
property :quota_info, as: 'quotaInfo', class: Google::Apis::ServicecontrolV1::QuotaInfo, decorator: Google::Apis::ServicecontrolV1::QuotaInfo::Representation property :quota_info, as: 'quotaInfo', class: Google::Apis::ServicecontrolV1::QuotaInfo, decorator: Google::Apis::ServicecontrolV1::QuotaInfo::Representation
property :service_config_id, as: 'serviceConfigId' property :service_config_id, as: 'serviceConfigId'
property :service_rollout_id, as: 'serviceRolloutId'
end end
end end
@ -656,6 +657,7 @@ module Google
collection :report_infos, as: 'reportInfos', class: Google::Apis::ServicecontrolV1::ReportInfo, decorator: Google::Apis::ServicecontrolV1::ReportInfo::Representation collection :report_infos, as: 'reportInfos', class: Google::Apis::ServicecontrolV1::ReportInfo, decorator: Google::Apis::ServicecontrolV1::ReportInfo::Representation
property :service_config_id, as: 'serviceConfigId' property :service_config_id, as: 'serviceConfigId'
property :service_rollout_id, as: 'serviceRolloutId'
end end
end end

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/spanner/ # @see https://cloud.google.com/spanner/
module SpannerV1 module SpannerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20190416' REVISION = '20190419'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1216,8 +1216,8 @@ module Google
# Required. The number of nodes allocated to this instance. This may be zero # Required. The number of nodes allocated to this instance. This may be zero
# in API responses for instances that are not yet in state `READY`. # in API responses for instances that are not yet in state `READY`.
# See [the documentation](https://cloud.google.com/spanner/docs/instances# # See [the
# node_count) # documentation](https://cloud.google.com/spanner/docs/instances#node_count)
# for more information about nodes. # for more information about nodes.
# Corresponds to the JSON property `nodeCount` # Corresponds to the JSON property `nodeCount`
# @return [Fixnum] # @return [Fixnum]