Autogenerated update (2020-08-17)

Update:
- artifactregistry_v1beta1
- clouddebugger_v2
- tpu_v1
- tpu_v1alpha1
This commit is contained in:
Google APIs 2020-08-17 00:38:17 +00:00
parent b0a4aad4ee
commit eb61ab2523
13 changed files with 547 additions and 709 deletions

View File

@ -136898,6 +136898,7 @@
"/tpu:v1/Node/serviceAccount": service_account "/tpu:v1/Node/serviceAccount": service_account
"/tpu:v1/Node/state": state "/tpu:v1/Node/state": state
"/tpu:v1/Node/tensorflowVersion": tensorflow_version "/tpu:v1/Node/tensorflowVersion": tensorflow_version
"/tpu:v1/Node/useServiceNetworking": use_service_networking
"/tpu:v1/Operation": operation "/tpu:v1/Operation": operation
"/tpu:v1/Operation/done": done "/tpu:v1/Operation/done": done
"/tpu:v1/Operation/error": error "/tpu:v1/Operation/error": error
@ -137047,6 +137048,7 @@
"/tpu:v1alpha1/Node/serviceAccount": service_account "/tpu:v1alpha1/Node/serviceAccount": service_account
"/tpu:v1alpha1/Node/state": state "/tpu:v1alpha1/Node/state": state
"/tpu:v1alpha1/Node/tensorflowVersion": tensorflow_version "/tpu:v1alpha1/Node/tensorflowVersion": tensorflow_version
"/tpu:v1alpha1/Node/useServiceNetworking": use_service_networking
"/tpu:v1alpha1/Operation": operation "/tpu:v1alpha1/Operation": operation
"/tpu:v1alpha1/Operation/done": done "/tpu:v1alpha1/Operation/done": done
"/tpu:v1alpha1/Operation/error": error "/tpu:v1alpha1/Operation/error": error

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/artifacts/docs/ # @see https://cloud.google.com/artifacts/docs/
module ArtifactregistryV1beta1 module ArtifactregistryV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200701' REVISION = '20200807'
# 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

