Autogenerated update (2020-05-16)

Update:
- bigtableadmin_v1
- bigtableadmin_v2
- composer_v1beta1
- compute_alpha
- compute_beta
- compute_v1
- datacatalog_v1beta1
- file_v1
- file_v1beta1
- ml_v1
- servicecontrol_v1
This commit is contained in:
Google APIs 2020-05-16 00:38:15 +00:00
parent 6d2a0f481f
commit 4ce317260b
33 changed files with 5323 additions and 1473 deletions

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigtable/ # @see https://cloud.google.com/bigtable/
module BigtableadminV1 module BigtableadminV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200211' REVISION = '20200424'
end end
end end
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigtable/ # @see https://cloud.google.com/bigtable/
module BigtableadminV2 module BigtableadminV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20200211' REVISION = '20200424'
# Administer your Cloud Bigtable tables and clusters # Administer your Cloud Bigtable tables and clusters
AUTH_BIGTABLE_ADMIN = 'https://www.googleapis.com/auth/bigtable.admin' AUTH_BIGTABLE_ADMIN = 'https://www.googleapis.com/auth/bigtable.admin'

View File

@ -883,7 +883,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the access control policy for a Table or Backup resource. # Gets the access control policy for a Table resource.
# Returns an empty policy if the resource exists but does not have a policy # Returns an empty policy if the resource exists but does not have a policy
# set. # set.
# @param [String] resource # @param [String] resource
@ -919,7 +919,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Sets the access control policy on a Table or Backup resource. # Sets the access control policy on a Table resource.
# Replaces any existing policy. # Replaces any existing policy.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified.
@ -1205,7 +1205,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the access control policy for a Table or Backup resource. # Gets the access control policy for a Table resource.
# Returns an empty policy if the resource exists but does not have a policy # Returns an empty policy if the resource exists but does not have a policy
# set. # set.
# @param [String] resource # @param [String] resource
@ -1326,7 +1326,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Sets the access control policy on a Table or Backup resource. # Sets the access control policy on a Table resource.
# Replaces any existing policy. # Replaces any existing policy.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/composer/ # @see https://cloud.google.com/composer/
module ComposerV1beta1 module ComposerV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200421' REVISION = '20200505'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -53,6 +53,27 @@ module Google
end end
end end
# The configuration of Cloud SQL instance that is used by the Apache Airflow
# software.
class DatabaseConfig
include Google::Apis::Core::Hashable
# Optional. Cloud SQL tier used by Airflow database.
# If not specified, db-n1-standard-2 will be used.
# Corresponds to the JSON property `machineType`
# @return [String]
attr_accessor :machine_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@machine_type = args[:machine_type] if args.key?(:machine_type)
end
end
# A generic empty message that you can re-use to avoid defining duplicated # 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 # 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: # or the response type of an API method. For instance:
@ -159,6 +180,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :dag_gcs_prefix attr_accessor :dag_gcs_prefix
# The configuration of Cloud SQL instance that is used by the Apache Airflow
# software.
# Corresponds to the JSON property `databaseConfig`
# @return [Google::Apis::ComposerV1beta1::DatabaseConfig]
attr_accessor :database_config
# Output only. The Kubernetes Engine cluster used to run this environment. # Output only. The Kubernetes Engine cluster used to run this environment.
# Corresponds to the JSON property `gkeCluster` # Corresponds to the JSON property `gkeCluster`
# @return [String] # @return [String]
@ -187,6 +214,11 @@ module Google
# @return [Google::Apis::ComposerV1beta1::SoftwareConfig] # @return [Google::Apis::ComposerV1beta1::SoftwareConfig]
attr_accessor :software_config attr_accessor :software_config
# The configuration settings for the Airflow web server App Engine instance.
# Corresponds to the JSON property `webServerConfig`
# @return [Google::Apis::ComposerV1beta1::WebServerConfig]
attr_accessor :web_server_config
# Network-level access control policy for the Airflow web server. # Network-level access control policy for the Airflow web server.
# Corresponds to the JSON property `webServerNetworkAccessControl` # Corresponds to the JSON property `webServerNetworkAccessControl`
# @return [Google::Apis::ComposerV1beta1::WebServerNetworkAccessControl] # @return [Google::Apis::ComposerV1beta1::WebServerNetworkAccessControl]
@ -200,11 +232,13 @@ module Google
def update!(**args) def update!(**args)
@airflow_uri = args[:airflow_uri] if args.key?(:airflow_uri) @airflow_uri = args[:airflow_uri] if args.key?(:airflow_uri)
@dag_gcs_prefix = args[:dag_gcs_prefix] if args.key?(:dag_gcs_prefix) @dag_gcs_prefix = args[:dag_gcs_prefix] if args.key?(:dag_gcs_prefix)
@database_config = args[:database_config] if args.key?(:database_config)
@gke_cluster = args[:gke_cluster] if args.key?(:gke_cluster) @gke_cluster = args[:gke_cluster] if args.key?(:gke_cluster)
@node_config = args[:node_config] if args.key?(:node_config) @node_config = args[:node_config] if args.key?(:node_config)
@node_count = args[:node_count] if args.key?(:node_count) @node_count = args[:node_count] if args.key?(:node_count)
@private_environment_config = args[:private_environment_config] if args.key?(:private_environment_config) @private_environment_config = args[:private_environment_config] if args.key?(:private_environment_config)
@software_config = args[:software_config] if args.key?(:software_config) @software_config = args[:software_config] if args.key?(:software_config)
@web_server_config = args[:web_server_config] if args.key?(:web_server_config)
@web_server_network_access_control = args[:web_server_network_access_control] if args.key?(:web_server_network_access_control) @web_server_network_access_control = args[:web_server_network_access_control] if args.key?(:web_server_network_access_control)
end end
end end
@ -863,6 +897,30 @@ module Google
end end
end end
# The configuration settings for the Airflow web server App Engine instance.
class WebServerConfig
include Google::Apis::Core::Hashable
# Optional. Machine type on which Airflow web server is running.
# For example: composer-n1-webserver-2, composer-n1-webserver-4,
# composer-n1-webserver-8.
# If not specified, composer-n1-webserver-2 will be used.
# Value custom is returned only in response, if Airflow web server parameters
# were manually changed to a non-standard values.
# Corresponds to the JSON property `machineType`
# @return [String]
attr_accessor :machine_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@machine_type = args[:machine_type] if args.key?(:machine_type)
end
end
# Network-level access control policy for the Airflow web server. # Network-level access control policy for the Airflow web server.
class WebServerNetworkAccessControl class WebServerNetworkAccessControl
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -28,6 +28,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class DatabaseConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -118,6 +124,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class WebServerConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WebServerNetworkAccessControl class WebServerNetworkAccessControl
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -132,6 +144,13 @@ module Google
end end
end end
class DatabaseConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :machine_type, as: 'machineType'
end
end
class Empty class Empty
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -157,6 +176,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :airflow_uri, as: 'airflowUri' property :airflow_uri, as: 'airflowUri'
property :dag_gcs_prefix, as: 'dagGcsPrefix' property :dag_gcs_prefix, as: 'dagGcsPrefix'
property :database_config, as: 'databaseConfig', class: Google::Apis::ComposerV1beta1::DatabaseConfig, decorator: Google::Apis::ComposerV1beta1::DatabaseConfig::Representation
property :gke_cluster, as: 'gkeCluster' property :gke_cluster, as: 'gkeCluster'
property :node_config, as: 'nodeConfig', class: Google::Apis::ComposerV1beta1::NodeConfig, decorator: Google::Apis::ComposerV1beta1::NodeConfig::Representation property :node_config, as: 'nodeConfig', class: Google::Apis::ComposerV1beta1::NodeConfig, decorator: Google::Apis::ComposerV1beta1::NodeConfig::Representation
@ -165,6 +186,8 @@ module Google
property :software_config, as: 'softwareConfig', class: Google::Apis::ComposerV1beta1::SoftwareConfig, decorator: Google::Apis::ComposerV1beta1::SoftwareConfig::Representation property :software_config, as: 'softwareConfig', class: Google::Apis::ComposerV1beta1::SoftwareConfig, decorator: Google::Apis::ComposerV1beta1::SoftwareConfig::Representation
property :web_server_config, as: 'webServerConfig', class: Google::Apis::ComposerV1beta1::WebServerConfig, decorator: Google::Apis::ComposerV1beta1::WebServerConfig::Representation
property :web_server_network_access_control, as: 'webServerNetworkAccessControl', class: Google::Apis::ComposerV1beta1::WebServerNetworkAccessControl, decorator: Google::Apis::ComposerV1beta1::WebServerNetworkAccessControl::Representation property :web_server_network_access_control, as: 'webServerNetworkAccessControl', class: Google::Apis::ComposerV1beta1::WebServerNetworkAccessControl, decorator: Google::Apis::ComposerV1beta1::WebServerNetworkAccessControl::Representation
end end
@ -298,6 +321,13 @@ module Google
end end
end end
class WebServerConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :machine_type, as: 'machineType'
end
end
class WebServerNetworkAccessControl class WebServerNetworkAccessControl
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -283,6 +283,11 @@ module Google
# </td> # </td>
# </tr> # </tr>
# <tr> # <tr>
# <td>config.webServerNetworkAccessControl</td>
# <td>Replace the environment's current WebServerNetworkAccessControl.
# </td>
# </tr>
# <tr>
# <td>config.softwareConfig.airflowConfigOverrides</td> # <td>config.softwareConfig.airflowConfigOverrides</td>
# <td>Replace all Apache Airflow config overrides. If a replacement config # <td>Replace all Apache Airflow config overrides. If a replacement config
# overrides map is not included in `environment`, all config overrides # overrides map is not included in `environment`, all config overrides

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/ # @see https://developers.google.com/compute/docs/reference/latest/
module ComputeAlpha module ComputeAlpha
VERSION = 'Alpha' VERSION = 'Alpha'
REVISION = '20200331' REVISION = '20200427'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1150,8 +1150,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :location_hint attr_accessor :location_hint
# Compute Engine Long Term Release. When specified, VMs that have this policy # DEPRECATED, please use maintenance_freeze_duration_hours. TODO(b/154158138):
# become long term release (internal: stable fleet) VMs. # Remove this field. Compute Engine Long Term Release. When specified, VMs that
# have this policy become long term release (internal: stable fleet) VMs.
# For all VM shapes, this should result in fewer disruptions due to software # For all VM shapes, this should result in fewer disruptions due to software
# updates and greater predictability via 1 week extended notifications. # updates and greater predictability via 1 week extended notifications.
# For GPU VMs, this should also result in an 2 week uptime guarantee. See go/ # For GPU VMs, this should also result in an 2 week uptime guarantee. See go/
@ -3182,7 +3183,7 @@ module Google
# and the backends are instance groups. The named port must be defined on each # and the backends are instance groups. The named port must be defined on each
# backend instance group. This parameter has no meaning if the backends are NEGs. # backend instance group. This parameter has no meaning if the backends are NEGs.
# Must be omitted when the loadBalancingScheme is INTERNAL (Internal TCP/UDP # Must be omitted when the loadBalancingScheme is INTERNAL (Internal TCP/UDP
# Load Blaancing). # Load Balancing).
# Corresponds to the JSON property `portName` # Corresponds to the JSON property `portName`
# @return [String] # @return [String]
attr_accessor :port_name attr_accessor :port_name
@ -5191,13 +5192,15 @@ module Google
# Specifies the regualar expression patterns that match allowed origins. For # Specifies the regualar expression patterns that match allowed origins. For
# regular expression grammar please see en.cppreference.com/w/cpp/regex/ # regular expression grammar please see en.cppreference.com/w/cpp/regex/
# ecmascript # ecmascript
# An origin is allowed if it matches either allow_origins or allow_origin_regex. # An origin is allowed if it matches either an item in allowOrigins or an item
# in allowOriginRegexes.
# Corresponds to the JSON property `allowOriginRegexes` # Corresponds to the JSON property `allowOriginRegexes`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :allow_origin_regexes attr_accessor :allow_origin_regexes
# Specifies the list of origins that will be allowed to do CORS requests. # Specifies the list of origins that will be allowed to do CORS requests.
# An origin is allowed if it matches either allow_origins or allow_origin_regex. # An origin is allowed if it matches either an item in allowOrigins or an item
# in allowOriginRegexes.
# Corresponds to the JSON property `allowOrigins` # Corresponds to the JSON property `allowOrigins`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :allow_origins attr_accessor :allow_origins
@ -6955,12 +6958,15 @@ module Google
end end
end end
# Represents an external VPN gateway.
# External VPN gateway is the on-premises VPN gateway(s) or another cloud # External VPN gateway is the on-premises VPN gateway(s) or another cloud
# provider's VPN gateway that connects to your Google Cloud VPN gateway. To # provider's VPN gateway that connects to your Google Cloud VPN gateway.
# create a highly available VPN from Google Cloud to your on-premises side or # To create a highly available VPN from Google Cloud Platform to your VPN
# another Cloud provider's VPN gateway, you must create a external VPN gateway # gateway or another cloud provider's VPN gateway, you must create a external
# resource in GCP, which provides the information to GCP about your external VPN # VPN gateway resource with information about the other gateway.
# gateway. # For more information about using external VPN gateways, see Creating an HA
# VPN gateway and tunnel pair to a peer VPN. (== resource_for `$api_version`.
# externalVpnGateways ==)
class ExternalVpnGateway class ExternalVpnGateway
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -7216,7 +7222,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :content attr_accessor :content
# # The file type of source file.
# Corresponds to the JSON property `fileType` # Corresponds to the JSON property `fileType`
# @return [String] # @return [String]
attr_accessor :file_type attr_accessor :file_type
@ -8536,16 +8542,18 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of # Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created # permissions; each `role` can be an IAM predefined role or a user-created
# custom role. # custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical # For some types of Google Cloud resources, a `binding` can also specify a `
# expression that allows access to a resource only if the expression evaluates # condition`, which is a logical expression that allows access to a resource
# to `true`. A condition can add constraints based on attributes of the request, # only if the expression evaluates to `true`. A condition can add constraints
# the resource, or both. # based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the [IAM documentation]
# (https://cloud.google.com/iam/help/conditions/resource-policies).
# **JSON example:** # **JSON example:**
# ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": # ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members":
# [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", " # [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": " # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
# roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
# "condition": ` "title": "expirable access", "description": "Does not grant # ], "condition": ` "title": "expirable access", "description": "Does not grant
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00: # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 `
# **YAML example:** # **YAML example:**
@ -9263,9 +9271,8 @@ module Google
end end
end end
# A HealthCheckService defines a set of backends on which to perform periodic # Represents a Health-Check as a Service resource.
# health checks and an endpoint to which to send notification of changes in the # (== resource_for `$api_version`.regionHealthCheckServices ==)
# health status of the backends.
class HealthCheckService class HealthCheckService
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -11988,7 +11995,7 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :resource_policies attr_accessor :resource_policies
# Sets the scheduling options for an Instance. NextID: 10 # Sets the scheduling options for an Instance. NextID: 11
# Corresponds to the JSON property `scheduling` # Corresponds to the JSON property `scheduling`
# @return [Google::Apis::ComputeAlpha::Scheduling] # @return [Google::Apis::ComputeAlpha::Scheduling]
attr_accessor :scheduling attr_accessor :scheduling
@ -14789,7 +14796,7 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :resource_policies attr_accessor :resource_policies
# Sets the scheduling options for an Instance. NextID: 10 # Sets the scheduling options for an Instance. NextID: 11
# Corresponds to the JSON property `scheduling` # Corresponds to the JSON property `scheduling`
# @return [Google::Apis::ComputeAlpha::Scheduling] # @return [Google::Apis::ComputeAlpha::Scheduling]
attr_accessor :scheduling attr_accessor :scheduling
@ -18054,10 +18061,7 @@ module Google
class LogConfigDataAccessOptions class LogConfigDataAccessOptions
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Whether Gin logging should happen in a fail-closed manner at the caller. This #
# is currently supported in the LocalIAM implementation, Stubby C++, and Stubby
# Java. For Apps Framework, see go/af-audit-logging#failclosed. TODO(b/77591626):
# Add support for Stubby Go. TODO(b/129671387): Add support for Scaffolding.
# Corresponds to the JSON property `logMode` # Corresponds to the JSON property `logMode`
# @return [String] # @return [String]
attr_accessor :log_mode attr_accessor :log_mode
@ -19417,8 +19421,11 @@ module Google
end end
# Represents a collection of network endpoints. # Represents a collection of network endpoints.
# For more information read Network endpoint groups overview. (== resource_for `$ # A network endpoint group (NEG) defines how a set of endpoints should be
# api_version`.networkEndpointGroups ==) Next ID: 21 # reached, whether they are reachable, and where they are located. For more
# information about using NEGs, see Setting up internet NEGs or Setting up
# zonal NEGs. (== resource_for `$api_version`.networkEndpointGroups ==) (==
# resource_for `$api_version`.globalNetworkEndpointGroups ==)
class NetworkEndpointGroup class NetworkEndpointGroup
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -20038,7 +20045,7 @@ module Google
attr_accessor :endpoint_filters attr_accessor :endpoint_filters
# Optional query parameter for showing the health status of each network # Optional query parameter for showing the health status of each network
# endpoint. Valid options are SKIP or SHOW. If you don't specifiy this parameter, # endpoint. Valid options are SKIP or SHOW. If you don't specify this parameter,
# the health status of network endpoints will not be provided. # the health status of network endpoints will not be provided.
# Corresponds to the JSON property `healthStatus` # Corresponds to the JSON property `healthStatus`
# @return [String] # @return [String]
@ -22510,8 +22517,12 @@ module Google
end end
end end
# Represents a notification endpoint.
# A notification endpoint resource defines an endpoint to receive notifications # A notification endpoint resource defines an endpoint to receive notifications
# when there are status changes detected by the associated health check service. # when there are status changes detected by the associated health check service.
# For more information, see Health checks overview. (== resource_for `$
# api_version`.notificationEndpoint ==) (== resource_for `$api_version`.
# regionNotificationEndpoints ==)
class NotificationEndpoint class NotificationEndpoint
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -23607,7 +23618,12 @@ module Google
end end
end end
# Represents a PacketMirroring resource. # Represents a Packet Mirroring resource.
# Packet Mirroring clones the traffic of specified instances in your Virtual
# Private Cloud (VPC) network and forwards it to a collector destination, such
# as an instance group of an internal TCP/UDP load balancer, for analysis or
# examination. For more information about setting up Packet Mirroring, see Using
# Packet Mirroring. (== resource_for `$api_version`.packetMirrorings ==)
class PacketMirroring class PacketMirroring
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -24539,16 +24555,18 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of # Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created # permissions; each `role` can be an IAM predefined role or a user-created
# custom role. # custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical # For some types of Google Cloud resources, a `binding` can also specify a `
# expression that allows access to a resource only if the expression evaluates # condition`, which is a logical expression that allows access to a resource
# to `true`. A condition can add constraints based on attributes of the request, # only if the expression evaluates to `true`. A condition can add constraints
# the resource, or both. # based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the [IAM documentation]
# (https://cloud.google.com/iam/help/conditions/resource-policies).
# **JSON example:** # **JSON example:**
# ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": # ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members":
# [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", " # [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": " # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
# roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
# "condition": ` "title": "expirable access", "description": "Does not grant # ], "condition": ` "title": "expirable access", "description": "Does not grant
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00: # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 `
# **YAML example:** # **YAML example:**
@ -24623,6 +24641,9 @@ module Google
# conditions in the version `3` policy are lost. # conditions in the version `3` policy are lost.
# If a policy does not include any conditions, operations on that policy may # If a policy does not include any conditions, operations on that policy may
# specify any valid version or leave the field unset. # specify any valid version or leave the field unset.
# To learn which resources support conditions in their IAM policies, see the [
# IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# Corresponds to the JSON property `version` # Corresponds to the JSON property `version`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version attr_accessor :version
@ -27313,16 +27334,18 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of # Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created # permissions; each `role` can be an IAM predefined role or a user-created
# custom role. # custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical # For some types of Google Cloud resources, a `binding` can also specify a `
# expression that allows access to a resource only if the expression evaluates # condition`, which is a logical expression that allows access to a resource
# to `true`. A condition can add constraints based on attributes of the request, # only if the expression evaluates to `true`. A condition can add constraints
# the resource, or both. # based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the [IAM documentation]
# (https://cloud.google.com/iam/help/conditions/resource-policies).
# **JSON example:** # **JSON example:**
# ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": # ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members":
# [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", " # [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": " # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
# roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
# "condition": ` "title": "expirable access", "description": "Does not grant # ], "condition": ` "title": "expirable access", "description": "Does not grant
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00: # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 `
# **YAML example:** # **YAML example:**
@ -30669,7 +30692,7 @@ module Google
end end
end end
# Sets the scheduling options for an Instance. NextID: 10 # Sets the scheduling options for an Instance. NextID: 11
class Scheduling class Scheduling
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -30698,8 +30721,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :location_hint attr_accessor :location_hint
# Compute Engine Long Term Release. When specified, VMs that have this policy # DEPRECATED, please use maintenance_freeze_duration_hours. TODO(b/154158138):
# become long term release (internal: stable fleet) VMs. # Remove this field. Compute Engine Long Term Release. When specified, VMs that
# have this policy become long term release (internal: stable fleet) VMs.
# For all VM shapes, this should result in fewer disruptions due to software # For all VM shapes, this should result in fewer disruptions due to software
# updates and greater predictability via 1 week extended notifications. # updates and greater predictability via 1 week extended notifications.
# For GPU VMs, this should also result in an 2 week uptime guarantee. See go/ # For GPU VMs, this should also result in an 2 week uptime guarantee. See go/
@ -31963,19 +31987,20 @@ module Google
class ShieldedInstanceConfig class ShieldedInstanceConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Defines whether the instance has integrity monitoring enabled. # Defines whether the instance has integrity monitoring enabled. Enabled by
# default.
# Corresponds to the JSON property `enableIntegrityMonitoring` # Corresponds to the JSON property `enableIntegrityMonitoring`
# @return [Boolean] # @return [Boolean]
attr_accessor :enable_integrity_monitoring attr_accessor :enable_integrity_monitoring
alias_method :enable_integrity_monitoring?, :enable_integrity_monitoring alias_method :enable_integrity_monitoring?, :enable_integrity_monitoring
# Defines whether the instance has Secure Boot enabled. # Defines whether the instance has Secure Boot enabled. Disabled by default.
# Corresponds to the JSON property `enableSecureBoot` # Corresponds to the JSON property `enableSecureBoot`
# @return [Boolean] # @return [Boolean]
attr_accessor :enable_secure_boot attr_accessor :enable_secure_boot
alias_method :enable_secure_boot?, :enable_secure_boot alias_method :enable_secure_boot?, :enable_secure_boot
# Defines whether the instance has the vTPM enabled. # Defines whether the instance has the vTPM enabled. Enabled by default.
# Corresponds to the JSON property `enableVtpm` # Corresponds to the JSON property `enableVtpm`
# @return [Boolean] # @return [Boolean]
attr_accessor :enable_vtpm attr_accessor :enable_vtpm
@ -32639,7 +32664,7 @@ module Google
# @return [Array<Google::Apis::ComputeAlpha::NetworkInterface>] # @return [Array<Google::Apis::ComputeAlpha::NetworkInterface>]
attr_accessor :network_interfaces attr_accessor :network_interfaces
# Sets the scheduling options for an Instance. NextID: 10 # Sets the scheduling options for an Instance. NextID: 11
# Corresponds to the JSON property `scheduling` # Corresponds to the JSON property `scheduling`
# @return [Google::Apis::ComputeAlpha::Scheduling] # @return [Google::Apis::ComputeAlpha::Scheduling]
attr_accessor :scheduling attr_accessor :scheduling
@ -33655,7 +33680,8 @@ module Google
# Whether to enable flow logging for this subnetwork. If this field is not # Whether to enable flow logging for this subnetwork. If this field is not
# explicitly set, it will not appear in get listings. If not set the default # explicitly set, it will not appear in get listings. If not set the default
# behavior is to disable flow logging. # behavior is to disable flow logging. This field isn't supported with the
# purpose field set to INTERNAL_HTTPS_LOAD_BALANCER.
# Corresponds to the JSON property `enableFlowLogs` # Corresponds to the JSON property `enableFlowLogs`
# @return [Boolean] # @return [Boolean]
attr_accessor :enable_flow_logs attr_accessor :enable_flow_logs
@ -33781,7 +33807,8 @@ module Google
# INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to # INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to
# INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for # INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for
# Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to # Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to
# PRIVATE_RFC_1918. # PRIVATE_RFC_1918. The enableFlowLogs field isn't supported with the purpose
# field set to INTERNAL_HTTPS_LOAD_BALANCER.
# Corresponds to the JSON property `purpose` # Corresponds to the JSON property `purpose`
# @return [String] # @return [String]
attr_accessor :purpose attr_accessor :purpose
@ -34448,6 +34475,17 @@ module Google
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Fingerprint of this resource. A hash of the contents stored in this object.
# This field is used in optimistic locking. This field will be ignored when
# inserting a TargetGrpcProxy. An up-to-date fingerprint must be provided in
# order to patch/update the TargetGrpcProxy; otherwise, the request will fail
# with error 412 conditionNotMet. To see the latest fingerprint, make a get()
# request to retrieve the TargetGrpcProxy.
# Corresponds to the JSON property `fingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :fingerprint
# [Output Only] The unique identifier for the resource type. The server # [Output Only] The unique identifier for the resource type. The server
# generates this identifier. # generates this identifier.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
@ -34508,6 +34546,7 @@ module Google
def update!(**args) def update!(**args)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description) @description = args[:description] if args.key?(:description)
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@ -35172,6 +35211,25 @@ module Google
end end
end end
#
class TargetHttpsProxiesSetCertificateMapRequest
include Google::Apis::Core::Hashable
# URL of the Certificate Map to associate with this TargetHttpsProxy.
# Corresponds to the JSON property `certificateMap`
# @return [String]
attr_accessor :certificate_map
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@certificate_map = args[:certificate_map] if args.key?(:certificate_map)
end
end
# #
class TargetHttpsProxiesSetQuicOverrideRequest class TargetHttpsProxiesSetQuicOverrideRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -36667,6 +36725,25 @@ module Google
end end
end end
#
class TargetSslProxiesSetCertificateMapRequest
include Google::Apis::Core::Hashable
# URL of the Certificate Map to associate with this TargetSslProxy.
# Corresponds to the JSON property `certificateMap`
# @return [String]
attr_accessor :certificate_map
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@certificate_map = args[:certificate_map] if args.key?(:certificate_map)
end
end
# #
class TargetSslProxiesSetProxyHeaderRequest class TargetSslProxiesSetProxyHeaderRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -38966,7 +39043,12 @@ module Google
end end
end end
# Represents a VPN gateway resource. Next ID: 13 # Represents a HA VPN gateway.
# HA VPN is a high-availability (HA) Cloud VPN solution that lets you securely
# connect your on-premises network to your Google Cloud Virtual Private Cloud
# network through an IPsec VPN connection in a single region. For more
# information about Cloud HA VPN solutions, see Cloud VPN topologies . (==
# resource_for `$api_version`.vpnGateways ==)
class VpnGateway class VpnGateway
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -40601,16 +40683,18 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of # Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created # permissions; each `role` can be an IAM predefined role or a user-created
# custom role. # custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical # For some types of Google Cloud resources, a `binding` can also specify a `
# expression that allows access to a resource only if the expression evaluates # condition`, which is a logical expression that allows access to a resource
# to `true`. A condition can add constraints based on attributes of the request, # only if the expression evaluates to `true`. A condition can add constraints
# the resource, or both. # based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the [IAM documentation]
# (https://cloud.google.com/iam/help/conditions/resource-policies).
# **JSON example:** # **JSON example:**
# ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": # ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members":
# [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", " # [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": " # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
# roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
# "condition": ` "title": "expirable access", "description": "Does not grant # ], "condition": ` "title": "expirable access", "description": "Does not grant
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00: # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 `
# **YAML example:** # **YAML example:**

