Autogenerated update (2020-02-08)

Update:
- androidenterprise_v1
- appsactivity_v1
- bigquerydatatransfer_v1
- datacatalog_v1beta1
- doubleclickbidmanager_v1_1
- firestore_v1
- firestore_v1beta1
- ml_v1
- osconfig_v1beta
- youtube_partner_v1
This commit is contained in:
Google APIs 2020-02-08 00:38:27 +00:00
parent 9fed8c58fe
commit e455a458de
18 changed files with 406 additions and 435 deletions

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android/work/play/emm-api
module AndroidenterpriseV1
VERSION = 'V1'
REVISION = '20200115'
REVISION = '20200129'
# Manage corporate Android devices
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'

View File

@ -208,54 +208,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the device policy. This method supports patch semantics.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
# The ID of the user.
# @param [String] device_id
# The ID of the device.
# @param [Google::Apis::AndroidenterpriseV1::Device] device_object
# @param [String] update_mask
# Mask that identifies which fields to update. If not set, all modifiable fields
# will be modified.
# When set in a query parameter, this field should be specified as updateMask=<
# field1>,<field2>,...
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::Device] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::Device]
#
# @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 patch_device(enterprise_id, user_id, device_id, device_object = nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::Device::Representation
command.request_object = device_object
command.response_representation = Google::Apis::AndroidenterpriseV1::Device::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::Device
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.params['deviceId'] = device_id unless device_id.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Sets whether a device's access to Google services is enabled or disabled. The
# device state takes effect only if enforcing EMM policies on Android devices is
# enabled in the Google Admin Console. Otherwise, the device state is ignored
@ -995,55 +947,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Adds or updates an entitlement to an app for a user. This method supports
# patch semantics.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
# The ID of the user.
# @param [String] entitlement_id
# The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
# @param [Google::Apis::AndroidenterpriseV1::Entitlement] entitlement_object
# @param [Boolean] install
# Set to true to also install the product on all the user's devices where
# possible. Failure to install on one or more devices will not prevent this
# operation from returning successfully, as long as the entitlement was
# successfully assigned to the user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::Entitlement] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::Entitlement]
#
# @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 patch_entitlement(enterprise_id, user_id, entitlement_id, entitlement_object = nil, install: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
command.request_object = entitlement_object
command.response_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::Entitlement
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.params['entitlementId'] = entitlement_id unless entitlement_id.nil?
command.query['install'] = install unless install.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Adds or updates an entitlement to an app for a user.
# @param [String] enterprise_id
# The ID of the enterprise.
@ -1324,54 +1227,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Requests to install the latest version of an app to a device. If the app is
# already installed, then it is updated to the latest version if necessary. This
# method supports patch semantics.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
# The ID of the user.
# @param [String] device_id
# The Android ID of the device.
# @param [String] install_id
# The ID of the product represented by the install, e.g. "app:com.google.android.
# gm".
# @param [Google::Apis::AndroidenterpriseV1::Install] install_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::Install] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::Install]
#
# @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 patch_install(enterprise_id, user_id, device_id, install_id, install_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
command.request_object = install_object
command.response_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::Install
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.params['deviceId'] = device_id unless device_id.nil?
command.params['installId'] = install_id unless install_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Requests to install the latest version of an app to a device. If the app is
# already installed, then it is updated to the latest version if necessary.
# @param [String] enterprise_id
@ -1543,53 +1398,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Adds or updates a per-device managed configuration for an app for the
# specified device. This method supports patch semantics.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
# The ID of the user.
# @param [String] device_id
# The Android ID of the device.
# @param [String] managed_configuration_for_device_id
# The ID of the managed configuration (a product ID), e.g. "app:com.google.
# android.gm".
# @param [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] managed_configuration_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
#
# @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 patch_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, managed_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
command.request_object = managed_configuration_object
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.params['deviceId'] = device_id unless device_id.nil?
command.params['managedConfigurationForDeviceId'] = managed_configuration_for_device_id unless managed_configuration_for_device_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Adds or updates a per-device managed configuration for an app for the
# specified device.
# @param [String] enterprise_id
@ -1753,54 +1561,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Adds or updates the managed configuration settings for an app for the
# specified user. If you support the Managed configurations iframe, you can
# apply managed configurations to a user by specifying an mcmId and its
# associated configuration variables (if any) in the request. Alternatively, all
# EMMs can apply managed configurations by passing a list of managed properties.
# This method supports patch semantics.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
# The ID of the user.
# @param [String] managed_configuration_for_user_id
# The ID of the managed configuration (a product ID), e.g. "app:com.google.
# android.gm".
# @param [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] managed_configuration_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
#
# @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 patch_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, managed_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
command.request_object = managed_configuration_object
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.params['managedConfigurationForUserId'] = managed_configuration_for_user_id unless managed_configuration_for_user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Adds or updates the managed configuration settings for an app for the
# specified user. If you support the Managed configurations iframe, you can
# apply managed configurations to a user by specifying an mcmId and its
@ -2485,48 +2245,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates a cluster. This method supports patch semantics.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] page_id
# The ID of the page.
# @param [String] cluster_id
# The ID of the cluster.
# @param [Google::Apis::AndroidenterpriseV1::StoreCluster] store_cluster_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::StoreCluster] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::StoreCluster]
#
# @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 patch_storelayoutcluster(enterprise_id, page_id, cluster_id, store_cluster_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
command.request_object = store_cluster_object
command.response_representation = Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::StoreCluster
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['pageId'] = page_id unless page_id.nil?
command.params['clusterId'] = cluster_id unless cluster_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates a cluster.
# @param [String] enterprise_id
# The ID of the enterprise.
@ -2708,45 +2426,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the content of a store page. This method supports patch semantics.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] page_id
# The ID of the page.
# @param [Google::Apis::AndroidenterpriseV1::StorePage] store_page_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::StorePage] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::StorePage]
#
# @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 patch_storelayoutpage(enterprise_id, page_id, store_page_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::StorePage::Representation
command.request_object = store_page_object
command.response_representation = Google::Apis::AndroidenterpriseV1::StorePage::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::StorePage
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['pageId'] = page_id unless page_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates the content of a store page.
# @param [String] enterprise_id
# The ID of the enterprise.
@ -3050,49 +2729,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the details of an EMM-managed user.
# Can be used with EMM-managed users only (not Google managed users). Pass the
# new details in the Users resource in the request body. Only the displayName
# field can be changed. Other fields must either be unset or have the currently
# active value. This method supports patch semantics.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
# The ID of the user.
# @param [Google::Apis::AndroidenterpriseV1::User] user_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::User]
#
# @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 patch_user(enterprise_id, user_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
command.request_object = user_object
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::User
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Revokes access to all devices currently provisioned to the user. The user will
# no longer be able to use the managed Play store on any of their managed
# devices.
@ -3387,45 +3023,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates an existing web app. This method supports patch semantics.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] web_app_id
# The ID of the web app.
# @param [Google::Apis::AndroidenterpriseV1::WebApp] web_app_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::WebApp] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::WebApp]
#
# @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 patch_webapp(enterprise_id, web_app_id, web_app_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/webApps/{webAppId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::WebApp::Representation
command.request_object = web_app_object
command.response_representation = Google::Apis::AndroidenterpriseV1::WebApp::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::WebApp
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['webAppId'] = web_app_id unless web_app_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates an existing web app.
# @param [String] enterprise_id
# The ID of the enterprise.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/google-apps/activity/
module AppsactivityV1
VERSION = 'V1'
REVISION = '20190331'
REVISION = '20200128'
# View the activity history of your Google apps
AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity'

