Autogenerated update (2019-08-17)

Update:
- dialogflow_v2
- dialogflow_v2beta1
- run_v1
- run_v1alpha1
- servicecontrol_v1
- servicemanagement_v1
This commit is contained in:
Google APIs 2019-08-17 00:38:05 +00:00
parent 8cf4330494
commit 71a638b85d
19 changed files with 2106 additions and 125 deletions

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow/
module DialogflowV2
VERSION = 'V2'
REVISION = '20190801'
REVISION = '20190810'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -4673,40 +4673,6 @@ module Google
end
end
# The status update for performing NLU model evaluation given a dataset.
# Metadata of the returned long running operation for
# ModelEvaluations.EvaluateModel.
class GoogleCloudDialogflowV2beta1ModelEvaluationMetadata
include Google::Apis::Core::Hashable
# Optional. Number of samples that have already received the predicted
# intents from Dialogflow server.
# Corresponds to the JSON property `samplesWithIntentDetected`
# @return [Fixnum]
attr_accessor :samples_with_intent_detected
# Required. Represents the job that the batch worker is currently working on.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Required. Total number of samples in the dataset.
# Corresponds to the JSON property `totalSamples`
# @return [Fixnum]
attr_accessor :total_samples
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@samples_with_intent_detected = args[:samples_with_intent_detected] if args.key?(:samples_with_intent_detected)
@state = args[:state] if args.key?(:state)
@total_samples = args[:total_samples] if args.key?(:total_samples)
end
end
# Represents the contents of the original request that was passed to
# the `[Streaming]DetectIntent` call.
class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest

View File

@ -742,12 +742,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2beta1ModelEvaluationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2043,15 +2037,6 @@ module Google
end
end
class GoogleCloudDialogflowV2beta1ModelEvaluationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :samples_with_intent_detected, as: 'samplesWithIntentDetected'
property :state, as: 'state'
property :total_samples, as: 'totalSamples'
end
end
class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow/
module DialogflowV2beta1
VERSION = 'V2beta1'
REVISION = '20190801'
REVISION = '20190810'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -4476,40 +4476,6 @@ module Google
end
end
# The status update for performing NLU model evaluation given a dataset.
# Metadata of the returned long running operation for
# ModelEvaluations.EvaluateModel.
class GoogleCloudDialogflowV2beta1ModelEvaluationMetadata
include Google::Apis::Core::Hashable
# Optional. Number of samples that have already received the predicted
# intents from Dialogflow server.
# Corresponds to the JSON property `samplesWithIntentDetected`
# @return [Fixnum]
attr_accessor :samples_with_intent_detected
# Required. Represents the job that the batch worker is currently working on.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Required. Total number of samples in the dataset.
# Corresponds to the JSON property `totalSamples`
# @return [Fixnum]
attr_accessor :total_samples
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@samples_with_intent_detected = args[:samples_with_intent_detected] if args.key?(:samples_with_intent_detected)
@state = args[:state] if args.key?(:state)
@total_samples = args[:total_samples] if args.key?(:total_samples)
end
end
# Represents the contents of the original request that was passed to
# the `[Streaming]DetectIntent` call.
class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest

View File

@ -700,12 +700,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2beta1ModelEvaluationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2017,15 +2011,6 @@ module Google
end
end
class GoogleCloudDialogflowV2beta1ModelEvaluationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :samples_with_intent_detected, as: 'samplesWithIntentDetected'
property :state, as: 'state'
property :total_samples, as: 'totalSamples'
end
end
class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -22,6 +22,31 @@ module Google
module Apis
module RunV1
# The response message for Locations.ListLocations.
class ListLocationsResponse
include Google::Apis::Core::Hashable
# A list of locations that matches the specified filter in the request.
# Corresponds to the JSON property `locations`
# @return [Array<Google::Apis::RunV1::Location>]
attr_accessor :locations
# The standard List next-page token.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@locations = args[:locations] if args.key?(:locations)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# A resource that represents Google Cloud Platform location.
class Location
include Google::Apis::Core::Hashable

View File