View File

@ -4618,6 +4618,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class TargetHttpsProxiesSetCertificateMapRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TargetHttpsProxiesSetQuicOverrideRequest class TargetHttpsProxiesSetQuicOverrideRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -4834,6 +4840,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class TargetSslProxiesSetCertificateMapRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TargetSslProxiesSetProxyHeaderRequest class TargetSslProxiesSetProxyHeaderRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -13842,6 +13854,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :creation_timestamp, as: 'creationTimestamp' property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description' property :description, as: 'description'
property :fingerprint, :base64 => true, as: 'fingerprint'
property :id, :numeric_string => true, as: 'id' property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind' property :kind, as: 'kind'
property :name, as: 'name' property :name, as: 'name'
@ -14022,6 +14035,13 @@ module Google
end end
end end
class TargetHttpsProxiesSetCertificateMapRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :certificate_map, as: 'certificateMap'
end
end
class TargetHttpsProxiesSetQuicOverrideRequest class TargetHttpsProxiesSetQuicOverrideRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -14400,6 +14420,13 @@ module Google
end end
end end
class TargetSslProxiesSetCertificateMapRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :certificate_map, as: 'certificateMap'
end
end
class TargetSslProxiesSetProxyHeaderRequest class TargetSslProxiesSetProxyHeaderRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/ # @see https://developers.google.com/compute/docs/reference/latest/
module ComputeBeta module ComputeBeta
VERSION = 'Beta' VERSION = 'Beta'
REVISION = '20200331' REVISION = '20200427'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2896,7 +2896,7 @@ module Google
# and the backends are instance groups. The named port must be defined on each # and the backends are instance groups. The named port must be defined on each
# backend instance group. This parameter has no meaning if the backends are NEGs. # backend instance group. This parameter has no meaning if the backends are NEGs.
# Must be omitted when the loadBalancingScheme is INTERNAL (Internal TCP/UDP # Must be omitted when the loadBalancingScheme is INTERNAL (Internal TCP/UDP
# Load Blaancing). # Load Balancing).
# Corresponds to the JSON property `portName` # Corresponds to the JSON property `portName`
# @return [String] # @return [String]
attr_accessor :port_name attr_accessor :port_name
@ -4493,6 +4493,26 @@ module Google
end end
end end
# A set of Confidential Instance options.
class ConfidentialInstanceConfig
include Google::Apis::Core::Hashable
# Defines whether the instance should have confidential compute enabled.
# Corresponds to the JSON property `enableConfidentialCompute`
# @return [Boolean]
attr_accessor :enable_confidential_compute
alias_method :enable_confidential_compute?, :enable_confidential_compute
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enable_confidential_compute = args[:enable_confidential_compute] if args.key?(:enable_confidential_compute)
end
end
# Message containing connection draining configuration. # Message containing connection draining configuration.
class ConnectionDraining class ConnectionDraining
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -4612,13 +4632,15 @@ module Google
# Specifies the regualar expression patterns that match allowed origins. For # Specifies the regualar expression patterns that match allowed origins. For
# regular expression grammar please see en.cppreference.com/w/cpp/regex/ # regular expression grammar please see en.cppreference.com/w/cpp/regex/
# ecmascript # ecmascript
# An origin is allowed if it matches either allow_origins or allow_origin_regex. # An origin is allowed if it matches either an item in allowOrigins or an item
# in allowOriginRegexes.
# Corresponds to the JSON property `allowOriginRegexes` # Corresponds to the JSON property `allowOriginRegexes`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :allow_origin_regexes attr_accessor :allow_origin_regexes
# Specifies the list of origins that will be allowed to do CORS requests. # Specifies the list of origins that will be allowed to do CORS requests.
# An origin is allowed if it matches either allow_origins or allow_origin_regex. # An origin is allowed if it matches either an item in allowOrigins or an item
# in allowOriginRegexes.
# Corresponds to the JSON property `allowOrigins` # Corresponds to the JSON property `allowOrigins`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :allow_origins attr_accessor :allow_origins
@ -6280,12 +6302,15 @@ module Google
end end
end end
# Represents an external VPN gateway.
# External VPN gateway is the on-premises VPN gateway(s) or another cloud # External VPN gateway is the on-premises VPN gateway(s) or another cloud
# provider's VPN gateway that connects to your Google Cloud VPN gateway. To # provider's VPN gateway that connects to your Google Cloud VPN gateway.
# create a highly available VPN from Google Cloud to your on-premises side or # To create a highly available VPN from Google Cloud Platform to your VPN
# another Cloud provider's VPN gateway, you must create a external VPN gateway # gateway or another cloud provider's VPN gateway, you must create a external
# resource in GCP, which provides the information to GCP about your external VPN # VPN gateway resource with information about the other gateway.
# gateway. # For more information about using external VPN gateways, see Creating an HA
# VPN gateway and tunnel pair to a peer VPN. (== resource_for `$api_version`.
# externalVpnGateways ==)
class ExternalVpnGateway class ExternalVpnGateway
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -6541,7 +6566,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :content attr_accessor :content
# # The file type of source file.
# Corresponds to the JSON property `fileType` # Corresponds to the JSON property `fileType`
# @return [String] # @return [String]
attr_accessor :file_type attr_accessor :file_type
@ -7789,16 +7814,18 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of # Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created # permissions; each `role` can be an IAM predefined role or a user-created
# custom role. # custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical # For some types of Google Cloud resources, a `binding` can also specify a `
# expression that allows access to a resource only if the expression evaluates # condition`, which is a logical expression that allows access to a resource
# to `true`. A condition can add constraints based on attributes of the request, # only if the expression evaluates to `true`. A condition can add constraints
# the resource, or both. # based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the [IAM documentation]
# (https://cloud.google.com/iam/help/conditions/resource-policies).
# **JSON example:** # **JSON example:**
# ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": # ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members":
# [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", " # [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": " # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
# roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
# "condition": ` "title": "expirable access", "description": "Does not grant # ], "condition": ` "title": "expirable access", "description": "Does not grant
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00: # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 `
# **YAML example:** # **YAML example:**
@ -8464,9 +8491,8 @@ module Google
end end
end end
# A HealthCheckService defines a set of backends on which to perform periodic # Represents a Health-Check as a Service resource.
# health checks and an endpoint to which to send notification of changes in the # (== resource_for `$api_version`.regionHealthCheckServices ==)
# health status of the backends.
class HealthCheckService class HealthCheckService
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -10822,7 +10848,7 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :resource_policies attr_accessor :resource_policies
# Sets the scheduling options for an Instance. NextID: 10 # Sets the scheduling options for an Instance. NextID: 11
# Corresponds to the JSON property `scheduling` # Corresponds to the JSON property `scheduling`
# @return [Google::Apis::ComputeBeta::Scheduling] # @return [Google::Apis::ComputeBeta::Scheduling]
attr_accessor :scheduling attr_accessor :scheduling
@ -13478,6 +13504,11 @@ module Google
attr_accessor :can_ip_forward attr_accessor :can_ip_forward
alias_method :can_ip_forward?, :can_ip_forward alias_method :can_ip_forward?, :can_ip_forward
# A set of Confidential Instance options.
# Corresponds to the JSON property `confidentialInstanceConfig`
# @return [Google::Apis::ComputeBeta::ConfidentialInstanceConfig]
attr_accessor :confidential_instance_config
# An optional text description for the instances that are created from this # An optional text description for the instances that are created from this
# instance template. # instance template.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
@ -13547,7 +13578,7 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :resource_policies attr_accessor :resource_policies
# Sets the scheduling options for an Instance. NextID: 10 # Sets the scheduling options for an Instance. NextID: 11
# Corresponds to the JSON property `scheduling` # Corresponds to the JSON property `scheduling`
# @return [Google::Apis::ComputeBeta::Scheduling] # @return [Google::Apis::ComputeBeta::Scheduling]
attr_accessor :scheduling attr_accessor :scheduling
@ -13581,6 +13612,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward) @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward)
@confidential_instance_config = args[:confidential_instance_config] if args.key?(:confidential_instance_config)
@description = args[:description] if args.key?(:description) @description = args[:description] if args.key?(:description)
@disks = args[:disks] if args.key?(:disks) @disks = args[:disks] if args.key?(:disks)
@display_device = args[:display_device] if args.key?(:display_device) @display_device = args[:display_device] if args.key?(:display_device)
@ -16272,10 +16304,7 @@ module Google
class LogConfigDataAccessOptions class LogConfigDataAccessOptions
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Whether Gin logging should happen in a fail-closed manner at the caller. This #
# is currently supported in the LocalIAM implementation, Stubby C++, and Stubby
# Java. For Apps Framework, see go/af-audit-logging#failclosed. TODO(b/77591626):
# Add support for Stubby Go. TODO(b/129671387): Add support for Scaffolding.
# Corresponds to the JSON property `logMode` # Corresponds to the JSON property `logMode`
# @return [String] # @return [String]
attr_accessor :log_mode attr_accessor :log_mode
@ -16536,6 +16565,12 @@ module Google
class MachineType class MachineType
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# [Output Only] A list of accelerator configurations assigned to this machine
# type.
# Corresponds to the JSON property `accelerators`
# @return [Array<Google::Apis::ComputeBeta::MachineType::Accelerator>]
attr_accessor :accelerators
# [Output Only] Creation timestamp in RFC3339 text format. # [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp` # Corresponds to the JSON property `creationTimestamp`
# @return [String] # @return [String]
@ -16613,6 +16648,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@accelerators = args[:accelerators] if args.key?(:accelerators)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@deprecated = args[:deprecated] if args.key?(:deprecated) @deprecated = args[:deprecated] if args.key?(:deprecated)
@description = args[:description] if args.key?(:description) @description = args[:description] if args.key?(:description)
@ -16627,6 +16663,31 @@ module Google
@self_link = args[:self_link] if args.key?(:self_link) @self_link = args[:self_link] if args.key?(:self_link)
@zone = args[:zone] if args.key?(:zone) @zone = args[:zone] if args.key?(:zone)
end end
#
class Accelerator
include Google::Apis::Core::Hashable
# Number of accelerator cards exposed to the guest.
# Corresponds to the JSON property `guestAcceleratorCount`
# @return [Fixnum]
attr_accessor :guest_accelerator_count
# The accelerator type resource name, not a full URL, e.g. 'nvidia-tesla-k80'.
# Corresponds to the JSON property `guestAcceleratorType`
# @return [String]
attr_accessor :guest_accelerator_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@guest_accelerator_count = args[:guest_accelerator_count] if args.key?(:guest_accelerator_count)
@guest_accelerator_type = args[:guest_accelerator_type] if args.key?(:guest_accelerator_type)
end
end
end end
# #
@ -17501,8 +17562,11 @@ module Google
end end
# Represents a collection of network endpoints. # Represents a collection of network endpoints.
# For more information read Network endpoint groups overview. (== resource_for `$ # A network endpoint group (NEG) defines how a set of endpoints should be
# api_version`.networkEndpointGroups ==) Next ID: 21 # reached, whether they are reachable, and where they are located. For more
# information about using NEGs, see Setting up internet NEGs or Setting up
# zonal NEGs. (== resource_for `$api_version`.networkEndpointGroups ==) (==
# resource_for `$api_version`.globalNetworkEndpointGroups ==)
class NetworkEndpointGroup class NetworkEndpointGroup
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -17930,8 +17994,15 @@ module Google
class NetworkEndpointGroupsListEndpointsRequest class NetworkEndpointGroupsListEndpointsRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional list of endpoints to query. This is a more efficient but also limited
# version of filter parameter. Endpoints in the filter must have ip_address and
# port fields populated, other fields are not supported.
# Corresponds to the JSON property `endpointFilters`
# @return [Array<Google::Apis::ComputeBeta::NetworkEndpointGroupsListEndpointsRequestNetworkEndpointFilter>]
attr_accessor :endpoint_filters
# Optional query parameter for showing the health status of each network # Optional query parameter for showing the health status of each network
# endpoint. Valid options are SKIP or SHOW. If you don't specifiy this parameter, # endpoint. Valid options are SKIP or SHOW. If you don't specify this parameter,
# the health status of network endpoints will not be provided. # the health status of network endpoints will not be provided.
# Corresponds to the JSON property `healthStatus` # Corresponds to the JSON property `healthStatus`
# @return [String] # @return [String]
@ -17943,10 +18014,30 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@endpoint_filters = args[:endpoint_filters] if args.key?(:endpoint_filters)
@health_status = args[:health_status] if args.key?(:health_status) @health_status = args[:health_status] if args.key?(:health_status)
end end
end end
#
class NetworkEndpointGroupsListEndpointsRequestNetworkEndpointFilter
include Google::Apis::Core::Hashable
# The network endpoint. Next ID: 7
# Corresponds to the JSON property `networkEndpoint`
# @return [Google::Apis::ComputeBeta::NetworkEndpoint]
attr_accessor :network_endpoint
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@network_endpoint = args[:network_endpoint] if args.key?(:network_endpoint)
end
end
# #
class NetworkEndpointGroupsListNetworkEndpoints class NetworkEndpointGroupsListNetworkEndpoints
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -20249,8 +20340,12 @@ module Google
end end
end end
# Represents a notification endpoint.
# A notification endpoint resource defines an endpoint to receive notifications # A notification endpoint resource defines an endpoint to receive notifications
# when there are status changes detected by the associated health check service. # when there are status changes detected by the associated health check service.
# For more information, see Health checks overview. (== resource_for `$
# api_version`.notificationEndpoint ==) (== resource_for `$api_version`.
# regionNotificationEndpoints ==)
class NotificationEndpoint class NotificationEndpoint
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -21313,7 +21408,12 @@ module Google
end end
end end
# Represents a PacketMirroring resource. # Represents a Packet Mirroring resource.
# Packet Mirroring clones the traffic of specified instances in your Virtual
# Private Cloud (VPC) network and forwards it to a collector destination, such
# as an instance group of an internal TCP/UDP load balancer, for analysis or
# examination. For more information about setting up Packet Mirroring, see Using
# Packet Mirroring. (== resource_for `$api_version`.packetMirrorings ==)
class PacketMirroring class PacketMirroring
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -22117,16 +22217,18 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of # Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created # permissions; each `role` can be an IAM predefined role or a user-created
# custom role. # custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical # For some types of Google Cloud resources, a `binding` can also specify a `
# expression that allows access to a resource only if the expression evaluates # condition`, which is a logical expression that allows access to a resource
# to `true`. A condition can add constraints based on attributes of the request, # only if the expression evaluates to `true`. A condition can add constraints
# the resource, or both. # based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the [IAM documentation]
# (https://cloud.google.com/iam/help/conditions/resource-policies).
# **JSON example:** # **JSON example:**
# ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": # ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members":
# [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", " # [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": " # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
# roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
# "condition": ` "title": "expirable access", "description": "Does not grant # ], "condition": ` "title": "expirable access", "description": "Does not grant
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00: # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 `
# **YAML example:** # **YAML example:**
@ -22201,6 +22303,9 @@ module Google
# conditions in the version `3` policy are lost. # conditions in the version `3` policy are lost.
# If a policy does not include any conditions, operations on that policy may # If a policy does not include any conditions, operations on that policy may
# specify any valid version or leave the field unset. # specify any valid version or leave the field unset.
# To learn which resources support conditions in their IAM policies, see the [
# IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# Corresponds to the JSON property `version` # Corresponds to the JSON property `version`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version attr_accessor :version
@ -23979,16 +24084,18 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of # Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created # permissions; each `role` can be an IAM predefined role or a user-created
# custom role. # custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical # For some types of Google Cloud resources, a `binding` can also specify a `
# expression that allows access to a resource only if the expression evaluates # condition`, which is a logical expression that allows access to a resource
# to `true`. A condition can add constraints based on attributes of the request, # only if the expression evaluates to `true`. A condition can add constraints
# the resource, or both. # based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the [IAM documentation]
# (https://cloud.google.com/iam/help/conditions/resource-policies).
# **JSON example:** # **JSON example:**
# ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": # ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members":
# [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", " # [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": " # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
# roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
# "condition": ` "title": "expirable access", "description": "Does not grant # ], "condition": ` "title": "expirable access", "description": "Does not grant
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00: # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 `
# **YAML example:** # **YAML example:**
@ -27068,7 +27175,7 @@ module Google
end end
end end
# Sets the scheduling options for an Instance. NextID: 10 # Sets the scheduling options for an Instance. NextID: 11
class Scheduling class Scheduling
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -27891,19 +27998,20 @@ module Google
class ShieldedInstanceConfig class ShieldedInstanceConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Defines whether the instance has integrity monitoring enabled. # Defines whether the instance has integrity monitoring enabled. Enabled by
# default.
# Corresponds to the JSON property `enableIntegrityMonitoring` # Corresponds to the JSON property `enableIntegrityMonitoring`
# @return [Boolean] # @return [Boolean]
attr_accessor :enable_integrity_monitoring attr_accessor :enable_integrity_monitoring
alias_method :enable_integrity_monitoring?, :enable_integrity_monitoring alias_method :enable_integrity_monitoring?, :enable_integrity_monitoring
# Defines whether the instance has Secure Boot enabled. # Defines whether the instance has Secure Boot enabled. Disabled by default.
# Corresponds to the JSON property `enableSecureBoot` # Corresponds to the JSON property `enableSecureBoot`
# @return [Boolean] # @return [Boolean]
attr_accessor :enable_secure_boot attr_accessor :enable_secure_boot
alias_method :enable_secure_boot?, :enable_secure_boot alias_method :enable_secure_boot?, :enable_secure_boot
# Defines whether the instance has the vTPM enabled. # Defines whether the instance has the vTPM enabled. Enabled by default.
# Corresponds to the JSON property `enableVtpm` # Corresponds to the JSON property `enableVtpm`
# @return [Boolean] # @return [Boolean]
attr_accessor :enable_vtpm attr_accessor :enable_vtpm
@ -28553,7 +28661,7 @@ module Google
# @return [Array<Google::Apis::ComputeBeta::NetworkInterface>] # @return [Array<Google::Apis::ComputeBeta::NetworkInterface>]
attr_accessor :network_interfaces attr_accessor :network_interfaces
# Sets the scheduling options for an Instance. NextID: 10 # Sets the scheduling options for an Instance. NextID: 11
# Corresponds to the JSON property `scheduling` # Corresponds to the JSON property `scheduling`
# @return [Google::Apis::ComputeBeta::Scheduling] # @return [Google::Apis::ComputeBeta::Scheduling]
attr_accessor :scheduling attr_accessor :scheduling
@ -29535,7 +29643,8 @@ module Google
# Whether to enable flow logging for this subnetwork. If this field is not # Whether to enable flow logging for this subnetwork. If this field is not
# explicitly set, it will not appear in get listings. If not set the default # explicitly set, it will not appear in get listings. If not set the default
# behavior is to disable flow logging. # behavior is to disable flow logging. This field isn't supported with the
# purpose field set to INTERNAL_HTTPS_LOAD_BALANCER.
# Corresponds to the JSON property `enableFlowLogs` # Corresponds to the JSON property `enableFlowLogs`
# @return [Boolean] # @return [Boolean]
attr_accessor :enable_flow_logs attr_accessor :enable_flow_logs
@ -29637,7 +29746,8 @@ module Google
# INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to # INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to
# INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for # INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for
# Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to # Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to
# PRIVATE_RFC_1918. # PRIVATE_RFC_1918. The enableFlowLogs field isn't supported with the purpose
# field set to INTERNAL_HTTPS_LOAD_BALANCER.
# Corresponds to the JSON property `purpose` # Corresponds to the JSON property `purpose`
# @return [String] # @return [String]
attr_accessor :purpose attr_accessor :purpose
@ -34287,7 +34397,12 @@ module Google
end end
end end
# Represents a VPN gateway resource. Next ID: 13 # Represents a HA VPN gateway.
# HA VPN is a high-availability (HA) Cloud VPN solution that lets you securely
# connect your on-premises network to your Google Cloud Virtual Private Cloud
# network through an IPsec VPN connection in a single region. For more
# information about Cloud HA VPN solutions, see Cloud VPN topologies . (==
# resource_for `$api_version`.vpnGateways ==)
class VpnGateway class VpnGateway
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -35910,16 +36025,18 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of # Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created # permissions; each `role` can be an IAM predefined role or a user-created
# custom role. # custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical # For some types of Google Cloud resources, a `binding` can also specify a `
# expression that allows access to a resource only if the expression evaluates # condition`, which is a logical expression that allows access to a resource
# to `true`. A condition can add constraints based on attributes of the request, # only if the expression evaluates to `true`. A condition can add constraints
# the resource, or both. # based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the [IAM documentation]
# (https://cloud.google.com/iam/help/conditions/resource-policies).
# **JSON example:** # **JSON example:**
# ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": # ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members":
# [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", " # [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": " # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
# roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
# "condition": ` "title": "expirable access", "description": "Does not grant # ], "condition": ` "title": "expirable access", "description": "Does not grant
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00: # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 `
# **YAML example:** # **YAML example:**