View File

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

View File

@ -320,6 +320,27 @@ module Google
end
end
# Represents preferences for sending email notifications for transfer run
# events.
class EmailPreferences
include Google::Apis::Core::Hashable
# If true, email notifications will be sent on transfer run failures.
# Corresponds to the JSON property `enableFailureEmail`
# @return [Boolean]
attr_accessor :enable_failure_email
alias_method :enable_failure_email?, :enable_failure_email
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enable_failure_email = args[:enable_failure_email] if args.key?(:enable_failure_email)
end
end
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
@ -774,6 +795,12 @@ module Google
# @return [String]
attr_accessor :display_name
# Represents preferences for sending email notifications for transfer run
# events.
# Corresponds to the JSON property `emailPreferences`
# @return [Google::Apis::BigquerydatatransferV1::EmailPreferences]
attr_accessor :email_preferences
# The resource name of the transfer config.
# Transfer config names have the form of
# `projects/`project_id`/locations/`region`/transferConfigs/`config_id``.
@ -790,6 +817,12 @@ module Google
# @return [String]
attr_accessor :next_run_time
# Pub/Sub topic where notifications will be sent after transfer runs
# associated with this transfer config finish.
# Corresponds to the JSON property `notificationPubsubTopic`
# @return [String]
attr_accessor :notification_pubsub_topic
# Data transfer specific parameters.
# Corresponds to the JSON property `params`
# @return [Hash<String,Object>]
@ -844,8 +877,10 @@ module Google
@destination_dataset_id = args[:destination_dataset_id] if args.key?(:destination_dataset_id)
@disabled = args[:disabled] if args.key?(:disabled)
@display_name = args[:display_name] if args.key?(:display_name)
@email_preferences = args[:email_preferences] if args.key?(:email_preferences)
@name = args[:name] if args.key?(:name)
@next_run_time = args[:next_run_time] if args.key?(:next_run_time)
@notification_pubsub_topic = args[:notification_pubsub_topic] if args.key?(:notification_pubsub_topic)
@params = args[:params] if args.key?(:params)
@schedule = args[:schedule] if args.key?(:schedule)
@schedule_options = args[:schedule_options] if args.key?(:schedule_options)
@ -900,6 +935,12 @@ module Google
# @return [String]
attr_accessor :destination_dataset_id
# Represents preferences for sending email notifications for transfer run
# events.
# Corresponds to the JSON property `emailPreferences`
# @return [Google::Apis::BigquerydatatransferV1::EmailPreferences]
attr_accessor :email_preferences
# Output only. Time when transfer run ended.
# Parameter ignored by server for input requests.
# Corresponds to the JSON property `endTime`
@ -925,6 +966,12 @@ module Google
# @return [String]
attr_accessor :name
# Output only. Pub/Sub topic where a notification will be sent after this
# transfer run finishes
# Corresponds to the JSON property `notificationPubsubTopic`
# @return [String]
attr_accessor :notification_pubsub_topic
# Output only. Data transfer specific parameters.
# Corresponds to the JSON property `params`
# @return [Hash<String,Object>]
@ -979,9 +1026,11 @@ module Google
def update!(**args)
@data_source_id = args[:data_source_id] if args.key?(:data_source_id)
@destination_dataset_id = args[:destination_dataset_id] if args.key?(:destination_dataset_id)
@email_preferences = args[:email_preferences] if args.key?(:email_preferences)
@end_time = args[:end_time] if args.key?(:end_time)
@error_status = args[:error_status] if args.key?(:error_status)
@name = args[:name] if args.key?(:name)
@notification_pubsub_topic = args[:notification_pubsub_topic] if args.key?(:notification_pubsub_topic)
@params = args[:params] if args.key?(:params)
@run_time = args[:run_time] if args.key?(:run_time)
@schedule = args[:schedule] if args.key?(:schedule)

