From f79a751a9879af8110157428cbe0968264fbfba0 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 11 Jun 2020 00:38:48 +0000 Subject: [PATCH] Autogenerated update (2020-06-11) Update: - androidenterprise_v1 - appsmarket_v2 - binaryauthorization_v1 - books_v1 - cloudkms_v1 - cloudresourcemanager_v1 - cloudresourcemanager_v1beta1 - cloudresourcemanager_v2 - cloudresourcemanager_v2beta1 - datafusion_v1beta1 - people_v1 - serviceconsumermanagement_v1 - serviceconsumermanagement_v1beta1 - servicenetworking_v1 - servicenetworking_v1beta - serviceusage_v1 - serviceusage_v1beta1 --- generated/google/apis/androidenterprise_v1.rb | 2 +- generated/google/apis/appsmarket_v2.rb | 2 +- .../google/apis/binaryauthorization_v1.rb | 2 +- .../apis/binaryauthorization_v1/classes.rb | 5 +- generated/google/apis/books_v1.rb | 2 +- generated/google/apis/books_v1/service.rb | 4 +- generated/google/apis/cloudkms_v1.rb | 2 +- generated/google/apis/cloudkms_v1/classes.rb | 14 +- .../google/apis/cloudresourcemanager_v1.rb | 2 +- .../apis/cloudresourcemanager_v1/classes.rb | 12 +- .../apis/cloudresourcemanager_v1/service.rb | 14 +- .../apis/cloudresourcemanager_v1beta1.rb | 2 +- .../cloudresourcemanager_v1beta1/classes.rb | 12 +- .../cloudresourcemanager_v1beta1/service.rb | 16 +- .../google/apis/cloudresourcemanager_v2.rb | 2 +- .../apis/cloudresourcemanager_v2/classes.rb | 12 +- .../apis/cloudresourcemanager_v2beta1.rb | 2 +- .../cloudresourcemanager_v2beta1/classes.rb | 12 +- generated/google/apis/datafusion_v1beta1.rb | 2 +- .../google/apis/datafusion_v1beta1/classes.rb | 83 +++++++-- .../datafusion_v1beta1/representations.rb | 16 ++ .../google/apis/datafusion_v1beta1/service.rb | 51 +++++- generated/google/apis/people_v1.rb | 2 +- generated/google/apis/people_v1/classes.rb | 98 ++++++++++ .../google/apis/people_v1/representations.rb | 49 +++++ generated/google/apis/people_v1/service.rb | 168 ++++++++++++++++++ .../apis/serviceconsumermanagement_v1.rb | 2 +- .../serviceconsumermanagement_v1/classes.rb | 64 +++++-- .../apis/serviceconsumermanagement_v1beta1.rb | 2 +- .../classes.rb | 64 +++++-- generated/google/apis/servicenetworking_v1.rb | 2 +- .../apis/servicenetworking_v1/classes.rb | 64 +++++-- .../google/apis/servicenetworking_v1beta.rb | 2 +- .../apis/servicenetworking_v1beta/classes.rb | 64 +++++-- generated/google/apis/serviceusage_v1.rb | 2 +- .../google/apis/serviceusage_v1/classes.rb | 64 +++++-- generated/google/apis/serviceusage_v1beta1.rb | 2 +- .../apis/serviceusage_v1beta1/classes.rb | 64 +++++-- .../apis/serviceusage_v1beta1/service.rb | 34 ++++ 39 files changed, 855 insertions(+), 163 deletions(-) diff --git a/generated/google/apis/androidenterprise_v1.rb b/generated/google/apis/androidenterprise_v1.rb index f3e38ecc9..5809c79c8 100644 --- a/generated/google/apis/androidenterprise_v1.rb +++ b/generated/google/apis/androidenterprise_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android/work/play/emm-api module AndroidenterpriseV1 VERSION = 'V1' - REVISION = '20200528' + REVISION = '20200606' # Manage corporate Android devices AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise' diff --git a/generated/google/apis/appsmarket_v2.rb b/generated/google/apis/appsmarket_v2.rb index cc606e6b2..8365272f8 100644 --- a/generated/google/apis/appsmarket_v2.rb +++ b/generated/google/apis/appsmarket_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/apps-marketplace module AppsmarketV2 VERSION = 'V2' - REVISION = '20200601' + REVISION = '20200608' # View your installed application's licensing information AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license' diff --git a/generated/google/apis/binaryauthorization_v1.rb b/generated/google/apis/binaryauthorization_v1.rb index f60f05d8a..f4da70525 100644 --- a/generated/google/apis/binaryauthorization_v1.rb +++ b/generated/google/apis/binaryauthorization_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/binary-authorization/ module BinaryauthorizationV1 VERSION = 'V1' - REVISION = '20200515' + REVISION = '20200605' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/binaryauthorization_v1/classes.rb b/generated/google/apis/binaryauthorization_v1/classes.rb index 07ece1e62..96085b102 100644 --- a/generated/google/apis/binaryauthorization_v1/classes.rb +++ b/generated/google/apis/binaryauthorization_v1/classes.rb @@ -540,8 +540,7 @@ module Google # @return [Array] attr_accessor :admission_whitelist_patterns - # Optional. LINT.IfChange(cluster_regex) - # Per-cluster admission rules. Cluster spec format: + # Optional. Per-cluster admission rules. Cluster spec format: # `location.clusterId`. There can be at most one admission rule per cluster # spec. # A `location` is either a compute zone (e.g. us-central1-a) or a region @@ -549,8 +548,6 @@ module Google # For `clusterId` syntax restrictions see # https://cloud.google.com/container-engine/reference/rest/v1/projects.zones. # clusters. - # LINT.ThenChange(//depot/google3/cloud/console/web/binary_authorization/api/ - # models/admission_rule_type.ts:cluster_regex) # Corresponds to the JSON property `clusterAdmissionRules` # @return [Hash] attr_accessor :cluster_admission_rules diff --git a/generated/google/apis/books_v1.rb b/generated/google/apis/books_v1.rb index 928633673..a29ddf76d 100644 --- a/generated/google/apis/books_v1.rb +++ b/generated/google/apis/books_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://code.google.com/apis/books/docs/v1/getting_started.html module BooksV1 VERSION = 'V1' - REVISION = '20200506' + REVISION = '20200603' # Manage your books AUTH_BOOKS = 'https://www.googleapis.com/auth/books' diff --git a/generated/google/apis/books_v1/service.rb b/generated/google/apis/books_v1/service.rb index 0624d6d44..c28faf1f8 100644 --- a/generated/google/apis/books_v1/service.rb +++ b/generated/google/apis/books_v1/service.rb @@ -43,8 +43,8 @@ module Google attr_accessor :quota_user def initialize - super('https://books.googleapis.com/', '') - @batch_path = 'batch' + super('https://www.googleapis.com/', '') + @batch_path = 'batch/books/v1' end # Retrieves metadata for a specific bookshelf for the specified user. diff --git a/generated/google/apis/cloudkms_v1.rb b/generated/google/apis/cloudkms_v1.rb index 7fad03841..d0d854a60 100644 --- a/generated/google/apis/cloudkms_v1.rb +++ b/generated/google/apis/cloudkms_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/kms/ module CloudkmsV1 VERSION = 'V1' - REVISION = '20200522' + REVISION = '20200609' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudkms_v1/classes.rb b/generated/google/apis/cloudkms_v1/classes.rb index 6ef1676d6..465b17b5b 100644 --- a/generated/google/apis/cloudkms_v1/classes.rb +++ b/generated/google/apis/cloudkms_v1/classes.rb @@ -225,7 +225,7 @@ module Google # ` # "audit_configs": [ # ` - # "service": "allServices" + # "service": "allServices", # "audit_log_configs": [ # ` # "log_type": "DATA_READ", @@ -234,18 +234,18 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # `, # ` - # "log_type": "ADMIN_READ", + # "log_type": "ADMIN_READ" # ` # ] # `, # ` - # "service": "sampleservice.googleapis.com" + # "service": "sampleservice.googleapis.com", # "audit_log_configs": [ # ` - # "log_type": "DATA_READ", + # "log_type": "DATA_READ" # `, # ` # "log_type": "DATA_WRITE", @@ -297,7 +297,7 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # ` # ] # ` @@ -425,7 +425,7 @@ module Google attr_accessor :create_time # Labels with user-defined metadata. For more information, see - # [Labeling Keys](/kms/docs/labeling-keys). + # [Labeling Keys](https://cloud.google.com/kms/docs/labeling-keys). # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels diff --git a/generated/google/apis/cloudresourcemanager_v1.rb b/generated/google/apis/cloudresourcemanager_v1.rb index d8e4c05c9..0dc30f2ca 100644 --- a/generated/google/apis/cloudresourcemanager_v1.rb +++ b/generated/google/apis/cloudresourcemanager_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1 VERSION = 'V1' - REVISION = '20200504' + REVISION = '20200608' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudresourcemanager_v1/classes.rb b/generated/google/apis/cloudresourcemanager_v1/classes.rb index df788337e..bd993d075 100644 --- a/generated/google/apis/cloudresourcemanager_v1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1/classes.rb @@ -56,7 +56,7 @@ module Google # ` # "audit_configs": [ # ` - # "service": "allServices" + # "service": "allServices", # "audit_log_configs": [ # ` # "log_type": "DATA_READ", @@ -65,18 +65,18 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # `, # ` - # "log_type": "ADMIN_READ", + # "log_type": "ADMIN_READ" # ` # ] # `, # ` - # "service": "sampleservice.googleapis.com" + # "service": "sampleservice.googleapis.com", # "audit_log_configs": [ # ` - # "log_type": "DATA_READ", + # "log_type": "DATA_READ" # `, # ` # "log_type": "DATA_WRITE", @@ -128,7 +128,7 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # ` # ] # ` diff --git a/generated/google/apis/cloudresourcemanager_v1/service.rb b/generated/google/apis/cloudresourcemanager_v1/service.rb index 67e3e0c05..692b29052 100644 --- a/generated/google/apis/cloudresourcemanager_v1/service.rb +++ b/generated/google/apis/cloudresourcemanager_v1/service.rb @@ -1272,8 +1272,12 @@ module Google execute_or_queue_command(command, &block) end - # Sets the IAM access control policy for the specified Project. Overwrites - # any existing policy. + # Sets the IAM access control policy for the specified Project. + # CAUTION: This method will replace the existing policy, and cannot be used + # to append additional IAM settings. + # NOTE: Removing service accounts from policies or changing their roles can + # render services completely inoperable. It is important to understand how + # the service account is being used before removing or updating its roles. # The following constraints apply when using `setIamPolicy()`: # + Project does not support `allUsers` and `allAuthenticatedUsers` as # `members` in a `Binding` of a `Policy`. @@ -1302,12 +1306,6 @@ module Google # projects that no longer have owners who have accepted the ToS. Edits to # IAM policies will be rejected until the lack of a ToS-accepting owner is # rectified. - # + This method will replace the existing policy, and cannot be used to - # append additional IAM settings. - # Note: Removing service accounts from policies or changing their roles - # can render services completely inoperable. It is important to understand - # how the service account is being used before removing or updating its - # roles. # Authorization requires the Google IAM permission # `resourcemanager.projects.setIamPolicy` on the project # @param [String] resource diff --git a/generated/google/apis/cloudresourcemanager_v1beta1.rb b/generated/google/apis/cloudresourcemanager_v1beta1.rb index a0d7ca442..4d58a7afb 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1beta1 VERSION = 'V1beta1' - REVISION = '20200504' + REVISION = '20200608' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb index a8bb66b28..9803b08a2 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb @@ -56,7 +56,7 @@ module Google # ` # "audit_configs": [ # ` - # "service": "allServices" + # "service": "allServices", # "audit_log_configs": [ # ` # "log_type": "DATA_READ", @@ -65,18 +65,18 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # `, # ` - # "log_type": "ADMIN_READ", + # "log_type": "ADMIN_READ" # ` # ] # `, # ` - # "service": "sampleservice.googleapis.com" + # "service": "sampleservice.googleapis.com", # "audit_log_configs": [ # ` - # "log_type": "DATA_READ", + # "log_type": "DATA_READ" # `, # ` # "log_type": "DATA_WRITE", @@ -128,7 +128,7 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # ` # ] # ` diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/service.rb b/generated/google/apis/cloudresourcemanager_v1beta1/service.rb index e9d89d8dd..fa0a16010 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/service.rb @@ -554,8 +554,12 @@ module Google execute_or_queue_command(command, &block) end - # Sets the IAM access control policy for the specified Project. Overwrites - # any existing policy. + # Sets the IAM access control policy for the specified Project. + # CAUTION: This method will replace the existing policy, and cannot be used + # to append additional IAM settings. + # NOTE: Removing service accounts from policies or changing their roles can + # render services completely inoperable. It is important to understand how + # the service account is being used before removing or updating its roles. # The following constraints apply when using `setIamPolicy()`: # + Project does not support `allUsers` and `allAuthenticatedUsers` as # `members` in a `Binding` of a `Policy`. @@ -581,12 +585,8 @@ module Google # projects that no longer have owners who have accepted the ToS. Edits to # IAM policies will be rejected until the lack of a ToS-accepting owner is # rectified. - # + This method will replace the existing policy, and cannot be used to - # append additional IAM settings. - # Note: Removing service accounts from policies or changing their roles - # can render services completely inoperable. It is important to understand - # how the service account is being used before removing or updating its - # roles. + # Authorization requires the Google IAM permission + # `resourcemanager.projects.setIamPolicy` on the project # @param [String] resource # REQUIRED: The resource for which the policy is being specified. # See the operation documentation for the appropriate value for this field. diff --git a/generated/google/apis/cloudresourcemanager_v2.rb b/generated/google/apis/cloudresourcemanager_v2.rb index 47ec8e35c..a0182d58d 100644 --- a/generated/google/apis/cloudresourcemanager_v2.rb +++ b/generated/google/apis/cloudresourcemanager_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV2 VERSION = 'V2' - REVISION = '20200504' + REVISION = '20200608' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudresourcemanager_v2/classes.rb b/generated/google/apis/cloudresourcemanager_v2/classes.rb index 261663576..146656e09 100644 --- a/generated/google/apis/cloudresourcemanager_v2/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v2/classes.rb @@ -34,7 +34,7 @@ module Google # ` # "audit_configs": [ # ` - # "service": "allServices" + # "service": "allServices", # "audit_log_configs": [ # ` # "log_type": "DATA_READ", @@ -43,18 +43,18 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # `, # ` - # "log_type": "ADMIN_READ", + # "log_type": "ADMIN_READ" # ` # ] # `, # ` - # "service": "sampleservice.googleapis.com" + # "service": "sampleservice.googleapis.com", # "audit_log_configs": [ # ` - # "log_type": "DATA_READ", + # "log_type": "DATA_READ" # `, # ` # "log_type": "DATA_WRITE", @@ -106,7 +106,7 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # ` # ] # ` diff --git a/generated/google/apis/cloudresourcemanager_v2beta1.rb b/generated/google/apis/cloudresourcemanager_v2beta1.rb index 0bf685f1a..771535c60 100644 --- a/generated/google/apis/cloudresourcemanager_v2beta1.rb +++ b/generated/google/apis/cloudresourcemanager_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV2beta1 VERSION = 'V2beta1' - REVISION = '20200504' + REVISION = '20200608' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb b/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb index 5158de415..9740cd91e 100644 --- a/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb @@ -34,7 +34,7 @@ module Google # ` # "audit_configs": [ # ` - # "service": "allServices" + # "service": "allServices", # "audit_log_configs": [ # ` # "log_type": "DATA_READ", @@ -43,18 +43,18 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # `, # ` - # "log_type": "ADMIN_READ", + # "log_type": "ADMIN_READ" # ` # ] # `, # ` - # "service": "sampleservice.googleapis.com" + # "service": "sampleservice.googleapis.com", # "audit_log_configs": [ # ` - # "log_type": "DATA_READ", + # "log_type": "DATA_READ" # `, # ` # "log_type": "DATA_WRITE", @@ -106,7 +106,7 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # ` # ] # ` diff --git a/generated/google/apis/datafusion_v1beta1.rb b/generated/google/apis/datafusion_v1beta1.rb index 8c8c70235..2179748a0 100644 --- a/generated/google/apis/datafusion_v1beta1.rb +++ b/generated/google/apis/datafusion_v1beta1.rb @@ -34,7 +34,7 @@ module Google # @see https://cloud.google.com/data-fusion/docs module DatafusionV1beta1 VERSION = 'V1beta1' - REVISION = '20200311' + REVISION = '20200609' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/datafusion_v1beta1/classes.rb b/generated/google/apis/datafusion_v1beta1/classes.rb index 69b5d72cc..ac8fd26ec 100644 --- a/generated/google/apis/datafusion_v1beta1/classes.rb +++ b/generated/google/apis/datafusion_v1beta1/classes.rb @@ -53,7 +53,7 @@ module Google # ` # "audit_configs": [ # ` - # "service": "allServices" + # "service": "allServices", # "audit_log_configs": [ # ` # "log_type": "DATA_READ", @@ -62,18 +62,18 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # `, # ` - # "log_type": "ADMIN_READ", + # "log_type": "ADMIN_READ" # ` # ] # `, # ` - # "service": "sampleservice.googleapis.com" + # "service": "sampleservice.googleapis.com", # "audit_log_configs": [ # ` - # "log_type": "DATA_READ", + # "log_type": "DATA_READ" # `, # ` # "log_type": "DATA_WRITE", @@ -125,7 +125,7 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # ` # ] # ` @@ -361,7 +361,7 @@ module Google # @return [String] attr_accessor :create_time - # Optional. An optional description of this instance. + # A description of this instance. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description @@ -499,6 +499,32 @@ module Google end end + # Response message for the list available versions request. + class ListAvailableVersionsResponse + include Google::Apis::Core::Hashable + + # Represents a list of versions that are supported. + # Corresponds to the JSON property `availableVersions` + # @return [Array] + attr_accessor :available_versions + + # Token to retrieve the next page of results or empty if there are no more + # results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @available_versions = args[:available_versions] if args.key?(:available_versions) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # Response message for the list instance request. class ListInstancesResponse include Google::Apis::Core::Hashable @@ -793,10 +819,13 @@ module Google # Google groups, and domains (such as G Suite). A `role` is a named list of # permissions; each `role` can be an IAM predefined role or a user-created # custom role. - # Optionally, a `binding` can specify a `condition`, which is a logical - # expression that allows access to a resource only if the expression evaluates - # to `true`. A condition can add constraints based on attributes of the - # request, the resource, or both. + # For some types of Google Cloud resources, a `binding` can also specify a + # `condition`, which is a logical expression that allows access to a resource + # only if the expression evaluates to `true`. A condition can add constraints + # based on attributes of the request, the resource, or both. To learn which + # resources support conditions in their IAM policies, see the + # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- + # policies). # **JSON example:** # ` # "bindings": [ @@ -811,7 +840,9 @@ module Google # `, # ` # "role": "roles/resourcemanager.organizationViewer", - # "members": ["user:eve@example.com"], + # "members": [ + # "user:eve@example.com" + # ], # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", @@ -889,6 +920,9 @@ module Google # the conditions in the version `3` policy are lost. # If a policy does not include any conditions, operations on that policy may # specify any valid version or leave the field unset. + # 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` # @return [Fixnum] attr_accessor :version @@ -930,10 +964,13 @@ module Google # Google groups, and domains (such as G Suite). A `role` is a named list of # permissions; each `role` can be an IAM predefined role or a user-created # custom role. - # Optionally, a `binding` can specify a `condition`, which is a logical - # expression that allows access to a resource only if the expression evaluates - # to `true`. A condition can add constraints based on attributes of the - # request, the resource, or both. + # For some types of Google Cloud resources, a `binding` can also specify a + # `condition`, which is a logical expression that allows access to a resource + # only if the expression evaluates to `true`. A condition can add constraints + # based on attributes of the request, the resource, or both. To learn which + # resources support conditions in their IAM policies, see the + # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- + # policies). # **JSON example:** # ` # "bindings": [ @@ -948,7 +985,9 @@ module Google # `, # ` # "role": "roles/resourcemanager.organizationViewer", - # "members": ["user:eve@example.com"], + # "members": [ + # "user:eve@example.com" + # ], # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", @@ -986,8 +1025,7 @@ module Google # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only # the fields in the mask will be modified. If no mask is provided, the # following default mask is used: - # paths: "bindings, etag" - # This field is only used by Cloud IAM. + # `paths: "bindings, etag"` # Corresponds to the JSON property `updateMask` # @return [String] attr_accessor :update_mask @@ -1102,6 +1140,12 @@ module Google class Version include Google::Apis::Core::Hashable + # Whether this is currently the default version for Cloud Data Fusion + # Corresponds to the JSON property `defaultVersion` + # @return [Boolean] + attr_accessor :default_version + alias_method :default_version?, :default_version + # The version number of the Data Fusion instance, such as '6.0.1.0'. # Corresponds to the JSON property `versionNumber` # @return [String] @@ -1113,6 +1157,7 @@ module Google # Update properties of this object def update!(**args) + @default_version = args[:default_version] if args.key?(:default_version) @version_number = args[:version_number] if args.key?(:version_number) end end diff --git a/generated/google/apis/datafusion_v1beta1/representations.rb b/generated/google/apis/datafusion_v1beta1/representations.rb index 050574478..7ad378b8e 100644 --- a/generated/google/apis/datafusion_v1beta1/representations.rb +++ b/generated/google/apis/datafusion_v1beta1/representations.rb @@ -70,6 +70,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListAvailableVersionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListInstancesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -247,6 +253,15 @@ module Google end end + class ListAvailableVersionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :available_versions, as: 'availableVersions', class: Google::Apis::DatafusionV1beta1::Version, decorator: Google::Apis::DatafusionV1beta1::Version::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class ListInstancesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -378,6 +393,7 @@ module Google class Version # @private class Representation < Google::Apis::Core::JsonRepresentation + property :default_version, as: 'defaultVersion' property :version_number, as: 'versionNumber' end end diff --git a/generated/google/apis/datafusion_v1beta1/service.rb b/generated/google/apis/datafusion_v1beta1/service.rb index 6fb621231..effc5cf92 100644 --- a/generated/google/apis/datafusion_v1beta1/service.rb +++ b/generated/google/apis/datafusion_v1beta1/service.rb @@ -241,6 +241,9 @@ module Google # Requests for policies with any conditional bindings must specify version 3. # Policies without any conditional bindings may specify any valid value 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). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -394,7 +397,7 @@ module Google # Sets the access control policy on the specified resource. Replaces any # existing policy. - # Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED + # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. # @param [String] resource # REQUIRED: The resource for which the policy is being specified. # See the operation documentation for the appropriate value for this field. @@ -430,7 +433,7 @@ module Google # Returns permissions that a caller has on the specified resource. # If the resource does not exist, this will return an empty set of - # permissions, not a NOT_FOUND error. + # permissions, not a `NOT_FOUND` error. # Note: This operation is designed to be used for building permission-aware # UIs and command-line tools, not for authorization checking. This operation # may "fail open" without warning. @@ -657,6 +660,50 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Lists possible versions for Data Fusion instances in the specified project + # and location. + # @param [String] parent + # Required. The project and location for which to retrieve instance information + # in the format projects/`project`/locations/`location`. + # @param [Boolean] latest_patch_only + # Whether or not to return the latest patch of every available minor version. + # If true, only the latest patch will be returned. Ex. if allowed versions is + # [6.1.1, 6.1.2, 6.2.0] then response will be [6.1.2, 6.2.0] + # @param [Fixnum] page_size + # The maximum number of items to return. + # @param [String] page_token + # The next_page_token value to use if there are additional + # results to retrieve for this list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatafusionV1beta1::ListAvailableVersionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatafusionV1beta1::ListAvailableVersionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_versions(parent, latest_patch_only: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/versions', options) + command.response_representation = Google::Apis::DatafusionV1beta1::ListAvailableVersionsResponse::Representation + command.response_class = Google::Apis::DatafusionV1beta1::ListAvailableVersionsResponse + command.params['parent'] = parent unless parent.nil? + command.query['latestPatchOnly'] = latest_patch_only unless latest_patch_only.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end protected diff --git a/generated/google/apis/people_v1.rb b/generated/google/apis/people_v1.rb index 84bdcb540..86ad27573 100644 --- a/generated/google/apis/people_v1.rb +++ b/generated/google/apis/people_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/people/ module PeopleV1 VERSION = 'V1' - REVISION = '20200606' + REVISION = '20200608' # See, edit, download, and permanently delete your contacts AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts' diff --git a/generated/google/apis/people_v1/classes.rb b/generated/google/apis/people_v1/classes.rb index 5aeb3e8c2..09cc34c5a 100644 --- a/generated/google/apis/people_v1/classes.rb +++ b/generated/google/apis/people_v1/classes.rb @@ -780,6 +780,31 @@ module Google end end + # The name that should be used to sort the person in a list. + class FileAs + include Google::Apis::Core::Hashable + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + # The file-as value + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @metadata = args[:metadata] if args.key?(:metadata) + @value = args[:value] if args.key?(:value) + end + end + # A person's gender. class Gender include Google::Apis::Core::Hashable @@ -1022,6 +1047,40 @@ module Google end end + # The response to a request for the authenticated user's domain directory. + class ListDirectoryPeopleResponse + include Google::Apis::Core::Hashable + + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A token, which can be sent as `sync_token` to retrieve changes since the + # last request. Request must set `request_sync_token` to return the sync + # token. + # Corresponds to the JSON property `nextSyncToken` + # @return [String] + attr_accessor :next_sync_token + + # The list of people in the domain directory. + # Corresponds to the JSON property `people` + # @return [Array] + attr_accessor :people + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token) + @people = args[:people] if args.key?(:people) + end + end + # The response to a request for the authenticated user's other contacts. class ListOtherContactsResponse include Google::Apis::Core::Hashable @@ -1514,6 +1573,11 @@ module Google # @return [Array] attr_accessor :events + # The person's file-ases. + # Corresponds to the JSON property `fileAses` + # @return [Array] + attr_accessor :file_ases + # The person's genders. # Corresponds to the JSON property `genders` # @return [Array] @@ -1645,6 +1709,7 @@ module Google @email_addresses = args[:email_addresses] if args.key?(:email_addresses) @etag = args[:etag] if args.key?(:etag) @events = args[:events] if args.key?(:events) + @file_ases = args[:file_ases] if args.key?(:file_ases) @genders = args[:genders] if args.key?(:genders) @im_clients = args[:im_clients] if args.key?(:im_clients) @interests = args[:interests] if args.key?(:interests) @@ -2065,6 +2130,39 @@ module Google end end + # The response to a request for people in the authenticated user's domain + # directory that match the specified query. + class SearchDirectoryPeopleResponse + include Google::Apis::Core::Hashable + + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of people in the domain directory that match the query. + # Corresponds to the JSON property `people` + # @return [Array] + attr_accessor :people + + # The total number of items in the list without pagination. + # Corresponds to the JSON property `totalSize` + # @return [Fixnum] + attr_accessor :total_size + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @people = args[:people] if args.key?(:people) + @total_size = args[:total_size] if args.key?(:total_size) + end + end + # A person's SIP address. Session Initial Protocol addresses are used for VoIP # communications to make voice or video calls over the internet. class SipAddress diff --git a/generated/google/apis/people_v1/representations.rb b/generated/google/apis/people_v1/representations.rb index 523a14934..cae5c3407 100644 --- a/generated/google/apis/people_v1/representations.rb +++ b/generated/google/apis/people_v1/representations.rb @@ -142,6 +142,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class FileAs + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Gender class Representation < Google::Apis::Core::JsonRepresentation; end @@ -178,6 +184,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListDirectoryPeopleResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListOtherContactsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -292,6 +304,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SearchDirectoryPeopleResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SipAddress class Representation < Google::Apis::Core::JsonRepresentation; end @@ -551,6 +569,15 @@ module Google end end + class FileAs + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + property :value, as: 'value' + end + end + class Gender # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -615,6 +642,16 @@ module Google end end + class ListDirectoryPeopleResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + property :next_sync_token, as: 'nextSyncToken' + collection :people, as: 'people', class: Google::Apis::PeopleV1::Person, decorator: Google::Apis::PeopleV1::Person::Representation + + end + end + class ListOtherContactsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -747,6 +784,8 @@ module Google property :etag, as: 'etag' collection :events, as: 'events', class: Google::Apis::PeopleV1::Event, decorator: Google::Apis::PeopleV1::Event::Representation + collection :file_ases, as: 'fileAses', class: Google::Apis::PeopleV1::FileAs, decorator: Google::Apis::PeopleV1::FileAs::Representation + collection :genders, as: 'genders', class: Google::Apis::PeopleV1::Gender, decorator: Google::Apis::PeopleV1::Gender::Representation collection :im_clients, as: 'imClients', class: Google::Apis::PeopleV1::ImClient, decorator: Google::Apis::PeopleV1::ImClient::Representation @@ -888,6 +927,16 @@ module Google end end + class SearchDirectoryPeopleResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :people, as: 'people', class: Google::Apis::PeopleV1::Person, decorator: Google::Apis::PeopleV1::Person::Representation + + property :total_size, as: 'totalSize' + end + end + class SipAddress # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/people_v1/service.rb b/generated/google/apis/people_v1/service.rb index e7df3b88a..95b550db9 100644 --- a/generated/google/apis/people_v1/service.rb +++ b/generated/google/apis/people_v1/service.rb @@ -718,6 +718,174 @@ module Google execute_or_queue_command(command, &block) end + # Provides a list of domain profiles and domain contacts in the authenticated + # user's domain directory. + # @param [Array, String] merge_sources + # Optional. Additional data to merge into the directory sources if they are + # connected + # through verified join keys such as email addresses or phone numbers. + # @param [Fixnum] page_size + # Optional. The number of people to include in the response. Valid values are + # between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0. + # @param [String] page_token + # Optional. A page token, received from a previous `ListDirectoryPeople` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListDirectoryPeople` + # must match the call that provided the page token. + # @param [String] read_mask + # Required. A field mask to restrict which fields on each person are returned. + # Multiple + # fields can be specified by separating them with commas. Valid values are: + # * addresses + # * ageRanges + # * biographies + # * birthdays + # * coverPhotos + # * emailAddresses + # * events + # * genders + # * imClients + # * interests + # * locales + # * memberships + # * metadata + # * names + # * nicknames + # * occupations + # * organizations + # * phoneNumbers + # * photos + # * relations + # * residences + # * sipAddresses + # * skills + # * urls + # * userDefined + # @param [Boolean] request_sync_token + # Optional. Whether the response should include `next_sync_token`, which can be + # used to + # get all changes since the last request. For subsequent sync requests use + # the `sync_token` param instead. + # @param [Array, String] sources + # Required. Directory sources to return. + # @param [String] sync_token + # Optional. A sync token, received from a previous `ListDirectoryPeople` call. + # Provide this to retrieve only the resources changed since the last request. + # When syncing, all other parameters provided to `ListDirectoryPeople` + # must match the call that provided the sync token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PeopleV1::ListDirectoryPeopleResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PeopleV1::ListDirectoryPeopleResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_person_directory_people(merge_sources: nil, page_size: nil, page_token: nil, read_mask: nil, request_sync_token: nil, sources: nil, sync_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/people:listDirectoryPeople', options) + command.response_representation = Google::Apis::PeopleV1::ListDirectoryPeopleResponse::Representation + command.response_class = Google::Apis::PeopleV1::ListDirectoryPeopleResponse + command.query['mergeSources'] = merge_sources unless merge_sources.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['readMask'] = read_mask unless read_mask.nil? + command.query['requestSyncToken'] = request_sync_token unless request_sync_token.nil? + command.query['sources'] = sources unless sources.nil? + command.query['syncToken'] = sync_token unless sync_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Provides a list of domain profiles and domain contacts in the authenticated + # user's domain directory that match the search query. + # @param [Array, String] merge_sources + # Optional. Additional data to merge into the directory sources if they are + # connected + # through verified join keys such as email addresses or phone numbers. + # @param [Fixnum] page_size + # Optional. The number of people to include in the response. Valid values are + # between 1 and 500, inclusive. Defaults to 100 if not set or set to 0. + # @param [String] page_token + # Optional. A page token, received from a previous `SearchDirectoryPeople` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `SearchDirectoryPeople` + # must match the call that provided the page token. + # @param [String] query + # Required. Prefix query that matches fields in the person. Does NOT use the + # read_mask for determining what fields to match. + # @param [String] read_mask + # Required. A field mask to restrict which fields on each person are returned. + # Multiple + # fields can be specified by separating them with commas. Valid values are: + # * addresses + # * ageRanges + # * biographies + # * birthdays + # * coverPhotos + # * emailAddresses + # * events + # * genders + # * imClients + # * interests + # * locales + # * memberships + # * metadata + # * names + # * nicknames + # * occupations + # * organizations + # * phoneNumbers + # * photos + # * relations + # * residences + # * sipAddresses + # * skills + # * urls + # * userDefined + # @param [Array, String] sources + # Required. Directory sources to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PeopleV1::SearchDirectoryPeopleResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PeopleV1::SearchDirectoryPeopleResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def search_person_directory_people(merge_sources: nil, page_size: nil, page_token: nil, query: nil, read_mask: nil, sources: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/people:searchDirectoryPeople', options) + command.response_representation = Google::Apis::PeopleV1::SearchDirectoryPeopleResponse::Representation + command.response_class = Google::Apis::PeopleV1::SearchDirectoryPeopleResponse + command.query['mergeSources'] = merge_sources unless merge_sources.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['query'] = query unless query.nil? + command.query['readMask'] = read_mask unless read_mask.nil? + command.query['sources'] = sources unless sources.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Update contact data for an existing contact person. Any non-contact data # will not be modified. # The request throws a 400 error if `updatePersonFields` is not specified. diff --git a/generated/google/apis/serviceconsumermanagement_v1.rb b/generated/google/apis/serviceconsumermanagement_v1.rb index 80fbfc698..4ac367e63 100644 --- a/generated/google/apis/serviceconsumermanagement_v1.rb +++ b/generated/google/apis/serviceconsumermanagement_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/service-consumer-management/docs/overview module ServiceconsumermanagementV1 VERSION = 'V1' - REVISION = '20200606' + REVISION = '20200609' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/serviceconsumermanagement_v1/classes.rb b/generated/google/apis/serviceconsumermanagement_v1/classes.rb index 8be0243ba..5b4f98de0 100644 --- a/generated/google/apis/serviceconsumermanagement_v1/classes.rb +++ b/generated/google/apis/serviceconsumermanagement_v1/classes.rb @@ -1965,6 +1965,15 @@ module Google # Defines a metric type and its schema. Once a metric descriptor is created, # deleting or altering it stops data collection and makes the metric type's # existing data unusable. + # The following are specific rules for service defined Monitoring metric + # descriptors: + # * `type`, `metric_kind`, `value_type`, `description`, `display_name`, + # `launch_stage` fields are all required. The `unit` field must be specified + # if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION. + # * Maximum of default 500 metric descriptors per service is allowed. + # * Maximum of default 10 labels per metric descriptor is allowed. + # The default maximum limit can be overridden. Please follow + # https://cloud.google.com/monitoring/quotas class MetricDescriptor include Google::Apis::Core::Hashable @@ -1982,7 +1991,13 @@ module Google attr_accessor :display_name # The set of labels that can be used to describe a specific - # instance of this metric type. For example, the + # instance of this metric type. + # The label key name must follow: + # * Only upper and lower-case letters, digits and underscores (_) are + # allowed. + # * Label name must start with a letter or digit. + # * The maximum length of a label name is 100 characters. + # For example, the # `appengine.googleapis.com/http/server/response_latencies` metric # type has a label for the HTTP response code, `response_code`, so # you can look at latencies for successful responses or just @@ -2022,9 +2037,19 @@ module Google attr_accessor :name # The metric type, including its DNS name prefix. The type is not - # URL-encoded. All user-defined metric types have the DNS name - # `custom.googleapis.com` or `external.googleapis.com`. Metric types should - # use a natural hierarchical grouping. For example: + # URL-encoded. + # All service defined metrics must be prefixed with the service name, in the + # format of ``service name`/`relative metric name``, such as + # `cloudsql.googleapis.com/database/cpu/utilization`. The relative metric + # name must follow: + # * Only upper and lower-case letters, digits, '/' and underscores '_' are + # allowed. + # * The maximum number of characters allowed for the relative_metric_name is + # 100. + # All user-defined metric types have the DNS name + # `custom.googleapis.com`, `external.googleapis.com`, or + # `logging.googleapis.com/user/`. + # Metric types should use a natural hierarchical grouping. For example: # "custom.googleapis.com/invoice/paid/amount" # "external.googleapis.com/prometheus/up" # "appengine.googleapis.com/http/server/response_latencies" @@ -2303,9 +2328,20 @@ module Google # descriptor for Google Compute Engine VM instances has a type of # `"gce_instance"` and specifies the use of the labels `"instance_id"` and # `"zone"` to identify particular VM instances. - # Different APIs can support different monitored resource types. APIs generally - # provide a `list` method that returns the monitored resource descriptors used - # by the API. + # Different services can support different monitored resource types. + # The following are specific rules to service defined monitored resources for + # Monitoring and Logging: + # * The `type`, `display_name`, `description`, `labels` and `launch_stage` + # fields are all required. + # * The first label of the monitored resource descriptor must be + # `resource_container`. There are legacy monitored resource descritptors + # start with `project_id`. + # * It must include a `location` label. * Maximum of default 5 service defined + # monitored resource descriptors + # is allowed per service. + # * Maximum of default 10 labels per monitored resource is allowed. + # The default maximum limit can be overridden. Please follow + # https://cloud.google.com/monitoring/quotas class MonitoredResourceDescriptor include Google::Apis::Core::Hashable @@ -2324,8 +2360,14 @@ module Google attr_accessor :display_name # Required. A set of labels used to describe instances of this monitored - # resource type. For example, an individual Google Cloud SQL database is - # identified by values for the labels `"database_id"` and `"zone"`. + # resource type. + # The label key name must follow: + # * Only upper and lower-case letters, digits and underscores (_) are + # allowed. + # * Label name must start with a letter or digit. + # * The maximum length of a label name is 100 characters. + # For example, an individual Google Cloud SQL database is + # identified by values for the labels `database_id` and `location`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -2345,9 +2387,7 @@ module Google # @return [String] attr_accessor :name - # Required. The monitored resource type. For example, the type - # `"cloudsql_database"` represents databases in Google Cloud SQL. - # The maximum length of this value is 256 characters. + # Note there are legacy service monitored resources not following this rule. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type diff --git a/generated/google/apis/serviceconsumermanagement_v1beta1.rb b/generated/google/apis/serviceconsumermanagement_v1beta1.rb index 409f2d189..8ef88e902 100644 --- a/generated/google/apis/serviceconsumermanagement_v1beta1.rb +++ b/generated/google/apis/serviceconsumermanagement_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/service-consumer-management/docs/overview module ServiceconsumermanagementV1beta1 VERSION = 'V1beta1' - REVISION = '20200606' + REVISION = '20200609' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb b/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb index f648a6e67..d67afa86a 100644 --- a/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +++ b/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb @@ -1743,6 +1743,15 @@ module Google # Defines a metric type and its schema. Once a metric descriptor is created, # deleting or altering it stops data collection and makes the metric type's # existing data unusable. + # The following are specific rules for service defined Monitoring metric + # descriptors: + # * `type`, `metric_kind`, `value_type`, `description`, `display_name`, + # `launch_stage` fields are all required. The `unit` field must be specified + # if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION. + # * Maximum of default 500 metric descriptors per service is allowed. + # * Maximum of default 10 labels per metric descriptor is allowed. + # The default maximum limit can be overridden. Please follow + # https://cloud.google.com/monitoring/quotas class MetricDescriptor include Google::Apis::Core::Hashable @@ -1760,7 +1769,13 @@ module Google attr_accessor :display_name # The set of labels that can be used to describe a specific - # instance of this metric type. For example, the + # instance of this metric type. + # The label key name must follow: + # * Only upper and lower-case letters, digits and underscores (_) are + # allowed. + # * Label name must start with a letter or digit. + # * The maximum length of a label name is 100 characters. + # For example, the # `appengine.googleapis.com/http/server/response_latencies` metric # type has a label for the HTTP response code, `response_code`, so # you can look at latencies for successful responses or just @@ -1800,9 +1815,19 @@ module Google attr_accessor :name # The metric type, including its DNS name prefix. The type is not - # URL-encoded. All user-defined metric types have the DNS name - # `custom.googleapis.com` or `external.googleapis.com`. Metric types should - # use a natural hierarchical grouping. For example: + # URL-encoded. + # All service defined metrics must be prefixed with the service name, in the + # format of ``service name`/`relative metric name``, such as + # `cloudsql.googleapis.com/database/cpu/utilization`. The relative metric + # name must follow: + # * Only upper and lower-case letters, digits, '/' and underscores '_' are + # allowed. + # * The maximum number of characters allowed for the relative_metric_name is + # 100. + # All user-defined metric types have the DNS name + # `custom.googleapis.com`, `external.googleapis.com`, or + # `logging.googleapis.com/user/`. + # Metric types should use a natural hierarchical grouping. For example: # "custom.googleapis.com/invoice/paid/amount" # "external.googleapis.com/prometheus/up" # "appengine.googleapis.com/http/server/response_latencies" @@ -2081,9 +2106,20 @@ module Google # descriptor for Google Compute Engine VM instances has a type of # `"gce_instance"` and specifies the use of the labels `"instance_id"` and # `"zone"` to identify particular VM instances. - # Different APIs can support different monitored resource types. APIs generally - # provide a `list` method that returns the monitored resource descriptors used - # by the API. + # Different services can support different monitored resource types. + # The following are specific rules to service defined monitored resources for + # Monitoring and Logging: + # * The `type`, `display_name`, `description`, `labels` and `launch_stage` + # fields are all required. + # * The first label of the monitored resource descriptor must be + # `resource_container`. There are legacy monitored resource descritptors + # start with `project_id`. + # * It must include a `location` label. * Maximum of default 5 service defined + # monitored resource descriptors + # is allowed per service. + # * Maximum of default 10 labels per monitored resource is allowed. + # The default maximum limit can be overridden. Please follow + # https://cloud.google.com/monitoring/quotas class MonitoredResourceDescriptor include Google::Apis::Core::Hashable @@ -2102,8 +2138,14 @@ module Google attr_accessor :display_name # Required. A set of labels used to describe instances of this monitored - # resource type. For example, an individual Google Cloud SQL database is - # identified by values for the labels `"database_id"` and `"zone"`. + # resource type. + # The label key name must follow: + # * Only upper and lower-case letters, digits and underscores (_) are + # allowed. + # * Label name must start with a letter or digit. + # * The maximum length of a label name is 100 characters. + # For example, an individual Google Cloud SQL database is + # identified by values for the labels `database_id` and `location`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -2123,9 +2165,7 @@ module Google # @return [String] attr_accessor :name - # Required. The monitored resource type. For example, the type - # `"cloudsql_database"` represents databases in Google Cloud SQL. - # The maximum length of this value is 256 characters. + # Note there are legacy service monitored resources not following this rule. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type diff --git a/generated/google/apis/servicenetworking_v1.rb b/generated/google/apis/servicenetworking_v1.rb index 27bae3e69..00e04a85b 100644 --- a/generated/google/apis/servicenetworking_v1.rb +++ b/generated/google/apis/servicenetworking_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started module ServicenetworkingV1 VERSION = 'V1' - REVISION = '20200606' + REVISION = '20200609' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/servicenetworking_v1/classes.rb b/generated/google/apis/servicenetworking_v1/classes.rb index 060102fd8..4dcba22c0 100644 --- a/generated/google/apis/servicenetworking_v1/classes.rb +++ b/generated/google/apis/servicenetworking_v1/classes.rb @@ -2316,6 +2316,15 @@ module Google # Defines a metric type and its schema. Once a metric descriptor is created, # deleting or altering it stops data collection and makes the metric type's # existing data unusable. + # The following are specific rules for service defined Monitoring metric + # descriptors: + # * `type`, `metric_kind`, `value_type`, `description`, `display_name`, + # `launch_stage` fields are all required. The `unit` field must be specified + # if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION. + # * Maximum of default 500 metric descriptors per service is allowed. + # * Maximum of default 10 labels per metric descriptor is allowed. + # The default maximum limit can be overridden. Please follow + # https://cloud.google.com/monitoring/quotas class MetricDescriptor include Google::Apis::Core::Hashable @@ -2333,7 +2342,13 @@ module Google attr_accessor :display_name # The set of labels that can be used to describe a specific - # instance of this metric type. For example, the + # instance of this metric type. + # The label key name must follow: + # * Only upper and lower-case letters, digits and underscores (_) are + # allowed. + # * Label name must start with a letter or digit. + # * The maximum length of a label name is 100 characters. + # For example, the # `appengine.googleapis.com/http/server/response_latencies` metric # type has a label for the HTTP response code, `response_code`, so # you can look at latencies for successful responses or just @@ -2373,9 +2388,19 @@ module Google attr_accessor :name # The metric type, including its DNS name prefix. The type is not - # URL-encoded. All user-defined metric types have the DNS name - # `custom.googleapis.com` or `external.googleapis.com`. Metric types should - # use a natural hierarchical grouping. For example: + # URL-encoded. + # All service defined metrics must be prefixed with the service name, in the + # format of ``service name`/`relative metric name``, such as + # `cloudsql.googleapis.com/database/cpu/utilization`. The relative metric + # name must follow: + # * Only upper and lower-case letters, digits, '/' and underscores '_' are + # allowed. + # * The maximum number of characters allowed for the relative_metric_name is + # 100. + # All user-defined metric types have the DNS name + # `custom.googleapis.com`, `external.googleapis.com`, or + # `logging.googleapis.com/user/`. + # Metric types should use a natural hierarchical grouping. For example: # "custom.googleapis.com/invoice/paid/amount" # "external.googleapis.com/prometheus/up" # "appengine.googleapis.com/http/server/response_latencies" @@ -2654,9 +2679,20 @@ module Google # descriptor for Google Compute Engine VM instances has a type of # `"gce_instance"` and specifies the use of the labels `"instance_id"` and # `"zone"` to identify particular VM instances. - # Different APIs can support different monitored resource types. APIs generally - # provide a `list` method that returns the monitored resource descriptors used - # by the API. + # Different services can support different monitored resource types. + # The following are specific rules to service defined monitored resources for + # Monitoring and Logging: + # * The `type`, `display_name`, `description`, `labels` and `launch_stage` + # fields are all required. + # * The first label of the monitored resource descriptor must be + # `resource_container`. There are legacy monitored resource descritptors + # start with `project_id`. + # * It must include a `location` label. * Maximum of default 5 service defined + # monitored resource descriptors + # is allowed per service. + # * Maximum of default 10 labels per monitored resource is allowed. + # The default maximum limit can be overridden. Please follow + # https://cloud.google.com/monitoring/quotas class MonitoredResourceDescriptor include Google::Apis::Core::Hashable @@ -2675,8 +2711,14 @@ module Google attr_accessor :display_name # Required. A set of labels used to describe instances of this monitored - # resource type. For example, an individual Google Cloud SQL database is - # identified by values for the labels `"database_id"` and `"zone"`. + # resource type. + # The label key name must follow: + # * Only upper and lower-case letters, digits and underscores (_) are + # allowed. + # * Label name must start with a letter or digit. + # * The maximum length of a label name is 100 characters. + # For example, an individual Google Cloud SQL database is + # identified by values for the labels `database_id` and `location`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -2696,9 +2738,7 @@ module Google # @return [String] attr_accessor :name - # Required. The monitored resource type. For example, the type - # `"cloudsql_database"` represents databases in Google Cloud SQL. - # The maximum length of this value is 256 characters. + # Note there are legacy service monitored resources not following this rule. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type diff --git a/generated/google/apis/servicenetworking_v1beta.rb b/generated/google/apis/servicenetworking_v1beta.rb index 5ed96a552..ec7a40acc 100644 --- a/generated/google/apis/servicenetworking_v1beta.rb +++ b/generated/google/apis/servicenetworking_v1beta.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started module ServicenetworkingV1beta VERSION = 'V1beta' - REVISION = '20200606' + REVISION = '20200609' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/servicenetworking_v1beta/classes.rb b/generated/google/apis/servicenetworking_v1beta/classes.rb index c5a8e74ec..479db0613 100644 --- a/generated/google/apis/servicenetworking_v1beta/classes.rb +++ b/generated/google/apis/servicenetworking_v1beta/classes.rb @@ -2074,6 +2074,15 @@ module Google # Defines a metric type and its schema. Once a metric descriptor is created, # deleting or altering it stops data collection and makes the metric type's # existing data unusable. + # The following are specific rules for service defined Monitoring metric + # descriptors: + # * `type`, `metric_kind`, `value_type`, `description`, `display_name`, + # `launch_stage` fields are all required. The `unit` field must be specified + # if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION. + # * Maximum of default 500 metric descriptors per service is allowed. + # * Maximum of default 10 labels per metric descriptor is allowed. + # The default maximum limit can be overridden. Please follow + # https://cloud.google.com/monitoring/quotas class MetricDescriptor include Google::Apis::Core::Hashable @@ -2091,7 +2100,13 @@ module Google attr_accessor :display_name # The set of labels that can be used to describe a specific - # instance of this metric type. For example, the + # instance of this metric type. + # The label key name must follow: + # * Only upper and lower-case letters, digits and underscores (_) are + # allowed. + # * Label name must start with a letter or digit. + # * The maximum length of a label name is 100 characters. + # For example, the # `appengine.googleapis.com/http/server/response_latencies` metric # type has a label for the HTTP response code, `response_code`, so # you can look at latencies for successful responses or just @@ -2131,9 +2146,19 @@ module Google attr_accessor :name # The metric type, including its DNS name prefix. The type is not - # URL-encoded. All user-defined metric types have the DNS name - # `custom.googleapis.com` or `external.googleapis.com`. Metric types should - # use a natural hierarchical grouping. For example: + # URL-encoded. + # All service defined metrics must be prefixed with the service name, in the + # format of ``service name`/`relative metric name``, such as + # `cloudsql.googleapis.com/database/cpu/utilization`. The relative metric + # name must follow: + # * Only upper and lower-case letters, digits, '/' and underscores '_' are + # allowed. + # * The maximum number of characters allowed for the relative_metric_name is + # 100. + # All user-defined metric types have the DNS name + # `custom.googleapis.com`, `external.googleapis.com`, or + # `logging.googleapis.com/user/`. + # Metric types should use a natural hierarchical grouping. For example: # "custom.googleapis.com/invoice/paid/amount" # "external.googleapis.com/prometheus/up" # "appengine.googleapis.com/http/server/response_latencies" @@ -2412,9 +2437,20 @@ module Google # descriptor for Google Compute Engine VM instances has a type of # `"gce_instance"` and specifies the use of the labels `"instance_id"` and # `"zone"` to identify particular VM instances. - # Different APIs can support different monitored resource types. APIs generally - # provide a `list` method that returns the monitored resource descriptors used - # by the API. + # Different services can support different monitored resource types. + # The following are specific rules to service defined monitored resources for + # Monitoring and Logging: + # * The `type`, `display_name`, `description`, `labels` and `launch_stage` + # fields are all required. + # * The first label of the monitored resource descriptor must be + # `resource_container`. There are legacy monitored resource descritptors + # start with `project_id`. + # * It must include a `location` label. * Maximum of default 5 service defined + # monitored resource descriptors + # is allowed per service. + # * Maximum of default 10 labels per monitored resource is allowed. + # The default maximum limit can be overridden. Please follow + # https://cloud.google.com/monitoring/quotas class MonitoredResourceDescriptor include Google::Apis::Core::Hashable @@ -2433,8 +2469,14 @@ module Google attr_accessor :display_name # Required. A set of labels used to describe instances of this monitored - # resource type. For example, an individual Google Cloud SQL database is - # identified by values for the labels `"database_id"` and `"zone"`. + # resource type. + # The label key name must follow: + # * Only upper and lower-case letters, digits and underscores (_) are + # allowed. + # * Label name must start with a letter or digit. + # * The maximum length of a label name is 100 characters. + # For example, an individual Google Cloud SQL database is + # identified by values for the labels `database_id` and `location`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -2454,9 +2496,7 @@ module Google # @return [String] attr_accessor :name - # Required. The monitored resource type. For example, the type - # `"cloudsql_database"` represents databases in Google Cloud SQL. - # The maximum length of this value is 256 characters. + # Note there are legacy service monitored resources not following this rule. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type diff --git a/generated/google/apis/serviceusage_v1.rb b/generated/google/apis/serviceusage_v1.rb index 13bf3074a..428491bca 100644 --- a/generated/google/apis/serviceusage_v1.rb +++ b/generated/google/apis/serviceusage_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-usage/ module ServiceusageV1 VERSION = 'V1' - REVISION = '20200606' + REVISION = '20200609' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/serviceusage_v1/classes.rb b/generated/google/apis/serviceusage_v1/classes.rb index 16b989be5..a216fb4a0 100644 --- a/generated/google/apis/serviceusage_v1/classes.rb +++ b/generated/google/apis/serviceusage_v1/classes.rb @@ -2952,6 +2952,15 @@ module Google # Defines a metric type and its schema. Once a metric descriptor is created, # deleting or altering it stops data collection and makes the metric type's # existing data unusable. + # The following are specific rules for service defined Monitoring metric + # descriptors: + # * `type`, `metric_kind`, `value_type`, `description`, `display_name`, + # `launch_stage` fields are all required. The `unit` field must be specified + # if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION. + # * Maximum of default 500 metric descriptors per service is allowed. + # * Maximum of default 10 labels per metric descriptor is allowed. + # The default maximum limit can be overridden. Please follow + # https://cloud.google.com/monitoring/quotas class MetricDescriptor include Google::Apis::Core::Hashable @@ -2969,7 +2978,13 @@ module Google attr_accessor :display_name # The set of labels that can be used to describe a specific - # instance of this metric type. For example, the + # instance of this metric type. + # The label key name must follow: + # * Only upper and lower-case letters, digits and underscores (_) are + # allowed. + # * Label name must start with a letter or digit. + # * The maximum length of a label name is 100 characters. + # For example, the # `appengine.googleapis.com/http/server/response_latencies` metric # type has a label for the HTTP response code, `response_code`, so # you can look at latencies for successful responses or just @@ -3009,9 +3024,19 @@ module Google attr_accessor :name # The metric type, including its DNS name prefix. The type is not - # URL-encoded. All user-defined metric types have the DNS name - # `custom.googleapis.com` or `external.googleapis.com`. Metric types should - # use a natural hierarchical grouping. For example: + # URL-encoded. + # All service defined metrics must be prefixed with the service name, in the + # format of ``service name`/`relative metric name``, such as + # `cloudsql.googleapis.com/database/cpu/utilization`. The relative metric + # name must follow: + # * Only upper and lower-case letters, digits, '/' and underscores '_' are + # allowed. + # * The maximum number of characters allowed for the relative_metric_name is + # 100. + # All user-defined metric types have the DNS name + # `custom.googleapis.com`, `external.googleapis.com`, or + # `logging.googleapis.com/user/`. + # Metric types should use a natural hierarchical grouping. For example: # "custom.googleapis.com/invoice/paid/amount" # "external.googleapis.com/prometheus/up" # "appengine.googleapis.com/http/server/response_latencies" @@ -3290,9 +3315,20 @@ module Google # descriptor for Google Compute Engine VM instances has a type of # `"gce_instance"` and specifies the use of the labels `"instance_id"` and # `"zone"` to identify particular VM instances. - # Different APIs can support different monitored resource types. APIs generally - # provide a `list` method that returns the monitored resource descriptors used - # by the API. + # Different services can support different monitored resource types. + # The following are specific rules to service defined monitored resources for + # Monitoring and Logging: + # * The `type`, `display_name`, `description`, `labels` and `launch_stage` + # fields are all required. + # * The first label of the monitored resource descriptor must be + # `resource_container`. There are legacy monitored resource descritptors + # start with `project_id`. + # * It must include a `location` label. * Maximum of default 5 service defined + # monitored resource descriptors + # is allowed per service. + # * Maximum of default 10 labels per monitored resource is allowed. + # The default maximum limit can be overridden. Please follow + # https://cloud.google.com/monitoring/quotas class MonitoredResourceDescriptor include Google::Apis::Core::Hashable @@ -3311,8 +3347,14 @@ module Google attr_accessor :display_name # Required. A set of labels used to describe instances of this monitored - # resource type. For example, an individual Google Cloud SQL database is - # identified by values for the labels `"database_id"` and `"zone"`. + # resource type. + # The label key name must follow: + # * Only upper and lower-case letters, digits and underscores (_) are + # allowed. + # * Label name must start with a letter or digit. + # * The maximum length of a label name is 100 characters. + # For example, an individual Google Cloud SQL database is + # identified by values for the labels `database_id` and `location`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -3332,9 +3374,7 @@ module Google # @return [String] attr_accessor :name - # Required. The monitored resource type. For example, the type - # `"cloudsql_database"` represents databases in Google Cloud SQL. - # The maximum length of this value is 256 characters. + # Note there are legacy service monitored resources not following this rule. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type diff --git a/generated/google/apis/serviceusage_v1beta1.rb b/generated/google/apis/serviceusage_v1beta1.rb index 0fbed124b..8442c8a54 100644 --- a/generated/google/apis/serviceusage_v1beta1.rb +++ b/generated/google/apis/serviceusage_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-usage/ module ServiceusageV1beta1 VERSION = 'V1beta1' - REVISION = '20200606' + REVISION = '20200609' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/serviceusage_v1beta1/classes.rb b/generated/google/apis/serviceusage_v1beta1/classes.rb index 4dec5ecfc..06f7897e0 100644 --- a/generated/google/apis/serviceusage_v1beta1/classes.rb +++ b/generated/google/apis/serviceusage_v1beta1/classes.rb @@ -3105,6 +3105,15 @@ module Google # Defines a metric type and its schema. Once a metric descriptor is created, # deleting or altering it stops data collection and makes the metric type's # existing data unusable. + # The following are specific rules for service defined Monitoring metric + # descriptors: + # * `type`, `metric_kind`, `value_type`, `description`, `display_name`, + # `launch_stage` fields are all required. The `unit` field must be specified + # if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION. + # * Maximum of default 500 metric descriptors per service is allowed. + # * Maximum of default 10 labels per metric descriptor is allowed. + # The default maximum limit can be overridden. Please follow + # https://cloud.google.com/monitoring/quotas class MetricDescriptor include Google::Apis::Core::Hashable @@ -3122,7 +3131,13 @@ module Google attr_accessor :display_name # The set of labels that can be used to describe a specific - # instance of this metric type. For example, the + # instance of this metric type. + # The label key name must follow: + # * Only upper and lower-case letters, digits and underscores (_) are + # allowed. + # * Label name must start with a letter or digit. + # * The maximum length of a label name is 100 characters. + # For example, the # `appengine.googleapis.com/http/server/response_latencies` metric # type has a label for the HTTP response code, `response_code`, so # you can look at latencies for successful responses or just @@ -3162,9 +3177,19 @@ module Google attr_accessor :name # The metric type, including its DNS name prefix. The type is not - # URL-encoded. All user-defined metric types have the DNS name - # `custom.googleapis.com` or `external.googleapis.com`. Metric types should - # use a natural hierarchical grouping. For example: + # URL-encoded. + # All service defined metrics must be prefixed with the service name, in the + # format of ``service name`/`relative metric name``, such as + # `cloudsql.googleapis.com/database/cpu/utilization`. The relative metric + # name must follow: + # * Only upper and lower-case letters, digits, '/' and underscores '_' are + # allowed. + # * The maximum number of characters allowed for the relative_metric_name is + # 100. + # All user-defined metric types have the DNS name + # `custom.googleapis.com`, `external.googleapis.com`, or + # `logging.googleapis.com/user/`. + # Metric types should use a natural hierarchical grouping. For example: # "custom.googleapis.com/invoice/paid/amount" # "external.googleapis.com/prometheus/up" # "appengine.googleapis.com/http/server/response_latencies" @@ -3443,9 +3468,20 @@ module Google # descriptor for Google Compute Engine VM instances has a type of # `"gce_instance"` and specifies the use of the labels `"instance_id"` and # `"zone"` to identify particular VM instances. - # Different APIs can support different monitored resource types. APIs generally - # provide a `list` method that returns the monitored resource descriptors used - # by the API. + # Different services can support different monitored resource types. + # The following are specific rules to service defined monitored resources for + # Monitoring and Logging: + # * The `type`, `display_name`, `description`, `labels` and `launch_stage` + # fields are all required. + # * The first label of the monitored resource descriptor must be + # `resource_container`. There are legacy monitored resource descritptors + # start with `project_id`. + # * It must include a `location` label. * Maximum of default 5 service defined + # monitored resource descriptors + # is allowed per service. + # * Maximum of default 10 labels per monitored resource is allowed. + # The default maximum limit can be overridden. Please follow + # https://cloud.google.com/monitoring/quotas class MonitoredResourceDescriptor include Google::Apis::Core::Hashable @@ -3464,8 +3500,14 @@ module Google attr_accessor :display_name # Required. A set of labels used to describe instances of this monitored - # resource type. For example, an individual Google Cloud SQL database is - # identified by values for the labels `"database_id"` and `"zone"`. + # resource type. + # The label key name must follow: + # * Only upper and lower-case letters, digits and underscores (_) are + # allowed. + # * Label name must start with a letter or digit. + # * The maximum length of a label name is 100 characters. + # For example, an individual Google Cloud SQL database is + # identified by values for the labels `database_id` and `location`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -3485,9 +3527,7 @@ module Google # @return [String] attr_accessor :name - # Required. The monitored resource type. For example, the type - # `"cloudsql_database"` represents databases in Google Cloud SQL. - # The maximum length of this value is 256 characters. + # Note there are legacy service monitored resources not following this rule. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type diff --git a/generated/google/apis/serviceusage_v1beta1/service.rb b/generated/google/apis/serviceusage_v1beta1/service.rb index deabe80c8..f0cc3356f 100644 --- a/generated/google/apis/serviceusage_v1beta1/service.rb +++ b/generated/google/apis/serviceusage_v1beta1/service.rb @@ -251,6 +251,40 @@ module Google execute_or_queue_command(command, &block) end + # Generate service identity for service. + # @param [String] parent + # Name of the consumer and service to generate an identity for. + # The `GenerateServiceIdentity` methods currently only support projects. + # An example name would be: + # `projects/123/services/example.googleapis.com` where `123` is the + # project number. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ServiceusageV1beta1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ServiceusageV1beta1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def generate_service_service_identity(parent, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}:generateServiceIdentity', options) + command.response_representation = Google::Apis::ServiceusageV1beta1::Operation::Representation + command.response_class = Google::Apis::ServiceusageV1beta1::Operation + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Returns the service configuration and enabled state for a given service. # @param [String] name # Name of the consumer and service to get the `ConsumerState` for.