View File

@ -544,6 +544,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ConfidentialInstanceConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ConnectionDraining class ConnectionDraining
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2083,6 +2089,12 @@ module Google
class MachineType class MachineType
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
class Accelerator
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
@ -2284,6 +2296,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class NetworkEndpointGroupsListEndpointsRequestNetworkEndpointFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NetworkEndpointGroupsListNetworkEndpoints class NetworkEndpointGroupsListNetworkEndpoints
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -5910,6 +5928,13 @@ module Google
end end
end end
class ConfidentialInstanceConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enable_confidential_compute, as: 'enableConfidentialCompute'
end
end
class ConnectionDraining class ConnectionDraining
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -8056,6 +8081,8 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :can_ip_forward, as: 'canIpForward' property :can_ip_forward, as: 'canIpForward'
property :confidential_instance_config, as: 'confidentialInstanceConfig', class: Google::Apis::ComputeBeta::ConfidentialInstanceConfig, decorator: Google::Apis::ComputeBeta::ConfidentialInstanceConfig::Representation
property :description, as: 'description' property :description, as: 'description'
collection :disks, as: 'disks', class: Google::Apis::ComputeBeta::AttachedDisk, decorator: Google::Apis::ComputeBeta::AttachedDisk::Representation collection :disks, as: 'disks', class: Google::Apis::ComputeBeta::AttachedDisk, decorator: Google::Apis::ComputeBeta::AttachedDisk::Representation
@ -8814,6 +8841,8 @@ module Google
class MachineType class MachineType
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :accelerators, as: 'accelerators', class: Google::Apis::ComputeBeta::MachineType::Accelerator, decorator: Google::Apis::ComputeBeta::MachineType::Accelerator::Representation
property :creation_timestamp, as: 'creationTimestamp' property :creation_timestamp, as: 'creationTimestamp'
property :deprecated, as: 'deprecated', class: Google::Apis::ComputeBeta::DeprecationStatus, decorator: Google::Apis::ComputeBeta::DeprecationStatus::Representation property :deprecated, as: 'deprecated', class: Google::Apis::ComputeBeta::DeprecationStatus, decorator: Google::Apis::ComputeBeta::DeprecationStatus::Representation
@ -8829,6 +8858,14 @@ module Google
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
property :zone, as: 'zone' property :zone, as: 'zone'
end end
class Accelerator
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :guest_accelerator_count, as: 'guestAcceleratorCount'
property :guest_accelerator_type, as: 'guestAcceleratorType'
end
end
end end
class MachineTypeAggregatedList class MachineTypeAggregatedList
@ -9172,10 +9209,20 @@ module Google
class NetworkEndpointGroupsListEndpointsRequest class NetworkEndpointGroupsListEndpointsRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :endpoint_filters, as: 'endpointFilters', class: Google::Apis::ComputeBeta::NetworkEndpointGroupsListEndpointsRequestNetworkEndpointFilter, decorator: Google::Apis::ComputeBeta::NetworkEndpointGroupsListEndpointsRequestNetworkEndpointFilter::Representation
property :health_status, as: 'healthStatus' property :health_status, as: 'healthStatus'
end end
end end
class NetworkEndpointGroupsListEndpointsRequestNetworkEndpointFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :network_endpoint, as: 'networkEndpoint', class: Google::Apis::ComputeBeta::NetworkEndpoint, decorator: Google::Apis::ComputeBeta::NetworkEndpoint::Representation
end
end
class NetworkEndpointGroupsListNetworkEndpoints class NetworkEndpointGroupsListNetworkEndpoints
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/ # @see https://developers.google.com/compute/docs/reference/latest/
module ComputeV1 module ComputeV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200331' REVISION = '20200427'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2782,7 +2782,7 @@ module Google
# and the backends are instance groups. The named port must be defined on each # and the backends are instance groups. The named port must be defined on each
# backend instance group. This parameter has no meaning if the backends are NEGs. # backend instance group. This parameter has no meaning if the backends are NEGs.
# Must be omitted when the loadBalancingScheme is INTERNAL (Internal TCP/UDP # Must be omitted when the loadBalancingScheme is INTERNAL (Internal TCP/UDP
# Load Blaancing). # Load Balancing).
# Corresponds to the JSON property `portName` # Corresponds to the JSON property `portName`
# @return [String] # @return [String]
attr_accessor :port_name attr_accessor :port_name
@ -4220,13 +4220,15 @@ module Google
# Specifies the regualar expression patterns that match allowed origins. For # Specifies the regualar expression patterns that match allowed origins. For
# regular expression grammar please see en.cppreference.com/w/cpp/regex/ # regular expression grammar please see en.cppreference.com/w/cpp/regex/
# ecmascript # ecmascript
# An origin is allowed if it matches either allow_origins or allow_origin_regex. # An origin is allowed if it matches either an item in allowOrigins or an item
# in allowOriginRegexes.
# Corresponds to the JSON property `allowOriginRegexes` # Corresponds to the JSON property `allowOriginRegexes`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :allow_origin_regexes attr_accessor :allow_origin_regexes
# Specifies the list of origins that will be allowed to do CORS requests. # Specifies the list of origins that will be allowed to do CORS requests.
# An origin is allowed if it matches either allow_origins or allow_origin_regex. # An origin is allowed if it matches either an item in allowOrigins or an item
# in allowOriginRegexes.
# Corresponds to the JSON property `allowOrigins` # Corresponds to the JSON property `allowOrigins`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :allow_origins attr_accessor :allow_origins
@ -5861,12 +5863,15 @@ module Google
end end
end end
# Represents an external VPN gateway.
# External VPN gateway is the on-premises VPN gateway(s) or another cloud # External VPN gateway is the on-premises VPN gateway(s) or another cloud
# provider's VPN gateway that connects to your Google Cloud VPN gateway. To # provider's VPN gateway that connects to your Google Cloud VPN gateway.
# create a highly available VPN from Google Cloud to your on-premises side or # To create a highly available VPN from Google Cloud Platform to your VPN
# another Cloud provider's VPN gateway, you must create a external VPN gateway # gateway or another cloud provider's VPN gateway, you must create a external
# resource in GCP, which provides the information to GCP about your external VPN # VPN gateway resource with information about the other gateway.
# gateway. # For more information about using external VPN gateways, see Creating an HA
# VPN gateway and tunnel pair to a peer VPN. (== resource_for `$api_version`.
# externalVpnGateways ==)
class ExternalVpnGateway class ExternalVpnGateway
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -6122,7 +6127,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :content attr_accessor :content
# # The file type of source file.
# Corresponds to the JSON property `fileType` # Corresponds to the JSON property `fileType`
# @return [String] # @return [String]
attr_accessor :file_type attr_accessor :file_type
@ -7331,16 +7336,18 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of # Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created # permissions; each `role` can be an IAM predefined role or a user-created
# custom role. # custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical # For some types of Google Cloud resources, a `binding` can also specify a `
# expression that allows access to a resource only if the expression evaluates # condition`, which is a logical expression that allows access to a resource
# to `true`. A condition can add constraints based on attributes of the request, # only if the expression evaluates to `true`. A condition can add constraints
# the resource, or both. # based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the [IAM documentation]
# (https://cloud.google.com/iam/help/conditions/resource-policies).
# **JSON example:** # **JSON example:**
# ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": # ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members":
# [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", " # [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": " # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
# roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
# "condition": ` "title": "expirable access", "description": "Does not grant # ], "condition": ` "title": "expirable access", "description": "Does not grant
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00: # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 `
# **YAML example:** # **YAML example:**
@ -10027,7 +10034,7 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :resource_policies attr_accessor :resource_policies
# Sets the scheduling options for an Instance. NextID: 10 # Sets the scheduling options for an Instance. NextID: 11
# Corresponds to the JSON property `scheduling` # Corresponds to the JSON property `scheduling`
# @return [Google::Apis::ComputeV1::Scheduling] # @return [Google::Apis::ComputeV1::Scheduling]
attr_accessor :scheduling attr_accessor :scheduling
@ -12363,7 +12370,7 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :resource_policies attr_accessor :resource_policies
# Sets the scheduling options for an Instance. NextID: 10 # Sets the scheduling options for an Instance. NextID: 11
# Corresponds to the JSON property `scheduling` # Corresponds to the JSON property `scheduling`
# @return [Google::Apis::ComputeV1::Scheduling] # @return [Google::Apis::ComputeV1::Scheduling]
attr_accessor :scheduling attr_accessor :scheduling
@ -14955,10 +14962,7 @@ module Google
class LogConfigDataAccessOptions class LogConfigDataAccessOptions
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Whether Gin logging should happen in a fail-closed manner at the caller. This #
# is currently supported in the LocalIAM implementation, Stubby C++, and Stubby
# Java. For Apps Framework, see go/af-audit-logging#failclosed. TODO(b/77591626):
# Add support for Stubby Go. TODO(b/129671387): Add support for Scaffolding.
# Corresponds to the JSON property `logMode` # Corresponds to the JSON property `logMode`
# @return [String] # @return [String]
attr_accessor :log_mode attr_accessor :log_mode
@ -14980,6 +14984,12 @@ module Google
class MachineType class MachineType
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# [Output Only] A list of accelerator configurations assigned to this machine
# type.
# Corresponds to the JSON property `accelerators`
# @return [Array<Google::Apis::ComputeV1::MachineType::Accelerator>]
attr_accessor :accelerators
# [Output Only] Creation timestamp in RFC3339 text format. # [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp` # Corresponds to the JSON property `creationTimestamp`
# @return [String] # @return [String]
@ -15068,6 +15078,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@accelerators = args[:accelerators] if args.key?(:accelerators)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@deprecated = args[:deprecated] if args.key?(:deprecated) @deprecated = args[:deprecated] if args.key?(:deprecated)
@description = args[:description] if args.key?(:description) @description = args[:description] if args.key?(:description)
@ -15085,6 +15096,31 @@ module Google
@zone = args[:zone] if args.key?(:zone) @zone = args[:zone] if args.key?(:zone)
end end
#
class Accelerator
include Google::Apis::Core::Hashable
# Number of accelerator cards exposed to the guest.
# Corresponds to the JSON property `guestAcceleratorCount`
# @return [Fixnum]
attr_accessor :guest_accelerator_count
# The accelerator type resource name, not a full URL, e.g. 'nvidia-tesla-k80'.
# Corresponds to the JSON property `guestAcceleratorType`
# @return [String]
attr_accessor :guest_accelerator_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@guest_accelerator_count = args[:guest_accelerator_count] if args.key?(:guest_accelerator_count)
@guest_accelerator_type = args[:guest_accelerator_type] if args.key?(:guest_accelerator_type)
end
end
# #
class ScratchDisk class ScratchDisk
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -15959,8 +15995,11 @@ module Google
end end
# Represents a collection of network endpoints. # Represents a collection of network endpoints.
# For more information read Network endpoint groups overview. (== resource_for `$ # A network endpoint group (NEG) defines how a set of endpoints should be
# api_version`.networkEndpointGroups ==) Next ID: 21 # reached, whether they are reachable, and where they are located. For more
# information about using NEGs, see Setting up internet NEGs or Setting up
# zonal NEGs. (== resource_for `$api_version`.networkEndpointGroups ==) (==
# resource_for `$api_version`.globalNetworkEndpointGroups ==)
class NetworkEndpointGroup class NetworkEndpointGroup
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -16336,7 +16375,7 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional query parameter for showing the health status of each network # Optional query parameter for showing the health status of each network
# endpoint. Valid options are SKIP or SHOW. If you don't specifiy this parameter, # endpoint. Valid options are SKIP or SHOW. If you don't specify this parameter,
# the health status of network endpoints will not be provided. # the health status of network endpoints will not be provided.
# Corresponds to the JSON property `healthStatus` # Corresponds to the JSON property `healthStatus`
# @return [String] # @return [String]
@ -19328,7 +19367,12 @@ module Google
end end
end end
# Represents a PacketMirroring resource. # Represents a Packet Mirroring resource.
# Packet Mirroring clones the traffic of specified instances in your Virtual
# Private Cloud (VPC) network and forwards it to a collector destination, such
# as an instance group of an internal TCP/UDP load balancer, for analysis or
# examination. For more information about setting up Packet Mirroring, see Using
# Packet Mirroring. (== resource_for `$api_version`.packetMirrorings ==)
class PacketMirroring class PacketMirroring
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -20126,16 +20170,18 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of # Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created # permissions; each `role` can be an IAM predefined role or a user-created
# custom role. # custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical # For some types of Google Cloud resources, a `binding` can also specify a `
# expression that allows access to a resource only if the expression evaluates # condition`, which is a logical expression that allows access to a resource
# to `true`. A condition can add constraints based on attributes of the request, # only if the expression evaluates to `true`. A condition can add constraints
# the resource, or both. # based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the [IAM documentation]
# (https://cloud.google.com/iam/help/conditions/resource-policies).
# **JSON example:** # **JSON example:**
# ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": # ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members":
# [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", " # [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": " # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
# roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
# "condition": ` "title": "expirable access", "description": "Does not grant # ], "condition": ` "title": "expirable access", "description": "Does not grant
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00: # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 `
# **YAML example:** # **YAML example:**
@ -20210,6 +20256,9 @@ module Google
# conditions in the version `3` policy are lost. # conditions in the version `3` policy are lost.
# If a policy does not include any conditions, operations on that policy may # If a policy does not include any conditions, operations on that policy may
# specify any valid version or leave the field unset. # specify any valid version or leave the field unset.
# To learn which resources support conditions in their IAM policies, see the [
# IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# Corresponds to the JSON property `version` # Corresponds to the JSON property `version`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version attr_accessor :version
@ -21728,16 +21777,18 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of # Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created # permissions; each `role` can be an IAM predefined role or a user-created
# custom role. # custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical # For some types of Google Cloud resources, a `binding` can also specify a `
# expression that allows access to a resource only if the expression evaluates # condition`, which is a logical expression that allows access to a resource
# to `true`. A condition can add constraints based on attributes of the request, # only if the expression evaluates to `true`. A condition can add constraints
# the resource, or both. # based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the [IAM documentation]
# (https://cloud.google.com/iam/help/conditions/resource-policies).
# **JSON example:** # **JSON example:**
# ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": # ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members":
# [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", " # [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": " # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
# roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
# "condition": ` "title": "expirable access", "description": "Does not grant # ], "condition": ` "title": "expirable access", "description": "Does not grant
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00: # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 `
# **YAML example:** # **YAML example:**
@ -24602,7 +24653,7 @@ module Google
end end
end end
# Sets the scheduling options for an Instance. NextID: 10 # Sets the scheduling options for an Instance. NextID: 11
class Scheduling class Scheduling
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -25166,19 +25217,20 @@ module Google
class ShieldedInstanceConfig class ShieldedInstanceConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Defines whether the instance has integrity monitoring enabled. # Defines whether the instance has integrity monitoring enabled. Enabled by
# default.
# Corresponds to the JSON property `enableIntegrityMonitoring` # Corresponds to the JSON property `enableIntegrityMonitoring`
# @return [Boolean] # @return [Boolean]
attr_accessor :enable_integrity_monitoring attr_accessor :enable_integrity_monitoring
alias_method :enable_integrity_monitoring?, :enable_integrity_monitoring alias_method :enable_integrity_monitoring?, :enable_integrity_monitoring
# Defines whether the instance has Secure Boot enabled. # Defines whether the instance has Secure Boot enabled. Disabled by default.
# Corresponds to the JSON property `enableSecureBoot` # Corresponds to the JSON property `enableSecureBoot`
# @return [Boolean] # @return [Boolean]
attr_accessor :enable_secure_boot attr_accessor :enable_secure_boot
alias_method :enable_secure_boot?, :enable_secure_boot alias_method :enable_secure_boot?, :enable_secure_boot
# Defines whether the instance has the vTPM enabled. # Defines whether the instance has the vTPM enabled. Enabled by default.
# Corresponds to the JSON property `enableVtpm` # Corresponds to the JSON property `enableVtpm`
# @return [Boolean] # @return [Boolean]
attr_accessor :enable_vtpm attr_accessor :enable_vtpm
@ -26481,7 +26533,8 @@ module Google
# Whether to enable flow logging for this subnetwork. If this field is not # Whether to enable flow logging for this subnetwork. If this field is not
# explicitly set, it will not appear in get listings. If not set the default # explicitly set, it will not appear in get listings. If not set the default
# behavior is to disable flow logging. # behavior is to disable flow logging. This field isn't supported with the
# purpose field set to INTERNAL_HTTPS_LOAD_BALANCER.
# Corresponds to the JSON property `enableFlowLogs` # Corresponds to the JSON property `enableFlowLogs`
# @return [Boolean] # @return [Boolean]
attr_accessor :enable_flow_logs attr_accessor :enable_flow_logs
@ -26559,7 +26612,8 @@ module Google
# INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to # INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to
# INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for # INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for
# Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to # Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to
# PRIVATE_RFC_1918. # PRIVATE_RFC_1918. The enableFlowLogs field isn't supported with the purpose
# field set to INTERNAL_HTTPS_LOAD_BALANCER.
# Corresponds to the JSON property `purpose` # Corresponds to the JSON property `purpose`
# @return [String] # @return [String]
attr_accessor :purpose attr_accessor :purpose
@ -31068,7 +31122,12 @@ module Google
end end
end end
# Represents a VPN gateway resource. Next ID: 13 # Represents a HA VPN gateway.
# HA VPN is a high-availability (HA) Cloud VPN solution that lets you securely
# connect your on-premises network to your Google Cloud Virtual Private Cloud
# network through an IPsec VPN connection in a single region. For more
# information about Cloud HA VPN solutions, see Cloud VPN topologies . (==
# resource_for `$api_version`.vpnGateways ==)
class VpnGateway class VpnGateway
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -32670,16 +32729,18 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of # Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created # permissions; each `role` can be an IAM predefined role or a user-created
# custom role. # custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical # For some types of Google Cloud resources, a `binding` can also specify a `
# expression that allows access to a resource only if the expression evaluates # condition`, which is a logical expression that allows access to a resource
# to `true`. A condition can add constraints based on attributes of the request, # only if the expression evaluates to `true`. A condition can add constraints
# the resource, or both. # based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the [IAM documentation]
# (https://cloud.google.com/iam/help/conditions/resource-policies).
# **JSON example:** # **JSON example:**
# ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": # ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members":
# [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", " # [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": " # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
# roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
# "condition": ` "title": "expirable access", "description": "Does not grant # ], "condition": ` "title": "expirable access", "description": "Does not grant
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00: # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 `
# **YAML example:** # **YAML example:**

