Autogenerated update (2020-01-17)

Update:
- cloudasset_v1
- cloudasset_v1beta1
- cloudfunctions_v1
- dataproc_v1
- logging_v2
- run_v1beta1
- servicemanagement_v1
This commit is contained in:
Google APIs 2020-01-17 00:37:24 +00:00
parent 9449867bbe
commit abd177aded
18 changed files with 379 additions and 16 deletions

View File

@ -22,10 +22,10 @@ module Google
#
# The cloud asset API manages the history and inventory of cloud resources.
#
# @see https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory
# @see https://cloud.google.com/asset-inventory/docs/quickstart
module CloudassetV1
VERSION = 'V1'
REVISION = '20191207'
REVISION = '20200110'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -575,11 +575,10 @@ module Google
# A list of types of the assets to receive updates. You must specify either
# or both of asset_names and asset_types. Only asset updates matching
# specified asset_names and asset_types are exported to the feed.
# For example:
# "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
# Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-
# inventory/overview)
# for all supported asset types.
# For example: `"compute.googleapis.com/Disk"`
# See [this
# topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
# for a list of all supported asset types.
# Corresponds to the JSON property `assetTypes`
# @return [Array<String>]
attr_accessor :asset_types
@ -1027,6 +1026,13 @@ module Google
# @return [String]
attr_accessor :create_time
# `CustomLevel` is an `AccessLevel` using the Cloud Common Expression Language
# to represent the necessary conditions for the level to apply to a request.
# See CEL spec at: https://github.com/google/cel-spec
# Corresponds to the JSON property `custom`
# @return [Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1CustomLevel]
attr_accessor :custom
# Description of the `AccessLevel` and its use. Does not affect behavior.
# Corresponds to the JSON property `description`
# @return [String]
@ -1057,6 +1063,7 @@ module Google
def update!(**args)
@basic = args[:basic] if args.key?(:basic)
@create_time = args[:create_time] if args.key?(:create_time)
@custom = args[:custom] if args.key?(:custom)
@description = args[:description] if args.key?(:description)
@name = args[:name] if args.key?(:name)
@title = args[:title] if args.key?(:title)
@ -1224,6 +1231,30 @@ module Google
end
end
# `CustomLevel` is an `AccessLevel` using the Cloud Common Expression Language
# to represent the necessary conditions for the level to apply to a request.
# See CEL spec at: https://github.com/google/cel-spec
class GoogleIdentityAccesscontextmanagerV1CustomLevel
include Google::Apis::Core::Hashable
# Represents an expression text. Example:
# title: "User account presence"
# description: "Determines whether the request has a user account"
# expression: "size(request.user) > 0"
# Corresponds to the JSON property `expr`
# @return [Google::Apis::CloudassetV1::Expr]
attr_accessor :expr
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@expr = args[:expr] if args.key?(:expr)
end
end
# `DevicePolicy` specifies device specific restrictions necessary to acquire a
# given access level. A `DevicePolicy` specifies requirements for requests from
# devices to be granted access levels, it does not do any enforcement on the

View File

@ -148,6 +148,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIdentityAccesscontextmanagerV1CustomLevel
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIdentityAccesscontextmanagerV1DevicePolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -407,6 +413,8 @@ module Google
property :basic, as: 'basic', class: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1BasicLevel, decorator: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1BasicLevel::Representation
property :create_time, as: 'createTime'
property :custom, as: 'custom', class: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1CustomLevel, decorator: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1CustomLevel::Representation
property :description, as: 'description'
property :name, as: 'name'
property :title, as: 'title'
@ -447,6 +455,14 @@ module Google
end
end
class GoogleIdentityAccesscontextmanagerV1CustomLevel
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :expr, as: 'expr', class: Google::Apis::CloudassetV1::Expr, decorator: Google::Apis::CloudassetV1::Expr::Representation
end
end
class GoogleIdentityAccesscontextmanagerV1DevicePolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -30,7 +30,7 @@ module Google
# Cloudasset = Google::Apis::CloudassetV1 # Alias the module
# service = Cloudasset::CloudAssetService.new
#
# @see https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory
# @see https://cloud.google.com/asset-inventory/docs/quickstart
class CloudAssetService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,

View File

@ -22,10 +22,10 @@ module Google
#
# The cloud asset API manages the history and inventory of cloud resources.
#
# @see https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory
# @see https://cloud.google.com/asset-inventory/docs/quickstart
module CloudassetV1beta1
VERSION = 'V1beta1'
REVISION = '20191130'
REVISION = '20200110'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -30,7 +30,7 @@ module Google
# Cloudasset = Google::Apis::CloudassetV1beta1 # Alias the module
# service = Cloudasset::CloudAssetService.new
#
# @see https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory
# @see https://cloud.google.com/asset-inventory/docs/quickstart
class CloudAssetService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,