View File

@ -46,6 +46,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class EmailPreferences
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -209,6 +215,13 @@ module Google
end
end
class EmailPreferences
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enable_failure_email, as: 'enableFailureEmail'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -339,8 +352,11 @@ module Google
property :destination_dataset_id, as: 'destinationDatasetId'
property :disabled, as: 'disabled'
property :display_name, as: 'displayName'
property :email_preferences, as: 'emailPreferences', class: Google::Apis::BigquerydatatransferV1::EmailPreferences, decorator: Google::Apis::BigquerydatatransferV1::EmailPreferences::Representation
property :name, as: 'name'
property :next_run_time, as: 'nextRunTime'
property :notification_pubsub_topic, as: 'notificationPubsubTopic'
hash :params, as: 'params'
property :schedule, as: 'schedule'
property :schedule_options, as: 'scheduleOptions', class: Google::Apis::BigquerydatatransferV1::ScheduleOptions, decorator: Google::Apis::BigquerydatatransferV1::ScheduleOptions::Representation
@ -365,10 +381,13 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :data_source_id, as: 'dataSourceId'
property :destination_dataset_id, as: 'destinationDatasetId'
property :email_preferences, as: 'emailPreferences', class: Google::Apis::BigquerydatatransferV1::EmailPreferences, decorator: Google::Apis::BigquerydatatransferV1::EmailPreferences::Representation
property :end_time, as: 'endTime'
property :error_status, as: 'errorStatus', class: Google::Apis::BigquerydatatransferV1::Status, decorator: Google::Apis::BigquerydatatransferV1::Status::Representation
property :name, as: 'name'
property :notification_pubsub_topic, as: 'notificationPubsubTopic'
hash :params, as: 'params'
property :run_time, as: 'runTime'
property :schedule, as: 'schedule'