@ -26,69 +26,57 @@ module Google
class Binding class Binding
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents a textual expression in the Common Expression Language (CEL) # Represents a textual expression in the Common Expression Language (CEL) syntax.
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL # CEL is a C-like expression language. The syntax and semantics of CEL are
# are documented at https://github.com/google/cel-spec. # documented at https://github.com/google/cel-spec. Example (Comparison): title:
# Example (Comparison): # "Summary size limit" description: "Determines if a summary is less than 100
# title: "Summary size limit" # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
# description: "Determines if a summary is less than 100 chars" # Requestor is owner" description: "Determines if requestor is the document
# expression: "document.summary.size() < 100" # owner" expression: "document.owner == request.auth.claims.email" Example (
# Example (Equality): # Logic): title: "Public documents" description: "Determine whether the document
# title: "Requestor is owner" # should be publicly visible" expression: "document.type != 'private' &&
# description: "Determines if requestor is the document owner" # document.type != 'internal'" Example (Data Manipulation): title: "Notification
# expression: "document.owner == request.auth.claims.email" # string" description: "Create a notification string with a timestamp."
# Example (Logic): # expression: "'New message received at ' + string(document.create_time)" The
# title: "Public documents" # exact variables and functions that may be referenced within an expression are
# description: "Determine whether the document should be publicly visible" # determined by the service that evaluates it. See the service documentation for
# expression: "document.type != 'private' && document.type != 'internal'" # additional information.
# Example (Data Manipulation):
# title: "Notification string"
# description: "Create a notification string with a timestamp."
# expression: "'New message received at ' + string(document.create_time)"
# The exact variables and functions that may be referenced within an expression
# are determined by the service that evaluates it. See the service
# documentation for additional information.
# Corresponds to the JSON property `condition` # Corresponds to the JSON property `condition`
# @return [Google::Apis::ArtifactregistryV1beta1::Expr] # @return [Google::Apis::ArtifactregistryV1beta1::Expr]
attr_accessor :condition attr_accessor :condition
# Specifies the identities requesting access for a Cloud Platform resource. # Specifies the identities requesting access for a Cloud Platform resource. `
# `members` can have the following values: # members` can have the following values: * `allUsers`: A special identifier
# * `allUsers`: A special identifier that represents anyone who is # that represents anyone who is on the internet; with or without a Google
# on the internet; with or without a Google account. # account. * `allAuthenticatedUsers`: A special identifier that represents
# * `allAuthenticatedUsers`: A special identifier that represents anyone # anyone who is authenticated with a Google account or a service account. * `
# who is authenticated with a Google account or a service account. # user:`emailid``: An email address that represents a specific Google account.
# * `user:`emailid``: An email address that represents a specific Google # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
# account. For example, `alice@example.com` . # address that represents a service account. For example, `my-other-app@appspot.
# * `serviceAccount:`emailid``: An email address that represents a service # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
# account. For example, `my-other-app@appspot.gserviceaccount.com`. # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
# * `group:`emailid``: An email address that represents a Google group. # `uniqueid``: An email address (plus unique identifier) representing a user
# For example, `admins@example.com`. # that has been recently deleted. For example, `alice@example.com?uid=
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
# identifier) representing a user that has been recently deleted. For # emailid`` and the recovered user retains the role in the binding. * `deleted:
# example, `alice@example.com?uid=123456789012345678901`. If the user is # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
# recovered, this value reverts to `user:`emailid`` and the recovered user # identifier) representing a service account that has been recently deleted. For
# retains the role in the binding. # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
# * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus # If the service account is undeleted, this value reverts to `serviceAccount:`
# unique identifier) representing a service account that has been recently # emailid`` and the undeleted service account retains the role in the binding. *
# deleted. For example, # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
# `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. # identifier) representing a Google group that has been recently deleted. For
# If the service account is undeleted, this value reverts to # example, `admins@example.com?uid=123456789012345678901`. If the group is
# `serviceAccount:`emailid`` and the undeleted service account retains the # recovered, this value reverts to `group:`emailid`` and the recovered group
# role in the binding. # retains the role in the binding. * `domain:`domain``: The G Suite domain (
# * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique # primary) that represents all the users of that domain. For example, `google.
# identifier) representing a Google group that has been recently # com` or `example.com`.
# 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` # Corresponds to the JSON property `members`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :members attr_accessor :members
# Role that is assigned to `members`. # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`. # , or `roles/owner`.
# Corresponds to the JSON property `role` # Corresponds to the JSON property `role`
# @return [String] # @return [String]
attr_accessor :role attr_accessor :role
@ -105,13 +93,11 @@ module Google
end end
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
# empty messages in your APIs. A typical example is to use it as the request # messages in your APIs. A typical example is to use it as the request or the
# or the response type of an API method. For instance: # response type of an API method. For instance: service Foo ` rpc Bar(google.
# service Foo ` # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); # `Empty` is empty JSON object ````.
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty class Empty
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -124,52 +110,43 @@ module Google
end end
end end
# Represents a textual expression in the Common Expression Language (CEL) # Represents a textual expression in the Common Expression Language (CEL) syntax.
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL # CEL is a C-like expression language. The syntax and semantics of CEL are
# are documented at https://github.com/google/cel-spec. # documented at https://github.com/google/cel-spec. Example (Comparison): title:
# Example (Comparison): # "Summary size limit" description: "Determines if a summary is less than 100
# title: "Summary size limit" # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
# description: "Determines if a summary is less than 100 chars" # Requestor is owner" description: "Determines if requestor is the document
# expression: "document.summary.size() < 100" # owner" expression: "document.owner == request.auth.claims.email" Example (
# Example (Equality): # Logic): title: "Public documents" description: "Determine whether the document
# title: "Requestor is owner" # should be publicly visible" expression: "document.type != 'private' &&
# description: "Determines if requestor is the document owner" # document.type != 'internal'" Example (Data Manipulation): title: "Notification
# expression: "document.owner == request.auth.claims.email" # string" description: "Create a notification string with a timestamp."
# Example (Logic): # expression: "'New message received at ' + string(document.create_time)" The
# title: "Public documents" # exact variables and functions that may be referenced within an expression are
# description: "Determine whether the document should be publicly visible" # determined by the service that evaluates it. See the service documentation for
# expression: "document.type != 'private' && document.type != 'internal'" # additional information.
# Example (Data Manipulation):
# title: "Notification string"
# description: "Create a notification string with a timestamp."
# expression: "'New message received at ' + string(document.create_time)"
# The exact variables and functions that may be referenced within an expression
# are determined by the service that evaluates it. See the service
# documentation for additional information.
class Expr class Expr
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. Description of the expression. This is a longer text which # Optional. Description of the expression. This is a longer text which describes
# describes the expression, e.g. when hovered over it in a UI. # the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Textual representation of an expression in Common Expression Language # Textual representation of an expression in Common Expression Language syntax.
# syntax.
# Corresponds to the JSON property `expression` # Corresponds to the JSON property `expression`
# @return [String] # @return [String]
attr_accessor :expression attr_accessor :expression
# Optional. String indicating the location of the expression for error # Optional. String indicating the location of the expression for error reporting,
# reporting, e.g. a file name and a position in the file. # e.g. a file name and a position in the file.
# Corresponds to the JSON property `location` # Corresponds to the JSON property `location`
# @return [String] # @return [String]
attr_accessor :location attr_accessor :location
# Optional. Title for the expression, i.e. a short string describing # Optional. Title for the expression, i.e. a short string describing its purpose.
# its purpose. This can be used e.g. in UIs which allow to enter the # This can be used e.g. in UIs which allow to enter the expression.
# expression.
# Corresponds to the JSON property `title` # Corresponds to the JSON property `title`
# @return [String] # @return [String]
attr_accessor :title attr_accessor :title
@ -201,8 +178,8 @@ module Google
# @return [Array<Google::Apis::ArtifactregistryV1beta1::HashProp>] # @return [Array<Google::Apis::ArtifactregistryV1beta1::HashProp>]
attr_accessor :hashes attr_accessor :hashes
# The name of the file, for example: # The name of the file, for example: "projects/p1/locations/us-central1/
# "projects/p1/locations/us-central1/repositories/repo1/files/a/b/c.txt". # repositories/repo1/files/a/b/c.txt".
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -241,12 +218,12 @@ module Google
class GoogleDevtoolsArtifactregistryV1alpha1ErrorInfo class GoogleDevtoolsArtifactregistryV1alpha1ErrorInfo
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::ArtifactregistryV1beta1::Status] # @return [Google::Apis::ArtifactregistryV1beta1::Status]
attr_accessor :error attr_accessor :error
@ -325,8 +302,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :display_name attr_accessor :display_name
# The name of the package, for example: # The name of the package, for example: "projects/p1/locations/us-central1/
# "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1". # repositories/repo1/packages/pkg1".
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -385,8 +362,8 @@ module Google
# @return [Array<Google::Apis::ArtifactregistryV1beta1::File>] # @return [Array<Google::Apis::ArtifactregistryV1beta1::File>]
attr_accessor :files attr_accessor :files
# The token to retrieve the next page of files, or empty if there are no # The token to retrieve the next page of files, or empty if there are no more
# more files to return. # files to return.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -456,8 +433,8 @@ module Google
class ListPackagesResponse class ListPackagesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The token to retrieve the next page of packages, or empty if there are no # The token to retrieve the next page of packages, or empty if there are no more
# more packages to return. # packages to return.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -482,8 +459,8 @@ module Google
class ListRepositoriesResponse class ListRepositoriesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The token to retrieve the next page of repositories, or empty if there are # The token to retrieve the next page of repositories, or empty if there are no
# no more repositories to return. # more repositories to return.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -508,8 +485,8 @@ module Google
class ListTagsResponse class ListTagsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The token to retrieve the next page of tags, or empty if there are no # The token to retrieve the next page of tags, or empty if there are no more
# more tags to return. # tags to return.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -534,8 +511,8 @@ module Google
class ListVersionsResponse class ListVersionsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The token to retrieve the next page of versions, or empty if there are no # The token to retrieve the next page of versions, or empty if there are no more
# more versions to return. # versions to return.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -560,14 +537,14 @@ module Google
class Location class Location
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The friendly name for this location, typically a nearby city name. # The friendly name for this location, typically a nearby city name. For example,
# For example, "Tokyo". # "Tokyo".
# Corresponds to the JSON property `displayName` # Corresponds to the JSON property `displayName`
# @return [String] # @return [String]
attr_accessor :display_name attr_accessor :display_name
# Cross-service attributes for the location. For example # Cross-service attributes for the location. For example `"cloud.googleapis.com/
# `"cloud.googleapis.com/region": "us-east1"` # region": "us-east1"`
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
@ -583,8 +560,8 @@ module Google
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata attr_accessor :metadata
# Resource name for the location, which may vary between implementations. # Resource name for the location, which may vary between implementations. For
# For example: `"projects/example-project/locations/us-east1"` # example: `"projects/example-project/locations/us-east1"`
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -608,47 +585,45 @@ module Google
class Operation class Operation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress. # If the value is `false`, it means the operation is still in progress. If `true`
# If `true`, the operation is completed, and either `error` or `response` is # , the operation is completed, and either `error` or `response` is available.
# available.
# Corresponds to the JSON property `done` # Corresponds to the JSON property `done`
# @return [Boolean] # @return [Boolean]
attr_accessor :done attr_accessor :done
alias_method :done?, :done alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::ArtifactregistryV1beta1::Status] # @return [Google::Apis::ArtifactregistryV1beta1::Status]
attr_accessor :error attr_accessor :error
# Service-specific metadata associated with the operation. It typically # Service-specific metadata associated with the operation. It typically contains
# contains progress information and common metadata such as create time. # progress information and common metadata such as create time. Some services
# Some services might not provide such metadata. Any method that returns a # might not provide such metadata. Any method that returns a long-running
# long-running operation should document the metadata type, if any. # operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata` # Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that # The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the # originally returns it. If you use the default HTTP mapping, the `name` should
# `name` should be a resource name ending with `operations/`unique_id``. # be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The normal response of the operation in case of success. If the original # The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is # method returns no data on success, such as `Delete`, the response is `google.
# `google.protobuf.Empty`. If the original method is standard # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# `Get`/`Create`/`Update`, the response should be the resource. For other # the response should be the resource. For other methods, the response should
# methods, the response should have the type `XxxResponse`, where `Xxx` # have the type `XxxResponse`, where `Xxx` is the original method name. For
# is the original method name. For example, if the original method name # example, if the original method name is `TakeSnapshot()`, the inferred
# is `TakeSnapshot()`, the inferred response type is # response type is `TakeSnapshotResponse`.
# `TakeSnapshotResponse`.
# Corresponds to the JSON property `response` # Corresponds to the JSON property `response`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :response attr_accessor :response
@ -681,8 +656,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :display_name attr_accessor :display_name
# The name of the package, for example: # The name of the package, for example: "projects/p1/locations/us-central1/
# "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1". # repositories/repo1/packages/pkg1".
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -707,111 +682,73 @@ module Google
end end
# An Identity and Access Management (IAM) policy, which specifies access # An Identity and Access Management (IAM) policy, which specifies access
# controls for Google Cloud resources. # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more # A `binding` binds one or more `members` to a single `role`. Members can be
# `members` to a single `role`. Members can be user accounts, service accounts, # user accounts, service accounts, Google groups, and domains (such as G Suite).
# Google groups, and domains (such as G Suite). A `role` is a named list of # A `role` is a named list of permissions; each `role` can be an IAM predefined
# permissions; each `role` can be an IAM predefined role or a user-created # role or a user-created custom role. For some types of Google Cloud resources,
# custom role. # a `binding` can also specify a `condition`, which is a logical expression that
# For some types of Google Cloud resources, a `binding` can also specify a # allows access to a resource only if the expression evaluates to `true`. A
# `condition`, which is a logical expression that allows access to a resource # condition can add constraints based on attributes of the request, the resource,
# only if the expression evaluates to `true`. A condition can add constraints # or both. To learn which resources support conditions in their IAM policies,
# based on attributes of the request, the resource, or both. To learn which # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# resources support conditions in their IAM policies, see the # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
# policies). # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
# **JSON example:** # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
# ` # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
# "bindings": [ # title": "expirable access", "description": "Does not grant access after Sep
# ` # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
# "role": "roles/resourcemanager.organizationAdmin", # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
# "members": [ # members: - user:mike@example.com - group:admins@example.com - domain:google.
# "user:mike@example.com", # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
# "group:admins@example.com", # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
# "domain:google.com", # roles/resourcemanager.organizationViewer condition: title: expirable access
# "serviceAccount:my-project-id@appspot.gserviceaccount.com" # 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 documentation](https://cloud.
# ` # google.com/iam/docs/).
# "role": "roles/resourcemanager.organizationViewer",
# "members": [
# "user:eve@example.com"
# ],
# "condition": `
# "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
# `
# **YAML example:**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
# role: roles/resourcemanager.organizationAdmin
# - members:
# - user:eve@example.com
# role: roles/resourcemanager.organizationViewer
# condition:
# 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 documentation](https://cloud.google.com/iam/docs/).
class Policy class Policy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Associates a list of `members` to a `role`. Optionally, may specify a # Associates a list of `members` to a `role`. Optionally, may specify a `
# `condition` that determines how and when the `bindings` are applied. Each # condition` that determines how and when the `bindings` are applied. Each of
# of the `bindings` must contain at least one member. # the `bindings` must contain at least one member.
# Corresponds to the JSON property `bindings` # Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::ArtifactregistryV1beta1::Binding>] # @return [Array<Google::Apis::ArtifactregistryV1beta1::Binding>]
attr_accessor :bindings attr_accessor :bindings
# `etag` is used for optimistic concurrency control as a way to help # `etag` is used for optimistic concurrency control as a way to help prevent
# prevent simultaneous updates of a policy from overwriting each other. # simultaneous updates of a policy from overwriting each other. It is strongly
# It is strongly suggested that systems make use of the `etag` in the # suggested that systems make use of the `etag` in the read-modify-write cycle
# read-modify-write cycle to perform policy updates in order to avoid race # to perform policy updates in order to avoid race conditions: An `etag` is
# conditions: An `etag` is returned in the response to `getIamPolicy`, and # returned in the response to `getIamPolicy`, and systems are expected to put
# systems are expected to put that etag in the request to `setIamPolicy` to # that etag in the request to `setIamPolicy` to ensure that their change will be
# ensure that their change will be applied to the same version of the policy. # applied to the same version of the policy. **Important:** If you use IAM
# **Important:** If you use IAM Conditions, you must include the `etag` field # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows # If you omit this field, then IAM allows you to overwrite a version `3` policy
# you to overwrite a version `3` policy with a version `1` policy, and all of # with a version `1` policy, and all of the conditions in the version `3` policy
# the conditions in the version `3` policy are lost. # are lost.
# Corresponds to the JSON property `etag` # Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library. # NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :etag
# Specifies the format of the policy. # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
# Valid values are `0`, `1`, and `3`. Requests that specify an invalid value # Requests that specify an invalid value are rejected. Any operation that
# are rejected. # affects conditional role bindings must specify version `3`. This requirement
# Any operation that affects conditional role bindings must specify version # applies to the following operations: * Getting a policy that includes a
# `3`. This requirement applies to the following operations: # conditional role binding * Adding a conditional role binding to a policy *
# * Getting a policy that includes a conditional role binding # Changing a conditional role binding in a policy * Removing any role binding,
# * Adding a conditional role binding to a policy # with or without a condition, from a policy that includes conditions **
# * Changing a conditional role binding in a policy # Important:** If you use IAM Conditions, you must include the `etag` field
# * Removing any role binding, with or without a condition, from a policy # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
# that includes conditions # to overwrite a version `3` policy with a version `1` policy, and all of the
# **Important:** If you use IAM Conditions, you must include the `etag` field # conditions in the version `3` policy are lost. If a policy does not include
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows # any conditions, operations on that policy may specify any valid version or
# you to overwrite a version `3` policy with a version `1` policy, and all of # leave the field unset. To learn which resources support conditions in their
# the conditions in the version `3` policy are lost. # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
# If a policy does not include any conditions, operations on that policy may # conditions/resource-policies).
# 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
@ -847,25 +784,24 @@ module Google
# @return [String] # @return [String]
attr_accessor :format attr_accessor :format
# The Cloud KMS resource name of the customer managed encryption key thats # The Cloud KMS resource name of the customer managed encryption key thats used
# used to encrypt the contents of the Repository. Has the form: # to encrypt the contents of the Repository. Has the form: `projects/my-project/
# `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. # locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. This value may not be
# This value may not be changed after the Repository has been created. # changed after the Repository has been created.
# Corresponds to the JSON property `kmsKeyName` # Corresponds to the JSON property `kmsKeyName`
# @return [String] # @return [String]
attr_accessor :kms_key_name attr_accessor :kms_key_name
# Labels with user-defined metadata. # Labels with user-defined metadata. This field may contain up to 64 entries.
# This field may contain up to 64 entries. Label keys and values may be no # Label keys and values may be no longer than 63 characters. Label keys must
# longer than 63 characters. Label keys must begin with a lowercase letter # begin with a lowercase letter and may only contain lowercase letters, numeric
# and may only contain lowercase letters, numeric characters, underscores, # characters, underscores, and dashes.
# and dashes.
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
# The name of the repository, for example: # The name of the repository, for example: "projects/p1/locations/us-central1/
# "projects/p1/locations/us-central1/repositories/repo1". # repositories/repo1".
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -896,66 +832,32 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# An Identity and Access Management (IAM) policy, which specifies access # An Identity and Access Management (IAM) policy, which specifies access
# controls for Google Cloud resources. # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more # A `binding` binds one or more `members` to a single `role`. Members can be
# `members` to a single `role`. Members can be user accounts, service accounts, # user accounts, service accounts, Google groups, and domains (such as G Suite).
# Google groups, and domains (such as G Suite). A `role` is a named list of # A `role` is a named list of permissions; each `role` can be an IAM predefined
# permissions; each `role` can be an IAM predefined role or a user-created # role or a user-created custom role. For some types of Google Cloud resources,
# custom role. # a `binding` can also specify a `condition`, which is a logical expression that
# For some types of Google Cloud resources, a `binding` can also specify a # allows access to a resource only if the expression evaluates to `true`. A
# `condition`, which is a logical expression that allows access to a resource # condition can add constraints based on attributes of the request, the resource,
# only if the expression evaluates to `true`. A condition can add constraints # or both. To learn which resources support conditions in their IAM policies,
# based on attributes of the request, the resource, or both. To learn which # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# resources support conditions in their IAM policies, see the # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
# policies). # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
# **JSON example:** # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
# ` # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
# "bindings": [ # title": "expirable access", "description": "Does not grant access after Sep
# ` # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
# "role": "roles/resourcemanager.organizationAdmin", # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
# "members": [ # members: - user:mike@example.com - group:admins@example.com - domain:google.
# "user:mike@example.com", # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
# "group:admins@example.com", # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
# "domain:google.com", # roles/resourcemanager.organizationViewer condition: title: expirable access
# "serviceAccount:my-project-id@appspot.gserviceaccount.com" # 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 documentation](https://cloud.
# ` # google.com/iam/docs/).
# "role": "roles/resourcemanager.organizationViewer",
# "members": [
# "user:eve@example.com"
# ],
# "condition": `
# "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
# `
# **YAML example:**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
# role: roles/resourcemanager.organizationAdmin
# - members:
# - user:eve@example.com
# role: roles/resourcemanager.organizationViewer
# condition:
# 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 documentation](https://cloud.google.com/iam/docs/).
# Corresponds to the JSON property `policy` # Corresponds to the JSON property `policy`
# @return [Google::Apis::ArtifactregistryV1beta1::Policy] # @return [Google::Apis::ArtifactregistryV1beta1::Policy]
attr_accessor :policy attr_accessor :policy
@ -970,12 +872,12 @@ module Google
end end
end end
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
class Status class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -984,15 +886,15 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :code attr_accessor :code
# A list of messages that carry the error details. There is a common set of # A list of messages that carry the error details. There is a common set of
# message types for APIs to use. # message types for APIs to use.
# Corresponds to the JSON property `details` # Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>] # @return [Array<Hash<String,Object>>]
attr_accessor :details attr_accessor :details
# A developer-facing error message, which should be in English. Any # A developer-facing error message, which should be in English. Any user-facing
# user-facing error message should be localized and sent in the # error message should be localized and sent in the google.rpc.Status.details
# google.rpc.Status.details field, or localized by the client. # field, or localized by the client.
# Corresponds to the JSON property `message` # Corresponds to the JSON property `message`
# @return [String] # @return [String]
attr_accessor :message attr_accessor :message
@ -1009,20 +911,19 @@ module Google
end end
end end
# Tags point to a version and represent an alternative name that can be used # Tags point to a version and represent an alternative name that can be used to
# to access the version. # access the version.
class Tag class Tag
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The name of the tag, for example: # The name of the tag, for example: "projects/p1/locations/us-central1/
# "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1". # repositories/repo1/packages/pkg1/tags/tag1".
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The name of the version the tag refers to, for example: # The name of the version the tag refers to, for example: "projects/p1/locations/
# "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/ # us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811"
# sha256:5243811"
# Corresponds to the JSON property `version` # Corresponds to the JSON property `version`
# @return [String] # @return [String]
attr_accessor :version attr_accessor :version
@ -1042,10 +943,9 @@ module Google
class TestIamPermissionsRequest class TestIamPermissionsRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The set of permissions to check for the `resource`. Permissions with # The set of permissions to check for the `resource`. Permissions with wildcards
# wildcards (such as '*' or 'storage.*') are not allowed. For more # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
# information see # Overview](https://cloud.google.com/iam/docs/overview#permissions).
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
# Corresponds to the JSON property `permissions` # Corresponds to the JSON property `permissions`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :permissions attr_accessor :permissions
@ -1064,8 +964,7 @@ module Google
class TestIamPermissionsResponse class TestIamPermissionsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A subset of `TestPermissionsRequest.permissions` that the caller is # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
# allowed.
# Corresponds to the JSON property `permissions` # Corresponds to the JSON property `permissions`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :permissions attr_accessor :permissions
@ -1080,9 +979,9 @@ module Google
end end
end end
# The body of a version resource. A version resource represents a # The body of a version resource. A version resource represents a collection of
# collection of components, such as files and other data. This may correspond # components, such as files and other data. This may correspond to a version in
# to a version in many package management schemes. # many package management schemes.
class Version class Version
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1096,9 +995,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# The name of the version, for example: # The name of the version, for example: "projects/p1/locations/us-central1/
# "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/ # repositories/repo1/packages/pkg1/versions/art1".
# art1".
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name