View File

@ -1921,6 +1921,12 @@ module Google
class MachineType class MachineType
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
class Accelerator
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ScratchDisk class ScratchDisk
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -8087,6 +8093,8 @@ module Google
class MachineType class MachineType
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :accelerators, as: 'accelerators', class: Google::Apis::ComputeV1::MachineType::Accelerator, decorator: Google::Apis::ComputeV1::MachineType::Accelerator::Representation
property :creation_timestamp, as: 'creationTimestamp' property :creation_timestamp, as: 'creationTimestamp'
property :deprecated, as: 'deprecated', class: Google::Apis::ComputeV1::DeprecationStatus, decorator: Google::Apis::ComputeV1::DeprecationStatus::Representation property :deprecated, as: 'deprecated', class: Google::Apis::ComputeV1::DeprecationStatus, decorator: Google::Apis::ComputeV1::DeprecationStatus::Representation
@ -8106,6 +8114,14 @@ module Google
property :zone, as: 'zone' property :zone, as: 'zone'
end end
class Accelerator
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :guest_accelerator_count, as: 'guestAcceleratorCount'
property :guest_accelerator_type, as: 'guestAcceleratorType'
end
end
class ScratchDisk class ScratchDisk
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -16598,6 +16598,46 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the access control policy for a resource. May be empty if no such policy
# or resource exists.
# @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 [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::ComputeV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Policy]
#
# @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_disk_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/regions/{region}/disks/{resource}/getIamPolicy', options)
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
command.response_class = Google::Apis::ComputeV1::Policy
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
# Creates a persistent regional disk in the specified project using the data # Creates a persistent regional disk in the specified project using the data
# included in the request. # included in the request.
# @param [String] project # @param [String] project
@ -16835,6 +16875,49 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @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::ComputeV1::RegionSetPolicyRequest] region_set_policy_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::ComputeV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Policy]
#
# @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_region_disk_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/disks/{resource}/setIamPolicy', options)
command.request_representation = Google::Apis::ComputeV1::RegionSetPolicyRequest::Representation
command.request_object = region_set_policy_request_object
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
command.response_class = Google::Apis::ComputeV1::Policy
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
# Sets the labels on the target regional disk. # Sets the labels on the target regional disk.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.