View File

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

View File

@ -297,6 +297,12 @@ module Google
# @return [Google::Apis::CloudfunctionsV1::HttpsTrigger]
attr_accessor :https_trigger
# The ingress settings for the function, controlling what traffic can reach
# it.
# Corresponds to the JSON property `ingressSettings`
# @return [String]
attr_accessor :ingress_settings
# Labels associated with this Cloud Function.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
@ -399,6 +405,12 @@ module Google
# @return [String]
attr_accessor :vpc_connector
# The egress settings for the connector, controlling what traffic is diverted
# through it.
# Corresponds to the JSON property `vpcConnectorEgressSettings`
# @return [String]
attr_accessor :vpc_connector_egress_settings
def initialize(**args)
update!(**args)
end
@ -411,6 +423,7 @@ module Google
@environment_variables = args[:environment_variables] if args.key?(:environment_variables)
@event_trigger = args[:event_trigger] if args.key?(:event_trigger)
@https_trigger = args[:https_trigger] if args.key?(:https_trigger)
@ingress_settings = args[:ingress_settings] if args.key?(:ingress_settings)
@labels = args[:labels] if args.key?(:labels)
@max_instances = args[:max_instances] if args.key?(:max_instances)
@name = args[:name] if args.key?(:name)
@ -425,6 +438,7 @@ module Google
@update_time = args[:update_time] if args.key?(:update_time)
@version_id = args[:version_id] if args.key?(:version_id)
@vpc_connector = args[:vpc_connector] if args.key?(:vpc_connector)
@vpc_connector_egress_settings = args[:vpc_connector_egress_settings] if args.key?(:vpc_connector_egress_settings)
end
end

View File

@ -244,6 +244,7 @@ module Google
property :https_trigger, as: 'httpsTrigger', class: Google::Apis::CloudfunctionsV1::HttpsTrigger, decorator: Google::Apis::CloudfunctionsV1::HttpsTrigger::Representation
property :ingress_settings, as: 'ingressSettings'
hash :labels, as: 'labels'
property :max_instances, as: 'maxInstances'
property :name, as: 'name'
@ -259,6 +260,7 @@ module Google
property :update_time, as: 'updateTime'
property :version_id, :numeric_string => true, as: 'versionId'
property :vpc_connector, as: 'vpcConnector'
property :vpc_connector_egress_settings, as: 'vpcConnectorEgressSettings'
end
end

View File

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

View File

@ -29,7 +29,7 @@ module Google
# @see https://cloud.google.com/logging/docs/
module LoggingV2
VERSION = 'V2'
REVISION = '20191214'
REVISION = '20200113'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -104,6 +104,58 @@ module Google
end
end
# Describes the customer-managed encryption key (CMEK) settings associated with
# a project, folder, organization, billing account, or flexible resource.Note:
# CMEK for the Logs Router can currently only be configured for GCP
# organizations. Once configured, it applies to all projects and folders in the
# GCP organization.See Enabling CMEK for Logs Router for more information.
class CmekSettings
include Google::Apis::Core::Hashable
# The resource name for the configured Cloud KMS key.KMS key name format: "
# projects/PROJECT_ID/locations/LOCATION/keyRings/KEYRING/cryptoKeys/KEY"For
# example: "projects/my-project-id/locations/my-region/keyRings/key-ring-name/
# cryptoKeys/key-name"To enable CMEK for the Logs Router, set this field to a
# valid kms_key_name for which the associated service account has the required
# roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key.The Cloud
# KMS key used by the Log Router can be updated by changing the kms_key_name to
# a new valid key name. Encryption operations that are in progress will be
# completed with the key that was in use when they started. Decryption
# operations will be completed using the key that was used at the time of
# encryption unless access to that key has been revoked.To disable CMEK for the
# Logs Router, set this field to an empty string.See Enabling CMEK for Logs
# Router for more information.
# Corresponds to the JSON property `kmsKeyName`
# @return [String]
attr_accessor :kms_key_name
# Output Only. The resource name of the CMEK settings.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output Only. The service account that will be used by the Logs Router to
# access your Cloud KMS key.Before enabling CMEK for Logs Router, you must first
# assign the role roles/cloudkms.cryptoKeyEncrypterDecrypter to the service
# account that the Logs Router will use to access your Cloud KMS key. Use
# GetCmekSettings to obtain the service account ID.See Enabling CMEK for Logs
# Router for more information.
# Corresponds to the JSON property `serviceAccountId`
# @return [String]
attr_accessor :service_account_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
@name = args[:name] if args.key?(:name)
@service_account_id = args[:service_account_id] if args.key?(:service_account_id)
end
end
# A generic empty message that you can re-use to avoid defining duplicated empty
# messages in your APIs. A typical example is to use it as the request or the
# response type of an API method. For instance:
@ -1302,6 +1354,43 @@ module Google
# @return [String]
attr_accessor :type
# The units in which the metric value is reported. It is only applicable if the
# value_type is INT64, DOUBLE, or DISTRIBUTION. The unit defines the
# representation of the stored metric values.Different systems may scale the
# values to be more easily displayed (so a value of 0.02KBy might be displayed
# as 20By, and a value of 3523KBy might be displayed as 3.5MBy). However, if the
# unit is KBy, then the value of the metric is always in thousands of bytes, no
# matter how it may be displayed..If you want a custom metric to record the
# exact number of CPU-seconds used by a job, you can create an INT64 CUMULATIVE
# metric whose unit is s`CPU` (or equivalently 1s`CPU` or just s). If the job
# uses 12,005 CPU-seconds, then the value is written as 12005.Alternatively, if
# you want a custom metric to record data in a more granular way, you can create
# a DOUBLE CUMULATIVE metric whose unit is ks`CPU`, and then write the value 12.
# 005 (which is 12005/1000), or use Kis`CPU` and write 11.723 (which is 12005/
# 1024).The supported units are a subset of The Unified Code for Units of
# Measure (http://unitsofmeasure.org/ucum.html) standard:Basic units (UNIT)
# bit bit
# By byte
# s second
# min minute
# h hour
# d dayPrefixes (PREFIX)
# k kilo (10^3)
# M mega (10^6)
# G giga (10^9)
# T tera (10^12)
# P peta (10^15)
# E exa (10^18)
# Z zetta (10^21)
# Y yotta (10^24)
# m milli (10^-3)
# u micro (10^-6)
# n nano (10^-9)
# p pico (10^-12)
# f femto (10^-15)
# a atto (10^-18)
# z zepto (10^-21)
# y yocto (10^-24)
# Ki kibi (2^10)
# Mi mebi (2^20)
# Gi gibi (2^30)