View File

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

View File

@ -391,7 +391,13 @@ module Google
# @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1GcsFilesetSpec]
attr_accessor :gcs_fileset_spec
# Output only. The resource this metadata entry refers to.
# Output only. This field indicates the entry's source system that Data Catalog
# integrates with, such as BigQuery or Cloud Pub/Sub.
# Corresponds to the JSON property `integratedSystem`
# @return [String]
attr_accessor :integrated_system
# The resource this metadata entry refers to.
# For Google Cloud Platform resources, `linked_resource` is the [full name of
# the
# resource](https://cloud.google.com/apis/design/resource_names#
@ -399,6 +405,9 @@ module Google
# For example, the `linked_resource` for a table resource from BigQuery is:
# * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/
# tableId
# Output only when Entry is of type in the EntryType enum. For entries with
# user_specified_type, this field is optional and defaults to an empty
# string.
# Corresponds to the JSON property `linkedResource`
# @return [String]
attr_accessor :linked_resource
@ -423,10 +432,33 @@ module Google
attr_accessor :source_system_timestamps
# The type of the entry.
# Only used for Entries with types in the EntryType enum.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# This field indicates the entry's source system that Data Catalog does not
# integrate with. `user_specified_system` strings must begin with a letter
# or underscore and can only contain letters, numbers, and underscores; are
# case insensitive; must be at least 1 character and at most 64 characters
# long.
# Corresponds to the JSON property `userSpecifiedSystem`
# @return [String]
attr_accessor :user_specified_system
# Entry type if it does not fit any of the input-allowed values listed in
# `EntryType` enum above. When creating an entry, users should check the
# enum values first, if nothing matches the entry to be created, then
# provide a custom value, for example "my_special_type".
# `user_specified_type` strings must begin with a letter or underscore and
# can only contain letters, numbers, and underscores; are case insensitive;
# must be at least 1 character and at most 64 characters long.
# Currently, only FILESET enum value is allowed. All other entries created
# through Data Catalog must use `user_specified_type`.
# Corresponds to the JSON property `userSpecifiedType`
# @return [String]
attr_accessor :user_specified_type
def initialize(**args)
update!(**args)
end
@ -438,11 +470,14 @@ module Google
@description = args[:description] if args.key?(:description)
@display_name = args[:display_name] if args.key?(:display_name)
@gcs_fileset_spec = args[:gcs_fileset_spec] if args.key?(:gcs_fileset_spec)
@integrated_system = args[:integrated_system] if args.key?(:integrated_system)
@linked_resource = args[:linked_resource] if args.key?(:linked_resource)
@name = args[:name] if args.key?(:name)
@schema = args[:schema] if args.key?(:schema)
@source_system_timestamps = args[:source_system_timestamps] if args.key?(:source_system_timestamps)
@type = args[:type] if args.key?(:type)
@user_specified_system = args[:user_specified_system] if args.key?(:user_specified_system)
@user_specified_type = args[:user_specified_type] if args.key?(:user_specified_type)
end
end
@ -718,6 +753,60 @@ module Google
end
end
# Response message for
# ListEntries.
class GoogleCloudDatacatalogV1beta1ListEntriesResponse
include Google::Apis::Core::Hashable
# Entry details.
# Corresponds to the JSON property `entries`
# @return [Array<Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry>]
attr_accessor :entries
# 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)
@entries = args[:entries] if args.key?(:entries)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
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
@ -800,7 +889,7 @@ module Google
end
# Denotes one policy tag in a taxonomy (e.g. ssn). Policy Tags can be defined
# in a hierarchy. For example, consider the following hierachy:
# in a hierarchy. For example, consider the following hierarchy:
# Geolocation -&gt; (LatLong, City, ZipCode). PolicyTag "Geolocation"
# contains three child policy tags: "LatLong", "City", and "ZipCode".
class GoogleCloudDatacatalogV1beta1PolicyTag
@ -907,9 +996,7 @@ module Google
# Specifies the ordering of results, currently supported case-sensitive
# choices are:
# * `relevance`, only supports desecending
# * `last_access_timestamp [asc|desc]`, defaults to descending if not
# specified
# * `relevance`, only supports descending
# * `last_modified_timestamp [asc|desc]`, defaults to descending if not
# specified
# If not specified, defaults to `relevance` descending.