View File

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

View File

@ -216,6 +216,9 @@ module Google
# Requests for policies with any conditional bindings must specify version 3. # Requests for policies with any conditional bindings must specify version 3.
# Policies without any conditional bindings may specify any valid value or # Policies without any conditional bindings may specify any valid value or
# leave the field unset. # leave the field unset.
# To learn which resources support conditions in their IAM policies, see the
# [IAM
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
# Corresponds to the JSON property `requestedPolicyVersion` # Corresponds to the JSON property `requestedPolicyVersion`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :requested_policy_version attr_accessor :requested_policy_version
@ -1664,10 +1667,13 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of # Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created # permissions; each `role` can be an IAM predefined role or a user-created
# custom role. # custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical # For some types of Google Cloud resources, a `binding` can also specify a
# expression that allows access to a resource only if the expression evaluates # `condition`, which is a logical expression that allows access to a resource
# to `true`. A condition can add constraints based on attributes of the # only if the expression evaluates to `true`. A condition can add constraints
# request, the resource, or both. # based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# **JSON example:** # **JSON example:**
# ` # `
# "bindings": [ # "bindings": [
@ -1682,7 +1688,9 @@ module Google
# `, # `,
# ` # `
# "role": "roles/resourcemanager.organizationViewer", # "role": "roles/resourcemanager.organizationViewer",
# "members": ["user:eve@example.com"], # "members": [
# "user:eve@example.com"
# ],
# "condition": ` # "condition": `
# "title": "expirable access", # "title": "expirable access",
# "description": "Does not grant access after Sep 2020", # "description": "Does not grant access after Sep 2020",
@ -1755,6 +1763,9 @@ module Google
# the conditions in the version `3` policy are lost. # the conditions in the version `3` policy are lost.
# If a policy does not include any conditions, operations on that policy may # If a policy does not include any conditions, operations on that policy may
# specify any valid version or leave the field unset. # specify any valid version or leave the field unset.
# To learn which resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# Corresponds to the JSON property `version` # Corresponds to the JSON property `version`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version attr_accessor :version
@ -1782,10 +1793,13 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of # Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created # permissions; each `role` can be an IAM predefined role or a user-created
# custom role. # custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical # For some types of Google Cloud resources, a `binding` can also specify a
# expression that allows access to a resource only if the expression evaluates # `condition`, which is a logical expression that allows access to a resource
# to `true`. A condition can add constraints based on attributes of the # only if the expression evaluates to `true`. A condition can add constraints
# request, the resource, or both. # based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# **JSON example:** # **JSON example:**
# ` # `
# "bindings": [ # "bindings": [
@ -1800,7 +1814,9 @@ module Google
# `, # `,
# ` # `
# "role": "roles/resourcemanager.organizationViewer", # "role": "roles/resourcemanager.organizationViewer",
# "members": ["user:eve@example.com"], # "members": [
# "user:eve@example.com"
# ],
# "condition": ` # "condition": `
# "title": "expirable access", # "title": "expirable access",
# "description": "Does not grant access after Sep 2020", # "description": "Does not grant access after Sep 2020",

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -22,24 +22,72 @@ module Google
module Apis module Apis
module FileV1 module FileV1
class AttributeValue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Attributes
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BillingView
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelOperationRequest class CancelOperationRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Distribution
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Exemplar
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExplicitBuckets
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExponentialBuckets
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FileShareConfig class FileShareConfig
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleApiServicecontrolV1Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSaasacceleratorManagementProvidersV1Instance class GoogleCloudSaasacceleratorManagementProvidersV1Instance
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -82,12 +130,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class HttpRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Instance class Instance
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class LinearBuckets
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListInstancesResponse class ListInstancesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -112,6 +172,42 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class LogEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogEntryOperation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogEntrySourceLocation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MetricValue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MetricValueSet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Money
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NetworkConfig class NetworkConfig
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -130,24 +226,126 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class QuotaProperties
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReportRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status class Status
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class TraceSpan
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TruncatableString
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AttributeValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bool_value, as: 'boolValue'
property :int_value, :numeric_string => true, as: 'intValue'
property :string_value, as: 'stringValue', class: Google::Apis::FileV1::TruncatableString, decorator: Google::Apis::FileV1::TruncatableString::Representation
end
end
class Attributes
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :attribute_map, as: 'attributeMap', class: Google::Apis::FileV1::AttributeValue, decorator: Google::Apis::FileV1::AttributeValue::Representation
property :dropped_attributes_count, as: 'droppedAttributesCount'
end
end
class BillingView
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :report_requests, as: 'reportRequests', class: Google::Apis::FileV1::ReportRequest, decorator: Google::Apis::FileV1::ReportRequest::Representation
end
end
class CancelOperationRequest class CancelOperationRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
end end
end end
class Distribution
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bucket_counts, as: 'bucketCounts'
property :count, :numeric_string => true, as: 'count'
collection :exemplars, as: 'exemplars', class: Google::Apis::FileV1::Exemplar, decorator: Google::Apis::FileV1::Exemplar::Representation
property :explicit_buckets, as: 'explicitBuckets', class: Google::Apis::FileV1::ExplicitBuckets, decorator: Google::Apis::FileV1::ExplicitBuckets::Representation
property :exponential_buckets, as: 'exponentialBuckets', class: Google::Apis::FileV1::ExponentialBuckets, decorator: Google::Apis::FileV1::ExponentialBuckets::Representation
property :linear_buckets, as: 'linearBuckets', class: Google::Apis::FileV1::LinearBuckets, decorator: Google::Apis::FileV1::LinearBuckets::Representation
property :maximum, as: 'maximum'
property :mean, as: 'mean'
property :minimum, as: 'minimum'
property :sum_of_squared_deviation, as: 'sumOfSquaredDeviation'
end
end
class Empty class Empty
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
end end
end end
class Exemplar
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :attachments, as: 'attachments'
property :timestamp, as: 'timestamp'
property :value, as: 'value'
end
end
class ExplicitBuckets
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bounds, as: 'bounds'
end
end
class ExponentialBuckets
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :growth_factor, as: 'growthFactor'
property :num_finite_buckets, as: 'numFiniteBuckets'
property :scale, as: 'scale'
end
end
class FileShareConfig class FileShareConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -156,6 +354,30 @@ module Google
end end
end end
class GoogleApiServicecontrolV1Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :consumer_id, as: 'consumerId'
property :end_time, as: 'endTime'
property :importance, as: 'importance'
hash :labels, as: 'labels'
collection :log_entries, as: 'logEntries', class: Google::Apis::FileV1::LogEntry, decorator: Google::Apis::FileV1::LogEntry::Representation
collection :metric_value_sets, as: 'metricValueSets', class: Google::Apis::FileV1::MetricValueSet, decorator: Google::Apis::FileV1::MetricValueSet::Representation
property :operation_id, as: 'operationId'
property :operation_name, as: 'operationName'
property :quota_properties, as: 'quotaProperties', class: Google::Apis::FileV1::QuotaProperties, decorator: Google::Apis::FileV1::QuotaProperties::Representation
collection :resources, as: 'resources', class: Google::Apis::FileV1::ResourceInfo, decorator: Google::Apis::FileV1::ResourceInfo::Representation
property :start_time, as: 'startTime'
collection :trace_spans, as: 'traceSpans', class: Google::Apis::FileV1::TraceSpan, decorator: Google::Apis::FileV1::TraceSpan::Representation
hash :user_labels, as: 'userLabels'
end
end
class GoogleCloudSaasacceleratorManagementProvidersV1Instance class GoogleCloudSaasacceleratorManagementProvidersV1Instance
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -238,6 +460,27 @@ module Google
end end
end end
class HttpRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cache_fill_bytes, :numeric_string => true, as: 'cacheFillBytes'
property :cache_hit, as: 'cacheHit'
property :cache_lookup, as: 'cacheLookup'
property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
property :latency, as: 'latency'
property :protocol, as: 'protocol'
property :referer, as: 'referer'
property :remote_ip, as: 'remoteIp'
property :request_method, as: 'requestMethod'
property :request_size, :numeric_string => true, as: 'requestSize'
property :request_url, as: 'requestUrl'
property :response_size, :numeric_string => true, as: 'responseSize'
property :server_ip, as: 'serverIp'
property :status, as: 'status'
property :user_agent, as: 'userAgent'
end
end
class Instance class Instance
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -256,6 +499,15 @@ module Google
end end
end end
class LinearBuckets
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :num_finite_buckets, as: 'numFiniteBuckets'
property :offset, as: 'offset'
property :width, as: 'width'
end
end
class ListInstancesResponse class ListInstancesResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -295,6 +547,81 @@ module Google
end end
end end
class LogEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :http_request, as: 'httpRequest', class: Google::Apis::FileV1::HttpRequest, decorator: Google::Apis::FileV1::HttpRequest::Representation
property :insert_id, as: 'insertId'
hash :labels, as: 'labels'
property :name, as: 'name'
property :operation, as: 'operation', class: Google::Apis::FileV1::LogEntryOperation, decorator: Google::Apis::FileV1::LogEntryOperation::Representation
hash :proto_payload, as: 'protoPayload'
property :severity, as: 'severity'
property :source_location, as: 'sourceLocation', class: Google::Apis::FileV1::LogEntrySourceLocation, decorator: Google::Apis::FileV1::LogEntrySourceLocation::Representation
hash :struct_payload, as: 'structPayload'
property :text_payload, as: 'textPayload'
property :timestamp, as: 'timestamp'
property :trace, as: 'trace'
end
end
class LogEntryOperation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :first, as: 'first'
property :id, as: 'id'
property :last, as: 'last'
property :producer, as: 'producer'
end
end
class LogEntrySourceLocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :file, as: 'file'
property :function, as: 'function'
property :line, :numeric_string => true, as: 'line'
end
end
class MetricValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bool_value, as: 'boolValue'
property :distribution_value, as: 'distributionValue', class: Google::Apis::FileV1::Distribution, decorator: Google::Apis::FileV1::Distribution::Representation
property :double_value, as: 'doubleValue'
property :end_time, as: 'endTime'
property :int64_value, :numeric_string => true, as: 'int64Value'
hash :labels, as: 'labels'
property :money_value, as: 'moneyValue', class: Google::Apis::FileV1::Money, decorator: Google::Apis::FileV1::Money::Representation
property :start_time, as: 'startTime'
property :string_value, as: 'stringValue'
end
end
class MetricValueSet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :metric_name, as: 'metricName'
collection :metric_values, as: 'metricValues', class: Google::Apis::FileV1::MetricValue, decorator: Google::Apis::FileV1::MetricValue::Representation
end
end
class Money
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :currency_code, as: 'currencyCode'
property :nanos, as: 'nanos'
property :units, :numeric_string => true, as: 'units'
end
end
class NetworkConfig class NetworkConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -330,6 +657,32 @@ module Google
end end
end end
class QuotaProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :quota_mode, as: 'quotaMode'
end
end
class ReportRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :operations, as: 'operations', class: Google::Apis::FileV1::GoogleApiServicecontrolV1Operation, decorator: Google::Apis::FileV1::GoogleApiServicecontrolV1Operation::Representation
property :service_config_id, as: 'serviceConfigId'
property :service_name, as: 'serviceName'
end
end
class ResourceInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_container, as: 'resourceContainer'
property :resource_location, as: 'resourceLocation'
property :resource_name, as: 'resourceName'
end
end
class Status class Status
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -338,6 +691,34 @@ module Google
property :message, as: 'message' property :message, as: 'message'
end end
end end
class TraceSpan
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :attributes, as: 'attributes', class: Google::Apis::FileV1::Attributes, decorator: Google::Apis::FileV1::Attributes::Representation
property :child_span_count, as: 'childSpanCount'
property :display_name, as: 'displayName', class: Google::Apis::FileV1::TruncatableString, decorator: Google::Apis::FileV1::TruncatableString::Representation
property :end_time, as: 'endTime'
property :name, as: 'name'
property :parent_span_id, as: 'parentSpanId'
property :same_process_as_parent_span, as: 'sameProcessAsParentSpan'
property :span_id, as: 'spanId'
property :span_kind, as: 'spanKind'
property :start_time, as: 'startTime'
property :status, as: 'status', class: Google::Apis::FileV1::Status, decorator: Google::Apis::FileV1::Status::Representation
end
end
class TruncatableString
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :truncated_byte_count, as: 'truncatedByteCount'
property :value, as: 'value'
end
end
end end
end end
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/filestore/ # @see https://cloud.google.com/filestore/
module FileV1beta1 module FileV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200413' REVISION = '20200513'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -22,24 +22,72 @@ module Google
module Apis module Apis
module FileV1beta1 module FileV1beta1
class AttributeValue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Attributes
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BillingView
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelOperationRequest class CancelOperationRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Distribution
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Exemplar
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExplicitBuckets
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExponentialBuckets
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FileShareConfig class FileShareConfig
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleApiServicecontrolV1Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSaasacceleratorManagementProvidersV1Instance class GoogleCloudSaasacceleratorManagementProvidersV1Instance
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -82,12 +130,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class HttpRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Instance class Instance
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class LinearBuckets
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListInstancesResponse class ListInstancesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -112,6 +172,42 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class LogEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogEntryOperation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogEntrySourceLocation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MetricValue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MetricValueSet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Money
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NetworkConfig class NetworkConfig
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -130,24 +226,126 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class QuotaProperties
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReportRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status class Status
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class TraceSpan
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TruncatableString
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AttributeValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bool_value, as: 'boolValue'
property :int_value, :numeric_string => true, as: 'intValue'
property :string_value, as: 'stringValue', class: Google::Apis::FileV1beta1::TruncatableString, decorator: Google::Apis::FileV1beta1::TruncatableString::Representation
end
end
class Attributes
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :attribute_map, as: 'attributeMap', class: Google::Apis::FileV1beta1::AttributeValue, decorator: Google::Apis::FileV1beta1::AttributeValue::Representation
property :dropped_attributes_count, as: 'droppedAttributesCount'
end
end
class BillingView
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :report_requests, as: 'reportRequests', class: Google::Apis::FileV1beta1::ReportRequest, decorator: Google::Apis::FileV1beta1::ReportRequest::Representation
end
end
class CancelOperationRequest class CancelOperationRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
end end
end end
class Distribution
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bucket_counts, as: 'bucketCounts'
property :count, :numeric_string => true, as: 'count'
collection :exemplars, as: 'exemplars', class: Google::Apis::FileV1beta1::Exemplar, decorator: Google::Apis::FileV1beta1::Exemplar::Representation
property :explicit_buckets, as: 'explicitBuckets', class: Google::Apis::FileV1beta1::ExplicitBuckets, decorator: Google::Apis::FileV1beta1::ExplicitBuckets::Representation
property :exponential_buckets, as: 'exponentialBuckets', class: Google::Apis::FileV1beta1::ExponentialBuckets, decorator: Google::Apis::FileV1beta1::ExponentialBuckets::Representation
property :linear_buckets, as: 'linearBuckets', class: Google::Apis::FileV1beta1::LinearBuckets, decorator: Google::Apis::FileV1beta1::LinearBuckets::Representation
property :maximum, as: 'maximum'
property :mean, as: 'mean'
property :minimum, as: 'minimum'
property :sum_of_squared_deviation, as: 'sumOfSquaredDeviation'
end
end
class Empty class Empty
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
end end
end end
class Exemplar
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :attachments, as: 'attachments'
property :timestamp, as: 'timestamp'
property :value, as: 'value'
end
end
class ExplicitBuckets
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bounds, as: 'bounds'
end
end
class ExponentialBuckets
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :growth_factor, as: 'growthFactor'
property :num_finite_buckets, as: 'numFiniteBuckets'
property :scale, as: 'scale'
end
end
class FileShareConfig class FileShareConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -156,6 +354,30 @@ module Google
end end
end end
class GoogleApiServicecontrolV1Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :consumer_id, as: 'consumerId'
property :end_time, as: 'endTime'
property :importance, as: 'importance'
hash :labels, as: 'labels'
collection :log_entries, as: 'logEntries', class: Google::Apis::FileV1beta1::LogEntry, decorator: Google::Apis::FileV1beta1::LogEntry::Representation
collection :metric_value_sets, as: 'metricValueSets', class: Google::Apis::FileV1beta1::MetricValueSet, decorator: Google::Apis::FileV1beta1::MetricValueSet::Representation
property :operation_id, as: 'operationId'
property :operation_name, as: 'operationName'
property :quota_properties, as: 'quotaProperties', class: Google::Apis::FileV1beta1::QuotaProperties, decorator: Google::Apis::FileV1beta1::QuotaProperties::Representation
collection :resources, as: 'resources', class: Google::Apis::FileV1beta1::ResourceInfo, decorator: Google::Apis::FileV1beta1::ResourceInfo::Representation
property :start_time, as: 'startTime'
collection :trace_spans, as: 'traceSpans', class: Google::Apis::FileV1beta1::TraceSpan, decorator: Google::Apis::FileV1beta1::TraceSpan::Representation
hash :user_labels, as: 'userLabels'
end
end
class GoogleCloudSaasacceleratorManagementProvidersV1Instance class GoogleCloudSaasacceleratorManagementProvidersV1Instance
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -238,6 +460,27 @@ module Google
end end
end end
class HttpRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cache_fill_bytes, :numeric_string => true, as: 'cacheFillBytes'
property :cache_hit, as: 'cacheHit'
property :cache_lookup, as: 'cacheLookup'
property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
property :latency, as: 'latency'
property :protocol, as: 'protocol'
property :referer, as: 'referer'
property :remote_ip, as: 'remoteIp'
property :request_method, as: 'requestMethod'
property :request_size, :numeric_string => true, as: 'requestSize'
property :request_url, as: 'requestUrl'
property :response_size, :numeric_string => true, as: 'responseSize'
property :server_ip, as: 'serverIp'
property :status, as: 'status'
property :user_agent, as: 'userAgent'
end
end
class Instance class Instance
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -256,6 +499,15 @@ module Google
end end
end end
class LinearBuckets
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :num_finite_buckets, as: 'numFiniteBuckets'
property :offset, as: 'offset'
property :width, as: 'width'
end
end
class ListInstancesResponse class ListInstancesResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -295,6 +547,81 @@ module Google
end end
end end
class LogEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :http_request, as: 'httpRequest', class: Google::Apis::FileV1beta1::HttpRequest, decorator: Google::Apis::FileV1beta1::HttpRequest::Representation
property :insert_id, as: 'insertId'
hash :labels, as: 'labels'
property :name, as: 'name'
property :operation, as: 'operation', class: Google::Apis::FileV1beta1::LogEntryOperation, decorator: Google::Apis::FileV1beta1::LogEntryOperation::Representation
hash :proto_payload, as: 'protoPayload'
property :severity, as: 'severity'
property :source_location, as: 'sourceLocation', class: Google::Apis::FileV1beta1::LogEntrySourceLocation, decorator: Google::Apis::FileV1beta1::LogEntrySourceLocation::Representation
hash :struct_payload, as: 'structPayload'
property :text_payload, as: 'textPayload'
property :timestamp, as: 'timestamp'
property :trace, as: 'trace'
end
end
class LogEntryOperation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :first, as: 'first'
property :id, as: 'id'
property :last, as: 'last'
property :producer, as: 'producer'
end
end
class LogEntrySourceLocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :file, as: 'file'
property :function, as: 'function'
property :line, :numeric_string => true, as: 'line'
end
end
class MetricValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bool_value, as: 'boolValue'
property :distribution_value, as: 'distributionValue', class: Google::Apis::FileV1beta1::Distribution, decorator: Google::Apis::FileV1beta1::Distribution::Representation
property :double_value, as: 'doubleValue'
property :end_time, as: 'endTime'
property :int64_value, :numeric_string => true, as: 'int64Value'
hash :labels, as: 'labels'
property :money_value, as: 'moneyValue', class: Google::Apis::FileV1beta1::Money, decorator: Google::Apis::FileV1beta1::Money::Representation
property :start_time, as: 'startTime'
property :string_value, as: 'stringValue'
end
end
class MetricValueSet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :metric_name, as: 'metricName'
collection :metric_values, as: 'metricValues', class: Google::Apis::FileV1beta1::MetricValue, decorator: Google::Apis::FileV1beta1::MetricValue::Representation
end
end
class Money
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :currency_code, as: 'currencyCode'
property :nanos, as: 'nanos'
property :units, :numeric_string => true, as: 'units'
end
end
class NetworkConfig class NetworkConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -330,6 +657,32 @@ module Google
end end
end end
class QuotaProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :quota_mode, as: 'quotaMode'
end
end
class ReportRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :operations, as: 'operations', class: Google::Apis::FileV1beta1::GoogleApiServicecontrolV1Operation, decorator: Google::Apis::FileV1beta1::GoogleApiServicecontrolV1Operation::Representation
property :service_config_id, as: 'serviceConfigId'
property :service_name, as: 'serviceName'
end
end
class ResourceInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_container, as: 'resourceContainer'
property :resource_location, as: 'resourceLocation'
property :resource_name, as: 'resourceName'
end
end
class Status class Status
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -338,6 +691,34 @@ module Google
property :message, as: 'message' property :message, as: 'message'
end end
end end
class TraceSpan
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :attributes, as: 'attributes', class: Google::Apis::FileV1beta1::Attributes, decorator: Google::Apis::FileV1beta1::Attributes::Representation
property :child_span_count, as: 'childSpanCount'
property :display_name, as: 'displayName', class: Google::Apis::FileV1beta1::TruncatableString, decorator: Google::Apis::FileV1beta1::TruncatableString::Representation
property :end_time, as: 'endTime'
property :name, as: 'name'
property :parent_span_id, as: 'parentSpanId'
property :same_process_as_parent_span, as: 'sameProcessAsParentSpan'
property :span_id, as: 'spanId'
property :span_kind, as: 'spanKind'
property :start_time, as: 'startTime'
property :status, as: 'status', class: Google::Apis::FileV1beta1::Status, decorator: Google::Apis::FileV1beta1::Status::Representation
end
end
class TruncatableString
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :truncated_byte_count, as: 'truncatedByteCount'
property :value, as: 'value'
end
end
end end
end end
end end

