Autogenerated update (2019-02-20)

Update:
- adexchangebuyer2_v2beta1
- admin_directory_v1
- alertcenter_v1beta1
- androidmanagement_v1
- appengine_v1
- appengine_v1beta
- bigquery_v2
- bigquerydatatransfer_v1
- binaryauthorization_v1beta1
- cloudsearch_v1
- cloudtasks_v2beta2
- cloudtasks_v2beta3
- composer_v1
- composer_v1beta1
- compute_alpha
- compute_beta
- container_v1beta1
- content_v2
- content_v2_1
- dataflow_v1b3
- dfareporting_v3_3
- dialogflow_v2
- dialogflow_v2beta1
- dlp_v2
- docs_v1
- firebasedynamiclinks_v1
- fitness_v1
- genomics_v1
- genomics_v1alpha2
- genomics_v2alpha1
- jobs_v3p1beta1
- monitoring_v3
- remotebuildexecution_v1
- remotebuildexecution_v1alpha
- remotebuildexecution_v2
- serviceconsumermanagement_v1
- servicecontrol_v1
- servicemanagement_v1
- servicenetworking_v1beta
- serviceusage_v1
- serviceusage_v1beta1
- speech_v1
- speech_v1p1beta1
- sqladmin_v1beta4
- storage_v1
- testing_v1
- toolresults_v1beta3
- tpu_v1
- tpu_v1alpha1
- vision_v1
- vision_v1p1beta1
- vision_v1p2beta1
- youtube_partner_v1
This commit is contained in:
Google APIs committed 2019-02-20 02:14:27 +00:00
1 parent 6e90789b27
commit e6ea6069c9
130 files changed
+16824 -538

No files matched your search