View File

@ -136,6 +136,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDatacatalogV1beta1ListEntriesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
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
@ -370,6 +382,7 @@ module Google
property :display_name, as: 'displayName'
property :gcs_fileset_spec, as: 'gcsFilesetSpec', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1GcsFilesetSpec, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1GcsFilesetSpec::Representation
property :integrated_system, as: 'integratedSystem'
property :linked_resource, as: 'linkedResource'
property :name, as: 'name'
property :schema, as: 'schema', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Schema, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Schema::Representation
@ -377,6 +390,8 @@ module Google
property :source_system_timestamps, as: 'sourceSystemTimestamps', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SystemTimestamps, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SystemTimestamps::Representation
property :type, as: 'type'
property :user_specified_system, as: 'userSpecifiedSystem'
property :user_specified_type, as: 'userSpecifiedType'
end
end
@ -466,6 +481,24 @@ module Google
end
end
class GoogleCloudDatacatalogV1beta1ListEntriesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entries, as: 'entries', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry::Representation
property :next_page_token, as: 'nextPageToken'
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

@ -139,11 +139,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Alpha feature.
# Creates an EntryGroup.
# The user should enable the Data Catalog API in the project identified by
# the `parent` parameter (see [Data Catalog Resource Project]
# (/data-catalog/docs/concepts/resource-project) for more information).
# A maximum of 10,000 entry groups may be created per organization across all
# locations.
# @param [String] parent
# Required. The name of the project this entry group is in. Example:
# * projects/`project_id`/locations/`location`
@ -184,7 +185,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Alpha feature.
# Deletes an EntryGroup. Only entry groups that do not contain entries can be
# deleted. The user should enable the Data Catalog API in the project
# identified by the `name` parameter (see [Data Catalog Resource Project]
@ -222,7 +222,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Alpha feature.
# Gets an EntryGroup.
# @param [String] name
# Required. The name of the entry group. For example,
@ -305,6 +304,92 @@ 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
# information).
# @param [String] name
# The resource name of the entry group in URL format. Example:
# * projects/`project_id`/locations/`location`/entryGroups/`entry_group_id`
# Note that this EntryGroup and its child resources may not actually be
# stored in the location in this name.
# @param [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1EntryGroup] google_cloud_datacatalog_v1beta1_entry_group_object
# @param [String] update_mask
# The fields to update on the entry group. If absent or empty, all modifiable
# fields are updated.
# @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::GoogleCloudDatacatalogV1beta1EntryGroup] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1EntryGroup]
#
# @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 patch_project_location_entry_group(name, google_cloud_datacatalog_v1beta1_entry_group_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
command.request_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1EntryGroup::Representation
command.request_object = google_cloud_datacatalog_v1beta1_entry_group_object
command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1EntryGroup::Representation
command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1EntryGroup
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Sets the access control policy for a resource. Replaces any existing
# policy.
# Supported resources are:
@ -397,11 +482,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Alpha feature.
# Creates an entry. Currently only entries of 'FILESET' type can be created.
# Creates an entry. Only entries of 'FILESET' type or user-specified type can
# be created.
# The user should enable the Data Catalog API in the project identified by
# the `parent` parameter (see [Data Catalog Resource Project]
# (/data-catalog/docs/concepts/resource-project) for more information).
# A maximum of 100,000 entries may be created per entry group.
# @param [String] parent
# Required. The name of the entry group this entry is in. Example:
# * projects/`project_id`/locations/`location`/entryGroups/`entry_group_id`
@ -440,7 +526,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Alpha feature.
# Deletes an existing entry. Only entries created through
# CreateEntry
# method can be deleted.
@ -562,6 +647,52 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists entries.
# @param [String] parent
# Required. The name of the entry group that contains the entries, which can
# be provided in URL format. Example:
# * projects/`project_id`/locations/`location`/entryGroups/`entry_group_id`
# @param [Fixnum] page_size
# 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
# Token that specifies which page is requested. If empty, the first page is
# returned.
# @param [String] read_mask
# The fields to return for each Entry. If not set or empty, all
# fields are returned.
# For example, setting read_mask to contain only one path "name" will cause
# ListEntries to return a list of Entries with only "name" field.
# @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::GoogleCloudDatacatalogV1beta1ListEntriesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListEntriesResponse]
#
# @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_group_entries(parent, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/entries', options)
command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListEntriesResponse::Representation
command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListEntriesResponse
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['readMask'] = read_mask unless read_mask.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 existing entry.
# The user should enable the Data Catalog API in the project identified by
# the `entry.name` parameter (see [Data Catalog Resource Project]
@ -823,11 +954,11 @@ module Google
# Resource Project](/data-catalog/docs/concepts/resource-project) for more
# information).
# @param [String] parent
# Required. The name of the project and the location this template is in.
# Required. The name of the project and the template location
# [region](/compute/docs/regions-zones/#available).
# NOTE: Currently, only the `us-central1 region` is supported.
# Example:
# * projects/`project_id`/locations/`location`
# TagTemplate and its child resources may not actually be stored in the
# location in this name.
# * projects/`project_id`/locations/us-central1
# @param [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplate] google_cloud_datacatalog_v1beta1_tag_template_object
# @param [String] tag_template_id
# Required. The id of the tag template to create.
@ -1124,10 +1255,11 @@ module Google
# Project](/data-catalog/docs/concepts/resource-project) for more
# information).
# @param [String] parent
# Required. The name of the project this template is in. Example:
# * projects/`project_id`/locations/`location`/tagTemplates/`tag_template_id`
# Note that this TagTemplateField may not actually be stored in the location
# in this name.
# Required. The name of the project and the template location
# [region](/compute/docs/regions-zones/#available).
# NOTE: Currently, only the `us-central1 region` is supported.
# Example:
# * projects/`project_id`/locations/us-central1/tagTemplates/`tag_template_id`
# @param [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplateField] google_cloud_datacatalog_v1beta1_tag_template_field_object
# @param [String] tag_template_field_id
# Required. The ID of the tag template field to create.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/bid-manager/
module DoubleclickbidmanagerV1_1
VERSION = 'V1_1'
REVISION = '20200116'
REVISION = '20200124'
# View and manage your reports in DoubleClick Bid Manager
AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager'