View File

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

View File

@ -906,13 +906,13 @@ module Google
# There are two feature attribution methods supported for TensorFlow models: # There are two feature attribution methods supported for TensorFlow models:
# integrated gradients and sampled Shapley. # integrated gradients and sampled Shapley.
# [Learn more about feature # [Learn more about feature
# attributions.](/ml-engine/docs/ai-explanations/overview) # attributions.](/ai-platform/prediction/docs/ai-explanations/overview)
class GoogleCloudMlV1ExplanationConfig class GoogleCloudMlV1ExplanationConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Attributes credit by computing the Aumann-Shapley value taking advantage # Attributes credit by computing the Aumann-Shapley value taking advantage
# of the model's fully differentiable structure. Refer to this paper for # of the model's fully differentiable structure. Refer to this paper for
# more details: http://proceedings.mlr.press/v70/sundararajan17a.html # more details: https://arxiv.org/abs/1703.01365
# Corresponds to the JSON property `integratedGradientsAttribution` # Corresponds to the JSON property `integratedGradientsAttribution`
# @return [Google::Apis::MlV1::GoogleCloudMlV1IntegratedGradientsAttribution] # @return [Google::Apis::MlV1::GoogleCloudMlV1IntegratedGradientsAttribution]
attr_accessor :integrated_gradients_attribution attr_accessor :integrated_gradients_attribution
@ -1142,7 +1142,7 @@ module Google
# Attributes credit by computing the Aumann-Shapley value taking advantage # Attributes credit by computing the Aumann-Shapley value taking advantage
# of the model's fully differentiable structure. Refer to this paper for # of the model's fully differentiable structure. Refer to this paper for
# more details: http://proceedings.mlr.press/v70/sundararajan17a.html # more details: https://arxiv.org/abs/1703.01365
class GoogleCloudMlV1IntegratedGradientsAttribution class GoogleCloudMlV1IntegratedGradientsAttribution
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1937,6 +1937,38 @@ module Google
# @return [Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig] # @return [Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig]
attr_accessor :accelerator_config attr_accessor :accelerator_config
# Arguments to the entrypoint command.
# The following rules apply for container_command and container_args:
# - If you do not supply command or args:
# The defaults defined in the Docker image are used.
# - If you supply a command but no args:
# The default EntryPoint and the default Cmd defined in the Docker image
# are ignored. Your command is run without any arguments.
# - If you supply only args:
# The default Entrypoint defined in the Docker image is run with the args
# that you supplied.
# - If you supply a command and args:
# The default Entrypoint and the default Cmd defined in the Docker image
# are ignored. Your command is run with your args.
# It cannot be set if custom container image is
# not provided.
# Note that this field and [TrainingInput.args] are mutually exclusive, i.e.,
# both cannot be set at the same time.
# Corresponds to the JSON property `containerArgs`
# @return [Array<String>]
attr_accessor :container_args
# The command with which the replica's custom container is run.
# If provided, it will override default ENTRYPOINT of the docker image.
# If not provided, the docker image's ENTRYPOINT is used.
# It cannot be set if custom container image is
# not provided.
# Note that this field and [TrainingInput.args] are mutually exclusive, i.e.,
# both cannot be set at the same time.
# Corresponds to the JSON property `containerCommand`
# @return [Array<String>]
attr_accessor :container_command
# The Docker image to run on the replica. This image must be in Container # The Docker image to run on the replica. This image must be in Container
# Registry. Learn more about [configuring custom # Registry. Learn more about [configuring custom
# containers](/ai-platform/training/docs/distributed-training-containers). # containers](/ai-platform/training/docs/distributed-training-containers).
@ -1969,6 +2001,8 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config) @accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config)
@container_args = args[:container_args] if args.key?(:container_args)
@container_command = args[:container_command] if args.key?(:container_command)
@image_uri = args[:image_uri] if args.key?(:image_uri) @image_uri = args[:image_uri] if args.key?(:image_uri)
@tpu_tf_version = args[:tpu_tf_version] if args.key?(:tpu_tf_version) @tpu_tf_version = args[:tpu_tf_version] if args.key?(:tpu_tf_version)
end end
@ -2052,8 +2086,8 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. The maximum job running time, expressed in seconds. The field can # Optional. The maximum job running time, expressed in seconds. The field can
# contain up to nine fractional digits, terminated by `s`. By default there # contain up to nine fractional digits, terminated by `s`. If not specified,
# is no limit to the running time. # this field defaults to `604800s` (seven days).
# If the training job is still running after this duration, AI Platform # If the training job is still running after this duration, AI Platform
# Training cancels it. # Training cancels it.
# For example, if you want to ensure your job runs for no more than 2 hours, # For example, if you want to ensure your job runs for no more than 2 hours,
@ -2075,6 +2109,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :max_running_time attr_accessor :max_running_time
#
# Corresponds to the JSON property `maxWaitTime`
# @return [String]
attr_accessor :max_wait_time
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -2082,6 +2121,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@max_running_time = args[:max_running_time] if args.key?(:max_running_time) @max_running_time = args[:max_running_time] if args.key?(:max_running_time)
@max_wait_time = args[:max_wait_time] if args.key?(:max_wait_time)
end end
end end
@ -2415,6 +2455,19 @@ module Google
# @return [String] # @return [String]
attr_accessor :master_type attr_accessor :master_type
# Optional. The full name of the Google Compute Engine
# [network](/compute/docs/networks-and-firewalls#networks) to which the Job
# is peered. For example, projects/12345/global/networks/myVPC. Format is of
# the form projects/`project`/global/networks/`network`. Where `project` is a
# project number, as in '12345', and `network` is network name.".
# Private services access must already be configured for the network. If left
# unspecified, the Job is not peered with any network. Learn more -
# Connecting Job to user network over private
# IP.
# Corresponds to the JSON property `network`
# @return [String]
attr_accessor :network
# Required. The Google Cloud Storage location of the packages with # Required. The Google Cloud Storage location of the packages with
# the training program and any additional dependencies. # the training program and any additional dependencies.
# The maximum number of package URIs is 100. # The maximum number of package URIs is 100.
@ -2554,6 +2607,7 @@ module Google
@job_dir = args[:job_dir] if args.key?(:job_dir) @job_dir = args[:job_dir] if args.key?(:job_dir)
@master_config = args[:master_config] if args.key?(:master_config) @master_config = args[:master_config] if args.key?(:master_config)
@master_type = args[:master_type] if args.key?(:master_type) @master_type = args[:master_type] if args.key?(:master_type)
@network = args[:network] if args.key?(:network)
@package_uris = args[:package_uris] if args.key?(:package_uris) @package_uris = args[:package_uris] if args.key?(:package_uris)
@parameter_server_config = args[:parameter_server_config] if args.key?(:parameter_server_config) @parameter_server_config = args[:parameter_server_config] if args.key?(:parameter_server_config)
@parameter_server_count = args[:parameter_server_count] if args.key?(:parameter_server_count) @parameter_server_count = args[:parameter_server_count] if args.key?(:parameter_server_count)
@ -2779,7 +2833,7 @@ module Google
# There are two feature attribution methods supported for TensorFlow models: # There are two feature attribution methods supported for TensorFlow models:
# integrated gradients and sampled Shapley. # integrated gradients and sampled Shapley.
# [Learn more about feature # [Learn more about feature
# attributions.](/ml-engine/docs/ai-explanations/overview) # attributions.](/ai-platform/prediction/docs/ai-explanations/overview)
# Corresponds to the JSON property `explanationConfig` # Corresponds to the JSON property `explanationConfig`
# @return [Google::Apis::MlV1::GoogleCloudMlV1ExplanationConfig] # @return [Google::Apis::MlV1::GoogleCloudMlV1ExplanationConfig]
attr_accessor :explanation_config attr_accessor :explanation_config
@ -3233,10 +3287,13 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of # Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created # permissions; each `role` can be an IAM predefined role or a user-created
# custom role. # custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical # For some types of Google Cloud resources, a `binding` can also specify a
# expression that allows access to a resource only if the expression evaluates # `condition`, which is a logical expression that allows access to a resource
# to `true`. A condition can add constraints based on attributes of the # only if the expression evaluates to `true`. A condition can add constraints
# request, the resource, or both. # based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# **JSON example:** # **JSON example:**
# ` # `
# "bindings": [ # "bindings": [
@ -3251,7 +3308,9 @@ module Google
# `, # `,
# ` # `
# "role": "roles/resourcemanager.organizationViewer", # "role": "roles/resourcemanager.organizationViewer",
# "members": ["user:eve@example.com"], # "members": [
# "user:eve@example.com"
# ],
# "condition": ` # "condition": `
# "title": "expirable access", # "title": "expirable access",
# "description": "Does not grant access after Sep 2020", # "description": "Does not grant access after Sep 2020",
@ -3329,6 +3388,9 @@ module Google
# the conditions in the version `3` policy are lost. # the conditions in the version `3` policy are lost.
# If a policy does not include any conditions, operations on that policy may # If a policy does not include any conditions, operations on that policy may
# specify any valid version or leave the field unset. # specify any valid version or leave the field unset.
# To learn which resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# Corresponds to the JSON property `version` # Corresponds to the JSON property `version`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version attr_accessor :version
@ -3357,10 +3419,13 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of # Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created # permissions; each `role` can be an IAM predefined role or a user-created
# custom role. # custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical # For some types of Google Cloud resources, a `binding` can also specify a
# expression that allows access to a resource only if the expression evaluates # `condition`, which is a logical expression that allows access to a resource
# to `true`. A condition can add constraints based on attributes of the # only if the expression evaluates to `true`. A condition can add constraints
# request, the resource, or both. # based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# **JSON example:** # **JSON example:**
# ` # `
# "bindings": [ # "bindings": [
@ -3375,7 +3440,9 @@ module Google
# `, # `,
# ` # `
# "role": "roles/resourcemanager.organizationViewer", # "role": "roles/resourcemanager.organizationViewer",
# "members": ["user:eve@example.com"], # "members": [
# "user:eve@example.com"
# ],
# "condition": ` # "condition": `
# "title": "expirable access", # "title": "expirable access",
# "description": "Does not grant access after Sep 2020", # "description": "Does not grant access after Sep 2020",
@ -3413,8 +3480,7 @@ module Google
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
# the fields in the mask will be modified. If no mask is provided, the # the fields in the mask will be modified. If no mask is provided, the
# following default mask is used: # following default mask is used:
# paths: "bindings, etag" # `paths: "bindings, etag"`
# This field is only used by Cloud IAM.
# Corresponds to the JSON property `updateMask` # Corresponds to the JSON property `updateMask`
# @return [String] # @return [String]
attr_accessor :update_mask attr_accessor :update_mask