@ -22,12 +22,27 @@ module Google
module Apis
module RunV1
class ListLocationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Location
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLocationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :locations, as: 'locations', class: Google::Apis::RunV1::Location, decorator: Google::Apis::RunV1::Location::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Location
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -77,6 +77,45 @@ module Google
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.
# @param [String] name
# The resource that owns the locations collection, if applicable.
# @param [String] filter
# The standard list filter.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
# The standard list page token.
# @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::RunV1::ListLocationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RunV1::ListLocationsResponse]
#
# @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_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}/locations', options)
command.response_representation = Google::Apis::RunV1::ListLocationsResponse::Representation
command.response_class = Google::Apis::RunV1::ListLocationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.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

View File

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

View File

@ -147,14 +147,6 @@ module Google
# @return [Array<String>]
attr_accessor :exempted_members
# Specifies whether principals can be exempted for the same LogType in
# lower-level resource policies. If true, any lower-level exemptions will
# be ignored.
# Corresponds to the JSON property `ignoreChildExemptions`
# @return [Boolean]
attr_accessor :ignore_child_exemptions
alias_method :ignore_child_exemptions?, :ignore_child_exemptions
# The log type that this config enables.
# Corresponds to the JSON property `logType`
# @return [String]
@ -167,7 +159,6 @@ module Google
# Update properties of this object
def update!(**args)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
@ignore_child_exemptions = args[:ignore_child_exemptions] if args.key?(:ignore_child_exemptions)
@log_type = args[:log_type] if args.key?(:log_type)
end
end
@ -306,6 +297,46 @@ module Google
end
end
# Cloud Run fully managed: not supported
# Cloud Run on GKE: supported
# Selects a key from a ConfigMap.
class ConfigMapKeySelector
include Google::Apis::Core::Hashable
# Cloud Run fully managed: not supported
# Cloud Run on GKE: supported
# The key to select.
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# LocalObjectReference contains enough information to let you locate the
# referenced object inside the same namespace.
# Corresponds to the JSON property `localObjectReference`
# @return [Google::Apis::RunV1alpha1::LocalObjectReference]
attr_accessor :local_object_reference
# Cloud Run fully managed: not supported
# Cloud Run on GKE: supported
# Specify whether the ConfigMap or its key must be defined
# +optional
# Corresponds to the JSON property `optional`
# @return [Boolean]
attr_accessor :optional
alias_method :optional?, :optional
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key = args[:key] if args.key?(:key)
@local_object_reference = args[:local_object_reference] if args.key?(:local_object_reference)
@optional = args[:optional] if args.key?(:optional)
end
end
# Adapts a ConfigMap into a volume.
# The contents of the target ConfigMap's Data field will be presented in a
# volume as files using the keys in the Data field as the file names, unless
@ -1092,6 +1123,13 @@ module Google
# @return [String]
attr_accessor :value
# Cloud Run fully managed: not supported
# Cloud Run on GKE: supported
# EnvVarSource represents a source for the value of an EnvVar.
# Corresponds to the JSON property `valueFrom`
# @return [Google::Apis::RunV1alpha1::EnvVarSource]
attr_accessor :value_from
def initialize(**args)
update!(**args)
end
@ -1100,6 +1138,38 @@ module Google
def update!(**args)
@name = args[:name] if args.key?(:name)
@value = args[:value] if args.key?(:value)
@value_from = args[:value_from] if args.key?(:value_from)
end
end
# Cloud Run fully managed: not supported
# Cloud Run on GKE: supported
# EnvVarSource represents a source for the value of an EnvVar.
class EnvVarSource
include Google::Apis::Core::Hashable
# Cloud Run fully managed: not supported
# Cloud Run on GKE: supported
# Selects a key from a ConfigMap.
# Corresponds to the JSON property `configMapKeyRef`
# @return [Google::Apis::RunV1alpha1::ConfigMapKeySelector]
attr_accessor :config_map_key_ref
# Cloud Run fully managed: not supported
# Cloud Run on GKE: supported
# SecretKeySelector selects a key of a Secret.
# Corresponds to the JSON property `secretKeyRef`
# @return [Google::Apis::RunV1alpha1::SecretKeySelector]
attr_accessor :secret_key_ref
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@config_map_key_ref = args[:config_map_key_ref] if args.key?(:config_map_key_ref)
@secret_key_ref = args[:secret_key_ref] if args.key?(:secret_key_ref)
end
end
@ -3244,6 +3314,46 @@ module Google
end
end
# Cloud Run fully managed: not supported
# Cloud Run on GKE: supported
# SecretKeySelector selects a key of a Secret.
class SecretKeySelector
include Google::Apis::Core::Hashable
# Cloud Run fully managed: not supported
# Cloud Run on GKE: supported
# The key of the secret to select from. Must be a valid secret key.
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# LocalObjectReference contains enough information to let you locate the
# referenced object inside the same namespace.
# Corresponds to the JSON property `localObjectReference`
# @return [Google::Apis::RunV1alpha1::LocalObjectReference]
attr_accessor :local_object_reference
# Cloud Run fully managed: not supported
# Cloud Run on GKE: supported
# Specify whether the Secret or its key must be defined
# +optional
# Corresponds to the JSON property `optional`
# @return [Boolean]
attr_accessor :optional
alias_method :optional?, :optional
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key = args[:key] if args.key?(:key)
@local_object_reference = args[:local_object_reference] if args.key?(:local_object_reference)
@optional = args[:optional] if args.key?(:optional)
end
end
# The contents of the target Secret's Data field will be presented in a volume
# as files using the keys in the Data field as the file names.
class SecretVolumeSource

