From a716526a90f3cec1bf2dadb521b526ec0664512d Mon Sep 17 00:00:00 2001 From: Google APIs Date: Fri, 6 Dec 2019 00:37:08 +0000 Subject: [PATCH] Autogenerated update (2019-12-06) Update: - container_v1beta1 - dlp_v2 - ml_v1 - remotebuildexecution_v1 - remotebuildexecution_v1alpha - remotebuildexecution_v2 - runtimeconfig_v1beta1 --- generated/google/apis/container_v1beta1.rb | 2 +- .../google/apis/container_v1beta1/classes.rb | 32 +++++ .../apis/container_v1beta1/representations.rb | 16 +++ generated/google/apis/dlp_v2.rb | 2 +- generated/google/apis/dlp_v2/classes.rb | 8 +- generated/google/apis/ml_v1.rb | 2 +- generated/google/apis/ml_v1/classes.rb | 116 +++++++++++------- .../google/apis/remotebuildexecution_v1.rb | 2 +- .../apis/remotebuildexecution_v1/classes.rb | 56 +++++++++ .../representations.rb | 31 +++++ .../apis/remotebuildexecution_v1alpha.rb | 2 +- .../remotebuildexecution_v1alpha/classes.rb | 56 +++++++++ .../representations.rb | 31 +++++ .../google/apis/remotebuildexecution_v2.rb | 2 +- .../apis/remotebuildexecution_v2/classes.rb | 56 +++++++++ .../representations.rb | 31 +++++ .../google/apis/runtimeconfig_v1beta1.rb | 2 +- .../apis/runtimeconfig_v1beta1/classes.rb | 116 +++++++++++------- 18 files changed, 470 insertions(+), 93 deletions(-) diff --git a/generated/google/apis/container_v1beta1.rb b/generated/google/apis/container_v1beta1.rb index 491a9f623..543c5af2c 100644 --- a/generated/google/apis/container_v1beta1.rb +++ b/generated/google/apis/container_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1beta1 VERSION = 'V1beta1' - REVISION = '20191024' + REVISION = '20191115' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/container_v1beta1/classes.rb b/generated/google/apis/container_v1beta1/classes.rb index e4cce3c29..a5e9948de 100644 --- a/generated/google/apis/container_v1beta1/classes.rb +++ b/generated/google/apis/container_v1beta1/classes.rb @@ -218,6 +218,32 @@ module Google end end + # AvailableVersion is an additional Kubernetes versions offered + # to users who subscribed to the release channel. + class AvailableVersion + include Google::Apis::Core::Hashable + + # Reason for availability. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # Kubernetes version. + # Corresponds to the JSON property `version` + # @return [String] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @reason = args[:reason] if args.key?(:reason) + @version = args[:version] if args.key?(:version) + end + end + # Parameters for using BigQuery as the destination of resource usage export. class BigQueryDestination include Google::Apis::Core::Hashable @@ -3019,6 +3045,11 @@ module Google class ReleaseChannelConfig include Google::Apis::Core::Hashable + # List of available versions for the release channel. + # Corresponds to the JSON property `availableVersions` + # @return [Array] + attr_accessor :available_versions + # The release channel this configuration applies to. # Corresponds to the JSON property `channel` # @return [String] @@ -3035,6 +3066,7 @@ module Google # Update properties of this object def update!(**args) + @available_versions = args[:available_versions] if args.key?(:available_versions) @channel = args[:channel] if args.key?(:channel) @default_version = args[:default_version] if args.key?(:default_version) end diff --git a/generated/google/apis/container_v1beta1/representations.rb b/generated/google/apis/container_v1beta1/representations.rb index 0ac3c2b1f..4b198b97b 100644 --- a/generated/google/apis/container_v1beta1/representations.rb +++ b/generated/google/apis/container_v1beta1/representations.rb @@ -52,6 +52,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AvailableVersion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BigQueryDestination class Representation < Google::Apis::Core::JsonRepresentation; end @@ -640,6 +646,14 @@ module Google end end + class AvailableVersion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :reason, as: 'reason' + property :version, as: 'version' + end + end + class BigQueryDestination # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1308,6 +1322,8 @@ module Google class ReleaseChannelConfig # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :available_versions, as: 'availableVersions', class: Google::Apis::ContainerV1beta1::AvailableVersion, decorator: Google::Apis::ContainerV1beta1::AvailableVersion::Representation + property :channel, as: 'channel' property :default_version, as: 'defaultVersion' end diff --git a/generated/google/apis/dlp_v2.rb b/generated/google/apis/dlp_v2.rb index 9320becf9..ed8854803 100644 --- a/generated/google/apis/dlp_v2.rb +++ b/generated/google/apis/dlp_v2.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/dlp/docs/ module DlpV2 VERSION = 'V2' - REVISION = '20191118' + REVISION = '20191202' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dlp_v2/classes.rb b/generated/google/apis/dlp_v2/classes.rb index f48da9de5..3e298d5ee 100644 --- a/generated/google/apis/dlp_v2/classes.rb +++ b/generated/google/apis/dlp_v2/classes.rb @@ -1212,7 +1212,7 @@ module Google class GooglePrivacyDlpV2CreateStoredInfoTypeRequest include Google::Apis::Core::Hashable - # Configuration for stored infoT types. All fields and subfield are provided + # Configuration for stored infoTypes. All fields and subfield are provided # by the user. For more information, see # https://cloud.google.com/dlp/docs/creating-custom-infotypes. # Corresponds to the JSON property `config` @@ -5287,7 +5287,7 @@ module Google end end - # Configuration for stored infoT types. All fields and subfield are provided + # Configuration for stored infoTypes. All fields and subfield are provided # by the user. For more information, see # https://cloud.google.com/dlp/docs/creating-custom-infotypes. class GooglePrivacyDlpV2StoredInfoTypeConfig @@ -5349,7 +5349,7 @@ module Google class GooglePrivacyDlpV2StoredInfoTypeVersion include Google::Apis::Core::Hashable - # Configuration for stored infoT types. All fields and subfield are provided + # Configuration for stored infoTypes. All fields and subfield are provided # by the user. For more information, see # https://cloud.google.com/dlp/docs/creating-custom-infotypes. # Corresponds to the JSON property `config` @@ -5892,7 +5892,7 @@ module Google class GooglePrivacyDlpV2UpdateStoredInfoTypeRequest include Google::Apis::Core::Hashable - # Configuration for stored infoT types. All fields and subfield are provided + # Configuration for stored infoTypes. All fields and subfield are provided # by the user. For more information, see # https://cloud.google.com/dlp/docs/creating-custom-infotypes. # Corresponds to the JSON property `config` diff --git a/generated/google/apis/ml_v1.rb b/generated/google/apis/ml_v1.rb index c74f2b5fe..7181a2b09 100644 --- a/generated/google/apis/ml_v1.rb +++ b/generated/google/apis/ml_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/ml/ module MlV1 VERSION = 'V1' - REVISION = '20191112' + REVISION = '20191122' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/ml_v1/classes.rb b/generated/google/apis/ml_v1/classes.rb index 58d5d54e9..7cd0dfda1 100644 --- a/generated/google/apis/ml_v1/classes.rb +++ b/generated/google/apis/ml_v1/classes.rb @@ -2135,6 +2135,23 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. + # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a user that has been recently deleted. For + # example,`alice@example.com?uid=123456789012345678901`. If the user is + # recovered, this value reverts to `user:`emailid`` and the recovered user + # retains the role in the binding. + # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, + # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to + # `serviceAccount:`emailid`` and the undeleted service account retains the + # role in the binding. + # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently + # deleted. For example, `admins@example.com?uid=123456789012345678901`. If + # the group is recovered, this value reverts to `group:`emailid`` and the + # recovered group retains the role in the binding. # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` @@ -2159,16 +2176,18 @@ module Google end end - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. # A `Policy` is a collection of `bindings`. A `binding` binds one or more # `members` to a single `role`. Members can be user accounts, service accounts, # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions (defined by IAM or configured by users). A `binding` can - # optionally specify a `condition`, which is a logic expression that further - # constrains the role binding based on attributes about the request and/or - # target resource. - # **JSON Example** + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # Optionally, a `binding` can specify a `condition`, which is a logical + # expression that allows access to a resource only if the expression evaluates + # to `true`. A condition can add constraints based on attributes of the + # request, the resource, or both. + # **JSON example:** # ` # "bindings": [ # ` @@ -2186,13 +2205,15 @@ module Google # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", + # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') + # ", # ` # ` - # ] + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 # ` - # **YAML Example** + # **YAML example:** # bindings: # - members: # - user:mike@example.com @@ -2207,8 +2228,10 @@ module Google # title: expirable access # description: Does not grant access after Sep 2020 # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # - etag: BwWWja0YfJA= + # - version: 3 # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam/docs). + # [IAM documentation](https://cloud.google.com/iam/docs/). class GoogleIamV1Policy include Google::Apis::Core::Hashable @@ -2217,9 +2240,9 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. Optionally may specify a - # `condition` that determines when binding is in effect. - # `bindings` with no members will result in an error. + # Associates a list of `members` to a `role`. Optionally, may specify a + # `condition` that determines how and when the `bindings` are applied. Each + # of the `bindings` must contain at least one member. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings @@ -2231,26 +2254,31 @@ module Google # conditions: An `etag` is returned in the response to `getIamPolicy`, and # systems are expected to put that etag in the request to `setIamPolicy` to # ensure that their change will be applied to the same version of the policy. - # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if the incoming policy version does not - # meet the requirements for modifying the stored policy. + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag # Specifies the format of the policy. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Operations affecting conditional bindings must specify version 3. This can - # be either setting a conditional policy, modifying a conditional binding, - # or removing a binding (conditional or unconditional) from the stored - # conditional policy. - # Operations on non-conditional policies may specify any valid value or - # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, version compliance - # checks against the stored policy is skipped. + # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + # are rejected. + # Any operation that affects conditional role bindings must specify version + # `3`. This requirement applies to the following operations: + # * Getting a policy that includes a conditional role binding + # * Adding a conditional role binding to a policy + # * Changing a conditional role binding in a policy + # * Removing any role binding, with or without a condition, from a policy + # that includes conditions + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. + # If a policy does not include any conditions, operations on that policy may + # specify any valid version or leave the field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -2272,16 +2300,18 @@ module Google class GoogleIamV1SetIamPolicyRequest include Google::Apis::Core::Hashable - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. # A `Policy` is a collection of `bindings`. A `binding` binds one or more # `members` to a single `role`. Members can be user accounts, service accounts, # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions (defined by IAM or configured by users). A `binding` can - # optionally specify a `condition`, which is a logic expression that further - # constrains the role binding based on attributes about the request and/or - # target resource. - # **JSON Example** + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # Optionally, a `binding` can specify a `condition`, which is a logical + # expression that allows access to a resource only if the expression evaluates + # to `true`. A condition can add constraints based on attributes of the + # request, the resource, or both. + # **JSON example:** # ` # "bindings": [ # ` @@ -2299,13 +2329,15 @@ module Google # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", + # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') + # ", # ` # ` - # ] + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 # ` - # **YAML Example** + # **YAML example:** # bindings: # - members: # - user:mike@example.com @@ -2320,8 +2352,10 @@ module Google # title: expirable access # description: Does not grant access after Sep 2020 # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # - etag: BwWWja0YfJA= + # - version: 3 # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam/docs). + # [IAM documentation](https://cloud.google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::MlV1::GoogleIamV1Policy] attr_accessor :policy diff --git a/generated/google/apis/remotebuildexecution_v1.rb b/generated/google/apis/remotebuildexecution_v1.rb index f446404b0..4295f41bc 100644 --- a/generated/google/apis/remotebuildexecution_v1.rb +++ b/generated/google/apis/remotebuildexecution_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/remote-build-execution/docs/ module RemotebuildexecutionV1 VERSION = 'V1' - REVISION = '20191119' + REVISION = '20191203' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/remotebuildexecution_v1/classes.rb b/generated/google/apis/remotebuildexecution_v1/classes.rb index 9e1461267..73c46061a 100644 --- a/generated/google/apis/remotebuildexecution_v1/classes.rb +++ b/generated/google/apis/remotebuildexecution_v1/classes.rb @@ -1616,6 +1616,62 @@ module Google end end + # ResourceUsage is the system resource usage of the host machine. + class GoogleDevtoolsRemotebuildbotResourceUsage + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `cpuUsedPercent` + # @return [Float] + attr_accessor :cpu_used_percent + + # + # Corresponds to the JSON property `diskUsage` + # @return [Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildbotResourceUsageStat] + attr_accessor :disk_usage + + # + # Corresponds to the JSON property `memoryUsage` + # @return [Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildbotResourceUsageStat] + attr_accessor :memory_usage + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cpu_used_percent = args[:cpu_used_percent] if args.key?(:cpu_used_percent) + @disk_usage = args[:disk_usage] if args.key?(:disk_usage) + @memory_usage = args[:memory_usage] if args.key?(:memory_usage) + end + end + + # + class GoogleDevtoolsRemotebuildbotResourceUsageStat + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `total` + # @return [Fixnum] + attr_accessor :total + + # + # Corresponds to the JSON property `used` + # @return [Fixnum] + attr_accessor :used + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @total = args[:total] if args.key?(:total) + @used = args[:used] if args.key?(:used) + end + end + # AcceleratorConfig defines the accelerator cards to attach to the VM. class GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig include Google::Apis::Core::Hashable diff --git a/generated/google/apis/remotebuildexecution_v1/representations.rb b/generated/google/apis/remotebuildexecution_v1/representations.rb index ea60187cd..42fdaaeef 100644 --- a/generated/google/apis/remotebuildexecution_v1/representations.rb +++ b/generated/google/apis/remotebuildexecution_v1/representations.rb @@ -172,6 +172,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleDevtoolsRemotebuildbotResourceUsage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDevtoolsRemotebuildbotResourceUsageStat + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -651,6 +663,25 @@ module Google end end + class GoogleDevtoolsRemotebuildbotResourceUsage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cpu_used_percent, as: 'cpuUsedPercent' + property :disk_usage, as: 'diskUsage', class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildbotResourceUsageStat, decorator: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildbotResourceUsageStat::Representation + + property :memory_usage, as: 'memoryUsage', class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildbotResourceUsageStat, decorator: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildbotResourceUsageStat::Representation + + end + end + + class GoogleDevtoolsRemotebuildbotResourceUsageStat + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :total, :numeric_string => true, as: 'total' + property :used, :numeric_string => true, as: 'used' + end + end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/remotebuildexecution_v1alpha.rb b/generated/google/apis/remotebuildexecution_v1alpha.rb index f5ab3b76f..05feee2cc 100644 --- a/generated/google/apis/remotebuildexecution_v1alpha.rb +++ b/generated/google/apis/remotebuildexecution_v1alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/remote-build-execution/docs/ module RemotebuildexecutionV1alpha VERSION = 'V1alpha' - REVISION = '20191119' + REVISION = '20191203' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/remotebuildexecution_v1alpha/classes.rb b/generated/google/apis/remotebuildexecution_v1alpha/classes.rb index 737da59a7..4105a46e9 100644 --- a/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +++ b/generated/google/apis/remotebuildexecution_v1alpha/classes.rb @@ -1597,6 +1597,62 @@ module Google end end + # ResourceUsage is the system resource usage of the host machine. + class GoogleDevtoolsRemotebuildbotResourceUsage + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `cpuUsedPercent` + # @return [Float] + attr_accessor :cpu_used_percent + + # + # Corresponds to the JSON property `diskUsage` + # @return [Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildbotResourceUsageStat] + attr_accessor :disk_usage + + # + # Corresponds to the JSON property `memoryUsage` + # @return [Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildbotResourceUsageStat] + attr_accessor :memory_usage + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cpu_used_percent = args[:cpu_used_percent] if args.key?(:cpu_used_percent) + @disk_usage = args[:disk_usage] if args.key?(:disk_usage) + @memory_usage = args[:memory_usage] if args.key?(:memory_usage) + end + end + + # + class GoogleDevtoolsRemotebuildbotResourceUsageStat + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `total` + # @return [Fixnum] + attr_accessor :total + + # + # Corresponds to the JSON property `used` + # @return [Fixnum] + attr_accessor :used + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @total = args[:total] if args.key?(:total) + @used = args[:used] if args.key?(:used) + end + end + # AcceleratorConfig defines the accelerator cards to attach to the VM. class GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig include Google::Apis::Core::Hashable diff --git a/generated/google/apis/remotebuildexecution_v1alpha/representations.rb b/generated/google/apis/remotebuildexecution_v1alpha/representations.rb index 8200f3b15..38bbbd437 100644 --- a/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +++ b/generated/google/apis/remotebuildexecution_v1alpha/representations.rb @@ -166,6 +166,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleDevtoolsRemotebuildbotResourceUsage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDevtoolsRemotebuildbotResourceUsageStat + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -620,6 +632,25 @@ module Google end end + class GoogleDevtoolsRemotebuildbotResourceUsage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cpu_used_percent, as: 'cpuUsedPercent' + property :disk_usage, as: 'diskUsage', class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildbotResourceUsageStat, decorator: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildbotResourceUsageStat::Representation + + property :memory_usage, as: 'memoryUsage', class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildbotResourceUsageStat, decorator: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildbotResourceUsageStat::Representation + + end + end + + class GoogleDevtoolsRemotebuildbotResourceUsageStat + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :total, :numeric_string => true, as: 'total' + property :used, :numeric_string => true, as: 'used' + end + end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/remotebuildexecution_v2.rb b/generated/google/apis/remotebuildexecution_v2.rb index 493ffba5e..21c9a8de9 100644 --- a/generated/google/apis/remotebuildexecution_v2.rb +++ b/generated/google/apis/remotebuildexecution_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/remote-build-execution/docs/ module RemotebuildexecutionV2 VERSION = 'V2' - REVISION = '20191119' + REVISION = '20191203' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/remotebuildexecution_v2/classes.rb b/generated/google/apis/remotebuildexecution_v2/classes.rb index 8e3a0749e..2df494117 100644 --- a/generated/google/apis/remotebuildexecution_v2/classes.rb +++ b/generated/google/apis/remotebuildexecution_v2/classes.rb @@ -2294,6 +2294,62 @@ module Google end end + # ResourceUsage is the system resource usage of the host machine. + class GoogleDevtoolsRemotebuildbotResourceUsage + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `cpuUsedPercent` + # @return [Float] + attr_accessor :cpu_used_percent + + # + # Corresponds to the JSON property `diskUsage` + # @return [Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildbotResourceUsageStat] + attr_accessor :disk_usage + + # + # Corresponds to the JSON property `memoryUsage` + # @return [Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildbotResourceUsageStat] + attr_accessor :memory_usage + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cpu_used_percent = args[:cpu_used_percent] if args.key?(:cpu_used_percent) + @disk_usage = args[:disk_usage] if args.key?(:disk_usage) + @memory_usage = args[:memory_usage] if args.key?(:memory_usage) + end + end + + # + class GoogleDevtoolsRemotebuildbotResourceUsageStat + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `total` + # @return [Fixnum] + attr_accessor :total + + # + # Corresponds to the JSON property `used` + # @return [Fixnum] + attr_accessor :used + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @total = args[:total] if args.key?(:total) + @used = args[:used] if args.key?(:used) + end + end + # AcceleratorConfig defines the accelerator cards to attach to the VM. class GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig include Google::Apis::Core::Hashable diff --git a/generated/google/apis/remotebuildexecution_v2/representations.rb b/generated/google/apis/remotebuildexecution_v2/representations.rb index 4e1bd66f9..4bb6c1e2a 100644 --- a/generated/google/apis/remotebuildexecution_v2/representations.rb +++ b/generated/google/apis/remotebuildexecution_v2/representations.rb @@ -292,6 +292,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleDevtoolsRemotebuildbotResourceUsage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDevtoolsRemotebuildbotResourceUsageStat + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -938,6 +950,25 @@ module Google end end + class GoogleDevtoolsRemotebuildbotResourceUsage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cpu_used_percent, as: 'cpuUsedPercent' + property :disk_usage, as: 'diskUsage', class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildbotResourceUsageStat, decorator: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildbotResourceUsageStat::Representation + + property :memory_usage, as: 'memoryUsage', class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildbotResourceUsageStat, decorator: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildbotResourceUsageStat::Representation + + end + end + + class GoogleDevtoolsRemotebuildbotResourceUsageStat + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :total, :numeric_string => true, as: 'total' + property :used, :numeric_string => true, as: 'used' + end + end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/runtimeconfig_v1beta1.rb b/generated/google/apis/runtimeconfig_v1beta1.rb index ee63bd34b..f3834c670 100644 --- a/generated/google/apis/runtimeconfig_v1beta1.rb +++ b/generated/google/apis/runtimeconfig_v1beta1.rb @@ -28,7 +28,7 @@ module Google # @see https://cloud.google.com/deployment-manager/runtime-configurator/ module RuntimeconfigV1beta1 VERSION = 'V1beta1' - REVISION = '20191112' + REVISION = '20191202' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/runtimeconfig_v1beta1/classes.rb b/generated/google/apis/runtimeconfig_v1beta1/classes.rb index 71737002f..e7000e5ee 100644 --- a/generated/google/apis/runtimeconfig_v1beta1/classes.rb +++ b/generated/google/apis/runtimeconfig_v1beta1/classes.rb @@ -46,6 +46,23 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. + # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a user that has been recently deleted. For + # example, `alice@example.com?uid=123456789012345678901`. If the user is + # recovered, this value reverts to `user:`emailid`` and the recovered user + # retains the role in the binding. + # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, + # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to + # `serviceAccount:`emailid`` and the undeleted service account retains the + # role in the binding. + # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently + # deleted. For example, `admins@example.com?uid=123456789012345678901`. If + # the group is recovered, this value reverts to `group:`emailid`` and the + # recovered group retains the role in the binding. # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` @@ -358,16 +375,18 @@ module Google end end - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. # A `Policy` is a collection of `bindings`. A `binding` binds one or more # `members` to a single `role`. Members can be user accounts, service accounts, # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions (defined by IAM or configured by users). A `binding` can - # optionally specify a `condition`, which is a logic expression that further - # constrains the role binding based on attributes about the request and/or - # target resource. - # **JSON Example** + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # Optionally, a `binding` can specify a `condition`, which is a logical + # expression that allows access to a resource only if the expression evaluates + # to `true`. A condition can add constraints based on attributes of the + # request, the resource, or both. + # **JSON example:** # ` # "bindings": [ # ` @@ -385,13 +404,15 @@ module Google # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", + # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') + # ", # ` # ` - # ] + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 # ` - # **YAML Example** + # **YAML example:** # bindings: # - members: # - user:mike@example.com @@ -406,14 +427,16 @@ module Google # title: expirable access # description: Does not grant access after Sep 2020 # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # - etag: BwWWja0YfJA= + # - version: 3 # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam/docs). + # [IAM documentation](https://cloud.google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable - # Associates a list of `members` to a `role`. Optionally may specify a - # `condition` that determines when binding is in effect. - # `bindings` with no members will result in an error. + # Associates a list of `members` to a `role`. Optionally, may specify a + # `condition` that determines how and when the `bindings` are applied. Each + # of the `bindings` must contain at least one member. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings @@ -425,26 +448,31 @@ module Google # conditions: An `etag` is returned in the response to `getIamPolicy`, and # systems are expected to put that etag in the request to `setIamPolicy` to # ensure that their change will be applied to the same version of the policy. - # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if the incoming policy version does not - # meet the requirements for modifying the stored policy. + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag # Specifies the format of the policy. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Operations affecting conditional bindings must specify version 3. This can - # be either setting a conditional policy, modifying a conditional binding, - # or removing a binding (conditional or unconditional) from the stored - # conditional policy. - # Operations on non-conditional policies may specify any valid value or - # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, version compliance - # checks against the stored policy is skipped. + # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + # are rejected. + # Any operation that affects conditional role bindings must specify version + # `3`. This requirement applies to the following operations: + # * Getting a policy that includes a conditional role binding + # * Adding a conditional role binding to a policy + # * Changing a conditional role binding in a policy + # * Removing any role binding, with or without a condition, from a policy + # that includes conditions + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. + # If a policy does not include any conditions, operations on that policy may + # specify any valid version or leave the field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -500,16 +528,18 @@ module Google class SetIamPolicyRequest include Google::Apis::Core::Hashable - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. # A `Policy` is a collection of `bindings`. A `binding` binds one or more # `members` to a single `role`. Members can be user accounts, service accounts, # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions (defined by IAM or configured by users). A `binding` can - # optionally specify a `condition`, which is a logic expression that further - # constrains the role binding based on attributes about the request and/or - # target resource. - # **JSON Example** + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # Optionally, a `binding` can specify a `condition`, which is a logical + # expression that allows access to a resource only if the expression evaluates + # to `true`. A condition can add constraints based on attributes of the + # request, the resource, or both. + # **JSON example:** # ` # "bindings": [ # ` @@ -527,13 +557,15 @@ module Google # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", + # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') + # ", # ` # ` - # ] + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 # ` - # **YAML Example** + # **YAML example:** # bindings: # - members: # - user:mike@example.com @@ -548,8 +580,10 @@ module Google # title: expirable access # description: Does not grant access after Sep 2020 # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # - etag: BwWWja0YfJA= + # - version: 3 # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam/docs). + # [IAM documentation](https://cloud.google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::RuntimeconfigV1beta1::Policy] attr_accessor :policy