View File

@ -984,6 +984,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :accelerator_config, as: 'acceleratorConfig', class: Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig, decorator: Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig::Representation property :accelerator_config, as: 'acceleratorConfig', class: Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig, decorator: Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig::Representation
collection :container_args, as: 'containerArgs'
collection :container_command, as: 'containerCommand'
property :image_uri, as: 'imageUri' property :image_uri, as: 'imageUri'
property :tpu_tf_version, as: 'tpuTfVersion' property :tpu_tf_version, as: 'tpuTfVersion'
end end
@ -1008,6 +1010,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :max_running_time, as: 'maxRunningTime' property :max_running_time, as: 'maxRunningTime'
property :max_wait_time, as: 'maxWaitTime'
end end
end end
@ -1093,6 +1096,7 @@ module Google
property :master_config, as: 'masterConfig', class: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig, decorator: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig::Representation property :master_config, as: 'masterConfig', class: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig, decorator: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig::Representation
property :master_type, as: 'masterType' property :master_type, as: 'masterType'
property :network, as: 'network'
collection :package_uris, as: 'packageUris' collection :package_uris, as: 'packageUris'
property :parameter_server_config, as: 'parameterServerConfig', class: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig, decorator: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig::Representation property :parameter_server_config, as: 'parameterServerConfig', class: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig, decorator: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig::Representation