View File

@ -117,9 +117,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the latest state of a long-running operation. Clients can use this # Gets the latest state of a long-running operation. Clients can use this method
# method to poll the operation result at intervals as recommended by the API # to poll the operation result at intervals as recommended by the API service.
# service.
# @param [String] name # @param [String] name
# The name of the operation resource. # The name of the operation resource.
# @param [String] fields # @param [String] fields
@ -149,15 +148,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists operations that match the specified filter in the request. If the # Lists operations that match the specified filter in the request. If the server
# server doesn't support this method, it returns `UNIMPLEMENTED`. # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# NOTE: the `name` binding allows API services to override the binding # binding allows API services to override the binding to use different resource
# to use different resource name schemes, such as `users/*/operations`. To # name schemes, such as `users/*/operations`. To override the binding, API
# override the binding, API services can add a binding such as # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# `"/v1/`name=users/*`/operations"` to their service configuration. # service configuration. For backwards compatibility, the default name includes
# For backwards compatibility, the default name includes the operations # the operations collection id, however overriding users must ensure the name
# collection id, however overriding users must ensure the name binding # binding is the parent resource, without the operations collection id.
# is the parent resource, without the operations collection id.
# @param [String] name # @param [String] name
# The name of the operation's parent resource. # The name of the operation's parent resource.
# @param [String] filter # @param [String] filter
@ -196,8 +194,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a repository. The returned Operation will finish once the # Creates a repository. The returned Operation will finish once the repository
# repository has been created. Its response will be the created Repository. # has been created. Its response will be the created Repository.
# @param [String] parent # @param [String] parent
# The name of the parent resource where the repository will be created. # The name of the parent resource where the repository will be created.
# @param [Google::Apis::ArtifactregistryV1beta1::Repository] repository_object # @param [Google::Apis::ArtifactregistryV1beta1::Repository] repository_object
@ -297,18 +295,16 @@ module Google
# Gets the IAM policy for a given resource. # Gets the IAM policy for a given resource.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being requested. # REQUIRED: The resource for which the policy is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version # @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned. # Optional. The policy format version to be returned. Valid values are 0, 1, and
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be # 3. Requests specifying an invalid value will be rejected. Requests for
# rejected. # policies with any conditional bindings must specify version 3. Policies
# Requests for policies with any conditional bindings must specify version 3. # without any conditional bindings may specify any valid value or leave the
# Policies without any conditional bindings may specify any valid value or # field unset. To learn which resources support conditions in their IAM policies,
# leave the field unset. # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# To learn which resources support conditions in their IAM policies, see the # resource-policies).
# [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
@ -375,12 +371,11 @@ module Google
# Updates a repository. # Updates a repository.
# @param [String] name # @param [String] name
# The name of the repository, for example: # The name of the repository, for example: "projects/p1/locations/us-central1/
# "projects/p1/locations/us-central1/repositories/repo1". # repositories/repo1".
# @param [Google::Apis::ArtifactregistryV1beta1::Repository] repository_object # @param [Google::Apis::ArtifactregistryV1beta1::Repository] repository_object
# @param [String] update_mask # @param [String] update_mask
# The update mask applies to the resource. For the `FieldMask` definition, # The update mask applies to the resource. For the `FieldMask` definition, see
# see
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
# fieldmask # fieldmask
# @param [String] fields # @param [String] fields
@ -415,8 +410,8 @@ module Google
# Updates the IAM policy for a given resource. # Updates the IAM policy for a given resource.
# @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
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::ArtifactregistryV1beta1::SetIamPolicyRequest] set_iam_policy_request_object # @param [Google::Apis::ArtifactregistryV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
# @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.
@ -449,8 +444,8 @@ module Google
# Tests if the caller has a list of permissions on a resource. # Tests if the caller has a list of permissions on a resource.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. # REQUIRED: The resource for which the policy detail is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @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.
@ -515,17 +510,12 @@ module Google
# @param [String] parent # @param [String] parent
# The name of the parent resource whose files will be listed. # The name of the parent resource whose files will be listed.
# @param [String] filter # @param [String] filter
# An expression for filtering the results of the request. Filter rules are # An expression for filtering the results of the request. Filter rules are case
# case insensitive. The fields eligible for filtering are: # insensitive. The fields eligible for filtering are: * `name` * `owner` An
# * `name` # example of using a filter: * `name="projects/p1/locations/us-central1/
# * `owner` # repositories/repo1/files/a/b/*"` --> Files with an ID starting with "a/b/". * `
# An example of using a filter: # owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/
# * `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/*"` - # versions/1.0"` --> Files owned by the version `1.0` in package `pkg1`.
# -> Files with an
# ID starting with "a/b/".
# * `owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/
# versions/1.0"` -->
# Files owned by the version `1.0` in package `pkg1`.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of files to return. # The maximum number of files to return.
# @param [String] page_token # @param [String] page_token
@ -757,13 +747,11 @@ module Google
# @param [String] parent # @param [String] parent
# The name of the parent resource whose tags will be listed. # The name of the parent resource whose tags will be listed.
# @param [String] filter # @param [String] filter
# An expression for filtering the results of the request. Filter rules are # An expression for filtering the results of the request. Filter rules are case
# case insensitive. The fields eligible for filtering are: # insensitive. The fields eligible for filtering are: * `version` An example of
# * `version` # using a filter: * `version="projects/p1/locations/us-central1/repositories/
# An example of using a filter: # repo1/packages/pkg1/versions/1.0"` --> Tags that are applied to the version `1.
# * `version="projects/p1/locations/us-central1/repositories/repo1/packages/ # 0` in package `pkg1`.
# pkg1/versions/1.0"`
# --> Tags that are applied to the version `1.0` in package `pkg1`.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of tags to return. # The maximum number of tags to return.
# @param [String] page_token # @param [String] page_token
@ -800,12 +788,11 @@ module Google
# Updates a tag. # Updates a tag.
# @param [String] name # @param [String] name
# The name of the tag, for example: # The name of the tag, for example: "projects/p1/locations/us-central1/
# "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1". # repositories/repo1/packages/pkg1/tags/tag1".
# @param [Google::Apis::ArtifactregistryV1beta1::Tag] tag_object # @param [Google::Apis::ArtifactregistryV1beta1::Tag] tag_object
# @param [String] update_mask # @param [String] update_mask
# The update mask applies to the resource. For the `FieldMask` definition, # The update mask applies to the resource. For the `FieldMask` definition, see
# see
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
# fieldmask # fieldmask
# @param [String] fields # @param [String] fields
@ -838,8 +825,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a version and all of its content. The returned operation will # Deletes a version and all of its content. The returned operation will complete
# complete once the version has been deleted. # once the version has been deleted.
# @param [String] name # @param [String] name
# The name of the version to delete. # The name of the version to delete.
# @param [Boolean] force # @param [Boolean] force

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/debugger # @see https://cloud.google.com/debugger
module ClouddebuggerV2 module ClouddebuggerV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20200501' REVISION = '20200807'
# 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