View File

@ -34,6 +34,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class CmekSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -233,6 +239,15 @@ module Google
end
end
class CmekSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kms_key_name, as: 'kmsKeyName'
property :name, as: 'name'
property :service_account_id, as: 'serviceAccountId'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -1602,6 +1602,98 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the Logs Router CMEK settings for the given resource.Note: CMEK for the
# Logs Router can currently only be configured for GCP organizations. Once
# configured, it applies to all projects and folders in the GCP organization.See
# Enabling CMEK for Logs Router for more information.
# @param [String] name
# Required. The resource for which to retrieve CMEK settings.
# "projects/[PROJECT_ID]/cmekSettings"
# "organizations/[ORGANIZATION_ID]/cmekSettings"
# "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
# "folders/[FOLDER_ID]/cmekSettings"
# Example: "organizations/12345/cmekSettings".Note: CMEK for the Logs Router can
# currently only be configured for GCP organizations. Once configured, it
# applies to all projects and folders in the GCP organization.
# @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::LoggingV2::CmekSettings] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2::CmekSettings]
#
# @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_organization_cmek_settings(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+name}/cmekSettings', options)
command.response_representation = Google::Apis::LoggingV2::CmekSettings::Representation
command.response_class = Google::Apis::LoggingV2::CmekSettings
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
# Updates the Logs Router CMEK settings for the given resource.Note: CMEK for
# the Logs Router can currently only be configured for GCP organizations. Once
# configured, it applies to all projects and folders in the GCP organization.
# UpdateCmekSettings will fail if 1) kms_key_name is invalid, or 2) the
# associated service account does not have the required roles/cloudkms.
# cryptoKeyEncrypterDecrypter role assigned for the key, or 3) access to the key
# is disabled.See Enabling CMEK for Logs Router for more information.
# @param [String] name
# Required. The resource name for the CMEK settings to update.
# "projects/[PROJECT_ID]/cmekSettings"
# "organizations/[ORGANIZATION_ID]/cmekSettings"
# "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
# "folders/[FOLDER_ID]/cmekSettings"
# Example: "organizations/12345/cmekSettings".Note: CMEK for the Logs Router can
# currently only be configured for GCP organizations. Once configured, it
# applies to all projects and folders in the GCP organization.
# @param [Google::Apis::LoggingV2::CmekSettings] cmek_settings_object
# @param [String] update_mask
# Optional. Field mask identifying which fields from cmek_settings should be
# updated. A field will be overwritten if and only if it is in the update mask.
# Output only fields cannot be updated.See FieldMask for more information.
# Example: "updateMask=kmsKeyName"
# @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::LoggingV2::CmekSettings] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2::CmekSettings]
#
# @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_organization_cmek_settings(name, cmek_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v2/{+name}/cmekSettings', options)
command.request_representation = Google::Apis::LoggingV2::CmekSettings::Representation
command.request_object = cmek_settings_object
command.response_representation = Google::Apis::LoggingV2::CmekSettings::Representation
command.response_class = Google::Apis::LoggingV2::CmekSettings
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a new exclusion in a specified parent resource. Only log entries
# belonging to that resource can be excluded. You can have up to 10 exclusions
# in a resource.
@ -3168,6 +3260,98 @@ module Google
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the Logs Router CMEK settings for the given resource.Note: CMEK for the
# Logs Router can currently only be configured for GCP organizations. Once
# configured, it applies to all projects and folders in the GCP organization.See
# Enabling CMEK for Logs Router for more information.
# @param [String] name
# Required. The resource for which to retrieve CMEK settings.
# "projects/[PROJECT_ID]/cmekSettings"
# "organizations/[ORGANIZATION_ID]/cmekSettings"
# "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
# "folders/[FOLDER_ID]/cmekSettings"
# Example: "organizations/12345/cmekSettings".Note: CMEK for the Logs Router can
# currently only be configured for GCP organizations. Once configured, it
# applies to all projects and folders in the GCP organization.
# @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::LoggingV2::CmekSettings] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2::CmekSettings]
#
# @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_cmek_settings(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+name}/cmekSettings', options)
command.response_representation = Google::Apis::LoggingV2::CmekSettings::Representation
command.response_class = Google::Apis::LoggingV2::CmekSettings
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
# Updates the Logs Router CMEK settings for the given resource.Note: CMEK for
# the Logs Router can currently only be configured for GCP organizations. Once
# configured, it applies to all projects and folders in the GCP organization.
# UpdateCmekSettings will fail if 1) kms_key_name is invalid, or 2) the
# associated service account does not have the required roles/cloudkms.
# cryptoKeyEncrypterDecrypter role assigned for the key, or 3) access to the key
# is disabled.See Enabling CMEK for Logs Router for more information.
# @param [String] name
# Required. The resource name for the CMEK settings to update.
# "projects/[PROJECT_ID]/cmekSettings"
# "organizations/[ORGANIZATION_ID]/cmekSettings"
# "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
# "folders/[FOLDER_ID]/cmekSettings"
# Example: "organizations/12345/cmekSettings".Note: CMEK for the Logs Router can
# currently only be configured for GCP organizations. Once configured, it
# applies to all projects and folders in the GCP organization.
# @param [Google::Apis::LoggingV2::CmekSettings] cmek_settings_object
# @param [String] update_mask
# Optional. Field mask identifying which fields from cmek_settings should be
# updated. A field will be overwritten if and only if it is in the update mask.
# Output only fields cannot be updated.See FieldMask for more information.
# Example: "updateMask=kmsKeyName"
# @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::LoggingV2::CmekSettings] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2::CmekSettings]
#
# @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_cmek_settings(name, cmek_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v2/{+name}/cmekSettings', options)
command.request_representation = Google::Apis::LoggingV2::CmekSettings::Representation
command.request_object = cmek_settings_object
command.response_representation = Google::Apis::LoggingV2::CmekSettings::Representation
command.response_class = Google::Apis::LoggingV2::CmekSettings
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected

View File

@ -26,7 +26,10 @@ module Google
# @see https://cloud.google.com/run/
module RunV1beta1
VERSION = 'V1beta1'
REVISION = '20191216'
REVISION = '20200110'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end

View File

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

View File

@ -1993,6 +1993,13 @@ module Google
# @return [Array<Google::Apis::ServicemanagementV1::HttpRule>]
attr_accessor :additional_bindings
# When this flag is set to true, HTTP requests will be allowed to invoke a
# half-duplex streaming method.
# Corresponds to the JSON property `allowHalfDuplex`
# @return [Boolean]
attr_accessor :allow_half_duplex
alias_method :allow_half_duplex?, :allow_half_duplex
# The name of the request field whose value is mapped to the HTTP request
# body, or `*` for mapping all request fields not captured by the path
# pattern to the HTTP body, or omitted for not having any HTTP request body.
@ -2055,6 +2062,7 @@ module Google
# Update properties of this object
def update!(**args)
@additional_bindings = args[:additional_bindings] if args.key?(:additional_bindings)
@allow_half_duplex = args[:allow_half_duplex] if args.key?(:allow_half_duplex)
@body = args[:body] if args.key?(:body)
@custom = args[:custom] if args.key?(:custom)
@delete = args[:delete] if args.key?(:delete)

View File

@ -959,6 +959,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
collection :additional_bindings, as: 'additionalBindings', class: Google::Apis::ServicemanagementV1::HttpRule, decorator: Google::Apis::ServicemanagementV1::HttpRule::Representation
property :allow_half_duplex, as: 'allowHalfDuplex'
property :body, as: 'body'
property :custom, as: 'custom', class: Google::Apis::ServicemanagementV1::CustomHttpPattern, decorator: Google::Apis::ServicemanagementV1::CustomHttpPattern::Representation