View File

@ -48,8 +48,7 @@ module Google
end end
# Performs explanation on the data in the request. # Performs explanation on the data in the request.
# AI Platform implements a custom `explain` verb on top of an HTTP POST # <div>`% dynamic include "/ai-platform/includes/___explain-request" %`</div>
# method.
# @param [String] name # @param [String] name
# Required. The resource name of a model or a version. # Required. The resource name of a model or a version.
# Authorization: requires the `predict` permission on the specified resource. # Authorization: requires the `predict` permission on the specified resource.
@ -260,6 +259,9 @@ module Google
# Requests for policies with any conditional bindings must specify version 3. # Requests for policies with any conditional bindings must specify version 3.
# Policies without any conditional bindings may specify any valid value or # Policies without any conditional bindings may specify any valid value or
# leave the field unset. # leave the field unset.
# To learn which resources support conditions in their IAM policies, see the
# [IAM
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -397,7 +399,7 @@ module Google
# Sets the access control policy on the specified resource. Replaces any # Sets the access control policy on the specified resource. Replaces any
# existing policy. # existing policy.
# Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field. # See the operation documentation for the appropriate value for this field.
@ -433,7 +435,7 @@ module Google
# Returns permissions that a caller has on the specified resource. # Returns permissions that a caller has on the specified resource.
# If the resource does not exist, this will return an empty set of # If the resource does not exist, this will return an empty set of
# permissions, not a NOT_FOUND error. # permissions, not a `NOT_FOUND` error.
# Note: This operation is designed to be used for building permission-aware # Note: This operation is designed to be used for building permission-aware
# UIs and command-line tools, not for authorization checking. This operation # UIs and command-line tools, not for authorization checking. This operation
# may "fail open" without warning. # may "fail open" without warning.
@ -1154,6 +1156,9 @@ module Google
# Requests for policies with any conditional bindings must specify version 3. # Requests for policies with any conditional bindings must specify version 3.
# Policies without any conditional bindings may specify any valid value or # Policies without any conditional bindings may specify any valid value or
# leave the field unset. # leave the field unset.
# To learn which resources support conditions in their IAM policies, see the
# [IAM
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1282,7 +1287,7 @@ module Google
# Sets the access control policy on the specified resource. Replaces any # Sets the access control policy on the specified resource. Replaces any
# existing policy. # existing policy.
# Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field. # See the operation documentation for the appropriate value for this field.
@ -1318,7 +1323,7 @@ module Google
# Returns permissions that a caller has on the specified resource. # Returns permissions that a caller has on the specified resource.
# If the resource does not exist, this will return an empty set of # If the resource does not exist, this will return an empty set of
# permissions, not a NOT_FOUND error. # permissions, not a `NOT_FOUND` error.
# Note: This operation is designed to be used for building permission-aware # Note: This operation is designed to be used for building permission-aware
# UIs and command-line tools, not for authorization checking. This operation # UIs and command-line tools, not for authorization checking. This operation
# may "fail open" without warning. # may "fail open" without warning.

View File

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

View File

@ -536,9 +536,9 @@ module Google
# Subject to whom this error applies. See the specific code enum for more # Subject to whom this error applies. See the specific code enum for more
# details on this field. For example: # details on this field. For example:
# - “project:<project-id or project-number>” # - "project:<project-id or project-number>"
# - “folder:<folder-id>” # - "folder:<folder-id>"
# - “organization:<organization-id>” # - "organization:<organization-id>"
# Corresponds to the JSON property `subject` # Corresponds to the JSON property `subject`
# @return [String] # @return [String]
attr_accessor :subject attr_accessor :subject