@ -48,26 +48,26 @@ module Google
end end
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# ## Breakpoint (the resource) # ## Breakpoint (the resource) Represents the breakpoint specification, status
# Represents the breakpoint specification, status and results. # and results.
class Breakpoint class Breakpoint
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Action that the agent should perform when the code at the # Action that the agent should perform when the code at the breakpoint location
# breakpoint location is hit. # is hit.
# Corresponds to the JSON property `action` # Corresponds to the JSON property `action`
# @return [String] # @return [String]
attr_accessor :action attr_accessor :action
# The deadline for the breakpoint to stay in CANARY_ACTIVE state. The value # The deadline for the breakpoint to stay in CANARY_ACTIVE state. The value is
# is meaningless when the breakpoint is not in CANARY_ACTIVE state. # meaningless when the breakpoint is not in CANARY_ACTIVE state.
# Corresponds to the JSON property `canaryExpireTime` # Corresponds to the JSON property `canaryExpireTime`
# @return [String] # @return [String]
attr_accessor :canary_expire_time attr_accessor :canary_expire_time
# Condition that triggers the breakpoint. # Condition that triggers the breakpoint. The condition is a compound boolean
# The condition is a compound boolean expression composed using expressions # expression composed using expressions in a programming language at the source
# in a programming language at the source location. # location.
# Corresponds to the JSON property `condition` # Corresponds to the JSON property `condition`
# @return [String] # @return [String]
attr_accessor :condition attr_accessor :condition
@ -77,27 +77,25 @@ module Google
# @return [String] # @return [String]
attr_accessor :create_time attr_accessor :create_time
# Values of evaluated expressions at breakpoint time. # Values of evaluated expressions at breakpoint time. The evaluated expressions
# The evaluated expressions appear in exactly the same order they # appear in exactly the same order they are listed in the `expressions` field.
# are listed in the `expressions` field. # The `name` field holds the original expression text, the `value` or `members`
# The `name` field holds the original expression text, the `value` or # field holds the result of the evaluated expression. If the expression cannot
# `members` field holds the result of the evaluated expression. # be evaluated, the `status` inside the `Variable` will indicate an error and
# If the expression cannot be evaluated, the `status` inside the `Variable` # contain the error text.
# will indicate an error and contain the error text.
# Corresponds to the JSON property `evaluatedExpressions` # Corresponds to the JSON property `evaluatedExpressions`
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>] # @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
attr_accessor :evaluated_expressions attr_accessor :evaluated_expressions
# List of read-only expressions to evaluate at the breakpoint location. # List of read-only expressions to evaluate at the breakpoint location. The
# The expressions are composed using expressions in the programming language # expressions are composed using expressions in the programming language at the
# at the source location. If the breakpoint action is `LOG`, the evaluated # source location. If the breakpoint action is `LOG`, the evaluated expressions
# expressions are included in log statements. # are included in log statements.
# Corresponds to the JSON property `expressions` # Corresponds to the JSON property `expressions`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :expressions attr_accessor :expressions
# Time this breakpoint was finalized as seen by the server in seconds # Time this breakpoint was finalized as seen by the server in seconds resolution.
# resolution.
# Corresponds to the JSON property `finalTime` # Corresponds to the JSON property `finalTime`
# @return [String] # @return [String]
attr_accessor :final_time attr_accessor :final_time
@ -107,15 +105,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# When true, indicates that this is a final result and the # When true, indicates that this is a final result and the breakpoint state will
# breakpoint state will not change from here on. # not change from here on.
# Corresponds to the JSON property `isFinalState` # Corresponds to the JSON property `isFinalState`
# @return [Boolean] # @return [Boolean]
attr_accessor :is_final_state attr_accessor :is_final_state
alias_method :is_final_state?, :is_final_state alias_method :is_final_state?, :is_final_state
# A set of custom breakpoint properties, populated by the agent, to be # A set of custom breakpoint properties, populated by the agent, to be displayed
# displayed to the user. # to the user.
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
@ -130,13 +128,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :log_level attr_accessor :log_level
# Only relevant when action is `LOG`. Defines the message to log when # Only relevant when action is `LOG`. Defines the message to log when the
# the breakpoint hits. The message may include parameter placeholders `$0`, # breakpoint hits. The message may include parameter placeholders `$0`, `$1`,
# `$1`, etc. These placeholders are replaced with the evaluated value # etc. These placeholders are replaced with the evaluated value of the
# of the appropriate expression. Expressions not referenced in # appropriate expression. Expressions not referenced in `log_message_format` are
# `log_message_format` are not logged. # not logged. Example: `Message received, id = $0, count = $1` with `expressions`
# Example: `Message received, id = $0, count = $1` with # = `[ message.id, message.count ]`.
# `expressions` = `[ message.id, message.count ]`.
# Corresponds to the JSON property `logMessageFormat` # Corresponds to the JSON property `logMessageFormat`
# @return [String] # @return [String]
attr_accessor :log_message_format attr_accessor :log_message_format
@ -152,11 +149,10 @@ module Google
# @return [String] # @return [String]
attr_accessor :state attr_accessor :state
# Represents a contextual status message. # Represents a contextual status message. The message can indicate an error or
# The message can indicate an error or informational status, and refer to # informational status, and refer to specific parts of the containing object.
# specific parts of the containing object. # For example, the `Breakpoint.status` field can indicate an error referring to
# For example, the `Breakpoint.status` field can indicate an error referring # the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
# to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
# @return [Google::Apis::ClouddebuggerV2::StatusMessage] # @return [Google::Apis::ClouddebuggerV2::StatusMessage]
attr_accessor :status attr_accessor :status
@ -167,16 +163,15 @@ module Google
attr_accessor :user_email attr_accessor :user_email
# The `variable_table` exists to aid with computation, memory and network # The `variable_table` exists to aid with computation, memory and network
# traffic optimization. It enables storing a variable once and reference # traffic optimization. It enables storing a variable once and reference it from
# it from multiple variables, including variables stored in the # multiple variables, including variables stored in the `variable_table` itself.
# `variable_table` itself. # For example, the same `this` object, which may appear at many levels of the
# For example, the same `this` object, which may appear at many levels of # stack, can have all of its data stored once in this table. The stack frame
# the stack, can have all of its data stored once in this table. The # variables then would hold only a reference to it. The variable `
# stack frame variables then would hold only a reference to it. # var_table_index` field is an index into this repeated field. The stored
# The variable `var_table_index` field is an index into this repeated field. # objects are nameless and get their name from the referencing variable. The
# The stored objects are nameless and get their name from the referencing # effective variable is a merge of the referencing variable and the referenced
# variable. The effective variable is a merge of the referencing variable # variable.
# and the referenced variable.
# Corresponds to the JSON property `variableTable` # Corresponds to the JSON property `variableTable`
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>] # @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
attr_accessor :variable_table attr_accessor :variable_table
@ -208,8 +203,8 @@ module Google
end end
end end
# A CloudRepoSourceContext denotes a particular revision in a cloud # A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo
# repo (a repo hosted by the Google Cloud Platform). # hosted by the Google Cloud Platform).
class CloudRepoSourceContext class CloudRepoSourceContext
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -246,14 +241,14 @@ module Google
end end
end end
# A CloudWorkspaceId is a unique identifier for a cloud workspace. # A CloudWorkspaceId is a unique identifier for a cloud workspace. A cloud
# A cloud workspace is a place associated with a repo where modified files # workspace is a place associated with a repo where modified files can be stored
# can be stored before they are committed. # before they are committed.
class CloudWorkspaceId class CloudWorkspaceId
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The unique name of the workspace within the repo. This is the name # The unique name of the workspace within the repo. This is the name chosen by
# chosen by the client in the Source API's CreateWorkspace method. # the client in the Source API's CreateWorkspace method.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -278,15 +273,15 @@ module Google
class CloudWorkspaceSourceContext class CloudWorkspaceSourceContext
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The ID of the snapshot. # The ID of the snapshot. An empty snapshot_id refers to the most recent
# An empty snapshot_id refers to the most recent snapshot. # snapshot.
# Corresponds to the JSON property `snapshotId` # Corresponds to the JSON property `snapshotId`
# @return [String] # @return [String]
attr_accessor :snapshot_id attr_accessor :snapshot_id
# A CloudWorkspaceId is a unique identifier for a cloud workspace. # A CloudWorkspaceId is a unique identifier for a cloud workspace. A cloud
# A cloud workspace is a place associated with a repo where modified files # workspace is a place associated with a repo where modified files can be stored
# can be stored before they are committed. # before they are committed.
# Corresponds to the JSON property `workspaceId` # Corresponds to the JSON property `workspaceId`
# @return [Google::Apis::ClouddebuggerV2::CloudWorkspaceId] # @return [Google::Apis::ClouddebuggerV2::CloudWorkspaceId]
attr_accessor :workspace_id attr_accessor :workspace_id
@ -304,15 +299,14 @@ module Google
# Represents the debugged application. The application may include one or more # Represents the debugged application. The application may include one or more
# replicated processes executing the same code. Each of these processes is # replicated processes executing the same code. Each of these processes is
# attached with a debugger agent, carrying out the debugging commands. # attached with a debugger agent, carrying out the debugging commands. Agents
# Agents attached to the same debuggee identify themselves as such by using # attached to the same debuggee identify themselves as such by using exactly the
# exactly the same Debuggee message value when registering. # same Debuggee message value when registering.
class Debuggee class Debuggee
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Version ID of the agent. # Version ID of the agent. Schema: `domain/language-platform/vmajor.minor` (for
# Schema: `domain/language-platform/vmajor.minor` (for example # example `google.com/java-gcp/v1.1`).
# `google.com/java-gcp/v1.1`).
# Corresponds to the JSON property `agentVersion` # Corresponds to the JSON property `agentVersion`
# @return [String] # @return [String]
attr_accessor :agent_version attr_accessor :agent_version
@ -322,9 +316,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :canary_mode attr_accessor :canary_mode
# Human readable description of the debuggee. # Human readable description of the debuggee. Including a human-readable project
# Including a human-readable project name, environment name and version # name, environment name and version information is recommended.
# information is recommended.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
@ -340,8 +333,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# If set to `true`, indicates that the agent should disable itself and # If set to `true`, indicates that the agent should disable itself and detach
# detach from the debuggee. # from the debuggee.
# Corresponds to the JSON property `isDisabled` # Corresponds to the JSON property `isDisabled`
# @return [Boolean] # @return [Boolean]
attr_accessor :is_disabled attr_accessor :is_disabled
@ -354,14 +347,14 @@ module Google
attr_accessor :is_inactive attr_accessor :is_inactive
alias_method :is_inactive?, :is_inactive alias_method :is_inactive?, :is_inactive
# A set of custom debuggee properties, populated by the agent, to be # A set of custom debuggee properties, populated by the agent, to be displayed
# displayed to the user. # to the user.
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
# Project the debuggee is associated with. # Project the debuggee is associated with. Use project number or id when
# Use project number or id when registering a Google Cloud Platform project. # registering a Google Cloud Platform project.
# Corresponds to the JSON property `project` # Corresponds to the JSON property `project`
# @return [String] # @return [String]
attr_accessor :project attr_accessor :project
@ -372,21 +365,20 @@ module Google
# @return [Array<Google::Apis::ClouddebuggerV2::SourceContext>] # @return [Array<Google::Apis::ClouddebuggerV2::SourceContext>]
attr_accessor :source_contexts attr_accessor :source_contexts
# Represents a contextual status message. # Represents a contextual status message. The message can indicate an error or
# The message can indicate an error or informational status, and refer to # informational status, and refer to specific parts of the containing object.
# specific parts of the containing object. # For example, the `Breakpoint.status` field can indicate an error referring to
# For example, the `Breakpoint.status` field can indicate an error referring # the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
# to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
# @return [Google::Apis::ClouddebuggerV2::StatusMessage] # @return [Google::Apis::ClouddebuggerV2::StatusMessage]
attr_accessor :status attr_accessor :status
# Uniquifier to further distinguish the application. # Uniquifier to further distinguish the application. It is possible that
# It is possible that different applications might have identical values in # different applications might have identical values in the debuggee message,
# the debuggee message, thus, incorrectly identified as a single application # thus, incorrectly identified as a single application by the Controller service.
# by the Controller service. This field adds salt to further distinguish the # This field adds salt to further distinguish the application. Agents should
# application. Agents should consider seeding this field with value that # consider seeding this field with value that identifies the code, binary,
# identifies the code, binary, configuration and environment. # configuration and environment.
# Corresponds to the JSON property `uniquifier` # Corresponds to the JSON property `uniquifier`
# @return [String] # @return [String]
attr_accessor :uniquifier attr_accessor :uniquifier
@ -412,13 +404,11 @@ module Google
end end
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
# empty messages in your APIs. A typical example is to use it as the request # messages in your APIs. A typical example is to use it as the request or the
# or the response type of an API method. For instance: # response type of an API method. For instance: service Foo ` rpc Bar(google.
# service Foo ` # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); # `Empty` is empty JSON object ````.
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty class Empty
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -431,8 +421,8 @@ module Google
end end
end end
# An ExtendedSourceContext is a SourceContext combined with additional # An ExtendedSourceContext is a SourceContext combined with additional details
# details describing the context. # describing the context.
class ExtendedSourceContext class ExtendedSourceContext
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -462,13 +452,11 @@ module Google
class FormatMessage class FormatMessage
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Format template for the message. The `format` uses placeholders `$0`, # Format template for the message. The `format` uses placeholders `$0`, `$1`,
# `$1`, etc. to reference parameters. `$$` can be used to denote the `$` # etc. to reference parameters. `$$` can be used to denote the `$` character.
# character. # Examples: * `Failed to load '$0' which helps debug $1 the first time it is
# Examples: # loaded. Again, $0 is very important.` * `Please pay $$10 to use $0 instead of $
# * `Failed to load '$0' which helps debug $1 the first time it # 1.`
# is loaded. Again, $0 is very important.`
# * `Please pay $$10 to use $0 instead of $1.`
# Corresponds to the JSON property `format` # Corresponds to the JSON property `format`
# @return [String] # @return [String]
attr_accessor :format attr_accessor :format
@ -503,9 +491,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :alias_name attr_accessor :alias_name
# The full project name within the host. Projects may be nested, so # The full project name within the host. Projects may be nested, so "project/
# "project/subproject" is a valid project name. # subproject" is a valid project name. The "repo name" is hostURI/project.
# The "repo name" is hostURI/project.
# Corresponds to the JSON property `gerritProject` # Corresponds to the JSON property `gerritProject`
# @return [String] # @return [String]
attr_accessor :gerrit_project attr_accessor :gerrit_project
@ -539,8 +526,8 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# ## Breakpoint (the resource) # ## Breakpoint (the resource) Represents the breakpoint specification, status
# Represents the breakpoint specification, status and results. # and results.
# Corresponds to the JSON property `breakpoint` # Corresponds to the JSON property `breakpoint`
# @return [Google::Apis::ClouddebuggerV2::Breakpoint] # @return [Google::Apis::ClouddebuggerV2::Breakpoint]
attr_accessor :breakpoint attr_accessor :breakpoint
@ -560,8 +547,7 @@ module Google
class GitSourceContext class GitSourceContext
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Git commit hash. # Git commit hash. required.
# required.
# Corresponds to the JSON property `revisionId` # Corresponds to the JSON property `revisionId`
# @return [String] # @return [String]
attr_accessor :revision_id attr_accessor :revision_id
@ -586,21 +572,21 @@ module Google
class ListActiveBreakpointsResponse class ListActiveBreakpointsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# List of all active breakpoints. # List of all active breakpoints. The fields `id` and `location` are guaranteed
# The fields `id` and `location` are guaranteed to be set on each breakpoint. # to be set on each breakpoint.
# Corresponds to the JSON property `breakpoints` # Corresponds to the JSON property `breakpoints`
# @return [Array<Google::Apis::ClouddebuggerV2::Breakpoint>] # @return [Array<Google::Apis::ClouddebuggerV2::Breakpoint>]
attr_accessor :breakpoints attr_accessor :breakpoints
# A token that can be used in the next method call to block until # A token that can be used in the next method call to block until the list of
# the list of breakpoints changes. # breakpoints changes.
# Corresponds to the JSON property `nextWaitToken` # Corresponds to the JSON property `nextWaitToken`
# @return [String] # @return [String]
attr_accessor :next_wait_token attr_accessor :next_wait_token
# If set to `true`, indicates that there is no change to the # If set to `true`, indicates that there is no change to the list of active
# list of active breakpoints and the server-selected timeout has expired. # breakpoints and the server-selected timeout has expired. The `breakpoints`
# The `breakpoints` field would be empty and should be ignored. # field would be empty and should be ignored.
# Corresponds to the JSON property `waitExpired` # Corresponds to the JSON property `waitExpired`
# @return [Boolean] # @return [Boolean]
attr_accessor :wait_expired attr_accessor :wait_expired
@ -622,16 +608,16 @@ module Google
class ListBreakpointsResponse class ListBreakpointsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# List of breakpoints matching the request. # List of breakpoints matching the request. The fields `id` and `location` are
# The fields `id` and `location` are guaranteed to be set on each breakpoint. # guaranteed to be set on each breakpoint. The fields: `stack_frames`, `
# The fields: `stack_frames`, `evaluated_expressions` and `variable_table` # evaluated_expressions` and `variable_table` are cleared on each breakpoint
# are cleared on each breakpoint regardless of its status. # regardless of its status.
# Corresponds to the JSON property `breakpoints` # Corresponds to the JSON property `breakpoints`
# @return [Array<Google::Apis::ClouddebuggerV2::Breakpoint>] # @return [Array<Google::Apis::ClouddebuggerV2::Breakpoint>]
attr_accessor :breakpoints attr_accessor :breakpoints
# A wait token that can be used in the next call to `list` (REST) or # A wait token that can be used in the next call to `list` (REST) or `
# `ListBreakpoints` (RPC) to block until the list of breakpoints has changes. # ListBreakpoints` (RPC) to block until the list of breakpoints has changes.
# Corresponds to the JSON property `nextWaitToken` # Corresponds to the JSON property `nextWaitToken`
# @return [String] # @return [String]
attr_accessor :next_wait_token attr_accessor :next_wait_token
@ -651,10 +637,9 @@ module Google
class ListDebuggeesResponse class ListDebuggeesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# List of debuggees accessible to the calling user. # List of debuggees accessible to the calling user. The fields `debuggee.id` and
# The fields `debuggee.id` and `description` are guaranteed to be set. # `description` are guaranteed to be set. The `description` field is a human
# The `description` field is a human readable field provided by agents and # readable field provided by agents and can be displayed to users.
# can be displayed to users.
# Corresponds to the JSON property `debuggees` # Corresponds to the JSON property `debuggees`
# @return [Array<Google::Apis::ClouddebuggerV2::Debuggee>] # @return [Array<Google::Apis::ClouddebuggerV2::Debuggee>]
attr_accessor :debuggees attr_accessor :debuggees
@ -669,8 +654,8 @@ module Google
end end
end end
# Selects a repo using a Google Cloud Platform project ID # Selects a repo using a Google Cloud Platform project ID (e.g. winged-cargo-31)
# (e.g. winged-cargo-31) and a repo name within that project. # and a repo name within that project.
class ProjectRepoId class ProjectRepoId
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -701,9 +686,9 @@ module Google
# Represents the debugged application. The application may include one or more # Represents the debugged application. The application may include one or more
# replicated processes executing the same code. Each of these processes is # replicated processes executing the same code. Each of these processes is
# attached with a debugger agent, carrying out the debugging commands. # attached with a debugger agent, carrying out the debugging commands. Agents
# Agents attached to the same debuggee identify themselves as such by using # attached to the same debuggee identify themselves as such by using exactly the
# exactly the same Debuggee message value when registering. # same Debuggee message value when registering.
# Corresponds to the JSON property `debuggee` # Corresponds to the JSON property `debuggee`
# @return [Google::Apis::ClouddebuggerV2::Debuggee] # @return [Google::Apis::ClouddebuggerV2::Debuggee]
attr_accessor :debuggee attr_accessor :debuggee
@ -722,17 +707,17 @@ module Google
class RegisterDebuggeeResponse class RegisterDebuggeeResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A unique ID generated for the agent. # A unique ID generated for the agent. Each RegisterDebuggee request will
# Each RegisterDebuggee request will generate a new agent ID. # generate a new agent ID.
# Corresponds to the JSON property `agentId` # Corresponds to the JSON property `agentId`
# @return [String] # @return [String]
attr_accessor :agent_id attr_accessor :agent_id
# Represents the debugged application. The application may include one or more # Represents the debugged application. The application may include one or more
# replicated processes executing the same code. Each of these processes is # replicated processes executing the same code. Each of these processes is
# attached with a debugger agent, carrying out the debugging commands. # attached with a debugger agent, carrying out the debugging commands. Agents
# Agents attached to the same debuggee identify themselves as such by using # attached to the same debuggee identify themselves as such by using exactly the
# exactly the same Debuggee message value when registering. # same Debuggee message value when registering.
# Corresponds to the JSON property `debuggee` # Corresponds to the JSON property `debuggee`
# @return [Google::Apis::ClouddebuggerV2::Debuggee] # @return [Google::Apis::ClouddebuggerV2::Debuggee]
attr_accessor :debuggee attr_accessor :debuggee
@ -752,8 +737,8 @@ module Google
class RepoId class RepoId
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Selects a repo using a Google Cloud Platform project ID # Selects a repo using a Google Cloud Platform project ID (e.g. winged-cargo-31)
# (e.g. winged-cargo-31) and a repo name within that project. # and a repo name within that project.
# Corresponds to the JSON property `projectRepoId` # Corresponds to the JSON property `projectRepoId`
# @return [Google::Apis::ClouddebuggerV2::ProjectRepoId] # @return [Google::Apis::ClouddebuggerV2::ProjectRepoId]
attr_accessor :project_repo_id attr_accessor :project_repo_id
@ -779,8 +764,8 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# ## Breakpoint (the resource) # ## Breakpoint (the resource) Represents the breakpoint specification, status
# Represents the breakpoint specification, status and results. # and results.
# Corresponds to the JSON property `breakpoint` # Corresponds to the JSON property `breakpoint`
# @return [Google::Apis::ClouddebuggerV2::Breakpoint] # @return [Google::Apis::ClouddebuggerV2::Breakpoint]
attr_accessor :breakpoint attr_accessor :breakpoint
@ -800,8 +785,8 @@ module Google
class SourceContext class SourceContext
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A CloudRepoSourceContext denotes a particular revision in a cloud # A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo
# repo (a repo hosted by the Google Cloud Platform). # hosted by the Google Cloud Platform).
# Corresponds to the JSON property `cloudRepo` # Corresponds to the JSON property `cloudRepo`
# @return [Google::Apis::ClouddebuggerV2::CloudRepoSourceContext] # @return [Google::Apis::ClouddebuggerV2::CloudRepoSourceContext]
attr_accessor :cloud_repo attr_accessor :cloud_repo
@ -839,9 +824,8 @@ module Google
class SourceLocation class SourceLocation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Column within a line. The first column in a line as the value `1`. # Column within a line. The first column in a line as the value `1`. Agents that
# Agents that do not support setting breakpoints on specific columns ignore # do not support setting breakpoints on specific columns ignore this field.
# this field.
# Corresponds to the JSON property `column` # Corresponds to the JSON property `column`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :column attr_accessor :column
@ -872,8 +856,8 @@ module Google
class StackFrame class StackFrame
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Set of arguments passed to this function. # Set of arguments passed to this function. Note that this might not be
# Note that this might not be populated for all stack frames. # populated for all stack frames.
# Corresponds to the JSON property `arguments` # Corresponds to the JSON property `arguments`
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>] # @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
attr_accessor :arguments attr_accessor :arguments
@ -883,8 +867,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :function attr_accessor :function
# Set of local variables at the stack frame location. # Set of local variables at the stack frame location. Note that this might not
# Note that this might not be populated for all stack frames. # be populated for all stack frames.
# Corresponds to the JSON property `locals` # Corresponds to the JSON property `locals`
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>] # @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
attr_accessor :locals attr_accessor :locals
@ -907,11 +891,10 @@ module Google
end end
end end
# Represents a contextual status message. # Represents a contextual status message. The message can indicate an error or
# The message can indicate an error or informational status, and refer to # informational status, and refer to specific parts of the containing object.
# specific parts of the containing object. # For example, the `Breakpoint.status` field can indicate an error referring to
# For example, the `Breakpoint.status` field can indicate an error referring # the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
# to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
class StatusMessage class StatusMessage
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -948,8 +931,8 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# ## Breakpoint (the resource) # ## Breakpoint (the resource) Represents the breakpoint specification, status
# Represents the breakpoint specification, status and results. # and results.
# Corresponds to the JSON property `breakpoint` # Corresponds to the JSON property `breakpoint`
# @return [Google::Apis::ClouddebuggerV2::Breakpoint] # @return [Google::Apis::ClouddebuggerV2::Breakpoint]
attr_accessor :breakpoint attr_accessor :breakpoint
@ -964,8 +947,8 @@ module Google
end end
end end
# Response for updating an active breakpoint. # Response for updating an active breakpoint. The message is defined to allow
# The message is defined to allow future extensions. # future extensions.
class UpdateActiveBreakpointResponse class UpdateActiveBreakpointResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -978,88 +961,39 @@ module Google
end end
end end
# Represents a variable or an argument possibly of a compound object type. # Represents a variable or an argument possibly of a compound object type. Note
# Note how the following variables are represented: # how the following variables are represented: 1) A simple variable: int x = 5 `
# 1) A simple variable: # name: "x", value: "5", type: "int" ` // Captured variable 2) A compound object:
# int x = 5 # struct T ` int m1; int m2; `; T x = ` 3, 7 `; ` // Captured variable name: "x"
# ` name: "x", value: "5", type: "int" ` // Captured variable # , type: "T", members ` name: "m1", value: "3", type: "int" `, members ` name: "
# 2) A compound object: # m2", value: "7", type: "int" ` ` 3) A pointer where the pointee was captured:
# struct T ` # T x = ` 3, 7 `; T* p = &x; ` // Captured variable name: "p", type: "T*", value:
# int m1; # "0x00500500", members ` name: "m1", value: "3", type: "int" `, members ` name:
# int m2; # "m2", value: "7", type: "int" ` ` 4) A pointer where the pointee was not
# `; # captured: T* p = new T; ` // Captured variable name: "p", type: "T*", value: "
# T x = ` 3, 7 `; # 0x00400400" status ` is_error: true, description ` format: "unavailable" ` ` `
# ` // Captured variable # The status should describe the reason for the missing value, such as ``, ``, ``
# name: "x", # . Note that a null pointer should not have members. 5) An unnamed value: int*
# type: "T", # p = new int(7); ` // Captured variable name: "p", value: "0x00500500", type: "
# members ` name: "m1", value: "3", type: "int" `, # int*", members ` value: "7", type: "int" ` ` 6) An unnamed pointer where the
# members ` name: "m2", value: "7", type: "int" ` # pointee was not captured: int* p = new int(7); int** pp = &p; ` // Captured
# ` # variable name: "pp", value: "0x00500500", type: "int**", members ` value: "
# 3) A pointer where the pointee was captured: # 0x00400400", type: "int*" status ` is_error: true, description: ` format: "
# T x = ` 3, 7 `; # unavailable" ` ` ` ` ` To optimize computation, memory and network traffic,
# T* p = &x; # variables that repeat in the output multiple times can be stored once in a
# ` // Captured variable # shared variable table and be referenced using the `var_table_index` field. The
# name: "p", # variables stored in the shared table are nameless and are essentially a
# type: "T*", # partition of the complete variable. To reconstruct the complete variable,
# value: "0x00500500", # merge the referencing variable with the referenced variable. When using the
# members ` name: "m1", value: "3", type: "int" `, # shared variable table, the following variables: T x = ` 3, 7 `; T* p = &x; T&
# members ` name: "m2", value: "7", type: "int" ` # r = x; ` name: "x", var_table_index: 3, type: "T" ` // Captured variables `
# ` # name: "p", value "0x00500500", type="T*", var_table_index: 3 ` ` name: "r",
# 4) A pointer where the pointee was not captured: # type="T&", var_table_index: 3 ` ` // Shared variable table entry #3: members `
# T* p = new T; # name: "m1", value: "3", type: "int" `, members ` name: "m2", value: "7", type:
# ` // Captured variable # "int" ` ` Note that the pointer address is stored with the referencing
# name: "p", # variable and not with the referenced variable. This allows the referenced
# type: "T*", # variable to be shared between pointers and references. The type field is
# value: "0x00400400" # optional. The debugger agent may or may not support it.
# status ` is_error: true, description ` format: "unavailable" ` `
# `
# The status should describe the reason for the missing value,
# such as `<optimized out>`, `<inaccessible>`, `<pointers limit reached>`.
# Note that a null pointer should not have members.
# 5) An unnamed value:
# int* p = new int(7);
# ` // Captured variable
# name: "p",
# value: "0x00500500",
# type: "int*",
# members ` value: "7", type: "int" ` `
# 6) An unnamed pointer where the pointee was not captured:
# int* p = new int(7);
# int** pp = &p;
# ` // Captured variable
# name: "pp",
# value: "0x00500500",
# type: "int**",
# members `
# value: "0x00400400",
# type: "int*"
# status `
# is_error: true,
# description: ` format: "unavailable" ` `
# `
# `
# `
# To optimize computation, memory and network traffic, variables that
# repeat in the output multiple times can be stored once in a shared
# variable table and be referenced using the `var_table_index` field. The
# variables stored in the shared table are nameless and are essentially
# a partition of the complete variable. To reconstruct the complete
# variable, merge the referencing variable with the referenced variable.
# When using the shared variable table, the following variables:
# T x = ` 3, 7 `;
# T* p = &x;
# T& r = x;
# ` name: "x", var_table_index: 3, type: "T" ` // Captured variables
# ` name: "p", value "0x00500500", type="T*", var_table_index: 3 `
# ` name: "r", type="T&", var_table_index: 3 `
# ` // Shared variable table entry #3:
# members ` name: "m1", value: "3", type: "int" `,
# members ` name: "m2", value: "7", type: "int" `
# `
# Note that the pointer address is stored with the referencing variable
# and not with the referenced variable. This allows the referenced variable
# to be shared between pointers and references.
# The type field is optional. The debugger agent may or may not support it.
class Variable class Variable
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1073,19 +1007,18 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Represents a contextual status message. # Represents a contextual status message. The message can indicate an error or
# The message can indicate an error or informational status, and refer to # informational status, and refer to specific parts of the containing object.
# specific parts of the containing object. # For example, the `Breakpoint.status` field can indicate an error referring to
# For example, the `Breakpoint.status` field can indicate an error referring # the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
# to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
# @return [Google::Apis::ClouddebuggerV2::StatusMessage] # @return [Google::Apis::ClouddebuggerV2::StatusMessage]
attr_accessor :status attr_accessor :status
# Variable type (e.g. `MyClass`). If the variable is split with # Variable type (e.g. `MyClass`). If the variable is split with `var_table_index`
# `var_table_index`, `type` goes next to `value`. The interpretation of # , `type` goes next to `value`. The interpretation of a type is agent specific.
# a type is agent specific. It is recommended to include the dynamic type # It is recommended to include the dynamic type rather than a static type of an
# rather than a static type of an object. # object.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
@ -1095,9 +1028,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :value attr_accessor :value
# Reference to a variable in the shared variable table. More than # Reference to a variable in the shared variable table. More than one variable
# one variable can reference the same variable in the table. The # can reference the same variable in the table. The `var_table_index` field is
# `var_table_index` field is an index into `variable_table` in Breakpoint. # an index into `variable_table` in Breakpoint.
# Corresponds to the JSON property `varTableIndex` # Corresponds to the JSON property `varTableIndex`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :var_table_index attr_accessor :var_table_index