View File

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

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/firestore
module FirestoreV1beta1
VERSION = 'V1beta1'
REVISION = '20200104'
REVISION = '20200126'
# 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/ml/
module MlV1
VERSION = 'V1'
REVISION = '20200125'
REVISION = '20200205'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1407,6 +1407,42 @@ module Google
end
end
# All parameters related to queuing and scheduling of training jobs.
class GoogleCloudMlV1Scheduling
include Google::Apis::Core::Hashable
# Optional. The maximum job running time, expressed in seconds. By default
# there is no limit.
# If the training job is still running after this duration, AI Platform
# Training cancels it.
# For example, if you want to ensure your job runs for no more than 2 hours,
# set this field to `7200s` (2 hours * 60 minutes / hour * 60 seconds /
# minute).
# If you submit your training job using the `gcloud` tool, you can [provide
# this field in a `config.yaml`
# file](/ml-engine/docs/training-jobs#formatting_your_configuration_parameters).
# For example:
# ```yaml
# trainingInput:
# ...
# scheduling:
# maxRunningTime: 7200s
# ...
# ```
# Corresponds to the JSON property `maxRunningTime`
# @return [String]
attr_accessor :max_running_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@max_running_time = args[:max_running_time] if args.key?(:max_running_time)
end
end
# Request message for the SetDefaultVersion request.
class GoogleCloudMlV1SetDefaultVersionRequest
include Google::Apis::Core::Hashable
@ -1586,6 +1622,11 @@ module Google
# @return [String]
attr_accessor :scale_tier
# All parameters related to queuing and scheduling of training jobs.
# Corresponds to the JSON property `scheduling`
# @return [Google::Apis::MlV1::GoogleCloudMlV1Scheduling]
attr_accessor :scheduling
# Optional. Use 'chief' instead of 'master' in TF_CONFIG when Custom
# Container is used and evaluator is not specified.
# Defaults to false.
@ -1645,6 +1686,7 @@ module Google
@region = args[:region] if args.key?(:region)
@runtime_version = args[:runtime_version] if args.key?(:runtime_version)
@scale_tier = args[:scale_tier] if args.key?(:scale_tier)
@scheduling = args[:scheduling] if args.key?(:scheduling)
@use_chief_in_tf_config = args[:use_chief_in_tf_config] if args.key?(:use_chief_in_tf_config)
@worker_config = args[:worker_config] if args.key?(:worker_config)
@worker_count = args[:worker_count] if args.key?(:worker_count)

