Autogenerated update (2020-03-04)

Update:
- bigquerydatatransfer_v1
- cloudbuild_v1
- cloudbuild_v1alpha1
- cloudbuild_v1alpha2
- commentanalyzer_v1alpha1
- datacatalog_v1beta1
- ml_v1
- pagespeedonline_v5
- vision_v1
- vision_v1p1beta1
- vision_v1p2beta1
This commit is contained in:
Google APIs 2020-03-04 00:37:34 +00:00
parent f5aa491d78
commit 6f2a3577d1
20 changed files with 278 additions and 13 deletions

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigquerydatatransferV1
VERSION = 'V1'
REVISION = '20200203'
REVISION = '20200226'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -282,11 +282,30 @@ module Google
# @return [String]
attr_accessor :config_complete_redirect_url
# The type of dialog event we have received.
# Corresponds to the JSON property `dialogEventType`
# @return [String]
attr_accessor :dialog_event_type
# The timestamp indicating when the event was dispatched.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
# The list of form inputs we will supply to the bot. These are just the
# inputs from the dialog that are populated by the user. This will only be
# populated for CARD_CLICKED events.
# Corresponds to the JSON property `formInputs`
# @return [Array<Google::Apis::ChatV1::FormInput>]
attr_accessor :form_inputs
# Whether or not this event is related to dialogs request, submit or cancel.
# This will be set to true when we want a request/submit/cancel event.
# Corresponds to the JSON property `isDialogEvent`
# @return [Boolean]
attr_accessor :is_dialog_event
alias_method :is_dialog_event?, :is_dialog_event
# A message in Hangouts Chat.
# Corresponds to the JSON property `message`
# @return [Google::Apis::ChatV1::Message]
@ -330,7 +349,10 @@ module Google
def update!(**args)
@action = args[:action] if args.key?(:action)
@config_complete_redirect_url = args[:config_complete_redirect_url] if args.key?(:config_complete_redirect_url)
@dialog_event_type = args[:dialog_event_type] if args.key?(:dialog_event_type)
@event_time = args[:event_time] if args.key?(:event_time)
@form_inputs = args[:form_inputs] if args.key?(:form_inputs)
@is_dialog_event = args[:is_dialog_event] if args.key?(:is_dialog_event)
@message = args[:message] if args.key?(:message)
@space = args[:space] if args.key?(:space)
@thread_key = args[:thread_key] if args.key?(:thread_key)
@ -386,6 +408,31 @@ module Google
end
end
# A single user input from an editable widget from Card API.
class FormInput
include Google::Apis::Core::Hashable
# The name of the editable widget.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Value entered by user.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@value = args[:value] if args.key?(:value)
end
end
# An image that is specified by a URL and can have an onclick action.
class Image
include Google::Apis::Core::Hashable

View File

@ -82,6 +82,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class FormInput
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Image
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -259,7 +265,11 @@ module Google
property :action, as: 'action', class: Google::Apis::ChatV1::FormAction, decorator: Google::Apis::ChatV1::FormAction::Representation
property :config_complete_redirect_url, as: 'configCompleteRedirectUrl'
property :dialog_event_type, as: 'dialogEventType'
property :event_time, as: 'eventTime'
collection :form_inputs, as: 'formInputs', class: Google::Apis::ChatV1::FormInput, decorator: Google::Apis::ChatV1::FormInput::Representation
property :is_dialog_event, as: 'isDialogEvent'
property :message, as: 'message', class: Google::Apis::ChatV1::Message, decorator: Google::Apis::ChatV1::Message::Representation
property :space, as: 'space', class: Google::Apis::ChatV1::Space, decorator: Google::Apis::ChatV1::Space::Representation
@ -287,6 +297,14 @@ module Google
end
end
class FormInput
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :value, as: 'value'
end
end
class Image
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

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

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/cloud-build/docs/
module CloudbuildV1alpha1
VERSION = 'V1alpha1'
REVISION = '20200220'
REVISION = '20200229'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/cloud-build/docs/
module CloudbuildV1alpha2
VERSION = 'V1alpha2'
REVISION = '20200220'
REVISION = '20200229'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -30,7 +30,7 @@ module Google
# @see https://github.com/conversationai/perspectiveapi/blob/master/README.md
module CommentanalyzerV1alpha1
VERSION = 'V1alpha1'
REVISION = '20200209'
REVISION = '20200301'
# View your email address
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'

View File

@ -81,8 +81,8 @@ module Google
# For the prod installation, known as Perspective API, at
# blade:commentanalyzer-esf and commentanalyzer.googleapis.com, see
# go/checker-models (internal) and
# https://github.com/conversationai/perspectiveapi/blob/master/api_reference.md#
# models.
# https://github.com/conversationai/perspectiveapi/blob/master/2-api/models.md#
# all-attribute-types.
# Corresponds to the JSON property `requestedAttributes`
# @return [Hash<String,Google::Apis::CommentanalyzerV1alpha1::AttributeParameters>]
attr_accessor :requested_attributes

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/data-catalog/docs/
module DatacatalogV1beta1
VERSION = 'V1beta1'
REVISION = '20200225'
REVISION = '20200302'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -781,6 +781,33 @@ module Google
end
end
# Response message for
# ListEntryGroups.
class GoogleCloudDatacatalogV1beta1ListEntryGroupsResponse
include Google::Apis::Core::Hashable
# EntryGroup details.
# Corresponds to the JSON property `entryGroups`
# @return [Array<Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1EntryGroup>]
attr_accessor :entry_groups
# Token to retrieve the next page of results. It is set to empty if no items
# remain in results.
# 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)
@entry_groups = args[:entry_groups] if args.key?(:entry_groups)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response message for
# ListPolicyTags.
class GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse

View File

@ -142,6 +142,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDatacatalogV1beta1ListEntryGroupsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -484,6 +490,15 @@ module Google
end
end
class GoogleCloudDatacatalogV1beta1ListEntryGroupsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entry_groups, as: 'entryGroups', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1EntryGroup, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1EntryGroup::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -303,6 +303,49 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists entry groups.
# @param [String] parent
# Required. The name of the location that contains the entry groups, which can
# be
# provided in URL format. Example:
# * projects/`project_id`/locations/`location`
# @param [Fixnum] page_size
# Optional. The maximum number of items to return. Default is 10. Max limit is
# 1000.
# Throws an invalid argument for `page_size > 1000`.
# @param [String] page_token
# Optional. Token that specifies which page is requested. If empty, the first
# page is
# returned.
# @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::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListEntryGroupsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListEntryGroupsResponse]
#
# @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_entry_groups(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/entryGroups', options)
command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListEntryGroupsResponse::Representation
command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListEntryGroupsResponse
command.params['parent'] = parent unless parent.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
# Updates an EntryGroup. The user should enable the Data Catalog API in the
# project identified by the `entry_group.name` parameter (see [Data Catalog
# Resource Project] (/data-catalog/docs/concepts/resource-project) for more

View File

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

View File

@ -294,6 +294,28 @@ module Google
end
end
# Represents a custom encryption key configuration that can be applied to
# a resource.
class GoogleCloudMlV1EncryptionConfig
include Google::Apis::Core::Hashable
# The Cloud KMS resource identifier of the customer managed encryption key
# used to protect a resource, such as a training job. Has the form:
# `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`.
# Corresponds to the JSON property `kmsKeyName`
# @return [String]
attr_accessor :kms_key_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
end
end
# Request for explanations to be issued against a trained model.
class GoogleCloudMlV1ExplainRequest
include Google::Apis::Core::Hashable
@ -1469,6 +1491,12 @@ module Google
# @return [Array<String>]
attr_accessor :args
# Represents a custom encryption key configuration that can be applied to
# a resource.
# Corresponds to the JSON property `encryptionConfig`
# @return [Google::Apis::MlV1::GoogleCloudMlV1EncryptionConfig]
attr_accessor :encryption_config
# Represents a set of hyperparameters to optimize.
# Corresponds to the JSON property `hyperparameters`
# @return [Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec]
@ -1663,6 +1691,7 @@ module Google
# Update properties of this object
def update!(**args)
@args = args[:args] if args.key?(:args)
@encryption_config = args[:encryption_config] if args.key?(:encryption_config)
@hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters)
@job_dir = args[:job_dir] if args.key?(:job_dir)
@master_config = args[:master_config] if args.key?(:master_config)

View File

@ -70,6 +70,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1EncryptionConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1ExplainRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -367,6 +373,13 @@ module Google
end
end
class GoogleCloudMlV1EncryptionConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kms_key_name, as: 'kmsKeyName'
end
end
class GoogleCloudMlV1ExplainRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -632,6 +645,8 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :args, as: 'args'
property :encryption_config, as: 'encryptionConfig', class: Google::Apis::MlV1::GoogleCloudMlV1EncryptionConfig, decorator: Google::Apis::MlV1::GoogleCloudMlV1EncryptionConfig::Representation
property :hyperparameters, as: 'hyperparameters', class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec, decorator: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec::Representation
property :job_dir, as: 'jobDir'

View File

@ -543,6 +543,77 @@ module Google
execute_or_queue_command(command, &block)
end
# Starts asynchronous cancellation on a long-running operation. The server
# makes a best effort to cancel the operation, but success is not
# guaranteed. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
# Operations.GetOperation or
# other methods to check whether the cancellation succeeded or whether the
# operation completed despite cancellation. On successful cancellation,
# the operation is not deleted; instead, it becomes an operation with
# an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to `Code.CANCELLED`.
# @param [String] name
# The name of the operation resource to be cancelled.
# @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::MlV1::GoogleProtobufEmpty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1::GoogleProtobufEmpty]
#
# @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 cancel_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
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
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# @param [String] name
# The name of the operation resource.
# @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::MlV1::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1::GoogleLongrunningOperation]
#
# @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_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
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
# Creates a model which will later contain one or more versions.
# You must add at least one version before you can request predictions from
# the model. Add versions by calling

View File

@ -28,7 +28,7 @@ module Google
# @see https://developers.google.com/speed/docs/insights/v5/about
module PagespeedonlineV5
VERSION = 'V5'
REVISION = '20200227'
REVISION = '20200303'
# Associate you with your personal info on Google
PENID = 'openid'

View File

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

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/
module VisionV1p1beta1
VERSION = 'V1p1beta1'
REVISION = '20191105'
REVISION = '20200229'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/
module VisionV1p2beta1
VERSION = 'V1p2beta1'
REVISION = '20191105'
REVISION = '20200229'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'