View File

@ -48,13 +48,12 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Registers the debuggee with the controller service. # Registers the debuggee with the controller service. All agents attached to the
# All agents attached to the same application must call this method with # same application must call this method with exactly the same request content
# exactly the same request content to get back the same stable `debuggee_id`. # to get back the same stable `debuggee_id`. Agents should call this method
# Agents should call this method again whenever `google.rpc.Code.NOT_FOUND` # again whenever `google.rpc.Code.NOT_FOUND` is returned from any controller
# is returned from any controller method. # method. This protocol allows the controller service to disable debuggees,
# This protocol allows the controller service to disable debuggees, recover # recover from data loss, or change the `debuggee_id` format. Agents must handle
# from data loss, or change the `debuggee_id` format. Agents must handle
# `debuggee_id` value changing upon re-registration. # `debuggee_id` value changing upon re-registration.
# @param [Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest] register_debuggee_request_object # @param [Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest] register_debuggee_request_object
# @param [String] fields # @param [String] fields
@ -85,33 +84,29 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns the list of all active breakpoints for the debuggee. # Returns the list of all active breakpoints for the debuggee. The breakpoint
# The breakpoint specification (`location`, `condition`, and `expressions` # specification (`location`, `condition`, and `expressions` fields) is
# fields) is semantically immutable, although the field values may # semantically immutable, although the field values may change. For example, an
# change. For example, an agent may update the location line number # agent may update the location line number to reflect the actual line where the
# to reflect the actual line where the breakpoint was set, but this # breakpoint was set, but this doesn't change the breakpoint semantics. This
# doesn't change the breakpoint semantics. # means that an agent does not need to check if a breakpoint has changed when it
# This means that an agent does not need to check if a breakpoint has changed # encounters the same breakpoint on a successive call. Moreover, an agent should
# when it encounters the same breakpoint on a successive call. # remember the breakpoints that are completed until the controller removes them
# Moreover, an agent should remember the breakpoints that are completed # from the active list to avoid setting those breakpoints again.
# until the controller removes them from the active list to avoid
# setting those breakpoints again.
# @param [String] debuggee_id # @param [String] debuggee_id
# Required. Identifies the debuggee. # Required. Identifies the debuggee.
# @param [String] agent_id # @param [String] agent_id
# Identifies the agent. # Identifies the agent. This is the ID returned in the RegisterDebuggee response.
# This is the ID returned in the RegisterDebuggee response.
# @param [Boolean] success_on_timeout # @param [Boolean] success_on_timeout
# If set to `true` (recommended), returns `google.rpc.Code.OK` status and # If set to `true` (recommended), returns `google.rpc.Code.OK` status and sets
# sets the `wait_expired` response field to `true` when the server-selected # the `wait_expired` response field to `true` when the server-selected timeout
# timeout has expired. # has expired. If set to `false` (deprecated), returns `google.rpc.Code.ABORTED`
# If set to `false` (deprecated), returns `google.rpc.Code.ABORTED` status # status when the server-selected timeout has expired.
# when the server-selected timeout has expired.
# @param [String] wait_token # @param [String] wait_token
# A token that, if specified, blocks the method call until the list # A token that, if specified, blocks the method call until the list of active
# of active breakpoints has changed, or a server-selected timeout has # breakpoints has changed, or a server-selected timeout has expired. The value
# expired. The value should be set from the `next_wait_token` field in # should be set from the `next_wait_token` field in the last response. The
# the last response. The initial value should be set to `"init"`. # initial value should be set to `"init"`.
# @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
@ -142,13 +137,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates the breakpoint state or mutable fields. # Updates the breakpoint state or mutable fields. The entire Breakpoint message
# The entire Breakpoint message must be sent back to the controller service. # must be sent back to the controller service. Updates to active breakpoint
# Updates to active breakpoint fields are only allowed if the new value # fields are only allowed if the new value does not change the breakpoint
# does not change the breakpoint specification. Updates to the `location`, # specification. Updates to the `location`, `condition` and `expressions` fields
# `condition` and `expressions` fields should not alter the breakpoint # should not alter the breakpoint semantics. These may only make changes such as
# semantics. These may only make changes such as canonicalizing a value # canonicalizing a value or snapping the location to the correct line of code.
# or snapping the location to the correct line of code.
# @param [String] debuggee_id # @param [String] debuggee_id
# Required. Identifies the debuggee being debugged. # Required. Identifies the debuggee being debugged.
# @param [String] id # @param [String] id
@ -186,11 +180,11 @@ module Google
# Lists all the debuggees that the user has access to. # Lists all the debuggees that the user has access to.
# @param [String] client_version # @param [String] client_version
# Required. The client version making the call. # Required. The client version making the call. Schema: `domain/type/version` (e.
# Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). # g., `google.com/intellij/v1`).
# @param [Boolean] include_inactive # @param [Boolean] include_inactive
# When set to `true`, the result includes all debuggees. Otherwise, the # When set to `true`, the result includes all debuggees. Otherwise, the result
# result includes only debuggees that are active. # includes only debuggees that are active.
# @param [String] project # @param [String] project
# Required. Project number of a Google Cloud project whose debuggees to list. # Required. Project number of a Google Cloud project whose debuggees to list.
# @param [String] fields # @param [String] fields
@ -228,8 +222,8 @@ module Google
# @param [String] breakpoint_id # @param [String] breakpoint_id
# Required. ID of the breakpoint to delete. # Required. ID of the breakpoint to delete.
# @param [String] client_version # @param [String] client_version
# Required. The client version making the call. # Required. The client version making the call. Schema: `domain/type/version` (e.
# Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). # g., `google.com/intellij/v1`).
# @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
@ -265,8 +259,8 @@ module Google
# @param [String] breakpoint_id # @param [String] breakpoint_id
# Required. ID of the breakpoint to get. # Required. ID of the breakpoint to get.
# @param [String] client_version # @param [String] client_version
# Required. The client version making the call. # Required. The client version making the call. Schema: `domain/type/version` (e.
# Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). # g., `google.com/intellij/v1`).
# @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
@ -302,23 +296,23 @@ module Google
# @param [String] action_value # @param [String] action_value
# Only breakpoints with the specified action will pass the filter. # Only breakpoints with the specified action will pass the filter.
# @param [String] client_version # @param [String] client_version
# Required. The client version making the call. # Required. The client version making the call. Schema: `domain/type/version` (e.
# Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). # g., `google.com/intellij/v1`).
# @param [Boolean] include_all_users # @param [Boolean] include_all_users
# When set to `true`, the response includes the list of breakpoints set by # When set to `true`, the response includes the list of breakpoints set by any
# any user. Otherwise, it includes only breakpoints set by the caller. # user. Otherwise, it includes only breakpoints set by the caller.
# @param [Boolean] include_inactive # @param [Boolean] include_inactive
# When set to `true`, the response includes active and inactive # When set to `true`, the response includes active and inactive breakpoints.
# breakpoints. Otherwise, it includes only active breakpoints. # Otherwise, it includes only active breakpoints.
# @param [Boolean] strip_results # @param [Boolean] strip_results
# This field is deprecated. The following fields are always stripped out of # This field is deprecated. The following fields are always stripped out of the
# the result: `stack_frames`, `evaluated_expressions` and `variable_table`. # result: `stack_frames`, `evaluated_expressions` and `variable_table`.
# @param [String] wait_token # @param [String] wait_token
# A wait token that, if specified, blocks the call until the breakpoints # A wait token that, if specified, blocks the call until the breakpoints list
# list has changed, or a server selected timeout has expired. The value # has changed, or a server selected timeout has expired. The value should be set
# should be set from the last response. The error code # from the last response. The error code `google.rpc.Code.ABORTED` (RPC) is
# `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which # returned on wait timeout, which should be called again with the same `
# should be called again with the same `wait_token`. # wait_token`.
# @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
@ -359,8 +353,8 @@ module Google
# @param [String] canary_option # @param [String] canary_option
# The canary option set by the user upon setting breakpoint. # The canary option set by the user upon setting breakpoint.
# @param [String] client_version # @param [String] client_version
# Required. The client version making the call. # Required. The client version making the call. Schema: `domain/type/version` (e.
# Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). # g., `google.com/intellij/v1`).
# @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

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/tpu/ # @see https://cloud.google.com/tpu/
module TpuV1 module TpuV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200728' REVISION = '20200814'
# 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