@@ -27,7 +27,7 @@ module Google
# @see https://developers.google.com/authorized-buyers/apis/reference/rest/
module Adexchangebuyer2V2beta1
VERSION = 'V2beta1'
REVISION = '20190128'
REVISION = '20190206'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
@@ -3044,7 +3044,7 @@ module Google
# The reason why the proposal is being paused.
# This human readable message will be displayed in the seller's UI.
# (Max length: 100 unicode code units.)
# (Max length: 1000 unicode code units.)
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/admin-sdk/directory/
module AdminDirectoryV1
VERSION = 'DirectoryV1'
REVISION = '20190128'
REVISION = '20190214'
# View and manage customer related information
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'
@@ -318,44 +318,18 @@ module Google
class BuildingAddress
include Google::Apis::Core::Hashable
# Unstructured address lines describing the lower levels of an address. Because
# values in addressLines do not have type information and may sometimes contain
# multiple values in a single field (e.g. "Austin, TX"), it is important that
# the line order is clear. The order of address lines should be "envelope order"
# for the country/region of the address. In places where this can vary (e.g.
# Japan), address_language is used to make it explicit (e.g. "ja" for large-to-
# small ordering and "ja-Latn" or "en" for small-to-large). This way, the most
# specific line of an address can be selected based on the language. The minimum
# permitted structural representation of an address consists of a regionCode
# with all remaining information placed in the addressLines. It would be
# possible to format such an address very approximately without geocoding, but
# no semantic reasoning could be made about any of the address components until
# it was at least partially resolved. Creating an address only containing a
# regionCode and addressLines, and then geocoding is the recommended way to
# handle completely unstructured addresses (as opposed to guessing which parts
# of the address should be localities or administrative areas).
# Unstructured address lines describing the lower levels of an address.
# Corresponds to the JSON property `addressLines`
# @return [Array<String>]
attr_accessor :address_lines
# Optional. Highest administrative subdivision which is used for postal
# addresses of a country or region. For example, this can be a state, a province,
# an oblast, or a prefecture. Specifically, for Spain this is the province and
# not the autonomous community (e.g. "Barcelona" and not "Catalonia"). Many
# countries don't use an administrative area in postal addresses. E.g. in
# Switzerland this should be left unpopulated.
# addresses of a country or region.
# Corresponds to the JSON property `administrativeArea`
# @return [String]
attr_accessor :administrative_area
# Optional. BCP-47 language code of the contents of this address (if known).
# This is often the UI language of the input form or is expected to match one of
# the languages used in the address' country/region, or their transliterated
# equivalents. This can affect formatting in certain countries, but is not
# critical to the correctness of the data and will never affect any validation
# or other non-formatting related operations. If this value is not known, it
# should be omitted (rather than specifying a possibly incorrect default).
# Examples: "zh-Hant", "ja", "ja-Latn", "en".
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@@ -368,24 +342,17 @@ module Google
# @return [String]
attr_accessor :locality
# Optional. Postal code of the address. Not all countries use or require postal
# codes to be present, but where they are used, they may trigger additional
# validation with other parts of the address (e.g. state/zip validation in the U.
# S.A.).
# Optional. Postal code of the address.
# Corresponds to the JSON property `postalCode`
# @return [String]
attr_accessor :postal_code
# Required. CLDR region code of the country/region of the address. This is never
# inferred and it is up to the user to ensure the value is correct. See http://
# cldr.unicode.org/ and http://www.unicode.org/cldr/charts/30/supplemental/
# territory_information.html
# Required. CLDR region code of the country/region of the address.
# Corresponds to the JSON property `regionCode`
# @return [String]
attr_accessor :region_code
# Optional. Sublocality of the address. For example, this can be neighborhoods,
# boroughs, districts.
# Optional. Sublocality of the address.
# Corresponds to the JSON property `sublocality`
# @return [String]
attr_accessor :sublocality
@@ -3334,16 +3301,6 @@ module Google
# @return [String]
attr_accessor :primary_email
# Recovery email of the user.
# Corresponds to the JSON property `recoveryEmail`
# @return [String]
attr_accessor :recovery_email
# Recovery phone of the user.
# Corresponds to the JSON property `recoveryPhone`
# @return [String]
attr_accessor :recovery_phone
#
# Corresponds to the JSON property `relations`
# @return [Object]
@@ -3423,8 +3380,6 @@ module Google
@phones = args[:phones] if args.key?(:phones)
@posix_accounts = args[:posix_accounts] if args.key?(:posix_accounts)
@primary_email = args[:primary_email] if args.key?(:primary_email)
@recovery_email = args[:recovery_email] if args.key?(:recovery_email)
@recovery_phone = args[:recovery_phone] if args.key?(:recovery_phone)
@relations = args[:relations] if args.key?(:relations)
@ssh_public_keys = args[:ssh_public_keys] if args.key?(:ssh_public_keys)
@suspended = args[:suspended] if args.key?(:suspended)
@@ -1371,8 +1371,6 @@ module Google
property :phones, as: 'phones'
property :posix_accounts, as: 'posixAccounts'
property :primary_email, as: 'primaryEmail'
property :recovery_email, as: 'recoveryEmail'
property :recovery_phone, as: 'recoveryPhone'
property :relations, as: 'relations'
property :ssh_public_keys, as: 'sshPublicKeys'
property :suspended, as: 'suspended'
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/admin-sdk/alertcenter/
module AlertcenterV1beta1
VERSION = 'V1beta1'
REVISION = '20190116'
REVISION = '20190209'
# See and delete your domain's G Suite alerts, and send alert feedback
AUTH_APPS_ALERTS = 'https://www.googleapis.com/auth/apps.alerts'
@@ -48,7 +48,6 @@ module Google
end
# An alert affecting a customer.
# All fields are read-only once created.
class Alert
include Google::Apis::Core::Hashable
@@ -94,6 +93,7 @@ module Google
attr_accessor :security_investigation_tool_link
# Required. A unique identifier for the system that reported the alert.
# This is output only after alert is created.
# Supported sources are any of the following:
# * Google Operations
# * Mobile device management
@@ -112,6 +112,7 @@ module Google
attr_accessor :start_time
# Required. The type of the alert.
# This is output only after alert is created.
# For a list of available alert types see
# [G Suite Alert types](/admin-sdk/alertcenter/reference/alert-types).
# Corresponds to the JSON property `type`
@@ -86,10 +86,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the specified alert.
# Gets the specified alert. Attempting to get a nonexistent alert returns
# `NOT_FOUND` error.
# @param [String] alert_id
# Required. The identifier of the alert to retrieve.
# Returns a NOT_FOUND error if no such alert.
# @param [String] customer_id
# Optional. The unique identifier of the G Suite organization account of the
# customer the alert is associated with.
@@ -215,10 +215,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates new feedback for an alert.
# Creates new feedback for an alert. Attempting to create a feedback for
# a non-existent alert returns `NOT_FOUND` error.
# @param [String] alert_id
# Required. The identifier of the alert this feedback belongs to.
# Returns a `NOT_FOUND` error if no such alert.
# @param [Google::Apis::AlertcenterV1beta1::AlertFeedback] alert_feedback_object
# @param [String] customer_id
# Optional. The unique identifier of the G Suite organization account of the
@@ -254,11 +254,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists all the feedback for an alert.
# Lists all the feedback for an alert. Attempting to list feedbacks for
# a non-existent alert returns `NOT_FOUND` error.
# @param [String] alert_id
# Required. The alert identifier.
# The "-" wildcard could be used to represent all alerts.
# If alert does not exist returns a `NOT_FOUND` error.
# @param [String] customer_id
# Optional. The unique identifier of the G Suite organization account of the
# customer the alert feedback are associated with.
@@ -330,7 +330,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Update the customer-level settings.
# Updates the customer-level settings.
# @param [Google::Apis::AlertcenterV1beta1::Settings] settings_object
# @param [String] customer_id
# Optional. The unique identifier of the G Suite organization account of the
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/android/management
module AndroidmanagementV1
VERSION = 'V1'
REVISION = '20190108'
REVISION = '20190205'
# Manage Android devices and apps for your customers
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'
@@ -1202,6 +1202,25 @@ module Google
end
end
# An action to launch an app.
class LaunchAppAction
include Google::Apis::Core::Hashable
# Package name of app to be launched
# Corresponds to the JSON property `packageName`
# @return [String]
attr_accessor :package_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@package_name = args[:package_name] if args.key?(:package_name)
end
end
# Response to a request to list devices for a given enterprise.
class ListDevicesResponse
include Google::Apis::Core::Hashable
@@ -2216,6 +2235,11 @@ module Google
attr_accessor :set_wallpaper_disabled
alias_method :set_wallpaper_disabled?, :set_wallpaper_disabled
# Actions to take during the setup process.
# Corresponds to the JSON property `setupActions`
# @return [Array<Google::Apis::AndroidmanagementV1::SetupAction>]
attr_accessor :setup_actions
# Whether location sharing is disabled.
# Corresponds to the JSON property `shareLocationDisabled`
# @return [Boolean]
@@ -2314,8 +2338,7 @@ module Google
attr_accessor :wifi_config_disabled
alias_method :wifi_config_disabled?, :wifi_config_disabled
# Whether Wi-Fi networks defined in Open Network Configuration are locked so
# they can't be edited by the user.
# DEPRECATED - Use wifi_config_disabled.
# Corresponds to the JSON property `wifiConfigsLockdownEnabled`
# @return [Boolean]
attr_accessor :wifi_configs_lockdown_enabled
@@ -2384,6 +2407,7 @@ module Google
@screen_capture_disabled = args[:screen_capture_disabled] if args.key?(:screen_capture_disabled)
@set_user_icon_disabled = args[:set_user_icon_disabled] if args.key?(:set_user_icon_disabled)
@set_wallpaper_disabled = args[:set_wallpaper_disabled] if args.key?(:set_wallpaper_disabled)
@setup_actions = args[:setup_actions] if args.key?(:setup_actions)
@share_location_disabled = args[:share_location_disabled] if args.key?(:share_location_disabled)
@short_support_message = args[:short_support_message] if args.key?(:short_support_message)
@skip_first_use_hints_enabled = args[:skip_first_use_hints_enabled] if args.key?(:skip_first_use_hints_enabled)
@@ -2474,6 +2498,39 @@ module Google
end
end
# An action executed during setup.
class SetupAction
include Google::Apis::Core::Hashable
# Provides a user-facing message with locale info. The maximum message length is
# 4096 characters.
# Corresponds to the JSON property `description`
# @return [Google::Apis::AndroidmanagementV1::UserFacingMessage]
attr_accessor :description
# An action to launch an app.
# Corresponds to the JSON property `launchApp`
# @return [Google::Apis::AndroidmanagementV1::LaunchAppAction]
attr_accessor :launch_app
# Provides a user-facing message with locale info. The maximum message length is
# 4096 characters.
# Corresponds to the JSON property `title`
# @return [Google::Apis::AndroidmanagementV1::UserFacingMessage]
attr_accessor :title
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@launch_app = args[:launch_app] if args.key?(:launch_app)
@title = args[:title] if args.key?(:title)
end
end
# A resource containing sign in details for an enterprise.
class SigninDetail
include Google::Apis::Core::Hashable
@@ -136,6 +136,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class LaunchAppAction
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDevicesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -250,6 +256,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SetupAction
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SigninDetail
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -579,6 +591,13 @@ module Google
end
end
class LaunchAppAction
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :package_name, as: 'packageName'
end
end
class ListDevicesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -811,6 +830,8 @@ module Google
property :screen_capture_disabled, as: 'screenCaptureDisabled'
property :set_user_icon_disabled, as: 'setUserIconDisabled'
property :set_wallpaper_disabled, as: 'setWallpaperDisabled'
collection :setup_actions, as: 'setupActions', class: Google::Apis::AndroidmanagementV1::SetupAction, decorator: Google::Apis::AndroidmanagementV1::SetupAction::Representation
property :share_location_disabled, as: 'shareLocationDisabled'
property :short_support_message, as: 'shortSupportMessage', class: Google::Apis::AndroidmanagementV1::UserFacingMessage, decorator: Google::Apis::AndroidmanagementV1::UserFacingMessage::Representation
@@ -853,6 +874,18 @@ module Google
end
end
class SetupAction
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description', class: Google::Apis::AndroidmanagementV1::UserFacingMessage, decorator: Google::Apis::AndroidmanagementV1::UserFacingMessage::Representation
property :launch_app, as: 'launchApp', class: Google::Apis::AndroidmanagementV1::LaunchAppAction, decorator: Google::Apis::AndroidmanagementV1::LaunchAppAction::Representation
property :title, as: 'title', class: Google::Apis::AndroidmanagementV1::UserFacingMessage, decorator: Google::Apis::AndroidmanagementV1::UserFacingMessage::Representation
end
end
class SigninDetail
# @private
class Representation < Google::Apis::Core::JsonRepresentation
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1
VERSION = 'V1'
REVISION = '20181218'
REVISION = '20190201'
# View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
@@ -1696,6 +1696,13 @@ module Google
# @return [String]
attr_accessor :name
# Enable session affinity. Only applicable in the App Engine flexible
# environment.
# Corresponds to the JSON property `sessionAffinity`
# @return [Boolean]
attr_accessor :session_affinity
alias_method :session_affinity?, :session_affinity
# Google Cloud Platform sub-network where the virtual machines are created.
# Specify the short name, not the resource path.If a subnetwork name is
# specified, a network name will also be required unless it is for the default
@@ -1724,6 +1731,7 @@ module Google
@forwarded_ports = args[:forwarded_ports] if args.key?(:forwarded_ports)
@instance_tag = args[:instance_tag] if args.key?(:instance_tag)
@name = args[:name] if args.key?(:name)
@session_affinity = args[:session_affinity] if args.key?(:session_affinity)
@subnetwork_name = args[:subnetwork_name] if args.key?(:subnetwork_name)
end
end
@@ -895,6 +895,7 @@ module Google
collection :forwarded_ports, as: 'forwardedPorts'
property :instance_tag, as: 'instanceTag'
property :name, as: 'name'
property :session_affinity, as: 'sessionAffinity'
property :subnetwork_name, as: 'subnetworkName'
end
end
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1beta
VERSION = 'V1beta'
REVISION = '20181218'
REVISION = '20190201'
# View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
@@ -1788,7 +1788,8 @@ module Google
# @return [String]
attr_accessor :name
# Enable session affinity.
# Enable session affinity. Only applicable in the App Engine flexible
# environment.
# Corresponds to the JSON property `sessionAffinity`
# @return [Boolean]
attr_accessor :session_affinity
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigqueryV2
VERSION = 'V2'
REVISION = '20190124'
REVISION = '20190208'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
@@ -657,6 +657,14 @@ module Google
# @return [String]
attr_accessor :friendly_name
# [Optional] The labels associated with this table. You can use these to
# organize and group your tables. This will only be used if the destination
# table is newly created. If the table already exists and labels are different
# than the current labels are provided, the job will fail.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
def initialize(**args)
update!(**args)
end
@@ -665,6 +673,7 @@ module Google
def update!(**args)
@description = args[:description] if args.key?(:description)
@friendly_name = args[:friendly_name] if args.key?(:friendly_name)
@labels = args[:labels] if args.key?(:labels)
end
end
@@ -2519,6 +2528,12 @@ module Google
# @return [Array<Fixnum>]
attr_accessor :destination_uri_file_counts
# [Output-only] Number of user bytes extracted into the result. This is the byte
# count as computed by BigQuery for billing purposes.
# Corresponds to the JSON property `inputBytes`
# @return [Fixnum]
attr_accessor :input_bytes
def initialize(**args)
update!(**args)
end
@@ -2526,6 +2541,7 @@ module Google
# Update properties of this object
def update!(**args)
@destination_uri_file_counts = args[:destination_uri_file_counts] if args.key?(:destination_uri_file_counts)
@input_bytes = args[:input_bytes] if args.key?(:input_bytes)
end
end
@@ -600,6 +600,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :friendly_name, as: 'friendlyName'
hash :labels, as: 'labels'
end
end
@@ -1014,6 +1015,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :destination_uri_file_counts, as: 'destinationUriFileCounts'
property :input_bytes, :numeric_string => true, as: 'inputBytes'
end
end
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigquerydatatransferV1
VERSION = 'V1'
REVISION = '20190119'
REVISION = '20190212'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
@@ -367,6 +367,13 @@ module Google
# urn:ietf:wg:oauth:2.0:oob means that authorization code should be
# returned in the title bar of the browser, with the page text prompting
# the user to copy the code and paste it in the application.
# @param [String] version_info
# Optional version info. If users want to find a very recent access token,
# that is, immediately after approving access, users have to set the
# version_info claim in the token request. To obtain the version_info, users
# must use the “none+gsession” response type. which be return a
# version_info back in the authorization response which be be put in a JWT
# claim in the token request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -384,7 +391,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_transfer_config(parent, transfer_config_object = nil, authorization_code: nil, fields: nil, quota_user: nil, options: nil, &block)
def create_project_location_transfer_config(parent, transfer_config_object = nil, authorization_code: nil, version_info: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/transferConfigs', options)
command.request_representation = Google::Apis::BigquerydatatransferV1::TransferConfig::Representation
command.request_object = transfer_config_object
@@ -392,6 +399,7 @@ module Google
command.response_class = Google::Apis::BigquerydatatransferV1::TransferConfig
command.params['parent'] = parent unless parent.nil?
command.query['authorizationCode'] = authorization_code unless authorization_code.nil?
command.query['versionInfo'] = version_info unless version_info.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@@ -534,6 +542,13 @@ module Google
# the user to copy the code and paste it in the application.
# @param [String] update_mask
# Required list of fields to be updated in this request.
# @param [String] version_info
# Optional version info. If users want to find a very recent access token,
# that is, immediately after approving access, users have to set the
# version_info claim in the token request. To obtain the version_info, users
# must use the “none+gsession” response type. which be return a
# version_info back in the authorization response which be be put in a JWT
# claim in the token request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -551,7 +566,7 @@ module Google
# @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_transfer_config(name, transfer_config_object = nil, authorization_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
def patch_project_location_transfer_config(name, transfer_config_object = nil, authorization_code: nil, update_mask: nil, version_info: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::BigquerydatatransferV1::TransferConfig::Representation
command.request_object = transfer_config_object
@@ -560,6 +575,7 @@ module Google
command.params['name'] = name unless name.nil?
command.query['authorizationCode'] = authorization_code unless authorization_code.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['versionInfo'] = version_info unless version_info.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@@ -781,6 +797,13 @@ module Google
# urn:ietf:wg:oauth:2.0:oob means that authorization code should be
# returned in the title bar of the browser, with the page text prompting
# the user to copy the code and paste it in the application.
# @param [String] version_info
# Optional version info. If users want to find a very recent access token,
# that is, immediately after approving access, users have to set the
# version_info claim in the token request. To obtain the version_info, users
# must use the “none+gsession” response type. which be return a
# version_info back in the authorization response which be be put in a JWT
# claim in the token request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -798,7 +821,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_transfer_config(parent, transfer_config_object = nil, authorization_code: nil, fields: nil, quota_user: nil, options: nil, &block)
def create_project_transfer_config(parent, transfer_config_object = nil, authorization_code: nil, version_info: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/transferConfigs', options)
command.request_representation = Google::Apis::BigquerydatatransferV1::TransferConfig::Representation
command.request_object = transfer_config_object
@@ -806,6 +829,7 @@ module Google
command.response_class = Google::Apis::BigquerydatatransferV1::TransferConfig
command.params['parent'] = parent unless parent.nil?
command.query['authorizationCode'] = authorization_code unless authorization_code.nil?
command.query['versionInfo'] = version_info unless version_info.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@@ -948,6 +972,13 @@ module Google
# the user to copy the code and paste it in the application.
# @param [String] update_mask
# Required list of fields to be updated in this request.
# @param [String] version_info
# Optional version info. If users want to find a very recent access token,
# that is, immediately after approving access, users have to set the
# version_info claim in the token request. To obtain the version_info, users
# must use the “none+gsession” response type. which be return a
# version_info back in the authorization response which be be put in a JWT
# claim in the token request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -965,7 +996,7 @@ module Google
# @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_transfer_config(name, transfer_config_object = nil, authorization_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
def patch_project_transfer_config(name, transfer_config_object = nil, authorization_code: nil, update_mask: nil, version_info: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::BigquerydatatransferV1::TransferConfig::Representation
command.request_object = transfer_config_object
@@ -974,6 +1005,7 @@ module Google
command.params['name'] = name unless name.nil?
command.query['authorizationCode'] = authorization_code unless authorization_code.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['versionInfo'] = version_info unless version_info.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/binary-authorization/
module BinaryauthorizationV1beta1
VERSION = 'V1beta1'
REVISION = '20180813'
REVISION = '20190215'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://gsuite.google.com/products/cloud-search/
module CloudsearchV1
VERSION = 'V1'
REVISION = '20190205'
REVISION = '20190212'
# Index and serve your organization's data with Cloud Search
AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search'
+151 -20
View File
@@ -147,13 +147,13 @@ module Google
end
end
# Data source is a logical namespace for items to be indexed.
# All items must belong to a data source. This is the prerequisite before
# Datasource is a logical namespace for items to be indexed.
# All items must belong to a datasource. This is the prerequisite before
# items can be indexed into Cloud Search.
class DataSource
include Google::Apis::Core::Hashable
# If true, Indexing API rejects any modification calls to this data source
# If true, Indexing API rejects any modification calls to this datasource
# such as create, update, and delete.
# Disabling this does not imply halting process of previously
# accepted data.
@@ -168,7 +168,7 @@ module Google
attr_accessor :disable_serving
alias_method :disable_serving?, :disable_serving
# Required. Display name of the data source
# Required. Display name of the datasource
# The maximum length is 300 characters.
# Corresponds to the JSON property `displayName`
# @return [String]
@@ -179,19 +179,19 @@ module Google
# @return [Array<String>]
attr_accessor :indexing_service_accounts
# This restricts visibility to items at a data source level to the
# disjunction of users/groups mentioned with the field. Note that, this
# does not ensure access to a specific item, as users need to have ACL
# permissions on the contained items. This ensures a high level access
# on the entire data source, and that the individual items are not shared
# outside this visibility.
# This field restricts visibility to items at the datasource level. Items
# within the datasource are restricted to the union of users and groups
# included in this field. Note that, this does not ensure access to a
# specific item, as users need to have ACL permissions on the contained
# items. This ensures a high level access on the entire datasource, and
# that the individual items are not shared outside this visibility.
# Corresponds to the JSON property `itemsVisibility`
# @return [Array<Google::Apis::CloudsearchV1::GSuitePrincipal>]
attr_accessor :items_visibility
# Name of the data source resource.
# Name of the datasource resource.
# Format: datasources/`source_id`.
# <br />The name is ignored when creating a data source.
# <br />The name is ignored when creating a datasource.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@@ -204,7 +204,7 @@ module Google
# A short name or alias for the source. This value will be used to match the
# 'source' operator. For example, if the short name is *&lt;value&gt;* then
# queries like *source:&lt;value&gt;* will only return results for this
# source. The value must be unique across all data sources. The value must
# source. The value must be unique across all datasources. The value must
# only contain alphanumeric characters (a-zA-Z0-9). The value cannot start
# with 'google' and cannot be one of the following: mail, gmail, docs, drive,
# groups, sites, calendar, hangouts, gplus, keep, people, teams.
@@ -1070,8 +1070,8 @@ module Google
class FreshnessOptions
include Google::Apis::Core::Hashable
# The duration (in seconds) after which an object should be considered
# stale.
# The duration after which an object should be considered
# stale. The default value is 180 days (in seconds).
# Corresponds to the JSON property `freshnessDuration`
# @return [String]
attr_accessor :freshness_duration
@@ -1087,6 +1087,8 @@ module Google
# updateTime
# as the freshness indicator.
# The maximum length is 256 characters.
# When a property is used to calculate fresheness, the value defaults
# to 2 years from the current time.
# Corresponds to the JSON property `freshnessProperty`
# @return [String]
attr_accessor :freshness_property
@@ -1173,6 +1175,101 @@ module Google
end
end
# Gmail Action restricts (i.e. read/replied/snoozed).
class GmailActionRestrict
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@type = args[:type] if args.key?(:type)
end
end
# Gmail Attachment restricts (i.e. has:attachment, has:drive, filename:pdf).
class GmailAttachmentRestrict
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@type = args[:type] if args.key?(:type)
end
end
# Gmail Folder restricts (i.e. in Drafts/Sent/Chats/User Generated Labels).
class GmailFolderRestrict
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@type = args[:type] if args.key?(:type)
end
end
# Gmail Intelligent restricts (i.e. smartlabels, important).
class GmailIntelligentRestrict
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@type = args[:type] if args.key?(:type)
end
end
# Gmail Time restricts (i.e. received today, this week).
class GmailTimeRestrict
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@type = args[:type] if args.key?(:type)
end
end
# Used to provide a search operator for html properties. This is optional.
# Search operators let users restrict the query to specific fields relevant
# to the type of item being searched.
@@ -2087,7 +2184,10 @@ module Google
# @return [Google::Apis::CloudsearchV1::Source]
attr_accessor :source
# The last modified date for the object in the search result.
# The last modified date for the object in the search result. If not
# set in the item, the value returned here is empty. When
# `updateTime` is used for calculating freshness and is not set, this
# value defaults to 2 years from the current time.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
@@ -3293,7 +3393,7 @@ module Google
end
# Information relevant only to a restrict entry.
# NextId: 7
# NextId: 12
class RestrictItem
include Google::Apis::Core::Hashable
@@ -3317,6 +3417,31 @@ module Google
# @return [Google::Apis::CloudsearchV1::DriveTimeSpanRestrict]
attr_accessor :drive_time_span_restrict
# Gmail Action restricts (i.e. read/replied/snoozed).
# Corresponds to the JSON property `gmailActionRestrict`
# @return [Google::Apis::CloudsearchV1::GmailActionRestrict]
attr_accessor :gmail_action_restrict
# Gmail Attachment restricts (i.e. has:attachment, has:drive, filename:pdf).
# Corresponds to the JSON property `gmailAttachmentRestrict`
# @return [Google::Apis::CloudsearchV1::GmailAttachmentRestrict]
attr_accessor :gmail_attachment_restrict
# Gmail Folder restricts (i.e. in Drafts/Sent/Chats/User Generated Labels).
# Corresponds to the JSON property `gmailFolderRestrict`
# @return [Google::Apis::CloudsearchV1::GmailFolderRestrict]
attr_accessor :gmail_folder_restrict
# Gmail Intelligent restricts (i.e. smartlabels, important).
# Corresponds to the JSON property `gmailIntelligentRestrict`
# @return [Google::Apis::CloudsearchV1::GmailIntelligentRestrict]
attr_accessor :gmail_intelligent_restrict
# Gmail Time restricts (i.e. received today, this week).
# Corresponds to the JSON property `gmailTimeRestrict`
# @return [Google::Apis::CloudsearchV1::GmailTimeRestrict]
attr_accessor :gmail_time_restrict
# The search restrict (e.g. "after:2017-09-11 before:2017-09-12").
# Corresponds to the JSON property `searchOperator`
# @return [String]
@@ -3332,6 +3457,11 @@ module Google
@drive_location_restrict = args[:drive_location_restrict] if args.key?(:drive_location_restrict)
@drive_mime_type_restrict = args[:drive_mime_type_restrict] if args.key?(:drive_mime_type_restrict)
@drive_time_span_restrict = args[:drive_time_span_restrict] if args.key?(:drive_time_span_restrict)
@gmail_action_restrict = args[:gmail_action_restrict] if args.key?(:gmail_action_restrict)
@gmail_attachment_restrict = args[:gmail_attachment_restrict] if args.key?(:gmail_attachment_restrict)
@gmail_folder_restrict = args[:gmail_folder_restrict] if args.key?(:gmail_folder_restrict)
@gmail_intelligent_restrict = args[:gmail_intelligent_restrict] if args.key?(:gmail_intelligent_restrict)
@gmail_time_restrict = args[:gmail_time_restrict] if args.key?(:gmail_time_restrict)
@search_operator = args[:search_operator] if args.key?(:search_operator)
end
end
@@ -3664,7 +3794,8 @@ module Google
include Google::Apis::Core::Hashable
# An indication of the quality of the item, used to influence search quality.
# Value should be between 0.0 (lowest quality) and 1.0 (highest quality).
# Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The
# default value is 0.0.
# Corresponds to the JSON property `quality`
# @return [Float]
attr_accessor :quality
@@ -4606,8 +4737,8 @@ module Google
# @return [Google::Apis::CloudsearchV1::DebugOptions]
attr_accessor :debug_options
# Data source is a logical namespace for items to be indexed.
# All items must belong to a data source. This is the prerequisite before
# Datasource is a logical namespace for items to be indexed.
# All items must belong to a datasource. This is the prerequisite before
# items can be indexed into Cloud Search.
# Corresponds to the JSON property `source`
# @return [Google::Apis::CloudsearchV1::DataSource]
@@ -256,6 +256,36 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GmailActionRestrict
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GmailAttachmentRestrict
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GmailFolderRestrict
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GmailIntelligentRestrict
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GmailTimeRestrict
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HtmlOperatorOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -1175,6 +1205,41 @@ module Google
end
end
class GmailActionRestrict
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
end
end
class GmailAttachmentRestrict
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
end
end
class GmailFolderRestrict
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
end
end
class GmailIntelligentRestrict
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
end
end
class GmailTimeRestrict
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
end
end
class HtmlOperatorOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1760,6 +1825,16 @@ module Google
property :drive_time_span_restrict, as: 'driveTimeSpanRestrict', class: Google::Apis::CloudsearchV1::DriveTimeSpanRestrict, decorator: Google::Apis::CloudsearchV1::DriveTimeSpanRestrict::Representation
property :gmail_action_restrict, as: 'gmailActionRestrict', class: Google::Apis::CloudsearchV1::GmailActionRestrict, decorator: Google::Apis::CloudsearchV1::GmailActionRestrict::Representation
property :gmail_attachment_restrict, as: 'gmailAttachmentRestrict', class: Google::Apis::CloudsearchV1::GmailAttachmentRestrict, decorator: Google::Apis::CloudsearchV1::GmailAttachmentRestrict::Representation
property :gmail_folder_restrict, as: 'gmailFolderRestrict', class: Google::Apis::CloudsearchV1::GmailFolderRestrict, decorator: Google::Apis::CloudsearchV1::GmailFolderRestrict::Representation
property :gmail_intelligent_restrict, as: 'gmailIntelligentRestrict', class: Google::Apis::CloudsearchV1::GmailIntelligentRestrict, decorator: Google::Apis::CloudsearchV1::GmailIntelligentRestrict::Representation
property :gmail_time_restrict, as: 'gmailTimeRestrict', class: Google::Apis::CloudsearchV1::GmailTimeRestrict, decorator: Google::Apis::CloudsearchV1::GmailTimeRestrict::Representation
property :search_operator, as: 'searchOperator'
end
end
+10 -10
View File
@@ -949,7 +949,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates data source.
# Creates a datasource.
# @param [Google::Apis::CloudsearchV1::DataSource] data_source_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -979,9 +979,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes a data source.
# Deletes a datasource.
# @param [String] name
# Name of the data source.
# Name of the datasource.
# Format: datasources/`source_id`.
# @param [Boolean] debug_options_enable_debugging
# If set, the request will enable debugging features of Cloud Search.
@@ -1014,9 +1014,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets a data source.
# Gets a datasource.
# @param [String] name
# Name of the data source resource.
# Name of the datasource resource.
# Format: datasources/`source_id`.
# @param [Boolean] debug_options_enable_debugging
# If set, the request will enable debugging features of Cloud Search.
@@ -1049,12 +1049,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists data sources.
# Lists datasources.
# @param [Boolean] debug_options_enable_debugging
# If set, the request will enable debugging features of Cloud Search.
# Only turn on this field, if asked by Google to help with debugging.
# @param [Fixnum] page_size
# Maximum number of data sources to fetch in a request.
# Maximum number of datasources to fetch in a request.
# The max value is 100.
# <br />The default value is 10
# @param [String] page_token
@@ -1088,11 +1088,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates a data source.
# Updates a datasource.
# @param [String] name
# Name of the data source resource.
# Name of the datasource resource.
# Format: datasources/`source_id`.
# <br />The name is ignored when creating a data source.
# <br />The name is ignored when creating a datasource.
# @param [Google::Apis::CloudsearchV1::UpdateDataSourceRequest] update_data_source_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/tasks/
module CloudtasksV2beta2
VERSION = 'V2beta2'
REVISION = '20181022'
REVISION = '20190211'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1685,7 +1685,7 @@ module Google
include Google::Apis::Core::Hashable
# Output only. The number of attempts dispatched.
# This count includes tasks which have been dispatched but haven't
# This count includes attempts which have been dispatched but haven't
# received a response.
# Corresponds to the JSON property `attemptDispatchCount`
# @return [Fixnum]
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/tasks/
module CloudtasksV2beta3
VERSION = 'V2beta3'
REVISION = '20190125'
REVISION = '20190211'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1290,7 +1290,7 @@ module Google
attr_accessor :create_time
# Output only. The number of attempts dispatched.
# This count includes tasks which have been dispatched but haven't
# This count includes attempts which have been dispatched but haven't
# received a response.
# Corresponds to the JSON property `dispatchCount`
# @return [Fixnum]
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/composer/
module ComposerV1
VERSION = 'V1'
REVISION = '20190110'
REVISION = '20190206'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
+11 -5
View File
@@ -586,16 +586,22 @@ module Google
# @return [Hash<String,String>]
attr_accessor :env_variables
# Output only.
# The version of the software running in the environment.
# This encapsulates both the version of Cloud Composer functionality and the
# version of Apache Airflow. It must match the regular expression
# `composer-[0-9]+\.[0-9]+(\.[0-9]+)?-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`.
# `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`.
# When used as input, the server also checks if the provided version is
# supported and denies the request for an unsupported version.
# The Cloud Composer portion of the version is a
# [semantic version](https://semver.org). The portion of the image version
# following _airflow-_ is an official Apache Airflow repository
# [semantic version](https://semver.org) or `latest`. When the patch version
# is omitted, the current Cloud Composer patch version is selected.
# When `latest` is provided instead of an explicit version number,
# the server replaces `latest` with the current Cloud Composer version
# and stores that version number in the same field.
# The portion of the image version that follows <em>airflow-</em> is an
# official Apache Airflow repository
# [release name](https://github.com/apache/incubator-airflow/releases).
# See also [Release Notes](/composer/docs/release-notes).
# See also [Version List](/composer/docs/concepts/versioning/composer-versions).
# Corresponds to the JSON property `imageVersion`
# @return [String]
attr_accessor :image_version
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/composer/
module ComposerV1beta1
VERSION = 'V1beta1'
REVISION = '20190110'
REVISION = '20190206'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -593,28 +593,18 @@ module Google
# This encapsulates both the version of Cloud Composer functionality and the
# version of Apache Airflow. It must match the regular expression
# `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`.
# When used as input, the server will also check if the provided version is
# supported and deny the request for an unsupported version.
# When used as input, the server also checks if the provided version is
# supported and denies the request for an unsupported version.
# The Cloud Composer portion of the version is a
# [semantic version](https://semver.org) or `latest`. The patch version
# can be omitted and the current Cloud Composer patch version
# will be selected.
# [semantic version](https://semver.org) or `latest`. When the patch version
# is omitted, the current Cloud Composer patch version is selected.
# When `latest` is provided instead of an explicit version number,
# the server will replace `latest` with the current Cloud Composer version
# and store that version number in the same field.
# The portion of the image version that follows <em>airflow-</em> is an official
# Apache Airflow repository
# the server replaces `latest` with the current Cloud Composer version
# and stores that version number in the same field.
# The portion of the image version that follows <em>airflow-</em> is an
# official Apache Airflow repository
# [release name](https://github.com/apache/incubator-airflow/releases).
# Supported values for input are:
# * `composer-latest-airflow-1.10.0`
# * `composer-latest-airflow-1.9.0`
# * `composer-latest-airflow-1.10`
# * `composer-latest-airflow-1.9`
# * `composer-1.3.0-airflow-1.10.0`
# * `composer-1.3.0-airflow-1.9.0`
# * `composer-1.3.0-airflow-1.10`
# * `composer-1.3.0-airflow-1.9`
# See also [Release Notes](/composer/docs/release-notes).
# See also [Version List](/composer/docs/concepts/versioning/composer-versions).
# Corresponds to the JSON property `imageVersion`
# @return [String]
attr_accessor :image_version
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeAlpha
VERSION = 'Alpha'
REVISION = '20190107'
REVISION = '20190201'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+870 -5
View File
@@ -946,6 +946,60 @@ module Google
execute_or_queue_command(command, &block)
end
# Resizes the allocation (applicable to standalone allocations only)
# @param [String] project
# Project ID for this request.
# @param [String] zone
# Name of the zone for this request.
# @param [String] allocation
# Name of the allocation to update.
# @param [Google::Apis::ComputeAlpha::AllocationsResizeRequest] allocations_resize_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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::ComputeAlpha::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::Operation]
#
# @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 resize_allocation(project, zone, allocation, allocations_resize_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/allocations/{allocation}/resize', options)
command.request_representation = Google::Apis::ComputeAlpha::AllocationsResizeRequest::Representation
command.request_object = allocations_resize_request_object
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['allocation'] = allocation unless allocation.nil?
command.query['requestId'] = request_id unless request_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
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] project
@@ -8642,8 +8696,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Insert or patch (for the ones that already exist) per-instance configs for the
# managed instance group. perInstanceConfig.instance serves as a key used to
# Insert or update (for the ones that already exist) per-instance configs for
# the managed instance group. perInstanceConfig.instance serves as a key used to
# distinguish whether to perform insert or patch.
# @param [String] project
# Project ID for this request.
@@ -9805,7 +9859,7 @@ module Google
# @param [Google::Apis::ComputeAlpha::AttachedDisk] attached_disk_object
# @param [Boolean] force_attach
# Whether to force attach the disk even if it's currently attached to another
# instance. This is only available for regional disks.
# instance.
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
@@ -10190,6 +10244,45 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns the Shielded Instance Identity of an instance
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# Name or id of the instance scoping this request.
# @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::ComputeAlpha::ShieldedInstanceIdentity] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::ShieldedInstanceIdentity]
#
# @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_instance_shielded_instance_identity(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity', options)
command.response_representation = Google::Apis::ComputeAlpha::ShieldedInstanceIdentity::Representation
command.response_class = Google::Apis::ComputeAlpha::ShieldedInstanceIdentity
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['instance'] = instance unless instance.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
# Returns the Shielded VM Identity of an instance
# @param [String] project
# Project ID for this request.
@@ -11151,6 +11244,62 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets the Shielded Instance integrity policy for an instance. You can only use
# this method on a running instance. This method supports PATCH semantics and
# uses the JSON merge patch format and processing rules.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# Name or id of the instance scoping this request.
# @param [Google::Apis::ComputeAlpha::ShieldedInstanceIntegrityPolicy] shielded_instance_integrity_policy_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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::ComputeAlpha::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::Operation]
#
# @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 set_instance_shielded_instance_integrity_policy(project, zone, instance, shielded_instance_integrity_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy', options)
command.request_representation = Google::Apis::ComputeAlpha::ShieldedInstanceIntegrityPolicy::Representation
command.request_object = shielded_instance_integrity_policy_object
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['instance'] = instance unless instance.nil?
command.query['requestId'] = request_id unless request_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
# Sets the Shielded VM integrity policy for a VM instance. You can only use this
# method on a running VM instance. This method supports PATCH semantics and uses
# the JSON merge patch format and processing rules.
@@ -11741,6 +11890,62 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the Shielded Instance config for an instance. You can only use this
# method on a stopped instance. This method supports PATCH semantics and uses
# the JSON merge patch format and processing rules.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# Name or id of the instance scoping this request.
# @param [Google::Apis::ComputeAlpha::ShieldedInstanceConfig] shielded_instance_config_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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::ComputeAlpha::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::Operation]
#
# @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 update_instance_shielded_instance_config(project, zone, instance, shielded_instance_config_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig', options)
command.request_representation = Google::Apis::ComputeAlpha::ShieldedInstanceConfig::Representation
command.request_object = shielded_instance_config_object
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['instance'] = instance unless instance.nil?
command.query['requestId'] = request_id unless request_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 Shielded VM config for a VM instance. You can only use this method
# on a stopped VM instance. This method supports PATCH semantics and uses the
# JSON merge patch format and processing rules.
@@ -16597,6 +16802,49 @@ module Google
execute_or_queue_command(command, &block)
end
# Copies rules to the specified security policy.
# @param [String] security_policy
# Name of the security policy to update.
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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 [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @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 copy_organization_security_policy_rules(security_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/copyRules', options)
command.params['securityPolicy'] = security_policy unless security_policy.nil?
command.query['requestId'] = request_id unless request_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
# Deletes the specified policy.
# @param [String] security_policy
# Name of the security policy to delete.
@@ -16867,6 +17115,49 @@ module Google
execute_or_queue_command(command, &block)
end
# Moves the specified security policy.
# @param [String] security_policy
# Name of the security policy to update.
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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 [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @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 move_organization_security_policy(security_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/move', options)
command.params['securityPolicy'] = security_policy unless security_policy.nil?
command.query['requestId'] = request_id unless request_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
# Patches a rule at the specified priority.
# @param [String] security_policy
# Name of the security policy to update.
@@ -18775,6 +19066,61 @@ module Google
execute_or_queue_command(command, &block)
end
# Update the shape of allocations for GPUS/Local SSDs of allocations within the
# commitments.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region for this request.
# @param [String] commitment
# Name of the commitment of which the allocation's capacities are being updated.
# @param [Google::Apis::ComputeAlpha::RegionCommitmentsUpdateAllocationsRequest] region_commitments_update_allocations_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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::ComputeAlpha::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::Operation]
#
# @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 update_region_commitment_allocations(project, region, commitment, region_commitments_update_allocations_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/commitments/{commitment}/updateAllocations', options)
command.request_representation = Google::Apis::ComputeAlpha::RegionCommitmentsUpdateAllocationsRequest::Representation
command.request_object = region_commitments_update_allocations_request_object
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['commitment'] = commitment unless commitment.nil?
command.query['requestId'] = request_id unless request_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
# Returns the specified regional disk type. Gets a list of available disk types
# by making a list() request.
# @param [String] project
@@ -19509,6 +19855,267 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes the specified regional HealthCheckService.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] health_check_service
# Name of the HealthCheckService to delete. The name must be 1-63 characters
# long, and comply with RFC1035.
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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::ComputeAlpha::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_region_health_check_service(project, region, health_check_service, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/regions/{region}/healthCheckServices/{healthCheckService}', options)
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['healthCheckService'] = health_check_service unless health_check_service.nil?
command.query['requestId'] = request_id unless request_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
# Returns the specified regional HealthCheckService resource.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] health_check_service
# Name of the HealthCheckService to update. The name must be 1-63 characters
# long, and comply with RFC1035.
# @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::ComputeAlpha::HealthCheckService] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::HealthCheckService]
#
# @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_region_health_check_service(project, region, health_check_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/regions/{region}/healthCheckServices/{healthCheckService}', options)
command.response_representation = Google::Apis::ComputeAlpha::HealthCheckService::Representation
command.response_class = Google::Apis::ComputeAlpha::HealthCheckService
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['healthCheckService'] = health_check_service unless health_check_service.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
# Creates a regional HealthCheckService resource in the specified project and
# region using the data included in the request.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [Google::Apis::ComputeAlpha::HealthCheckService] health_check_service_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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::ComputeAlpha::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::Operation]
#
# @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 insert_region_health_check_service(project, region, health_check_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/healthCheckServices', options)
command.request_representation = Google::Apis::ComputeAlpha::HealthCheckService::Representation
command.request_object = health_check_service_object
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.query['requestId'] = request_id unless request_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
# Lists all the HealthCheckService resources that have been configured for the
# specified project in the given region.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] filter
# A filter expression that filters resources listed in the response. The
# expression must specify the field name, a comparison operator, and the value
# that you want to use for filtering. The value must be a string, a number, or a
# boolean. The comparison operator must be either =, !=, >, or <.
# For example, if you are filtering Compute Engine instances, you can exclude
# instances named example-instance by specifying name != example-instance.
# You can also filter nested fields. For example, you could specify scheduling.
# automaticRestart = false to include instances only if they are not scheduled
# for automatic restarts. You can use filtering on nested fields to filter based
# on resource labels.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
# Intel Skylake"). By default, each expression is an AND expression. However,
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
# automaticRestart = true).
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @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::ComputeAlpha::HealthCheckServicesList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::HealthCheckServicesList]
#
# @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_region_health_check_services(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/regions/{region}/healthCheckServices', options)
command.response_representation = Google::Apis::ComputeAlpha::HealthCheckServicesList::Representation
command.response_class = Google::Apis::ComputeAlpha::HealthCheckServicesList
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.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?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource.
# @param [String] project
# Project ID for this request.
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_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::ComputeAlpha::TestPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
#
# @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 test_region_health_check_service_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions', options)
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
command.request_object = test_permissions_request_object
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['resource'] = resource unless resource.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
# Deletes the specified HealthCheck resource.
# @param [String] project
# Project ID for this request.
@@ -20979,8 +21586,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Insert or patch (for the ones that already exist) per-instance configs for the
# managed instance group. perInstanceConfig.instance serves as a key used to
# Insert or update (for the ones that already exist) per-instance configs for
# the managed instance group. perInstanceConfig.instance serves as a key used to
# distinguish whether to perform insert or patch.
# @param [String] project
# Project ID for this request.
@@ -21327,6 +21934,264 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes the specified NotificationEndpoint in the given region
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] notification_endpoint
# Name of the NotificationEndpoint resource to delete.
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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::ComputeAlpha::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_region_notification_endpoint(project, region, notification_endpoint, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options)
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['notificationEndpoint'] = notification_endpoint unless notification_endpoint.nil?
command.query['requestId'] = request_id unless request_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
# Returns the specified NotificationEndpoint resource in the given region.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] notification_endpoint
# Name of the NotificationEndpoint resource to return.
# @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::ComputeAlpha::NotificationEndpoint] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::NotificationEndpoint]
#
# @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_region_notification_endpoint(project, region, notification_endpoint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options)
command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpoint::Representation
command.response_class = Google::Apis::ComputeAlpha::NotificationEndpoint
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['notificationEndpoint'] = notification_endpoint unless notification_endpoint.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
# Create a NotificationEndpoint in the specified project in the given region
# using the parameters that are included in the request.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [Google::Apis::ComputeAlpha::NotificationEndpoint] notification_endpoint_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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::ComputeAlpha::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::Operation]
#
# @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 insert_region_notification_endpoint(project, region, notification_endpoint_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/notificationEndpoints', options)
command.request_representation = Google::Apis::ComputeAlpha::NotificationEndpoint::Representation
command.request_object = notification_endpoint_object
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.query['requestId'] = request_id unless request_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
# Lists the NotificationEndpoints for a project in the given region.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] filter
# A filter expression that filters resources listed in the response. The
# expression must specify the field name, a comparison operator, and the value
# that you want to use for filtering. The value must be a string, a number, or a
# boolean. The comparison operator must be either =, !=, >, or <.
# For example, if you are filtering Compute Engine instances, you can exclude
# instances named example-instance by specifying name != example-instance.
# You can also filter nested fields. For example, you could specify scheduling.
# automaticRestart = false to include instances only if they are not scheduled
# for automatic restarts. You can use filtering on nested fields to filter based
# on resource labels.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
# Intel Skylake"). By default, each expression is an AND expression. However,
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
# automaticRestart = true).
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @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::ComputeAlpha::NotificationEndpointList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::NotificationEndpointList]
#
# @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_region_notification_endpoints(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/regions/{region}/notificationEndpoints', options)
command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpointList::Representation
command.response_class = Google::Apis::ComputeAlpha::NotificationEndpointList
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.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?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource.
# @param [String] project
# Project ID for this request.
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_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::ComputeAlpha::TestPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
#
# @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 test_region_notification_endpoint_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions', options)
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
command.request_object = test_permissions_request_object
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['resource'] = resource unless resource.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
# Deletes the specified region-specific Operations resource.
# @param [String] project
# Project ID for this request.
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeBeta
VERSION = 'Beta'
REVISION = '20190107'
REVISION = '20190201'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
+328 -25
View File
@@ -1052,7 +1052,8 @@ module Google
# @return [String]
attr_accessor :creation_timestamp
#
# An optional description of this resource. Provide this property when you
# create the resource.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
@@ -1097,7 +1098,8 @@ module Google
attr_accessor :specific_allocation_required
alias_method :specific_allocation_required?, :specific_allocation_required
#
# Zone in which the allocation resides, must be provided if allocation is
# created with commitment creation.
# Corresponds to the JSON property `zone`
# @return [String]
attr_accessor :zone
@@ -1486,6 +1488,26 @@ module Google
end
end
#
class AllocationsResizeRequest
include Google::Apis::Core::Hashable
# Number of allocated resources can be resized with minimum = 1 and maximum =
# 1000.
# Corresponds to the JSON property `specificSkuCount`
# @return [Fixnum]
attr_accessor :specific_sku_count
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@specific_sku_count = args[:specific_sku_count] if args.key?(:specific_sku_count)
end
end
#
class AllocationsScopedList
include Google::Apis::Core::Hashable
@@ -1740,6 +1762,15 @@ module Google
# @return [String]
attr_accessor :disk_type
# A list of features to enable on the guest operating system. Applicable only
# for bootable images. Read Enabling guest operating system features to see a
# list of available options.
# Guest OS features are applied by merging initializeParams.guestOsFeatures and
# disks.guestOsFeatures
# Corresponds to the JSON property `guestOsFeatures`
# @return [Array<Google::Apis::ComputeBeta::GuestOsFeature>]
attr_accessor :guest_os_features
# Labels to apply to this disk. These can be later modified by the disks.
# setLabels method. This field is only applicable for persistent disks.
# Corresponds to the JSON property `labels`
@@ -1781,6 +1812,7 @@ module Google
@disk_name = args[:disk_name] if args.key?(:disk_name)
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
@disk_type = args[:disk_type] if args.key?(:disk_type)
@guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
@labels = args[:labels] if args.key?(:labels)
@source_image = args[:source_image] if args.key?(:source_image)
@source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key)
@@ -2979,6 +3011,12 @@ module Google
# @return [String]
attr_accessor :load_balancing_scheme
# The available logging options for the load balancer traffic served by this
# backend service.
# Corresponds to the JSON property `logConfig`
# @return [Google::Apis::ComputeBeta::BackendServiceLogConfig]
attr_accessor :log_config
# Name of the resource. Provided by the client when the resource is created. The
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression `[a-z]([-a-
@@ -3067,6 +3105,7 @@ module Google
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@load_balancing_scheme = args[:load_balancing_scheme] if args.key?(:load_balancing_scheme)
@log_config = args[:log_config] if args.key?(:log_config)
@name = args[:name] if args.key?(:name)
@port = args[:port] if args.key?(:port)
@port_name = args[:port_name] if args.key?(:port_name)
@@ -3417,6 +3456,38 @@ module Google
end
end
# The available logging options for the load balancer traffic served by this
# backend service.
class BackendServiceLogConfig
include Google::Apis::Core::Hashable
# This field denotes whether to enable logging for the load balancer traffic
# served by this backend service.
# Corresponds to the JSON property `enable`
# @return [Boolean]
attr_accessor :enable
alias_method :enable?, :enable
# This field can only be specified if logging is enabled for this backend
# service. The value of the field must be in [0, 1]. This configures the
# sampling rate of requests to the load balancer where 1.0 means all logged
# requests are reported and 0.0 means no logged requests are reported. The
# default value is 1.0.
# Corresponds to the JSON property `sampleRate`
# @return [Float]
attr_accessor :sample_rate
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enable = args[:enable] if args.key?(:enable)
@sample_rate = args[:sample_rate] if args.key?(:sample_rate)
end
end
#
class BackendServiceReference
include Google::Apis::Core::Hashable
@@ -4126,12 +4197,7 @@ module Google
# @return [String]
attr_accessor :sys
# DEPRECATED. Use 'values' instead.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
# The objects of the condition. This is mutually exclusive with 'value'.
# The objects of the condition.
# Corresponds to the JSON property `values`
# @return [Array<String>]
attr_accessor :values
@@ -4146,7 +4212,6 @@ module Google
@op = args[:op] if args.key?(:op)
@svc = args[:svc] if args.key?(:svc)
@sys = args[:sys] if args.key?(:sys)
@value = args[:value] if args.key?(:value)
@values = args[:values] if args.key?(:values)
end
end
@@ -6199,6 +6264,15 @@ module Google
attr_accessor :all_ports
alias_method :all_ports?, :all_ports
# This field is used along with the backend_service field for internal load
# balancing or with the target field for internal TargetInstance. If the field
# is set to TRUE, clients can access ILB from all regions. Otherwise only allows
# access from clients in the same region as the internal load balancer.
# Corresponds to the JSON property `allowGlobalAccess`
# @return [Boolean]
attr_accessor :allow_global_access
alias_method :allow_global_access?, :allow_global_access
# This field is only used for INTERNAL load balancing.
# For internal load balancing, this field identifies the BackendService resource
# to receive the matched traffic.
@@ -6368,7 +6442,7 @@ module Google
# forwarding rules, this target must live in the same region as the forwarding
# rule. For global forwarding rules, this target must be a global load balancing
# resource. The forwarded traffic must be of a type appropriate to the target
# object. For INTERNAL_SELF_MANAGED" load balancing, only HTTP and HTTPS targets
# object. For INTERNAL_SELF_MANAGED load balancing, only HTTP and HTTPS targets
# are valid.
# Corresponds to the JSON property `target`
# @return [String]
@@ -6383,6 +6457,7 @@ module Google
@ip_address = args[:ip_address] if args.key?(:ip_address)
@ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol)
@all_ports = args[:all_ports] if args.key?(:all_ports)
@allow_global_access = args[:allow_global_access] if args.key?(:allow_global_access)
@backend_service = args[:backend_service] if args.key?(:backend_service)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@@ -8554,6 +8629,17 @@ module Google
# @return [Array<Google::Apis::ComputeBeta::ServiceAccount>]
attr_accessor :service_accounts
# A set of Shielded Instance options.
# Corresponds to the JSON property `shieldedInstanceConfig`
# @return [Google::Apis::ComputeBeta::ShieldedInstanceConfig]
attr_accessor :shielded_instance_config
# The policy describes the baseline against which Instance boot integrity is
# measured.
# Corresponds to the JSON property `shieldedInstanceIntegrityPolicy`
# @return [Google::Apis::ComputeBeta::ShieldedInstanceIntegrityPolicy]
attr_accessor :shielded_instance_integrity_policy
# A set of Shielded VM options.
# Corresponds to the JSON property `shieldedVmConfig`
# @return [Google::Apis::ComputeBeta::ShieldedVmConfig]
@@ -8624,6 +8710,8 @@ module Google
@scheduling = args[:scheduling] if args.key?(:scheduling)
@self_link = args[:self_link] if args.key?(:self_link)
@service_accounts = args[:service_accounts] if args.key?(:service_accounts)
@shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
@shielded_instance_integrity_policy = args[:shielded_instance_integrity_policy] if args.key?(:shielded_instance_integrity_policy)
@shielded_vm_config = args[:shielded_vm_config] if args.key?(:shielded_vm_config)
@shielded_vm_integrity_policy = args[:shielded_vm_integrity_policy] if args.key?(:shielded_vm_integrity_policy)
@start_restricted = args[:start_restricted] if args.key?(:start_restricted)
@@ -10749,6 +10837,11 @@ module Google
# @return [Array<Google::Apis::ComputeBeta::ServiceAccount>]
attr_accessor :service_accounts
# A set of Shielded Instance options.
# Corresponds to the JSON property `shieldedInstanceConfig`
# @return [Google::Apis::ComputeBeta::ShieldedInstanceConfig]
attr_accessor :shielded_instance_config
# A set of Shielded VM options.
# Corresponds to the JSON property `shieldedVmConfig`
# @return [Google::Apis::ComputeBeta::ShieldedVmConfig]
@@ -10778,6 +10871,7 @@ module Google
@network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces)
@scheduling = args[:scheduling] if args.key?(:scheduling)
@service_accounts = args[:service_accounts] if args.key?(:service_accounts)
@shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
@shielded_vm_config = args[:shielded_vm_config] if args.key?(:shielded_vm_config)
@tags = args[:tags] if args.key?(:tags)
end
@@ -12227,15 +12321,21 @@ module Google
class InterconnectDiagnosticsLinkOpticalPower
include Google::Apis::Core::Hashable
#
# The status of the current value when compared to the warning and alarm levels
# for the receiving or transmitting transceiver. Possible states include:
# - OK: The value has not crossed a warning threshold.
# - LOW_WARNING: The value has crossed below the low warning threshold.
# - HIGH_WARNING: The value has crossed above the high warning threshold.
# - LOW_ALARM: The value has crossed below the low alarm threshold.
# - HIGH_ALARM: The value has crossed above the high alarm threshold.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Value of the current optical power, read in dBm. Take a known good optical
# value, give it a 10% margin and trigger warnings relative to that value. In
# general, a -7dBm warning and a -11dBm alarm are good optical value estimates
# for most links.
# Value of the current receiving or transmitting optical power, read in dBm.
# Take a known good optical value, give it a 10% margin and trigger warnings
# relative to that value. In general, a -7dBm warning and a -11dBm alarm are
# good optical value estimates for most links.
# Corresponds to the JSON property `value`
# @return [Float]
attr_accessor :value
@@ -12276,12 +12376,14 @@ module Google
# @return [Google::Apis::ComputeBeta::InterconnectDiagnosticsLinkLacpStatus]
attr_accessor :lacp_status
#
# An InterconnectDiagnostics.LinkOpticalPower object, describing the current
# value and status of the received light level.
# Corresponds to the JSON property `receivingOpticalPower`
# @return [Google::Apis::ComputeBeta::InterconnectDiagnosticsLinkOpticalPower]
attr_accessor :receiving_optical_power
#
# An InterconnectDiagnostics.LinkOpticalPower object, describing the current
# value and status of the transmitted light level.
# Corresponds to the JSON property `transmittingOpticalPower`
# @return [Google::Apis::ComputeBeta::InterconnectDiagnosticsLinkOpticalPower]
attr_accessor :transmitting_optical_power
@@ -13920,9 +14022,9 @@ module Google
class Network
include Google::Apis::Core::Hashable
# The range of internal addresses that are legal on this network. This range is
# a CIDR specification, for example: 192.168.0.0/16. Provided by the client when
# the network is created.
# Deprecated in favor of subnet mode networks. The range of internal addresses
# that are legal on this network. This range is a CIDR specification, for
# example: 192.168.0.0/16. Provided by the client when the network is created.
# Corresponds to the JSON property `IPv4Range`
# @return [String]
attr_accessor :i_pv4_range
@@ -14942,10 +15044,12 @@ module Google
class NetworkPeering
include Google::Apis::Core::Hashable
# Indicates whether full mesh connectivity is created and managed automatically.
# When it is set to true, Google Compute Engine will automatically create and
# manage the routes between two networks when the state is ACTIVE. Otherwise,
# user needs to create routes manually to route packets to peer network.
# This field will be deprecated soon. Prefer using exchange_subnet_routes
# instead. Indicates whether full mesh connectivity is created and managed
# automatically. When it is set to true, Google Compute Engine will
# automatically create and manage the routes between two networks when the state
# is ACTIVE. Otherwise, user needs to create routes manually to route packets to
# peer network.
# Corresponds to the JSON property `autoCreateRoutes`
# @return [Boolean]
attr_accessor :auto_create_routes
@@ -15045,7 +15149,9 @@ module Google
class NetworksAddPeeringRequest
include Google::Apis::Core::Hashable
# Whether Google Compute Engine manages the routes automatically.
# This field will be deprecated soon. Prefer using exchange_subnet_routes in
# network_peering instead. Whether Google Compute Engine manages the routes
# automatically.
# Corresponds to the JSON property `autoCreateRoutes`
# @return [Boolean]
attr_accessor :auto_create_routes
@@ -15462,6 +15568,11 @@ module Google
# @return [String]
attr_accessor :node_type
# Binding properties for the physical server.
# Corresponds to the JSON property `serverBinding`
# @return [Google::Apis::ComputeBeta::ServerBinding]
attr_accessor :server_binding
#
# Corresponds to the JSON property `status`
# @return [String]
@@ -15476,6 +15587,7 @@ module Google
@instances = args[:instances] if args.key?(:instances)
@name = args[:name] if args.key?(:name)
@node_type = args[:node_type] if args.key?(:node_type)
@server_binding = args[:server_binding] if args.key?(:server_binding)
@status = args[:status] if args.key?(:status)
end
end
@@ -15814,6 +15926,11 @@ module Google
# @return [String]
attr_accessor :self_link
# Binding properties for the physical server.
# Corresponds to the JSON property `serverBinding`
# @return [Google::Apis::ComputeBeta::ServerBinding]
attr_accessor :server_binding
# [Output Only] The status of the node template. One of the following values:
# CREATING, READY, and DELETING.
# Corresponds to the JSON property `status`
@@ -15841,6 +15958,7 @@ module Google
@node_type_flexibility = args[:node_type_flexibility] if args.key?(:node_type_flexibility)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@server_binding = args[:server_binding] if args.key?(:server_binding)
@status = args[:status] if args.key?(:status)
@status_message = args[:status_message] if args.key?(:status_message)
end
@@ -17929,6 +18047,26 @@ module Google
end
end
#
class RegionCommitmentsUpdateAllocationsRequest
include Google::Apis::Core::Hashable
# List of allocations for the capacity move of VMs with accelerators and local
# ssds.
# Corresponds to the JSON property `allocations`
# @return [Array<Google::Apis::ComputeBeta::Allocation>]
attr_accessor :allocations
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@allocations = args[:allocations] if args.key?(:allocations)
end
end
#
class RegionDiskTypeList
include Google::Apis::Core::Hashable
@@ -18876,6 +19014,12 @@ module Google
class ResourceCommitment
include Google::Apis::Core::Hashable
# Name of the accelerator type resource. Applicable only when the type is
# ACCELERATOR.
# Corresponds to the JSON property `acceleratorType`
# @return [String]
attr_accessor :accelerator_type
# The amount of the resource purchased (in a type-dependent unit, such as bytes).
# For vCPUs, this can just be an integer. For memory, this must be provided in
# MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every
@@ -18896,6 +19040,7 @@ module Google
# Update properties of this object
def update!(**args)
@accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
@amount = args[:amount] if args.key?(:amount)
@type = args[:type] if args.key?(:type)
end
@@ -21571,6 +21716,25 @@ module Google
end
end
#
class ServerBinding
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@type = args[:type] if args.key?(:type)
end
end
# A service account.
class ServiceAccount
include Google::Apis::Core::Hashable
@@ -21596,6 +21760,119 @@ module Google
end
end
# A set of Shielded Instance options.
class ShieldedInstanceConfig
include Google::Apis::Core::Hashable
# Defines whether the instance has integrity monitoring enabled.
# Corresponds to the JSON property `enableIntegrityMonitoring`
# @return [Boolean]
attr_accessor :enable_integrity_monitoring
alias_method :enable_integrity_monitoring?, :enable_integrity_monitoring
# Defines whether the instance has Secure Boot enabled.
# Corresponds to the JSON property `enableSecureBoot`
# @return [Boolean]
attr_accessor :enable_secure_boot
alias_method :enable_secure_boot?, :enable_secure_boot
# Defines whether the instance has the vTPM enabled.
# Corresponds to the JSON property `enableVtpm`
# @return [Boolean]
attr_accessor :enable_vtpm
alias_method :enable_vtpm?, :enable_vtpm
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enable_integrity_monitoring = args[:enable_integrity_monitoring] if args.key?(:enable_integrity_monitoring)
@enable_secure_boot = args[:enable_secure_boot] if args.key?(:enable_secure_boot)
@enable_vtpm = args[:enable_vtpm] if args.key?(:enable_vtpm)
end
end
# A shielded Instance identity entry.
class ShieldedInstanceIdentity
include Google::Apis::Core::Hashable
# A Shielded Instance Identity Entry.
# Corresponds to the JSON property `encryptionKey`
# @return [Google::Apis::ComputeBeta::ShieldedInstanceIdentityEntry]
attr_accessor :encryption_key
# [Output Only] Type of the resource. Always compute#shieldedInstanceIdentity
# for shielded Instance identity entry.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# A Shielded Instance Identity Entry.
# Corresponds to the JSON property `signingKey`
# @return [Google::Apis::ComputeBeta::ShieldedInstanceIdentityEntry]
attr_accessor :signing_key
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@encryption_key = args[:encryption_key] if args.key?(:encryption_key)
@kind = args[:kind] if args.key?(:kind)
@signing_key = args[:signing_key] if args.key?(:signing_key)
end
end
# A Shielded Instance Identity Entry.
class ShieldedInstanceIdentityEntry
include Google::Apis::Core::Hashable
# A PEM-encoded X.509 certificate. This field can be empty.
# Corresponds to the JSON property `ekCert`
# @return [String]
attr_accessor :ek_cert
# A PEM-encoded public key.
# Corresponds to the JSON property `ekPub`
# @return [String]
attr_accessor :ek_pub
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ek_cert = args[:ek_cert] if args.key?(:ek_cert)
@ek_pub = args[:ek_pub] if args.key?(:ek_pub)
end
end
# The policy describes the baseline against which Instance boot integrity is
# measured.
class ShieldedInstanceIntegrityPolicy
include Google::Apis::Core::Hashable
# Updates the integrity policy baseline using the measurements from the VM
# instance's most recent boot.
# Corresponds to the JSON property `updateAutoLearnPolicy`
# @return [Boolean]
attr_accessor :update_auto_learn_policy
alias_method :update_auto_learn_policy?, :update_auto_learn_policy
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@update_auto_learn_policy = args[:update_auto_learn_policy] if args.key?(:update_auto_learn_policy)
end
end
# A set of Shielded VM options.
class ShieldedVmConfig
include Google::Apis::Core::Hashable
@@ -26581,6 +26858,29 @@ module Google
# @return [String]
attr_accessor :name
# URL of the peer side external VPN gateway to which this VPN tunnel is
# connected. Provided by the client when the VPN tunnel is created. This field
# is exclusive with the field peerGcpGateway.
# Corresponds to the JSON property `peerExternalGateway`
# @return [String]
attr_accessor :peer_external_gateway
# The interface ID of the external VPN gateway to which this VPN tunnel is
# connected. Provided by the client when the VPN tunnel is created.
# Corresponds to the JSON property `peerExternalGatewayInterface`
# @return [Fixnum]
attr_accessor :peer_external_gateway_interface
# URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected.
# Provided by the client when the VPN tunnel is created. This field can be used
# when creating highly available VPN from VPC network to VPC network, the field
# is exclusive with the field peerExternalGateway. If provided, the VPN tunnel
# will automatically use the same vpnGatewayInterface ID in the peer GCP VPN
# gateway.
# Corresponds to the JSON property `peerGcpGateway`
# @return [String]
attr_accessor :peer_gcp_gateway
# IP address of the peer VPN gateway. Only IPv4 is supported.
# Corresponds to the JSON property `peerIp`
# @return [String]
@@ -26648,6 +26948,9 @@ module Google
@labels = args[:labels] if args.key?(:labels)
@local_traffic_selector = args[:local_traffic_selector] if args.key?(:local_traffic_selector)
@name = args[:name] if args.key?(:name)
@peer_external_gateway = args[:peer_external_gateway] if args.key?(:peer_external_gateway)
@peer_external_gateway_interface = args[:peer_external_gateway_interface] if args.key?(:peer_external_gateway_interface)
@peer_gcp_gateway = args[:peer_gcp_gateway] if args.key?(:peer_gcp_gateway)
@peer_ip = args[:peer_ip] if args.key?(:peer_ip)
@region = args[:region] if args.key?(:region)
@remote_traffic_selector = args[:remote_traffic_selector] if args.key?(:remote_traffic_selector)
@@ -226,6 +226,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AllocationsResizeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AllocationsScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -460,6 +466,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class BackendServiceLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BackendServiceReference
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -2428,6 +2440,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RegionCommitmentsUpdateAllocationsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegionDiskTypeList
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -2980,12 +2998,42 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ServerBinding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ServiceAccount
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ShieldedInstanceConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ShieldedInstanceIdentity
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ShieldedInstanceIdentityEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ShieldedInstanceIntegrityPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ShieldedVmConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -4217,6 +4265,13 @@ module Google
end
end
class AllocationsResizeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :specific_sku_count, :numeric_string => true, as: 'specificSkuCount'
end
end
class AllocationsScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -4274,6 +4329,8 @@ module Google
property :disk_name, as: 'diskName'
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
property :disk_type, as: 'diskType'
collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeBeta::GuestOsFeature, decorator: Google::Apis::ComputeBeta::GuestOsFeature::Representation
hash :labels, as: 'labels'
property :source_image, as: 'sourceImage'
property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
@@ -4560,6 +4617,8 @@ module Google
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :load_balancing_scheme, as: 'loadBalancingScheme'
property :log_config, as: 'logConfig', class: Google::Apis::ComputeBeta::BackendServiceLogConfig, decorator: Google::Apis::ComputeBeta::BackendServiceLogConfig::Representation
property :name, as: 'name'
property :port, as: 'port'
property :port_name, as: 'portName'
@@ -4665,6 +4724,14 @@ module Google
end
end
class BackendServiceLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enable, as: 'enable'
property :sample_rate, as: 'sampleRate'
end
end
class BackendServiceReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -4850,7 +4917,6 @@ module Google
property :op, as: 'op'
property :svc, as: 'svc'
property :sys, as: 'sys'
property :value, as: 'value'
collection :values, as: 'values'
end
end
@@ -5348,6 +5414,7 @@ module Google
property :ip_address, as: 'IPAddress'
property :ip_protocol, as: 'IPProtocol'
property :all_ports, as: 'allPorts'
property :allow_global_access, as: 'allowGlobalAccess'
property :backend_service, as: 'backendService'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
@@ -5880,6 +5947,10 @@ module Google
property :self_link, as: 'selfLink'
collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::ComputeBeta::ServiceAccount, decorator: Google::Apis::ComputeBeta::ServiceAccount::Representation
property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::ComputeBeta::ShieldedInstanceConfig, decorator: Google::Apis::ComputeBeta::ShieldedInstanceConfig::Representation
property :shielded_instance_integrity_policy, as: 'shieldedInstanceIntegrityPolicy', class: Google::Apis::ComputeBeta::ShieldedInstanceIntegrityPolicy, decorator: Google::Apis::ComputeBeta::ShieldedInstanceIntegrityPolicy::Representation
property :shielded_vm_config, as: 'shieldedVmConfig', class: Google::Apis::ComputeBeta::ShieldedVmConfig, decorator: Google::Apis::ComputeBeta::ShieldedVmConfig::Representation
property :shielded_vm_integrity_policy, as: 'shieldedVmIntegrityPolicy', class: Google::Apis::ComputeBeta::ShieldedVmIntegrityPolicy, decorator: Google::Apis::ComputeBeta::ShieldedVmIntegrityPolicy::Representation
@@ -6451,6 +6522,8 @@ module Google
collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::ComputeBeta::ServiceAccount, decorator: Google::Apis::ComputeBeta::ServiceAccount::Representation
property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::ComputeBeta::ShieldedInstanceConfig, decorator: Google::Apis::ComputeBeta::ShieldedInstanceConfig::Representation
property :shielded_vm_config, as: 'shieldedVmConfig', class: Google::Apis::ComputeBeta::ShieldedVmConfig, decorator: Google::Apis::ComputeBeta::ShieldedVmConfig::Representation
property :tags, as: 'tags', class: Google::Apis::ComputeBeta::Tags, decorator: Google::Apis::ComputeBeta::Tags::Representation
@@ -7657,6 +7730,8 @@ module Google
collection :instances, as: 'instances'
property :name, as: 'name'
property :node_type, as: 'nodeType'
property :server_binding, as: 'serverBinding', class: Google::Apis::ComputeBeta::ServerBinding, decorator: Google::Apis::ComputeBeta::ServerBinding::Representation
property :status, as: 'status'
end
end
@@ -7756,6 +7831,8 @@ module Google
property :region, as: 'region'
property :self_link, as: 'selfLink'
property :server_binding, as: 'serverBinding', class: Google::Apis::ComputeBeta::ServerBinding, decorator: Google::Apis::ComputeBeta::ServerBinding::Representation
property :status, as: 'status'
property :status_message, as: 'statusMessage'
end
@@ -8305,6 +8382,14 @@ module Google
end
end
class RegionCommitmentsUpdateAllocationsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allocations, as: 'allocations', class: Google::Apis::ComputeBeta::Allocation, decorator: Google::Apis::ComputeBeta::Allocation::Representation
end
end
class RegionDiskTypeList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -8578,6 +8663,7 @@ module Google
class ResourceCommitment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :accelerator_type, as: 'acceleratorType'
property :amount, :numeric_string => true, as: 'amount'
property :type, as: 'type'
end
@@ -9268,6 +9354,13 @@ module Google
end
end
class ServerBinding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
end
end
class ServiceAccount
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -9276,6 +9369,41 @@ module Google
end
end
class ShieldedInstanceConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enable_integrity_monitoring, as: 'enableIntegrityMonitoring'
property :enable_secure_boot, as: 'enableSecureBoot'
property :enable_vtpm, as: 'enableVtpm'
end
end
class ShieldedInstanceIdentity
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :encryption_key, as: 'encryptionKey', class: Google::Apis::ComputeBeta::ShieldedInstanceIdentityEntry, decorator: Google::Apis::ComputeBeta::ShieldedInstanceIdentityEntry::Representation
property :kind, as: 'kind'
property :signing_key, as: 'signingKey', class: Google::Apis::ComputeBeta::ShieldedInstanceIdentityEntry, decorator: Google::Apis::ComputeBeta::ShieldedInstanceIdentityEntry::Representation
end
end
class ShieldedInstanceIdentityEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ek_cert, as: 'ekCert'
property :ek_pub, as: 'ekPub'
end
end
class ShieldedInstanceIntegrityPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :update_auto_learn_policy, as: 'updateAutoLearnPolicy'
end
end
class ShieldedVmConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -10551,6 +10679,9 @@ module Google
hash :labels, as: 'labels'
collection :local_traffic_selector, as: 'localTrafficSelector'
property :name, as: 'name'
property :peer_external_gateway, as: 'peerExternalGateway'
property :peer_external_gateway_interface, as: 'peerExternalGatewayInterface'
property :peer_gcp_gateway, as: 'peerGcpGateway'
property :peer_ip, as: 'peerIp'
property :region, as: 'region'
collection :remote_traffic_selector, as: 'remoteTrafficSelector'
+261 -1
View File
@@ -946,6 +946,60 @@ module Google
execute_or_queue_command(command, &block)
end
# Resizes the allocation (applicable to standalone allocations only)
# @param [String] project
# Project ID for this request.
# @param [String] zone
# Name of the zone for this request.
# @param [String] allocation
# Name of the allocation to update.
# @param [Google::Apis::ComputeBeta::AllocationsResizeRequest] allocations_resize_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @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 resize_allocation(project, zone, allocation, allocations_resize_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/allocations/{allocation}/resize', options)
command.request_representation = Google::Apis::ComputeBeta::AllocationsResizeRequest::Representation
command.request_object = allocations_resize_request_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['allocation'] = allocation unless allocation.nil?
command.query['requestId'] = request_id unless request_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
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] project
@@ -8604,7 +8658,7 @@ module Google
# @param [Google::Apis::ComputeBeta::AttachedDisk] attached_disk_object
# @param [Boolean] force_attach
# Whether to force attach the disk even if it's currently attached to another
# instance. This is only available for regional disks.
# instance.
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
@@ -8989,6 +9043,45 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns the Shielded Instance Identity of an instance
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# Name or id of the instance scoping this request.
# @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::ComputeBeta::ShieldedInstanceIdentity] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::ShieldedInstanceIdentity]
#
# @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_instance_shielded_instance_identity(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity', options)
command.response_representation = Google::Apis::ComputeBeta::ShieldedInstanceIdentity::Representation
command.response_class = Google::Apis::ComputeBeta::ShieldedInstanceIdentity
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['instance'] = instance unless instance.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
# Returns the Shielded VM Identity of an instance
# @param [String] project
# Project ID for this request.
@@ -9887,6 +9980,62 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets the Shielded Instance integrity policy for an instance. You can only use
# this method on a running instance. This method supports PATCH semantics and
# uses the JSON merge patch format and processing rules.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# Name or id of the instance scoping this request.
# @param [Google::Apis::ComputeBeta::ShieldedInstanceIntegrityPolicy] shielded_instance_integrity_policy_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @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 set_instance_shielded_instance_integrity_policy(project, zone, instance, shielded_instance_integrity_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy', options)
command.request_representation = Google::Apis::ComputeBeta::ShieldedInstanceIntegrityPolicy::Representation
command.request_object = shielded_instance_integrity_policy_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['instance'] = instance unless instance.nil?
command.query['requestId'] = request_id unless request_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
# Sets the Shielded VM integrity policy for a VM instance. You can only use this
# method on a running VM instance. This method supports PATCH semantics and uses
# the JSON merge patch format and processing rules.
@@ -10473,6 +10622,62 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the Shielded Instance config for an instance. You can only use this
# method on a stopped instance. This method supports PATCH semantics and uses
# the JSON merge patch format and processing rules.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# Name or id of the instance scoping this request.
# @param [Google::Apis::ComputeBeta::ShieldedInstanceConfig] shielded_instance_config_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @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 update_instance_shielded_instance_config(project, zone, instance, shielded_instance_config_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig', options)
command.request_representation = Google::Apis::ComputeBeta::ShieldedInstanceConfig::Representation
command.request_object = shielded_instance_config_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['instance'] = instance unless instance.nil?
command.query['requestId'] = request_id unless request_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 Shielded VM config for a VM instance. You can only use this method
# on a stopped VM instance. This method supports PATCH semantics and uses the
# JSON merge patch format and processing rules.
@@ -15999,6 +16204,61 @@ module Google
execute_or_queue_command(command, &block)
end
# Update the shape of allocations for GPUS/Local SSDs of allocations within the
# commitments.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region for this request.
# @param [String] commitment
# Name of the commitment of which the allocation's capacities are being updated.
# @param [Google::Apis::ComputeBeta::RegionCommitmentsUpdateAllocationsRequest] region_commitments_update_allocations_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @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 update_region_commitment_allocations(project, region, commitment, region_commitments_update_allocations_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/commitments/{commitment}/updateAllocations', options)
command.request_representation = Google::Apis::ComputeBeta::RegionCommitmentsUpdateAllocationsRequest::Representation
command.request_object = region_commitments_update_allocations_request_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['commitment'] = commitment unless commitment.nil?
command.query['requestId'] = request_id unless request_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
# Returns the specified regional disk type. Gets a list of available disk types
# by making a list() request.
# @param [String] project
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/container-engine/
module ContainerV1beta1
VERSION = 'V1beta1'
REVISION = '20181211'
REVISION = '20190125'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -103,6 +103,34 @@ module Google
end
end
# Configuration for returning group information from authenticators.
class AuthenticatorGroupsConfig
include Google::Apis::Core::Hashable
# Whether this cluster should return group membership lookups
# during authentication using a group of security groups.
# Corresponds to the JSON property `enabled`
# @return [Boolean]
attr_accessor :enabled
alias_method :enabled?, :enabled
# The name of the security group-of-groups to be used. Only relevant
# if enabled = true.
# Corresponds to the JSON property `securityGroup`
# @return [String]
attr_accessor :security_group
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enabled = args[:enabled] if args.key?(:enabled)
@security_group = args[:security_group] if args.key?(:security_group)
end
end
# AutoUpgradeOptions defines the set of options for the user to control how
# the Auto Upgrades will proceed.
class AutoUpgradeOptions
@@ -290,6 +318,11 @@ module Google
# @return [Google::Apis::ContainerV1beta1::AddonsConfig]
attr_accessor :addons_config
# Configuration for returning group information from authenticators.
# Corresponds to the JSON property `authenticatorGroupsConfig`
# @return [Google::Apis::ContainerV1beta1::AuthenticatorGroupsConfig]
attr_accessor :authenticator_groups_config
# ClusterAutoscaling contains global, per-cluster information
# required by Cluster Autoscaler to automatically adjust
# the size of the cluster and create/delete
@@ -641,6 +674,7 @@ module Google
# Update properties of this object
def update!(**args)
@addons_config = args[:addons_config] if args.key?(:addons_config)
@authenticator_groups_config = args[:authenticator_groups_config] if args.key?(:authenticator_groups_config)
@autoscaling = args[:autoscaling] if args.key?(:autoscaling)
@binary_authorization = args[:binary_authorization] if args.key?(:binary_authorization)
@cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr)
@@ -34,6 +34,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AuthenticatorGroupsConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AutoUpgradeOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -504,6 +510,14 @@ module Google
end
end
class AuthenticatorGroupsConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enabled, as: 'enabled'
property :security_group, as: 'securityGroup'
end
end
class AutoUpgradeOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -563,6 +577,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1beta1::AddonsConfig, decorator: Google::Apis::ContainerV1beta1::AddonsConfig::Representation
property :authenticator_groups_config, as: 'authenticatorGroupsConfig', class: Google::Apis::ContainerV1beta1::AuthenticatorGroupsConfig, decorator: Google::Apis::ContainerV1beta1::AuthenticatorGroupsConfig::Representation
property :autoscaling, as: 'autoscaling', class: Google::Apis::ContainerV1beta1::ClusterAutoscaling, decorator: Google::Apis::ContainerV1beta1::ClusterAutoscaling::Representation
property :binary_authorization, as: 'binaryAuthorization', class: Google::Apis::ContainerV1beta1::BinaryAuthorization, decorator: Google::Apis::ContainerV1beta1::BinaryAuthorization::Representation
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content
module ContentV2
VERSION = 'V2'
REVISION = '20190122'
REVISION = '20190215'
# Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
+122 -25
View File
@@ -2464,7 +2464,7 @@ module Google
# Maximum number of business days that is spent in transit. 0 means same day
# delivery, 1 means next day delivery. Must be greater than or equal to
# minTransitTimeInDays. Required.
# minTransitTimeInDays.
# Corresponds to the JSON property `maxTransitTimeInDays`
# @return [Fixnum]
attr_accessor :max_transit_time_in_days
@@ -2476,11 +2476,19 @@ module Google
attr_accessor :min_handling_time_in_days
# Minimum number of business days that is spent in transit. 0 means same day
# delivery, 1 means next day delivery. Required.
# delivery, 1 means next day delivery. Either `min,max`transitTimeInDays or
# transitTimeTable must be set, but not both.
# Corresponds to the JSON property `minTransitTimeInDays`
# @return [Fixnum]
attr_accessor :min_transit_time_in_days
# Transit time table, number of business days spent in transit based on row and
# column dimensions. Either `min,max`transitTimeInDays or transitTimeTable can
# be set, but not both.
# Corresponds to the JSON property `transitTimeTable`
# @return [Google::Apis::ContentV2::TransitTable]
attr_accessor :transit_time_table
def initialize(**args)
update!(**args)
end
@@ -2493,6 +2501,7 @@ module Google
@max_transit_time_in_days = args[:max_transit_time_in_days] if args.key?(:max_transit_time_in_days)
@min_handling_time_in_days = args[:min_handling_time_in_days] if args.key?(:min_handling_time_in_days)
@min_transit_time_in_days = args[:min_transit_time_in_days] if args.key?(:min_transit_time_in_days)
@transit_time_table = args[:transit_time_table] if args.key?(:transit_time_table)
end
end
@@ -2621,7 +2630,7 @@ module Google
end
# A non-empty list of row or column headers for a table. Exactly one of prices,
# weights, numItems, postalCodeGroupNames, or locations must be set.
# weights, numItems, postalCodeGroupNames, or location must be set.
class Headers
include Google::Apis::Core::Hashable
@@ -3225,27 +3234,17 @@ module Google
# @return [Array<Google::Apis::ContentV2::InvoiceSummaryAdditionalChargeSummary>]
attr_accessor :additional_charge_summaries
# [required] Customer balance on this invoice. A negative amount means the
# customer is paying, a positive one means the customer is receiving money. Note:
# the sum of merchant_balance, customer_balance and google_balance must always
# be zero.
# Furthermore the absolute value of this amount is expected to be equal to the
# sum of product amount and additional charges, minus promotions.
# Deprecated.
# Corresponds to the JSON property `customerBalance`
# @return [Google::Apis::ContentV2::Amount]
attr_accessor :customer_balance
# [required] Google balance on this invoice. A negative amount means Google is
# paying, a positive one means Google is receiving money. Note: the sum of
# merchant_balance, customer_balance and google_balance must always be zero.
# Deprecated.
# Corresponds to the JSON property `googleBalance`
# @return [Google::Apis::ContentV2::Amount]
attr_accessor :google_balance
# [required] Merchant balance on this invoice. A negative amount means the
# merchant is paying, a positive one means the merchant is receiving money. Note:
# the sum of merchant_balance, customer_balance and google_balance must always
# be zero.
# Deprecated.
# Corresponds to the JSON property `merchantBalance`
# @return [Google::Apis::ContentV2::Amount]
attr_accessor :merchant_balance
@@ -3255,7 +3254,7 @@ module Google
# @return [Google::Apis::ContentV2::Amount]
attr_accessor :product_total
# Summary for each promotion.
# Deprecated.
# Corresponds to the JSON property `promotionSummaries`
# @return [Array<Google::Apis::ContentV2::Promotion>]
attr_accessor :promotion_summaries
@@ -9993,6 +9992,11 @@ module Google
# @return [String]
attr_accessor :creation_date
#
# Corresponds to the JSON property `deliveryDate`
# @return [String]
attr_accessor :delivery_date
#
# Corresponds to the JSON property `returnMethodType`
# @return [String]
@@ -10008,6 +10012,16 @@ module Google
# @return [Array<Google::Apis::ContentV2::ShipmentTrackingInfo>]
attr_accessor :shipment_tracking_infos
#
# Corresponds to the JSON property `shippingDate`
# @return [String]
attr_accessor :shipping_date
#
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
@@ -10015,9 +10029,12 @@ module Google
# Update properties of this object
def update!(**args)
@creation_date = args[:creation_date] if args.key?(:creation_date)
@delivery_date = args[:delivery_date] if args.key?(:delivery_date)
@return_method_type = args[:return_method_type] if args.key?(:return_method_type)
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
@shipment_tracking_infos = args[:shipment_tracking_infos] if args.key?(:shipment_tracking_infos)
@shipping_date = args[:shipping_date] if args.key?(:shipping_date)
@state = args[:state] if args.key?(:state)
end
end
@@ -10454,7 +10471,7 @@ module Google
include Google::Apis::Core::Hashable
# A non-empty list of row or column headers for a table. Exactly one of prices,
# weights, numItems, postalCodeGroupNames, or locations must be set.
# weights, numItems, postalCodeGroupNames, or location must be set.
# Corresponds to the JSON property `columnHeaders`
# @return [Google::Apis::ContentV2::Headers]
attr_accessor :column_headers
@@ -10465,7 +10482,7 @@ module Google
attr_accessor :name
# A non-empty list of row or column headers for a table. Exactly one of prices,
# weights, numItems, postalCodeGroupNames, or locations must be set.
# weights, numItems, postalCodeGroupNames, or location must be set.
# Corresponds to the JSON property `rowHeaders`
# @return [Google::Apis::ContentV2::Headers]
attr_accessor :row_headers
@@ -10537,12 +10554,14 @@ module Google
# @return [Array<Google::Apis::ContentV2::OrderLegacyPromotion>]
attr_accessor :promotions
# The total cost of shipping for all items.
# The price of shipping for all items. Shipping tax is automatically calculated
# for MFL orders. For non-MFL orders, tax settings from Merchant Center are
# applied. Note that shipping is not taxed in certain states.
# Corresponds to the JSON property `shippingCost`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :shipping_cost
# The tax for the total shipping cost.
# Deprecated. Ignored if provided.
# Corresponds to the JSON property `shippingCostTax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :shipping_cost_tax
@@ -10661,8 +10680,7 @@ module Google
# @return [Google::Apis::ContentV2::OrderLineItemShippingDetails]
attr_accessor :shipping_details
# Deprecated. Ignored if provided. Tax is automatically calculated for MFL
# orders. For non-MFL orders, tax settings from Merchant Center are applied.
# Deprecated. Ignored if provided.
# Corresponds to the JSON property `unitTax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :unit_tax
@@ -10817,6 +10835,85 @@ module Google
end
end
#
class TransitTable
include Google::Apis::Core::Hashable
# A list of postal group names. The last value can be "all other locations".
# Example: ["zone 1", "zone 2", "all other locations"]. The referred postal code
# groups must match the delivery country of the service.
# Corresponds to the JSON property `postalCodeGroupNames`
# @return [Array<String>]
attr_accessor :postal_code_group_names
#
# Corresponds to the JSON property `rows`
# @return [Array<Google::Apis::ContentV2::TransitTableTransitTimeRow>]
attr_accessor :rows
# A list of transit time labels. The last value can be "all other labels".
# Example: ["food", "electronics", "all other labels"].
# Corresponds to the JSON property `transitTimeLabels`
# @return [Array<String>]
attr_accessor :transit_time_labels
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@postal_code_group_names = args[:postal_code_group_names] if args.key?(:postal_code_group_names)
@rows = args[:rows] if args.key?(:rows)
@transit_time_labels = args[:transit_time_labels] if args.key?(:transit_time_labels)
end
end
#
class TransitTableTransitTimeRow
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `values`
# @return [Array<Google::Apis::ContentV2::TransitTableTransitTimeRowTransitTimeValue>]
attr_accessor :values
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@values = args[:values] if args.key?(:values)
end
end
#
class TransitTableTransitTimeRowTransitTimeValue
include Google::Apis::Core::Hashable
# Must be greater than or equal to minTransitTimeInDays.
# Corresponds to the JSON property `maxTransitTimeInDays`
# @return [Fixnum]
attr_accessor :max_transit_time_in_days
# Transit time range (min-max) in business days. 0 means same day delivery, 1
# means next day delivery.
# Corresponds to the JSON property `minTransitTimeInDays`
# @return [Fixnum]
attr_accessor :min_transit_time_in_days
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@max_transit_time_in_days = args[:max_transit_time_in_days] if args.key?(:max_transit_time_in_days)
@min_transit_time_in_days = args[:min_transit_time_in_days] if args.key?(:min_transit_time_in_days)
end
end
#
class UnitInvoice
include Google::Apis::Core::Hashable
@@ -10826,7 +10923,7 @@ module Google
# @return [Array<Google::Apis::ContentV2::UnitInvoiceAdditionalCharge>]
attr_accessor :additional_charges
# Promotions applied to a unit.
# Deprecated.
# Corresponds to the JSON property `promotions`
# @return [Array<Google::Apis::ContentV2::Promotion>]
attr_accessor :promotions
@@ -10863,7 +10960,7 @@ module Google
# @return [Google::Apis::ContentV2::Amount]
attr_accessor :additional_charge_amount
# Promotions applied to the additional charge.
# Deprecated.
# Corresponds to the JSON property `additionalChargePromotions`
# @return [Array<Google::Apis::ContentV2::Promotion>]
attr_accessor :additional_charge_promotions
@@ -1588,6 +1588,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TransitTable
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TransitTableTransitTimeRow
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TransitTableTransitTimeRowTransitTimeValue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UnitInvoice
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -2306,6 +2324,8 @@ module Google
property :max_transit_time_in_days, as: 'maxTransitTimeInDays'
property :min_handling_time_in_days, as: 'minHandlingTimeInDays'
property :min_transit_time_in_days, as: 'minTransitTimeInDays'
property :transit_time_table, as: 'transitTimeTable', class: Google::Apis::ContentV2::TransitTable, decorator: Google::Apis::ContentV2::TransitTable::Representation
end
end
@@ -4376,10 +4396,13 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_date, as: 'creationDate'
property :delivery_date, as: 'deliveryDate'
property :return_method_type, as: 'returnMethodType'
property :shipment_id, as: 'shipmentId'
collection :shipment_tracking_infos, as: 'shipmentTrackingInfos', class: Google::Apis::ContentV2::ShipmentTrackingInfo, decorator: Google::Apis::ContentV2::ShipmentTrackingInfo::Representation
property :shipping_date, as: 'shippingDate'
property :state, as: 'state'
end
end
@@ -4620,6 +4643,32 @@ module Google
end
end
class TransitTable
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :postal_code_group_names, as: 'postalCodeGroupNames'
collection :rows, as: 'rows', class: Google::Apis::ContentV2::TransitTableTransitTimeRow, decorator: Google::Apis::ContentV2::TransitTableTransitTimeRow::Representation
collection :transit_time_labels, as: 'transitTimeLabels'
end
end
class TransitTableTransitTimeRow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :values, as: 'values', class: Google::Apis::ContentV2::TransitTableTransitTimeRowTransitTimeValue, decorator: Google::Apis::ContentV2::TransitTableTransitTimeRowTransitTimeValue::Representation
end
end
class TransitTableTransitTimeRowTransitTimeValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_transit_time_in_days, as: 'maxTransitTimeInDays'
property :min_transit_time_in_days, as: 'minTransitTimeInDays'
end
end
class UnitInvoice
# @private
class Representation < Google::Apis::Core::JsonRepresentation
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content
module ContentV2_1
VERSION = 'V2_1'
REVISION = '20190122'
REVISION = '20190215'
# Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
+315 -89
View File
@@ -2271,7 +2271,7 @@ module Google
# Maximum number of business days that is spent in transit. 0 means same day
# delivery, 1 means next day delivery. Must be greater than or equal to
# minTransitTimeInDays. Required.
# minTransitTimeInDays.
# Corresponds to the JSON property `maxTransitTimeInDays`
# @return [Fixnum]
attr_accessor :max_transit_time_in_days
@@ -2283,11 +2283,19 @@ module Google
attr_accessor :min_handling_time_in_days
# Minimum number of business days that is spent in transit. 0 means same day
# delivery, 1 means next day delivery. Required.
# delivery, 1 means next day delivery. Either `min,max`transitTimeInDays or
# transitTimeTable must be set, but not both.
# Corresponds to the JSON property `minTransitTimeInDays`
# @return [Fixnum]
attr_accessor :min_transit_time_in_days
# Transit time table, number of business days spent in transit based on row and
# column dimensions. Either `min,max`transitTimeInDays or transitTimeTable can
# be set, but not both.
# Corresponds to the JSON property `transitTimeTable`
# @return [Google::Apis::ContentV2_1::TransitTable]
attr_accessor :transit_time_table
def initialize(**args)
update!(**args)
end
@@ -2300,6 +2308,7 @@ module Google
@max_transit_time_in_days = args[:max_transit_time_in_days] if args.key?(:max_transit_time_in_days)
@min_handling_time_in_days = args[:min_handling_time_in_days] if args.key?(:min_handling_time_in_days)
@min_transit_time_in_days = args[:min_transit_time_in_days] if args.key?(:min_transit_time_in_days)
@transit_time_table = args[:transit_time_table] if args.key?(:transit_time_table)
end
end
@@ -2428,7 +2437,7 @@ module Google
end
# A non-empty list of row or column headers for a table. Exactly one of prices,
# weights, numItems, postalCodeGroupNames, or locations must be set.
# weights, numItems, postalCodeGroupNames, or location must be set.
class Headers
include Google::Apis::Core::Hashable
@@ -2624,41 +2633,11 @@ module Google
# @return [Array<Google::Apis::ContentV2_1::InvoiceSummaryAdditionalChargeSummary>]
attr_accessor :additional_charge_summaries
# [required] Customer balance on this invoice. A negative amount means the
# customer is paying, a positive one means the customer is receiving money. Note:
# the sum of merchant_balance, customer_balance and google_balance must always
# be zero.
# Furthermore the absolute value of this amount is expected to be equal to the
# sum of product amount and additional charges, minus promotions.
# Corresponds to the JSON property `customerBalance`
# @return [Google::Apis::ContentV2_1::Amount]
attr_accessor :customer_balance
# [required] Google balance on this invoice. A negative amount means Google is
# paying, a positive one means Google is receiving money. Note: the sum of
# merchant_balance, customer_balance and google_balance must always be zero.
# Corresponds to the JSON property `googleBalance`
# @return [Google::Apis::ContentV2_1::Amount]
attr_accessor :google_balance
# [required] Merchant balance on this invoice. A negative amount means the
# merchant is paying, a positive one means the merchant is receiving money. Note:
# the sum of merchant_balance, customer_balance and google_balance must always
# be zero.
# Corresponds to the JSON property `merchantBalance`
# @return [Google::Apis::ContentV2_1::Amount]
attr_accessor :merchant_balance
# [required] Total price for the product.
# Corresponds to the JSON property `productTotal`
# @return [Google::Apis::ContentV2_1::Amount]
attr_accessor :product_total
# Summary for each promotion.
# Corresponds to the JSON property `promotionSummaries`
# @return [Array<Google::Apis::ContentV2_1::Promotion>]
attr_accessor :promotion_summaries
def initialize(**args)
update!(**args)
end
@@ -2666,11 +2645,7 @@ module Google
# Update properties of this object
def update!(**args)
@additional_charge_summaries = args[:additional_charge_summaries] if args.key?(:additional_charge_summaries)
@customer_balance = args[:customer_balance] if args.key?(:customer_balance)
@google_balance = args[:google_balance] if args.key?(:google_balance)
@merchant_balance = args[:merchant_balance] if args.key?(:merchant_balance)
@product_total = args[:product_total] if args.key?(:product_total)
@promotion_summaries = args[:promotion_summaries] if args.key?(:promotion_summaries)
end
end
@@ -3457,12 +3432,19 @@ module Google
# @return [String]
attr_accessor :merchant_order_id
# The net amount for the order. For example, if an order was originally for a
# grand total of $100 and a refund was issued for $20, the net amount will be $
# The net amount for the order (price part). For example, if an order was
# originally for $100 and a refund was issued for $20, the net amount will be $
# 80.
# Corresponds to the JSON property `netAmount`
# Corresponds to the JSON property `netPriceAmount`
# @return [Google::Apis::ContentV2_1::Price]
attr_accessor :net_amount
attr_accessor :net_price_amount
# The net amount for the order (tax part). Note that in certain cases due to
# taxable base adjustment netTaxAmount might not match to a sum of tax field
# across all lineItems and refunds.
# Corresponds to the JSON property `netTaxAmount`
# @return [Google::Apis::ContentV2_1::Price]
attr_accessor :net_tax_amount
# The status of the payment.
# Corresponds to the JSON property `paymentStatus`
@@ -3530,7 +3512,8 @@ module Google
@line_items = args[:line_items] if args.key?(:line_items)
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
@net_amount = args[:net_amount] if args.key?(:net_amount)
@net_price_amount = args[:net_price_amount] if args.key?(:net_price_amount)
@net_tax_amount = args[:net_tax_amount] if args.key?(:net_tax_amount)
@payment_status = args[:payment_status] if args.key?(:payment_status)
@placed_date = args[:placed_date] if args.key?(:placed_date)
@promotions = args[:promotions] if args.key?(:promotions)
@@ -7900,32 +7883,6 @@ module Google
end
end
#
class Promotion
include Google::Apis::Core::Hashable
# [required] Amount of the promotion. The values here are the promotion applied
# to the unit price pretax and to the total of the tax amounts.
# Corresponds to the JSON property `promotionAmount`
# @return [Google::Apis::ContentV2_1::Amount]
attr_accessor :promotion_amount
# [required] ID of the promotion.
# Corresponds to the JSON property `promotionId`
# @return [String]
attr_accessor :promotion_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@promotion_amount = args[:promotion_amount] if args.key?(:promotion_amount)
@promotion_id = args[:promotion_id] if args.key?(:promotion_id)
end
end
#
class RateGroup
include Google::Apis::Core::Hashable
@@ -8008,6 +7965,194 @@ module Google
end
end
# Regional inventory resource. contains the regional name and all attributes
# which are overridden for the specified region.
class RegionalInventory
include Google::Apis::Core::Hashable
# The availability of the product.
# Corresponds to the JSON property `availability`
# @return [String]
attr_accessor :availability
# A list of custom (merchant-provided) attributes. It can also be used for
# submitting any attribute of the feed specification in its generic form.
# Corresponds to the JSON property `customAttributes`
# @return [Array<Google::Apis::ContentV2_1::CustomAttribute>]
attr_accessor :custom_attributes
# Identifies what kind of resource this is. Value: the fixed string "content#
# regionalInventory".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The price of the product.
# Corresponds to the JSON property `price`
# @return [Google::Apis::ContentV2_1::Price]
attr_accessor :price
# The id (name) of the region.
# Corresponds to the JSON property `regionId`
# @return [String]
attr_accessor :region_id
# The sale price of the product. Mandatory if sale_price_effective_date is
# defined.
# Corresponds to the JSON property `salePrice`
# @return [Google::Apis::ContentV2_1::Price]
attr_accessor :sale_price
# A date range represented by a pair of ISO 8601 dates separated by a space,
# comma, or slash. Both dates might be specified as 'null' if undecided.
# Corresponds to the JSON property `salePriceEffectiveDate`
# @return [String]
attr_accessor :sale_price_effective_date
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@availability = args[:availability] if args.key?(:availability)
@custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes)
@kind = args[:kind] if args.key?(:kind)
@price = args[:price] if args.key?(:price)
@region_id = args[:region_id] if args.key?(:region_id)
@sale_price = args[:sale_price] if args.key?(:sale_price)
@sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date)
end
end
#
class RegionalinventoryCustomBatchRequest
include Google::Apis::Core::Hashable
# The request entries to be processed in the batch.
# Corresponds to the JSON property `entries`
# @return [Array<Google::Apis::ContentV2_1::RegionalinventoryCustomBatchRequestEntry>]
attr_accessor :entries
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@entries = args[:entries] if args.key?(:entries)
end
end
# A batch entry encoding a single non-batch regional inventory request.
class RegionalinventoryCustomBatchRequestEntry
include Google::Apis::Core::Hashable
# An entry ID, unique within the batch request.
# Corresponds to the JSON property `batchId`
# @return [Fixnum]
attr_accessor :batch_id
# The ID of the managing account.
# Corresponds to the JSON property `merchantId`
# @return [Fixnum]
attr_accessor :merchant_id
#
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
# The ID of the product for which to update price and availability.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# Regional inventory resource. contains the regional name and all attributes
# which are overridden for the specified region.
# Corresponds to the JSON property `regionalInventory`
# @return [Google::Apis::ContentV2_1::RegionalInventory]
attr_accessor :regional_inventory
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@batch_id = args[:batch_id] if args.key?(:batch_id)
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@product_id = args[:product_id] if args.key?(:product_id)
@regional_inventory = args[:regional_inventory] if args.key?(:regional_inventory)
end
end
#
class RegionalinventoryCustomBatchResponse
include Google::Apis::Core::Hashable
# The result of the execution of the batch requests.
# Corresponds to the JSON property `entries`
# @return [Array<Google::Apis::ContentV2_1::RegionalinventoryCustomBatchResponseEntry>]
attr_accessor :entries
# Identifies what kind of resource this is. Value: the fixed string "content#
# regionalinventoryCustomBatchResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@entries = args[:entries] if args.key?(:entries)
@kind = args[:kind] if args.key?(:kind)
end
end
# A batch entry encoding a single non-batch regional inventory response.
class RegionalinventoryCustomBatchResponseEntry
include Google::Apis::Core::Hashable
# The ID of the request entry this entry responds to.
# Corresponds to the JSON property `batchId`
# @return [Fixnum]
attr_accessor :batch_id
# A list of errors returned by a failed batch entry.
# Corresponds to the JSON property `errors`
# @return [Google::Apis::ContentV2_1::Errors]
attr_accessor :errors
# Identifies what kind of resource this is. Value: the fixed string "content#
# regionalinventoryCustomBatchResponseEntry".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Regional inventory resource. contains the regional name and all attributes
# which are overridden for the specified region.
# Corresponds to the JSON property `regionalInventory`
# @return [Google::Apis::ContentV2_1::RegionalInventory]
attr_accessor :regional_inventory
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@batch_id = args[:batch_id] if args.key?(:batch_id)
@errors = args[:errors] if args.key?(:errors)
@kind = args[:kind] if args.key?(:kind)
@regional_inventory = args[:regional_inventory] if args.key?(:regional_inventory)
end
end
#
class ReturnShipment
include Google::Apis::Core::Hashable
@@ -8017,6 +8162,11 @@ module Google
# @return [String]
attr_accessor :creation_date
#
# Corresponds to the JSON property `deliveryDate`
# @return [String]
attr_accessor :delivery_date
#
# Corresponds to the JSON property `returnMethodType`
# @return [String]
@@ -8032,6 +8182,16 @@ module Google
# @return [Array<Google::Apis::ContentV2_1::ShipmentTrackingInfo>]
attr_accessor :shipment_tracking_infos
#
# Corresponds to the JSON property `shippingDate`
# @return [String]
attr_accessor :shipping_date
#
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
@@ -8039,9 +8199,12 @@ module Google
# Update properties of this object
def update!(**args)
@creation_date = args[:creation_date] if args.key?(:creation_date)
@delivery_date = args[:delivery_date] if args.key?(:delivery_date)
@return_method_type = args[:return_method_type] if args.key?(:return_method_type)
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
@shipment_tracking_infos = args[:shipment_tracking_infos] if args.key?(:shipment_tracking_infos)
@shipping_date = args[:shipping_date] if args.key?(:shipping_date)
@state = args[:state] if args.key?(:state)
end
end
@@ -8478,7 +8641,7 @@ module Google
include Google::Apis::Core::Hashable
# A non-empty list of row or column headers for a table. Exactly one of prices,
# weights, numItems, postalCodeGroupNames, or locations must be set.
# weights, numItems, postalCodeGroupNames, or location must be set.
# Corresponds to the JSON property `columnHeaders`
# @return [Google::Apis::ContentV2_1::Headers]
attr_accessor :column_headers
@@ -8489,7 +8652,7 @@ module Google
attr_accessor :name
# A non-empty list of row or column headers for a table. Exactly one of prices,
# weights, numItems, postalCodeGroupNames, or locations must be set.
# weights, numItems, postalCodeGroupNames, or location must be set.
# Corresponds to the JSON property `rowHeaders`
# @return [Google::Apis::ContentV2_1::Headers]
attr_accessor :row_headers
@@ -8560,16 +8723,13 @@ module Google
# @return [Array<Google::Apis::ContentV2_1::OrderPromotion>]
attr_accessor :promotions
# The total cost of shipping for all items.
# The price of shipping for all items. Shipping tax is automatically calculated
# for MFL orders. For non-MFL orders, tax settings from Merchant Center are
# applied. Note that shipping is not taxed in certain states.
# Corresponds to the JSON property `shippingCost`
# @return [Google::Apis::ContentV2_1::Price]
attr_accessor :shipping_cost
# The tax for the total shipping cost.
# Corresponds to the JSON property `shippingCostTax`
# @return [Google::Apis::ContentV2_1::Price]
attr_accessor :shipping_cost_tax
# The requested shipping option.
# Corresponds to the JSON property `shippingOption`
# @return [String]
@@ -8590,7 +8750,6 @@ module Google
@predefined_delivery_address = args[:predefined_delivery_address] if args.key?(:predefined_delivery_address)
@promotions = args[:promotions] if args.key?(:promotions)
@shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost)
@shipping_cost_tax = args[:shipping_cost_tax] if args.key?(:shipping_cost_tax)
@shipping_option = args[:shipping_option] if args.key?(:shipping_option)
end
end
@@ -8782,6 +8941,85 @@ module Google
end
end
#
class TransitTable
include Google::Apis::Core::Hashable
# A list of postal group names. The last value can be "all other locations".
# Example: ["zone 1", "zone 2", "all other locations"]. The referred postal code
# groups must match the delivery country of the service.
# Corresponds to the JSON property `postalCodeGroupNames`
# @return [Array<String>]
attr_accessor :postal_code_group_names
#
# Corresponds to the JSON property `rows`
# @return [Array<Google::Apis::ContentV2_1::TransitTableTransitTimeRow>]
attr_accessor :rows
# A list of transit time labels. The last value can be "all other labels".
# Example: ["food", "electronics", "all other labels"].
# Corresponds to the JSON property `transitTimeLabels`
# @return [Array<String>]
attr_accessor :transit_time_labels
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@postal_code_group_names = args[:postal_code_group_names] if args.key?(:postal_code_group_names)
@rows = args[:rows] if args.key?(:rows)
@transit_time_labels = args[:transit_time_labels] if args.key?(:transit_time_labels)
end
end
#
class TransitTableTransitTimeRow
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `values`
# @return [Array<Google::Apis::ContentV2_1::TransitTableTransitTimeRowTransitTimeValue>]
attr_accessor :values
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@values = args[:values] if args.key?(:values)
end
end
#
class TransitTableTransitTimeRowTransitTimeValue
include Google::Apis::Core::Hashable
# Must be greater than or equal to minTransitTimeInDays.
# Corresponds to the JSON property `maxTransitTimeInDays`
# @return [Fixnum]
attr_accessor :max_transit_time_in_days
# Transit time range (min-max) in business days. 0 means same day delivery, 1
# means next day delivery.
# Corresponds to the JSON property `minTransitTimeInDays`
# @return [Fixnum]
attr_accessor :min_transit_time_in_days
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@max_transit_time_in_days = args[:max_transit_time_in_days] if args.key?(:max_transit_time_in_days)
@min_transit_time_in_days = args[:min_transit_time_in_days] if args.key?(:min_transit_time_in_days)
end
end
#
class UnitInvoice
include Google::Apis::Core::Hashable
@@ -8791,11 +9029,6 @@ module Google
# @return [Array<Google::Apis::ContentV2_1::UnitInvoiceAdditionalCharge>]
attr_accessor :additional_charges
# Promotions applied to a unit.
# Corresponds to the JSON property `promotions`
# @return [Array<Google::Apis::ContentV2_1::Promotion>]
attr_accessor :promotions
# [required] Pre-tax or post-tax price of the unit depending on the locality of
# the order.
# Corresponds to the JSON property `unitPrice`
@@ -8814,7 +9047,6 @@ module Google
# Update properties of this object
def update!(**args)
@additional_charges = args[:additional_charges] if args.key?(:additional_charges)
@promotions = args[:promotions] if args.key?(:promotions)
@unit_price = args[:unit_price] if args.key?(:unit_price)
@unit_price_taxes = args[:unit_price_taxes] if args.key?(:unit_price_taxes)
end
@@ -8829,11 +9061,6 @@ module Google
# @return [Google::Apis::ContentV2_1::Amount]
attr_accessor :additional_charge_amount
# Promotions applied to the additional charge.
# Corresponds to the JSON property `additionalChargePromotions`
# @return [Array<Google::Apis::ContentV2_1::Promotion>]
attr_accessor :additional_charge_promotions
# [required] Type of the additional charge.
# Corresponds to the JSON property `type`
# @return [String]
@@ -8846,7 +9073,6 @@ module Google
# Update properties of this object
def update!(**args)
@additional_charge_amount = args[:additional_charge_amount] if args.key?(:additional_charge_amount)
@additional_charge_promotions = args[:additional_charge_promotions] if args.key?(:additional_charge_promotions)
@type = args[:type] if args.key?(:type)
end
end
@@ -1192,12 +1192,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Promotion
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RateGroup
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -1210,6 +1204,36 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RegionalInventory
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegionalinventoryCustomBatchRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegionalinventoryCustomBatchRequestEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegionalinventoryCustomBatchResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegionalinventoryCustomBatchResponseEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReturnShipment
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -1330,6 +1354,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TransitTable
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TransitTableTransitTimeRow
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TransitTableTransitTimeRowTransitTimeValue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UnitInvoice
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -2003,6 +2045,8 @@ module Google
property :max_transit_time_in_days, as: 'maxTransitTimeInDays'
property :min_handling_time_in_days, as: 'minHandlingTimeInDays'
property :min_transit_time_in_days, as: 'minTransitTimeInDays'
property :transit_time_table, as: 'transitTimeTable', class: Google::Apis::ContentV2_1::TransitTable, decorator: Google::Apis::ContentV2_1::TransitTable::Representation
end
end
@@ -2095,16 +2139,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
collection :additional_charge_summaries, as: 'additionalChargeSummaries', class: Google::Apis::ContentV2_1::InvoiceSummaryAdditionalChargeSummary, decorator: Google::Apis::ContentV2_1::InvoiceSummaryAdditionalChargeSummary::Representation
property :customer_balance, as: 'customerBalance', class: Google::Apis::ContentV2_1::Amount, decorator: Google::Apis::ContentV2_1::Amount::Representation
property :google_balance, as: 'googleBalance', class: Google::Apis::ContentV2_1::Amount, decorator: Google::Apis::ContentV2_1::Amount::Representation
property :merchant_balance, as: 'merchantBalance', class: Google::Apis::ContentV2_1::Amount, decorator: Google::Apis::ContentV2_1::Amount::Representation
property :product_total, as: 'productTotal', class: Google::Apis::ContentV2_1::Amount, decorator: Google::Apis::ContentV2_1::Amount::Representation
collection :promotion_summaries, as: 'promotionSummaries', class: Google::Apis::ContentV2_1::Promotion, decorator: Google::Apis::ContentV2_1::Promotion::Representation
end
end
@@ -2348,7 +2384,9 @@ module Google
property :merchant_id, :numeric_string => true, as: 'merchantId'
property :merchant_order_id, as: 'merchantOrderId'
property :net_amount, as: 'netAmount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
property :net_price_amount, as: 'netPriceAmount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
property :net_tax_amount, as: 'netTaxAmount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
property :payment_status, as: 'paymentStatus'
property :placed_date, as: 'placedDate'
@@ -3549,15 +3587,6 @@ module Google
end
end
class Promotion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :promotion_amount, as: 'promotionAmount', class: Google::Apis::ContentV2_1::Amount, decorator: Google::Apis::ContentV2_1::Amount::Representation
property :promotion_id, as: 'promotionId'
end
end
class RateGroup
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -3582,14 +3611,74 @@ module Google
end
end
class RegionalInventory
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :availability, as: 'availability'
collection :custom_attributes, as: 'customAttributes', class: Google::Apis::ContentV2_1::CustomAttribute, decorator: Google::Apis::ContentV2_1::CustomAttribute::Representation
property :kind, as: 'kind'
property :price, as: 'price', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
property :region_id, as: 'regionId'
property :sale_price, as: 'salePrice', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
property :sale_price_effective_date, as: 'salePriceEffectiveDate'
end
end
class RegionalinventoryCustomBatchRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::RegionalinventoryCustomBatchRequestEntry, decorator: Google::Apis::ContentV2_1::RegionalinventoryCustomBatchRequestEntry::Representation
end
end
class RegionalinventoryCustomBatchRequestEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :batch_id, as: 'batchId'
property :merchant_id, :numeric_string => true, as: 'merchantId'
property :method_prop, as: 'method'
property :product_id, as: 'productId'
property :regional_inventory, as: 'regionalInventory', class: Google::Apis::ContentV2_1::RegionalInventory, decorator: Google::Apis::ContentV2_1::RegionalInventory::Representation
end
end
class RegionalinventoryCustomBatchResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::RegionalinventoryCustomBatchResponseEntry, decorator: Google::Apis::ContentV2_1::RegionalinventoryCustomBatchResponseEntry::Representation
property :kind, as: 'kind'
end
end
class RegionalinventoryCustomBatchResponseEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :batch_id, as: 'batchId'
property :errors, as: 'errors', class: Google::Apis::ContentV2_1::Errors, decorator: Google::Apis::ContentV2_1::Errors::Representation
property :kind, as: 'kind'
property :regional_inventory, as: 'regionalInventory', class: Google::Apis::ContentV2_1::RegionalInventory, decorator: Google::Apis::ContentV2_1::RegionalInventory::Representation
end
end
class ReturnShipment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_date, as: 'creationDate'
property :delivery_date, as: 'deliveryDate'
property :return_method_type, as: 'returnMethodType'
property :shipment_id, as: 'shipmentId'
collection :shipment_tracking_infos, as: 'shipmentTrackingInfos', class: Google::Apis::ContentV2_1::ShipmentTrackingInfo, decorator: Google::Apis::ContentV2_1::ShipmentTrackingInfo::Representation
property :shipping_date, as: 'shippingDate'
property :state, as: 'state'
end
end
@@ -3757,8 +3846,6 @@ module Google
property :shipping_cost, as: 'shippingCost', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
property :shipping_cost_tax, as: 'shippingCostTax', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
property :shipping_option, as: 'shippingOption'
end
end
@@ -3815,13 +3902,37 @@ module Google
end
end
class TransitTable
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :postal_code_group_names, as: 'postalCodeGroupNames'
collection :rows, as: 'rows', class: Google::Apis::ContentV2_1::TransitTableTransitTimeRow, decorator: Google::Apis::ContentV2_1::TransitTableTransitTimeRow::Representation
collection :transit_time_labels, as: 'transitTimeLabels'
end
end
class TransitTableTransitTimeRow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :values, as: 'values', class: Google::Apis::ContentV2_1::TransitTableTransitTimeRowTransitTimeValue, decorator: Google::Apis::ContentV2_1::TransitTableTransitTimeRowTransitTimeValue::Representation
end
end
class TransitTableTransitTimeRowTransitTimeValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_transit_time_in_days, as: 'maxTransitTimeInDays'
property :min_transit_time_in_days, as: 'minTransitTimeInDays'
end
end
class UnitInvoice
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :additional_charges, as: 'additionalCharges', class: Google::Apis::ContentV2_1::UnitInvoiceAdditionalCharge, decorator: Google::Apis::ContentV2_1::UnitInvoiceAdditionalCharge::Representation
collection :promotions, as: 'promotions', class: Google::Apis::ContentV2_1::Promotion, decorator: Google::Apis::ContentV2_1::Promotion::Representation
property :unit_price, as: 'unitPrice', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
collection :unit_price_taxes, as: 'unitPriceTaxes', class: Google::Apis::ContentV2_1::UnitInvoiceTaxLine, decorator: Google::Apis::ContentV2_1::UnitInvoiceTaxLine::Representation
@@ -3834,8 +3945,6 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :additional_charge_amount, as: 'additionalChargeAmount', class: Google::Apis::ContentV2_1::Amount, decorator: Google::Apis::ContentV2_1::Amount::Representation
collection :additional_charge_promotions, as: 'additionalChargePromotions', class: Google::Apis::ContentV2_1::Promotion, decorator: Google::Apis::ContentV2_1::Promotion::Representation
property :type, as: 'type'
end
end
@@ -3070,6 +3070,82 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates regional inventory for multiple products or regions in a single
# request.
# @param [Google::Apis::ContentV2_1::RegionalinventoryCustomBatchRequest] regionalinventory_custom_batch_request_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::ContentV2_1::RegionalinventoryCustomBatchResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2_1::RegionalinventoryCustomBatchResponse]
#
# @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 custombatch_regionalinventory(regionalinventory_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'regionalinventory/batch', options)
command.request_representation = Google::Apis::ContentV2_1::RegionalinventoryCustomBatchRequest::Representation
command.request_object = regionalinventory_custom_batch_request_object
command.response_representation = Google::Apis::ContentV2_1::RegionalinventoryCustomBatchResponse::Representation
command.response_class = Google::Apis::ContentV2_1::RegionalinventoryCustomBatchResponse
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
# Update the regional inventory of a product in your Merchant Center account. If
# a regional inventory with the same region ID already exists, this method
# updates that entry.
# @param [Fixnum] merchant_id
# The ID of the account that contains the product. This account cannot be a
# multi-client account.
# @param [String] product_id
# The REST id of the product for which to update the regional inventory.
# @param [Google::Apis::ContentV2_1::RegionalInventory] regional_inventory_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::ContentV2_1::RegionalInventory] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2_1::RegionalInventory]
#
# @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 insert_regionalinventory(merchant_id, product_id, regional_inventory_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/products/{productId}/regionalinventory', options)
command.request_representation = Google::Apis::ContentV2_1::RegionalInventory::Representation
command.request_object = regional_inventory_object
command.response_representation = Google::Apis::ContentV2_1::RegionalInventory::Representation
command.response_class = Google::Apis::ContentV2_1::RegionalInventory
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['productId'] = product_id unless product_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
# Retrieves and updates the shipping settings of multiple accounts in a single
# request.
# @param [Google::Apis::ContentV2_1::ShippingsettingsCustomBatchRequest] shippingsettings_custom_batch_request_object
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataflow
module DataflowV1b3
VERSION = 'V1b3'
REVISION = '20190126'
REVISION = '20190131'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
+51 -19
View File
@@ -736,7 +736,9 @@ module Google
# @return [String]
attr_accessor :job_name
# The location to which to direct the request.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
# which to direct the request.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
@@ -1121,6 +1123,11 @@ module Google
# @return [Array<String>]
attr_accessor :experiments
# Which Flexible Resource Scheduling mode to run in.
# Corresponds to the JSON property `flexResourceSchedulingGoal`
# @return [String]
attr_accessor :flex_resource_scheduling_goal
# Experimental settings.
# Corresponds to the JSON property `internalExperiments`
# @return [Hash<String,Object>]
@@ -1180,6 +1187,7 @@ module Google
@cluster_manager_api_service = args[:cluster_manager_api_service] if args.key?(:cluster_manager_api_service)
@dataset = args[:dataset] if args.key?(:dataset)
@experiments = args[:experiments] if args.key?(:experiments)
@flex_resource_scheduling_goal = args[:flex_resource_scheduling_goal] if args.key?(:flex_resource_scheduling_goal)
@internal_experiments = args[:internal_experiments] if args.key?(:internal_experiments)
@sdk_pipeline_options = args[:sdk_pipeline_options] if args.key?(:sdk_pipeline_options)
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
@@ -1278,11 +1286,15 @@ module Google
end
end
# Indicates which location failed to respond to a request for data.
# Indicates which [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) failed
# to respond to a request for data.
class FailedLocation
include Google::Apis::Core::Hashable
# The name of the failed location.
# The name of the [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# failed to respond.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@@ -1390,7 +1402,9 @@ module Google
# @return [String]
attr_accessor :component_id
# The location which contains the job specified by job_id.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains the job specified by job_id.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
@@ -1748,7 +1762,7 @@ module Google
attr_accessor :id
# Metadata available primarily for filtering jobs. Will be included in the
# ListJob response and Job SUMMARY view+.
# ListJob response and Job SUMMARY view.
# Corresponds to the JSON property `jobMetadata`
# @return [Google::Apis::DataflowV1b3::JobMetadata]
attr_accessor :job_metadata
@@ -1764,7 +1778,9 @@ module Google
# @return [Hash<String,String>]
attr_accessor :labels
# The location that contains this job.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains this job.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
@@ -1782,7 +1798,7 @@ module Google
# A descriptive representation of submitted pipeline as well as the executed
# form. This data is provided by the Dataflow service for ease of visualizing
# the pipeline and interpretting Dataflow provided metrics.
# the pipeline and interpreting Dataflow provided metrics.
# Corresponds to the JSON property `pipelineDescription`
# @return [Google::Apis::DataflowV1b3::PipelineDescription]
attr_accessor :pipeline_description
@@ -1981,7 +1997,7 @@ module Google
end
# Metadata available primarily for filtering jobs. Will be included in the
# ListJob response and Job SUMMARY view+.
# ListJob response and Job SUMMARY view.
class JobMetadata
include Google::Apis::Core::Hashable
@@ -2010,7 +2026,7 @@ module Google
# @return [Array<Google::Apis::DataflowV1b3::PubSubIoDetails>]
attr_accessor :pubsub_details
# The version of the SDK used to run the jobl
# The version of the SDK used to run the job.
# Corresponds to the JSON property `sdkVersion`
# @return [Google::Apis::DataflowV1b3::SdkVersion]
attr_accessor :sdk_version
@@ -2036,7 +2052,7 @@ module Google
end
end
# JobMetrics contains a collection of metrics descibing the detailed progress
# JobMetrics contains a collection of metrics describing the detailed progress
# of a Dataflow job. Metrics correspond to user-defined and system-defined
# metrics in the job.
# This resource captures only the most recent values of each metric;
@@ -2212,7 +2228,9 @@ module Google
# @return [String]
attr_accessor :current_worker_time
# The location which contains the WorkItem's job.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains the WorkItem's job.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
@@ -2321,7 +2339,9 @@ module Google
class ListJobsResponse
include Google::Apis::Core::Hashable
# Zero or more messages describing locations that failed to respond.
# Zero or more messages describing the [regional endpoints]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# failed to respond.
# Corresponds to the JSON property `failedLocation`
# @return [Array<Google::Apis::DataflowV1b3::FailedLocation>]
attr_accessor :failed_location
@@ -2906,7 +2926,7 @@ module Google
# A descriptive representation of submitted pipeline as well as the executed
# form. This data is provided by the Dataflow service for ease of visualizing
# the pipeline and interpretting Dataflow provided metrics.
# the pipeline and interpreting Dataflow provided metrics.
class PipelineDescription
include Google::Apis::Core::Hashable
@@ -3110,7 +3130,9 @@ module Google
# @return [String]
attr_accessor :current_worker_time
# The location which contains the WorkItem's job.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains the WorkItem's job.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
@@ -3331,7 +3353,7 @@ module Google
end
end
# The version of the SDK used to run the jobl
# The version of the SDK used to run the job.
class SdkVersion
include Google::Apis::Core::Hashable
@@ -3345,7 +3367,7 @@ module Google
# @return [String]
attr_accessor :version
# A readable string describing the version of the sdk.
# A readable string describing the version of the SDK.
# Corresponds to the JSON property `versionDisplayName`
# @return [String]
attr_accessor :version_display_name
@@ -3376,7 +3398,9 @@ module Google
# @return [String]
attr_accessor :data
# The location which contains the job specified by job_id.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains the job specified by job_id.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
@@ -3417,7 +3441,9 @@ module Google
class SendWorkerMessagesRequest
include Google::Apis::Core::Hashable
# The location which contains the job
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains the job.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
@@ -4501,6 +4527,11 @@ module Google
class StreamingConfigTask
include Google::Apis::Core::Hashable
# Maximum size for work item commit supported windmill storage layer.
# Corresponds to the JSON property `maxWorkItemCommitBytes`
# @return [Fixnum]
attr_accessor :max_work_item_commit_bytes
# Set of computation configuration information.
# Corresponds to the JSON property `streamingComputationConfigs`
# @return [Array<Google::Apis::DataflowV1b3::StreamingComputationConfig>]
@@ -4531,6 +4562,7 @@ module Google
# Update properties of this object
def update!(**args)
@max_work_item_commit_bytes = args[:max_work_item_commit_bytes] if args.key?(:max_work_item_commit_bytes)
@streaming_computation_configs = args[:streaming_computation_configs] if args.key?(:streaming_computation_configs)
@user_step_to_state_family_name_map = args[:user_step_to_state_family_name_map] if args.key?(:user_step_to_state_family_name_map)
@windmill_service_endpoint = args[:windmill_service_endpoint] if args.key?(:windmill_service_endpoint)
@@ -4656,7 +4688,7 @@ module Google
class StructuredMessage
include Google::Apis::Core::Hashable
# Idenfier for this message type. Used by external systems to
# Identifier for this message type. Used by external systems to
# internationalize or personalize message.
# Corresponds to the JSON property `messageKey`
# @return [String]
@@ -1146,6 +1146,7 @@ module Google
property :cluster_manager_api_service, as: 'clusterManagerApiService'
property :dataset, as: 'dataset'
collection :experiments, as: 'experiments'
property :flex_resource_scheduling_goal, as: 'flexResourceSchedulingGoal'
hash :internal_experiments, as: 'internalExperiments'
hash :sdk_pipeline_options, as: 'sdkPipelineOptions'
property :service_account_email, as: 'serviceAccountEmail'
@@ -2065,6 +2066,7 @@ module Google
class StreamingConfigTask
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_work_item_commit_bytes, :numeric_string => true, as: 'maxWorkItemCommitBytes'
collection :streaming_computation_configs, as: 'streamingComputationConfigs', class: Google::Apis::DataflowV1b3::StreamingComputationConfig, decorator: Google::Apis::DataflowV1b3::StreamingComputationConfig::Representation
hash :user_step_to_state_family_name_map, as: 'userStepToStateFamilyNameMap'
+133 -25
View File
@@ -86,7 +86,9 @@ module Google
# @param [String] filter
# The kind of filter to use.
# @param [String] location
# The location that contains this job.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains this job.
# @param [Fixnum] page_size
# If there are many jobs, limit response to at most this many.
# The actual number of jobs returned will be the lesser of max_responses
@@ -129,11 +131,18 @@ module Google
end
# Creates a Cloud Dataflow job.
# To create a job, we recommend using `projects.locations.jobs.create` with a
# [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
# `projects.jobs.create` is not recommended, as your job will always start
# in `us-central1`.
# @param [String] project_id
# The ID of the Cloud Platform project that the job belongs to.
# @param [Google::Apis::DataflowV1b3::Job] job_object
# @param [String] location
# The location that contains this job.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains this job.
# @param [String] replace_job_id
# Deprecated. This field is now in the Job message.
# @param [String] view
@@ -171,12 +180,19 @@ module Google
end
# Gets the state of the specified Cloud Dataflow job.
# To get the state of a job, we recommend using `projects.locations.jobs.get`
# with a [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
# `projects.jobs.get` is not recommended, as you can only get the state of
# jobs that are running in `us-central1`.
# @param [String] project_id
# The ID of the Cloud Platform project that the job belongs to.
# @param [String] job_id
# The job ID.
# @param [String] location
# The location that contains this job.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains this job.
# @param [String] view
# The level of information requested in response.
# @param [String] fields
@@ -210,12 +226,19 @@ module Google
end
# Request the job status.
# To request the status of a job, we recommend using
# `projects.locations.jobs.getMetrics` with a [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
# `projects.jobs.getMetrics` is not recommended, as you can only request the
# status of jobs that are running in `us-central1`.
# @param [String] project_id
# A project id.
# @param [String] job_id
# The job to get messages for.
# @param [String] location
# The location which contains the job specified by job_id.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains the job specified by job_id.
# @param [String] start_time
# Return only metric data that has changed since this time.
# Default is to return all information about all metrics for the job.
@@ -249,13 +272,21 @@ module Google
execute_or_queue_command(command, &block)
end
# List the jobs of a project in a given region.
# List the jobs of a project.
# To list the jobs of a project in a region, we recommend using
# `projects.locations.jobs.get` with a [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To
# list the all jobs across all regions, use `projects.jobs.aggregated`. Using
# `projects.jobs.list` is not recommended, as you can only get the list of
# jobs that are running in `us-central1`.
# @param [String] project_id
# The project which owns the jobs.
# @param [String] filter
# The kind of filter to use.
# @param [String] location
# The location that contains this job.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains this job.
# @param [Fixnum] page_size
# If there are many jobs, limit response to at most this many.
# The actual number of jobs returned will be the lesser of max_responses
@@ -334,13 +365,20 @@ module Google
end
# Updates the state of an existing Cloud Dataflow job.
# To update the state of an existing job, we recommend using
# `projects.locations.jobs.update` with a [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
# `projects.jobs.update` is not recommended, as you can only update the state
# of jobs that are running in `us-central1`.
# @param [String] project_id
# The ID of the Cloud Platform project that the job belongs to.
# @param [String] job_id
# The job ID.
# @param [Google::Apis::DataflowV1b3::Job] job_object
# @param [String] location
# The location that contains this job.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains this job.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -445,6 +483,11 @@ module Google
end
# Request the job status.
# To request the status of a job, we recommend using
# `projects.locations.jobs.messages.list` with a [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
# `projects.jobs.messages.list` is not recommended, as you can only request
# the status of jobs that are running in `us-central1`.
# @param [String] project_id
# A project id.
# @param [String] job_id
@@ -453,7 +496,9 @@ module Google
# Return only messages with timestamps < end_time. The default is now
# (i.e. return up to the latest messages available).
# @param [String] location
# The location which contains the job specified by job_id.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains the job specified by job_id.
# @param [String] minimum_importance
# Filter to only get messages with importance >= level
# @param [Fixnum] page_size
@@ -577,7 +622,9 @@ module Google
# @param [String] project_id
# The project to send the WorkerMessages to.
# @param [String] location
# The location which contains the job
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains the job.
# @param [Google::Apis::DataflowV1b3::SendWorkerMessagesRequest] send_worker_messages_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -610,10 +657,17 @@ module Google
end
# Creates a Cloud Dataflow job.
# To create a job, we recommend using `projects.locations.jobs.create` with a
# [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
# `projects.jobs.create` is not recommended, as your job will always start
# in `us-central1`.
# @param [String] project_id
# The ID of the Cloud Platform project that the job belongs to.
# @param [String] location
# The location that contains this job.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains this job.
# @param [Google::Apis::DataflowV1b3::Job] job_object
# @param [String] replace_job_id
# Deprecated. This field is now in the Job message.
@@ -652,10 +706,17 @@ module Google
end
# Gets the state of the specified Cloud Dataflow job.
# To get the state of a job, we recommend using `projects.locations.jobs.get`
# with a [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
# `projects.jobs.get` is not recommended, as you can only get the state of
# jobs that are running in `us-central1`.
# @param [String] project_id
# The ID of the Cloud Platform project that the job belongs to.
# @param [String] location
# The location that contains this job.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains this job.
# @param [String] job_id
# The job ID.
# @param [String] view
@@ -691,10 +752,17 @@ module Google
end
# Request the job status.
# To request the status of a job, we recommend using
# `projects.locations.jobs.getMetrics` with a [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
# `projects.jobs.getMetrics` is not recommended, as you can only request the
# status of jobs that are running in `us-central1`.
# @param [String] project_id
# A project id.
# @param [String] location
# The location which contains the job specified by job_id.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains the job specified by job_id.
# @param [String] job_id
# The job to get messages for.
# @param [String] start_time
@@ -730,11 +798,19 @@ module Google
execute_or_queue_command(command, &block)
end
# List the jobs of a project in a given region.
# List the jobs of a project.
# To list the jobs of a project in a region, we recommend using
# `projects.locations.jobs.get` with a [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To
# list the all jobs across all regions, use `projects.jobs.aggregated`. Using
# `projects.jobs.list` is not recommended, as you can only get the list of
# jobs that are running in `us-central1`.
# @param [String] project_id
# The project which owns the jobs.
# @param [String] location
# The location that contains this job.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains this job.
# @param [String] filter
# The kind of filter to use.
# @param [Fixnum] page_size
@@ -818,10 +894,17 @@ module Google
end
# Updates the state of an existing Cloud Dataflow job.
# To update the state of an existing job, we recommend using
# `projects.locations.jobs.update` with a [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
# `projects.jobs.update` is not recommended, as you can only update the state
# of jobs that are running in `us-central1`.
# @param [String] project_id
# The ID of the Cloud Platform project that the job belongs to.
# @param [String] location
# The location that contains this job.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains this job.
# @param [String] job_id
# The job ID.
# @param [Google::Apis::DataflowV1b3::Job] job_object
@@ -860,7 +943,9 @@ module Google
# @param [String] project_id
# The project id.
# @param [String] location
# The location which contains the job specified by job_id.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains the job specified by job_id.
# @param [String] job_id
# The job id.
# @param [Google::Apis::DataflowV1b3::GetDebugConfigRequest] get_debug_config_request_object
@@ -899,7 +984,9 @@ module Google
# @param [String] project_id
# The project id.
# @param [String] location
# The location which contains the job specified by job_id.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains the job specified by job_id.
# @param [String] job_id
# The job id.
# @param [Google::Apis::DataflowV1b3::SendDebugCaptureRequest] send_debug_capture_request_object
@@ -935,10 +1022,17 @@ module Google
end
# Request the job status.
# To request the status of a job, we recommend using
# `projects.locations.jobs.messages.list` with a [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
# `projects.jobs.messages.list` is not recommended, as you can only request
# the status of jobs that are running in `us-central1`.
# @param [String] project_id
# A project id.
# @param [String] location
# The location which contains the job specified by job_id.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains the job specified by job_id.
# @param [String] job_id
# The job to get messages about.
# @param [String] end_time
@@ -995,7 +1089,9 @@ module Google
# @param [String] project_id
# Identifies the project this worker belongs to.
# @param [String] location
# The location which contains the WorkItem's job.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains the WorkItem's job.
# @param [String] job_id
# Identifies the workflow job this worker belongs to.
# @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
@@ -1034,7 +1130,9 @@ module Google
# @param [String] project_id
# The project which owns the WorkItem's job.
# @param [String] location
# The location which contains the WorkItem's job.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
# contains the WorkItem's job.
# @param [String] job_id
# The job which the WorkItem is part of.
# @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
@@ -1073,7 +1171,9 @@ module Google
# @param [String] project_id
# Required. The ID of the Cloud Platform project that the job belongs to.
# @param [String] location
# The location to which to direct the request.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
# which to direct the request.
# @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -1109,7 +1209,9 @@ module Google
# @param [String] project_id
# Required. The ID of the Cloud Platform project that the job belongs to.
# @param [String] location
# The location to which to direct the request.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
# which to direct the request.
# @param [String] gcs_path
# Required. A Cloud Storage path to the template from which to
# create the job.
@@ -1150,7 +1252,9 @@ module Google
# @param [String] project_id
# Required. The ID of the Cloud Platform project that the job belongs to.
# @param [String] location
# The location to which to direct the request.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
# which to direct the request.
# @param [Google::Apis::DataflowV1b3::LaunchTemplateParameters] launch_template_parameters_object
# @param [String] dynamic_template_gcs_path
# Path to dynamic template spec file on GCS.
@@ -1240,7 +1344,9 @@ module Google
# create the job.
# Must be valid Cloud Storage URL, beginning with 'gs://'.
# @param [String] location
# The location to which to direct the request.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
# which to direct the request.
# @param [String] view
# The view to retrieve. Defaults to METADATA_ONLY.
# @param [String] fields
@@ -1288,7 +1394,9 @@ module Google
# the job.
# Must be valid Cloud Storage URL, beginning with 'gs://'.
# @param [String] location
# The location to which to direct the request.
# The [regional endpoint]
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
# which to direct the request.
# @param [Boolean] validate_only
# If true, the request is validated but not actually executed.
# Defaults to false.
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/doubleclick-advertisers/
module DfareportingV3_3
VERSION = 'V3_3'
REVISION = '20190124'
REVISION = '20190206'
# Manage DoubleClick Digital Marketing conversions
AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions'
@@ -3346,13 +3346,13 @@ module Google
# @return [Google::Apis::DfareportingV3_3::CreativeAssetId]
attr_accessor :asset_identifier
# Audio stream bit rate in kbps.This is a read-only field. Applicable to the
# Audio stream bit rate in kbps. This is a read-only field. Applicable to the
# following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID.
# Corresponds to the JSON property `audioBitRate`
# @return [Fixnum]
attr_accessor :audio_bit_rate
# Audio sample bit rate in hertz.This is a read-only field. Applicable to the
# Audio sample bit rate in hertz. This is a read-only field. Applicable to the
# following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID.
# Corresponds to the JSON property `audioSampleRate`
# @return [Fixnum]
@@ -3444,7 +3444,7 @@ module Google
# @return [Fixnum]
attr_accessor :flash_version
# Video frame rate for video asset in frames per second.This is a read-only
# Video frame rate for video asset in frames per second. This is a read-only
# field. Applicable to the following creative types: INSTREAM_VIDEO and all
# VPAID.
# Corresponds to the JSON property `frameRate`
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow-enterprise/
module DialogflowV2
VERSION = 'V2'
REVISION = '20190122'
REVISION = '20190209'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -384,7 +384,7 @@ module Google
# Optional. The number of conversational query requests after which the
# context expires. If set to `0` (the default) the context expires
# immediately. Contexts expire automatically after 20 minutes even if there
# immediately. Contexts expire automatically after 20 minutes if there
# are no matching queries.
# Corresponds to the JSON property `lifespanCount`
# @return [Fixnum]
@@ -2464,7 +2464,7 @@ module Google
# Optional. The number of conversational query requests after which the
# context expires. If set to `0` (the default) the context expires
# immediately. Contexts expire automatically after 10 minutes even if there
# immediately. Contexts expire automatically after 20 minutes if there
# are no matching queries.
# Corresponds to the JSON property `lifespanCount`
# @return [Fixnum]
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow-enterprise/
module DialogflowV2beta1
VERSION = 'V2beta1'
REVISION = '20190122'
REVISION = '20190209'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -66,7 +66,7 @@ module Google
# Optional. The number of conversational query requests after which the
# context expires. If set to `0` (the default) the context expires
# immediately. Contexts expire automatically after 20 minutes even if there
# immediately. Contexts expire automatically after 20 minutes if there
# are no matching queries.
# Corresponds to the JSON property `lifespanCount`
# @return [Fixnum]
@@ -1845,7 +1845,7 @@ module Google
# Optional. The number of conversational query requests after which the
# context expires. If set to `0` (the default) the context expires
# immediately. Contexts expire automatically after 10 minutes even if there
# immediately. Contexts expire automatically after 20 minutes if there
# are no matching queries.
# Corresponds to the JSON property `lifespanCount`
# @return [Fixnum]
+1 -1
View File
@@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/dlp/docs/
module DlpV2
VERSION = 'V2'
REVISION = '20190205'
REVISION = '20190212'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
+13
View File
@@ -74,6 +74,19 @@ module Google
end
end
# Request message for ActivateJobTrigger.
class GooglePrivacyDlpV2ActivateJobTriggerRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Result of a risk analysis operation request.
class GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails
include Google::Apis::Core::Hashable
@@ -28,6 +28,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2ActivateJobTriggerRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -1056,6 +1062,12 @@ module Google
end
end
class GooglePrivacyDlpV2ActivateJobTriggerRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
+35
View File
@@ -1421,6 +1421,41 @@ module Google
execute_or_queue_command(command, &block)
end
# Activate a job trigger. Causes the immediate execute of a trigger
# instead of waiting on the trigger event to occur.
# @param [String] name
# Resource name of the trigger to activate, for example
# `projects/dlp-test-project/jobTriggers/53234423`.
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ActivateJobTriggerRequest] google_privacy_dlp_v2_activate_job_trigger_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob]
#
# @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 activate_project_job_trigger(name, google_privacy_dlp_v2_activate_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+name}:activate', options)
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ActivateJobTriggerRequest::Representation
command.request_object = google_privacy_dlp_v2_activate_job_trigger_request_object
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
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 job trigger to run DLP actions such as scanning storage for
# sensitive information on a set schedule.
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/docs/
module DocsV1
VERSION = 'V1'
REVISION = '20190129'
REVISION = '20190207'
# View and manage your Google Docs documents
AUTH_DOCUMENTS = 'https://www.googleapis.com/auth/documents'
+15 -44
View File
@@ -2261,6 +2261,8 @@ module Google
# and content inserted inside a named range generally expands that range.
# However, certain document changes can cause the range to be split into
# multiple ranges.
# Named ranges are not private. All applications and collaborators that have
# access to the document can see its named ranges.
class NamedRange
include Google::Apis::Core::Hashable
@@ -2884,11 +2886,8 @@ module Google
# @return [Google::Apis::DocsV1::ColumnBreak]
attr_accessor :column_break
# The zero-base end index of this paragraph element, exclusive, in Unicode
# code units of the UTF-16 encoding.
# Unicode code units of the UTF-16 encoding means that surrogate pairs
# consume two indexes. For example, the "GRINNING FACE" emoji would be
# represented as "\uD83D\uDE00" and would consume two indexes.
# The zero-base end index of this paragraph element, exclusive, in UTF-16
# code units.
# Corresponds to the JSON property `endIndex`
# @return [Fixnum]
attr_accessor :end_index
@@ -2925,11 +2924,7 @@ module Google
# @return [Google::Apis::DocsV1::PageBreak]
attr_accessor :page_break
# The zero-based start index of this paragraph element, in Unicode code
# units of the UTF-16 encoding.
# Unicode code units of the UTF-16 encoding means that surrogate pairs
# consume two indexes. For example, the "GRINNING FACE" emoji would be
# represented as "\uD83D\uDE00" and would consume two indexes.
# The zero-based start index of this paragraph element, in UTF-16 code units.
# Corresponds to the JSON property `startIndex`
# @return [Fixnum]
attr_accessor :start_index
@@ -3463,8 +3458,7 @@ module Google
class Range
include Google::Apis::Core::Hashable
# The zero-based end index of this range, exclusive, in Unicode code units of
# the UTF-16 encoding.
# The zero-based end index of this range, exclusive, in UTF-16 code units.
# In all current uses, an end index must be provided. This field is an
# Int32Value in order to accommodate future use cases with open-ended ranges.
# Corresponds to the JSON property `endIndex`
@@ -3477,8 +3471,7 @@ module Google
# @return [String]
attr_accessor :segment_id
# The zero-based start index of this range, in Unicode code units of the
# UTF-16 encoding.
# The zero-based start index of this range, in UTF-16 code units.
# In all current uses, a start index must be provided. This field is an
# Int32Value in order to accommodate future use cases with open-ended ranges.
# Corresponds to the JSON property `startIndex`
@@ -3974,11 +3967,8 @@ module Google
class StructuralElement
include Google::Apis::Core::Hashable
# The zero-based end index of this structural element, exclusive, in Unicode
# code units of the UTF-16 encoding.
# Unicode code units of the UTF-16 encoding means that surrogate pairs
# consume two indexes. For example, the "GRINNING FACE" emoji would be
# represented as "\uD83D\uDE00" and would consume two indexes.
# The zero-based end index of this structural element, exclusive, in UTF-16
# code units.
# Corresponds to the JSON property `endIndex`
# @return [Fixnum]
attr_accessor :end_index
@@ -4000,11 +3990,8 @@ module Google
# @return [Google::Apis::DocsV1::SectionBreak]
attr_accessor :section_break
# The zero-based start index of this structural element, in Unicode code
# units of the UTF-16 encoding.
# Unicode code units of the UTF-16 encoding means that surrogate pairs
# consume two indexes. For example, the "GRINNING FACE" emoji would be
# represented as "\uD83D\uDE00" and would consume two indexes.
# The zero-based start index of this structural element, in UTF-16 code
# units.
# Corresponds to the JSON property `startIndex`
# @return [Fixnum]
attr_accessor :start_index
@@ -4457,20 +4444,12 @@ module Google
# @return [Array<Google::Apis::DocsV1::StructuralElement>]
attr_accessor :content
# The zero-based end index of this cell, exclusive, in Unicode code units of
# the UTF-16 encoding.
# Unicode code units of the UTF-16 encoding means that surrogate pairs
# consume two indexes. For example, the "GRINNING FACE" emoji would be
# represented as "\uD83D\uDE00" and would consume two indexes.
# The zero-based end index of this cell, exclusive, in UTF-16 code units.
# Corresponds to the JSON property `endIndex`
# @return [Fixnum]
attr_accessor :end_index
# The zero-based start index of this cell, in Unicode code units of the
# UTF-16 encoding.
# Unicode code units of the UTF-16 encoding means that surrogate pairs
# consume two indexes. For example, the "GRINNING FACE" emoji would be
# represented as "\uD83D\uDE00" and would consume two indexes.
# The zero-based start index of this cell, in UTF-16 code units.
# Corresponds to the JSON property `startIndex`
# @return [Fixnum]
attr_accessor :start_index
@@ -4832,20 +4811,12 @@ module Google
class TableRow
include Google::Apis::Core::Hashable
# The zero-based end index of this row, exclusive, in Unicode code units of
# the UTF-16 encoding.
# Unicode code units of the UTF-16 encoding means that surrogate pairs
# consume two indexes. For example, the "GRINNING FACE" emoji would be
# represented as "\uD83D\uDE00" and would consume two indexes.
# The zero-based end index of this row, exclusive, in UTF-16 code units.
# Corresponds to the JSON property `endIndex`
# @return [Fixnum]
attr_accessor :end_index
# The zero-based start index of this row, in Unicode code units of the UTF-16
# encoding.
# Unicode code units of the UTF-16 encoding means that surrogate pairs
# consume two indexes. For example, the "GRINNING FACE" emoji would be
# represented as "\uD83D\uDE00" and would consume two indexes.
# The zero-based start index of this row, in UTF-16 code units.
# Corresponds to the JSON property `startIndex`
# @return [Fixnum]
attr_accessor :start_index
@@ -25,7 +25,7 @@ module Google
# @see https://firebase.google.com/docs/dynamic-links/
module FirebasedynamiclinksV1
VERSION = 'V1'
REVISION = '20190105'
REVISION = '20190211'
# View and administer all your Firebase data and settings
AUTH_FIREBASE = 'https://www.googleapis.com/auth/firebase'
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/fit/rest/
module FitnessV1
VERSION = 'V1'
REVISION = '20190109'
REVISION = '20190218'
# View your activity information in Google Fit
AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read'
@@ -387,6 +387,9 @@ module Google
# If the data point is contained in a dataset for a derived data source, this
# field will be populated with the data source stream ID that created the data
# point originally.
# WARNING: do not rely on this field for anything other than debugging. The
# value of this field, if it is set at all, is an implementation detail and is
# not guaranteed to remain consistent.
# Corresponds to the JSON property `originDataSourceId`
# @return [String]
attr_accessor :origin_data_source_id
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/genomics
module GenomicsV1
VERSION = 'V1'
REVISION = '20181017'
REVISION = '20190212'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
+1 -2
View File
@@ -1038,8 +1038,7 @@ module Google
# * `projectId = my-project AND labels.color = *`
# * `projectId = my-project AND labels.color = red`
# @param [Fixnum] page_size
# The maximum number of results to return. If unspecified, defaults to
# 256. The maximum value is 2048.
# The maximum number of results to return. The maximum value is 256.
# @param [String] page_token
# The standard list page token.
# @param [String] fields
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/genomics
module GenomicsV1alpha2
VERSION = 'V1alpha2'
REVISION = '20181017'
REVISION = '20190212'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -157,8 +157,7 @@ module Google
# * `projectId = my-project AND labels.color = *`
# * `projectId = my-project AND labels.color = red`
# @param [Fixnum] page_size
# The maximum number of results to return. If unspecified, defaults to
# 256. The maximum value is 2048.
# The maximum number of results to return. The maximum value is 256.
# @param [String] page_token
# The standard list page token.
# @param [String] fields
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/genomics
module GenomicsV2alpha1
VERSION = 'V2alpha1'
REVISION = '20181120'
REVISION = '20190212'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -141,8 +141,9 @@ module Google
# @return [String]
attr_accessor :name
# The PID namespace to run the action inside. If unspecified, a separate
# isolated namespace is used.
# An optional identifier for a PID namespace to run the action inside.
# Multiple actions should use the same string to share a namespace. If
# unspecified, a separate isolated namespace is used.
# Corresponds to the JSON property `pidNamespace`
# @return [String]
attr_accessor :pid_namespace
@@ -197,8 +197,7 @@ module Google
# * `projectId = my-project AND labels.color = *`
# * `projectId = my-project AND labels.color = red`
# @param [Fixnum] page_size
# The maximum number of results to return. If unspecified, defaults to
# 256. The maximum value is 2048.
# The maximum number of results to return. The maximum value is 256.
# @param [String] page_token
# The standard list page token.
# @param [String] fields
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/talent-solution/job-search/docs/
module JobsV3p1beta1
VERSION = 'V3p1beta1'
REVISION = '20190123'
REVISION = '20190212'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
+1 -1
View File
@@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/monitoring/api/
module MonitoringV3
VERSION = 'V3'
REVISION = '20190122'
REVISION = '20190204'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -339,6 +339,10 @@ module Google
# @param [String] name
# The group to delete. The format is "projects/`project_id_or_number`/groups/`
# group_id`".
# @param [Boolean] recursive
# If this field is true, then the request means to delete a group with all its
# descendants. Otherwise, the request means to delete a group only when it has
# no descendants. The default value is false.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -356,11 +360,12 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_group(name, fields: nil, quota_user: nil, options: nil, &block)
def delete_project_group(name, recursive: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v3/{+name}', options)
command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
command.response_class = Google::Apis::MonitoringV3::Empty
command.params['name'] = name unless name.nil?
command.query['recursive'] = recursive unless recursive.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/remote-build-execution/docs/
module RemotebuildexecutionV1
VERSION = 'V1'
REVISION = '20190122'
REVISION = '20190205'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1576,7 +1576,7 @@ module Google
# ID of the created instance.
# A valid `instance_id` must:
# be 6-50 characters long,
# contains only lowercase letters, digits, hyphens and underscores,
# contain only lowercase letters, digits, hyphens and underscores,
# start with a lowercase letter, and
# end with a lowercase letter or a digit.
# Corresponds to the JSON property `instanceId`
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/remote-build-execution/docs/
module RemotebuildexecutionV1alpha
VERSION = 'V1alpha'
REVISION = '20190122'
REVISION = '20190205'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1557,7 +1557,7 @@ module Google
# ID of the created instance.
# A valid `instance_id` must:
# be 6-50 characters long,
# contains only lowercase letters, digits, hyphens and underscores,
# contain only lowercase letters, digits, hyphens and underscores,
# start with a lowercase letter, and
# end with a lowercase letter or a digit.
# Corresponds to the JSON property `instanceId`
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/remote-build-execution/docs/
module RemotebuildexecutionV2
VERSION = 'V2'
REVISION = '20190122'
REVISION = '20190205'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -2310,7 +2310,7 @@ module Google
# ID of the created instance.
# A valid `instance_id` must:
# be 6-50 characters long,
# contains only lowercase letters, digits, hyphens and underscores,
# contain only lowercase letters, digits, hyphens and underscores,
# start with a lowercase letter, and
# end with a lowercase letter or a digit.
# Corresponds to the JSON property `instanceId`
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/service-consumer-management/docs/overview
module ServiceconsumermanagementV1
VERSION = 'V1'
REVISION = '20190131'
REVISION = '20190209'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1256,7 +1256,7 @@ module Google
class Http
include Google::Apis::Core::Hashable
# When set to true, URL path parmeters will be fully URI-decoded except in
# When set to true, URL path parameters will be fully URI-decoded except in
# cases of single segment matches in reserved expansion, where "%2F" will be
# left encoded.
# The default behavior is to not decode RFC 6570 reserved characters in multi
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-control/
module ServicecontrolV1
VERSION = 'V1'
REVISION = '20190128'
REVISION = '20190211'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1298,10 +1298,13 @@ module Google
# This field should be filled in for the operations initiated by a
# consumer, but not for service-initiated operations that are
# not related to a specific consumer.
# This can be in one of the following formats:
# project:<project_id>,
# project_number:<project_number>,
# api_key:<api_key>.
# - This can be in one of the following formats:
# - project:PROJECT_ID,
# - project`_`number:PROJECT_NUMBER,
# - projects/RPOJECT_ID or PROJECT_NUMBER,
# - folders/FOLDER_NUMBER,
# - organizations/ORGANIZATION_NUMBER,
# - api`_`key:API_KEY.
# Corresponds to the JSON property `consumerId`
# @return [String]
attr_accessor :consumer_id
@@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-management/
module ServicemanagementV1
VERSION = 'V1'
REVISION = '20190112'
REVISION = '20190208'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1661,7 +1661,7 @@ module Google
class Http
include Google::Apis::Core::Hashable
# When set to true, URL path parmeters will be fully URI-decoded except in
# When set to true, URL path parameters will be fully URI-decoded except in
# cases of single segment matches in reserved expansion, where "%2F" will be
# left encoded.
# The default behavior is to not decode RFC 6570 reserved characters in multi
@@ -439,7 +439,8 @@ module Google
# forms:
# - project:<project_id>
# @param [Fixnum] page_size
# Requested size of the next page of data.
# The max number of items to include in the response list. Page size is 50
# if not specified. Maximum value is 100.
# @param [String] page_token
# Token identifying which result to start with; returned by a previous list
# call.
@@ -670,7 +671,8 @@ module Google
# The name of the service. See the [overview](/service-management/overview)
# for naming requirements. For example: `example.googleapis.com`.
# @param [Fixnum] page_size
# The max number of items to include in the response list.
# The max number of items to include in the response list. Page size is 50
# if not specified. Maximum value is 100.
# @param [String] page_token
# The token of the page to retrieve.
# @param [String] fields
@@ -949,7 +951,8 @@ module Google
# [status](google.api.servicemanagement.v1.RolloutStatus) 'CANCELLED'
# or 'FAILED', use filter='status=CANCELLED OR status=FAILED'
# @param [Fixnum] page_size
# The max number of items to include in the response list.
# The max number of items to include in the response list. Page size is 50
# if not specified. Maximum value is 100.
# @param [String] page_token
# The token of the page to retrieve.
# @param [String] fields
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
module ServicenetworkingV1beta
VERSION = 'V1beta'
REVISION = '20190124'
REVISION = '20190209'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1260,7 +1260,7 @@ module Google
class Http
include Google::Apis::Core::Hashable
# When set to true, URL path parmeters will be fully URI-decoded except in
# When set to true, URL path parameters will be fully URI-decoded except in
# cases of single segment matches in reserved expansion, where "%2F" will be
# left encoded.
# The default behavior is to not decode RFC 6570 reserved characters in multi
+1 -1
View File
@@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-usage/
module ServiceusageV1
VERSION = 'V1'
REVISION = '20190115'
REVISION = '20190209'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1952,7 +1952,7 @@ module Google
class Http
include Google::Apis::Core::Hashable
# When set to true, URL path parmeters will be fully URI-decoded except in
# When set to true, URL path parameters will be fully URI-decoded except in
# cases of single segment matches in reserved expansion, where "%2F" will be
# left encoded.
# The default behavior is to not decode RFC 6570 reserved characters in multi
@@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-usage/
module ServiceusageV1beta1
VERSION = 'V1beta1'
REVISION = '20190109'
REVISION = '20190209'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1928,7 +1928,7 @@ module Google
class Http
include Google::Apis::Core::Hashable
# When set to true, URL path parmeters will be fully URI-decoded except in
# When set to true, URL path parameters will be fully URI-decoded except in
# cases of single segment matches in reserved expansion, where "%2F" will be
# left encoded.
# The default behavior is to not decode RFC 6570 reserved characters in multi
Loaded 100 of 130 files, more files were not shown because too many files have changed in this diff. Show more