View File

@ -202,6 +202,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1Scheduling
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1SetDefaultVersionRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -609,6 +615,13 @@ module Google
end
end
class GoogleCloudMlV1Scheduling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_running_time, as: 'maxRunningTime'
end
end
class GoogleCloudMlV1SetDefaultVersionRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -635,6 +648,8 @@ module Google
property :region, as: 'region'
property :runtime_version, as: 'runtimeVersion'
property :scale_tier, as: 'scaleTier'
property :scheduling, as: 'scheduling', class: Google::Apis::MlV1::GoogleCloudMlV1Scheduling, decorator: Google::Apis::MlV1::GoogleCloudMlV1Scheduling::Representation
property :use_chief_in_tf_config, as: 'useChiefInTfConfig'
property :worker_config, as: 'workerConfig', class: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig, decorator: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig::Representation

View File

@ -26,13 +26,10 @@ module Google
# @see https://cloud.google.com/
module OsconfigV1beta
VERSION = 'V1beta'
REVISION = '20200109'
REVISION = '20200207'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# View and manage your Google Compute Engine resources
AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute'
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/youtube/partner/
module YoutubePartnerV1
VERSION = 'V1'
REVISION = '20200119'
REVISION = '20200202'
# View and manage your assets and associated content on YouTube
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'