@ -379,6 +379,16 @@ module Google
# @return [String] # @return [String]
attr_accessor :tensorflow_version attr_accessor :tensorflow_version
# Whether the VPC peering for the node is set up through Service Networking API.
# The VPC Peering should be set up before provisioning the node. If this field
# is set, cidr_block field should not be specified. If the network, that you
# want to peer the TPU Node to, is Shared VPC networks, the node must be created
# with this this field enabled.
# Corresponds to the JSON property `useServiceNetworking`
# @return [Boolean]
attr_accessor :use_service_networking
alias_method :use_service_networking?, :use_service_networking
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -401,6 +411,7 @@ module Google
@service_account = args[:service_account] if args.key?(:service_account) @service_account = args[:service_account] if args.key?(:service_account)
@state = args[:state] if args.key?(:state) @state = args[:state] if args.key?(:state)
@tensorflow_version = args[:tensorflow_version] if args.key?(:tensorflow_version) @tensorflow_version = args[:tensorflow_version] if args.key?(:tensorflow_version)
@use_service_networking = args[:use_service_networking] if args.key?(:use_service_networking)
end end
end end

View File

@ -232,6 +232,7 @@ module Google
property :service_account, as: 'serviceAccount' property :service_account, as: 'serviceAccount'
property :state, as: 'state' property :state, as: 'state'
property :tensorflow_version, as: 'tensorflowVersion' property :tensorflow_version, as: 'tensorflowVersion'
property :use_service_networking, as: 'useServiceNetworking'
end end
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/tpu/ # @see https://cloud.google.com/tpu/
module TpuV1alpha1 module TpuV1alpha1
VERSION = 'V1alpha1' VERSION = 'V1alpha1'
REVISION = '20200728' REVISION = '20200814'
# 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