View File

@ -64,6 +64,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ConfigMapKeySelector
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ConfigMapVolumeSource
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -148,6 +154,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class EnvVarSource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EventType
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -418,6 +430,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SecretKeySelector
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SecretVolumeSource
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -595,7 +613,6 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :ignore_child_exemptions, as: 'ignoreChildExemptions'
property :log_type, as: 'logType'
end
end
@ -635,6 +652,16 @@ module Google
end
end
class ConfigMapKeySelector
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :local_object_reference, as: 'localObjectReference', class: Google::Apis::RunV1alpha1::LocalObjectReference, decorator: Google::Apis::RunV1alpha1::LocalObjectReference::Representation
property :optional, as: 'optional'
end
end
class ConfigMapVolumeSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -811,6 +838,18 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :value, as: 'value'
property :value_from, as: 'valueFrom', class: Google::Apis::RunV1alpha1::EnvVarSource, decorator: Google::Apis::RunV1alpha1::EnvVarSource::Representation
end
end
class EnvVarSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :config_map_key_ref, as: 'configMapKeyRef', class: Google::Apis::RunV1alpha1::ConfigMapKeySelector, decorator: Google::Apis::RunV1alpha1::ConfigMapKeySelector::Representation
property :secret_key_ref, as: 'secretKeyRef', class: Google::Apis::RunV1alpha1::SecretKeySelector, decorator: Google::Apis::RunV1alpha1::SecretKeySelector::Representation
end
end
@ -1323,6 +1362,16 @@ module Google
end
end
class SecretKeySelector
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :local_object_reference, as: 'localObjectReference', class: Google::Apis::RunV1alpha1::LocalObjectReference, decorator: Google::Apis::RunV1alpha1::LocalObjectReference::Representation
property :optional, as: 'optional'
end
end
class SecretVolumeSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

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

View File

@ -29,7 +29,8 @@ module Google
# A list of label keys that were unused by the server in processing the
# request. Thus, for similar requests repeated in a certain future time
# window, the caller can choose to ignore these labels in the requests
# to achieve better client-side cache hits and quota aggregation.
# to achieve better client-side cache hits and quota aggregation for rate
# quota. This field is not populated for allocation quota checks.
# Corresponds to the JSON property `unusedArguments`
# @return [Array<String>]
attr_accessor :unused_arguments

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-management/
module ServicemanagementV1
VERSION = 'V1'
REVISION = '20190805'
REVISION = '20190809'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -223,14 +223,6 @@ module Google
# @return [Array<String>]
attr_accessor :exempted_members
# Specifies whether principals can be exempted for the same LogType in
# lower-level resource policies. If true, any lower-level exemptions will
# be ignored.
# Corresponds to the JSON property `ignoreChildExemptions`
# @return [Boolean]
attr_accessor :ignore_child_exemptions
alias_method :ignore_child_exemptions?, :ignore_child_exemptions
# The log type that this config enables.
# Corresponds to the JSON property `logType`
# @return [String]
@ -243,7 +235,6 @@ module Google
# Update properties of this object
def update!(**args)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
@ignore_child_exemptions = args[:ignore_child_exemptions] if args.key?(:ignore_child_exemptions)
@log_type = args[:log_type] if args.key?(:log_type)
end
end

View File

@ -575,7 +575,6 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :ignore_child_exemptions, as: 'ignoreChildExemptions'
property :log_type, as: 'logType'
end
end