@ -379,6 +379,16 @@ module Google
# @return [String] # @return [String]
attr_accessor :tensorflow_version attr_accessor :tensorflow_version
# Whether the VPC peering for the node is set up through Service Networking API.
# The VPC Peering should be set up before provisioning the node. If this field
# is set, cidr_block field should not be specified. If the network, that you
# want to peer the TPU Node to, is Shared VPC networks, the node must be created
# with this this field enabled.
# Corresponds to the JSON property `useServiceNetworking`
# @return [Boolean]
attr_accessor :use_service_networking
alias_method :use_service_networking?, :use_service_networking
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -401,6 +411,7 @@ module Google
@service_account = args[:service_account] if args.key?(:service_account) @service_account = args[:service_account] if args.key?(:service_account)
@state = args[:state] if args.key?(:state) @state = args[:state] if args.key?(:state)
@tensorflow_version = args[:tensorflow_version] if args.key?(:tensorflow_version) @tensorflow_version = args[:tensorflow_version] if args.key?(:tensorflow_version)
@use_service_networking = args[:use_service_networking] if args.key?(:use_service_networking)
end end
end end

View File

@ -232,6 +232,7 @@ module Google
property :service_account, as: 'serviceAccount' property :service_account, as: 'serviceAccount'
property :state, as: 'state' property :state, as: 'state'
property :tensorflow_version, as: 'tensorflowVersion' property :tensorflow_version, as: 'tensorflowVersion'
property :use_service_networking, as: 'useServiceNetworking'
end end
end end