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
This commit is contained in:
Google APIs 2020-06-11 00:38:48 +00:00
parent e62553d4ba
commit f79a751a98
39 changed files with 855 additions and 163 deletions

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android/work/play/emm-api # @see https://developers.google.com/android/work/play/emm-api
module AndroidenterpriseV1 module AndroidenterpriseV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200528' REVISION = '20200606'
# Manage corporate Android devices # Manage corporate Android devices
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise' AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/apps-marketplace # @see https://developers.google.com/apps-marketplace
module AppsmarketV2 module AppsmarketV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20200601' REVISION = '20200608'
# View your installed application's licensing information # View your installed application's licensing information
AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license' AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/binary-authorization/ # @see https://cloud.google.com/binary-authorization/
module BinaryauthorizationV1 module BinaryauthorizationV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200515' REVISION = '20200605'
# 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

@ -540,8 +540,7 @@ module Google
# @return [Array<Google::Apis::BinaryauthorizationV1::AdmissionWhitelistPattern>] # @return [Array<Google::Apis::BinaryauthorizationV1::AdmissionWhitelistPattern>]
attr_accessor :admission_whitelist_patterns attr_accessor :admission_whitelist_patterns
# Optional. LINT.IfChange(cluster_regex) # Optional. Per-cluster admission rules. Cluster spec format:
# Per-cluster admission rules. Cluster spec format:
# `location.clusterId`. There can be at most one admission rule per cluster # `location.clusterId`. There can be at most one admission rule per cluster
# spec. # spec.
# A `location` is either a compute zone (e.g. us-central1-a) or a region # 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 # For `clusterId` syntax restrictions see
# https://cloud.google.com/container-engine/reference/rest/v1/projects.zones. # https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.
# clusters. # clusters.
# LINT.ThenChange(//depot/google3/cloud/console/web/binary_authorization/api/
# models/admission_rule_type.ts:cluster_regex)
# Corresponds to the JSON property `clusterAdmissionRules` # Corresponds to the JSON property `clusterAdmissionRules`
# @return [Hash<String,Google::Apis::BinaryauthorizationV1::AdmissionRule>] # @return [Hash<String,Google::Apis::BinaryauthorizationV1::AdmissionRule>]
attr_accessor :cluster_admission_rules attr_accessor :cluster_admission_rules

View File

@ -25,7 +25,7 @@ module Google
# @see https://code.google.com/apis/books/docs/v1/getting_started.html # @see https://code.google.com/apis/books/docs/v1/getting_started.html
module BooksV1 module BooksV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200506' REVISION = '20200603'
# Manage your books # Manage your books
AUTH_BOOKS = 'https://www.googleapis.com/auth/books' AUTH_BOOKS = 'https://www.googleapis.com/auth/books'

View File

@ -43,8 +43,8 @@ module Google
attr_accessor :quota_user attr_accessor :quota_user
def initialize def initialize
super('https://books.googleapis.com/', '') super('https://www.googleapis.com/', '')
@batch_path = 'batch' @batch_path = 'batch/books/v1'
end end
# Retrieves metadata for a specific bookshelf for the specified user. # Retrieves metadata for a specific bookshelf for the specified user.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/kms/ # @see https://cloud.google.com/kms/
module CloudkmsV1 module CloudkmsV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200522' REVISION = '20200609'
# 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

@ -225,7 +225,7 @@ module Google
# ` # `
# "audit_configs": [ # "audit_configs": [
# ` # `
# "service": "allServices" # "service": "allServices",
# "audit_log_configs": [ # "audit_log_configs": [
# ` # `
# "log_type": "DATA_READ", # "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": [ # "audit_log_configs": [
# ` # `
# "log_type": "DATA_READ", # "log_type": "DATA_READ"
# `, # `,
# ` # `
# "log_type": "DATA_WRITE", # "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 attr_accessor :create_time
# Labels with user-defined metadata. For more information, see # 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` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager # @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1 module CloudresourcemanagerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200504' REVISION = '20200608'
# 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

@ -56,7 +56,7 @@ module Google
# ` # `
# "audit_configs": [ # "audit_configs": [
# ` # `
# "service": "allServices" # "service": "allServices",
# "audit_log_configs": [ # "audit_log_configs": [
# ` # `
# "log_type": "DATA_READ", # "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": [ # "audit_log_configs": [
# ` # `
# "log_type": "DATA_READ", # "log_type": "DATA_READ"
# `, # `,
# ` # `
# "log_type": "DATA_WRITE", # "log_type": "DATA_WRITE",
@ -128,7 +128,7 @@ module Google
# ] # ]
# `, # `,
# ` # `
# "log_type": "DATA_WRITE", # "log_type": "DATA_WRITE"
# ` # `
# ] # ]
# ` # `

View File

@ -1272,8 +1272,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Sets the IAM access control policy for the specified Project. Overwrites # Sets the IAM access control policy for the specified Project.
# any existing policy. # 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()`: # The following constraints apply when using `setIamPolicy()`:
# + Project does not support `allUsers` and `allAuthenticatedUsers` as # + Project does not support `allUsers` and `allAuthenticatedUsers` as
# `members` in a `Binding` of a `Policy`. # `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 # 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 # IAM policies will be rejected until the lack of a ToS-accepting owner is
# rectified. # 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 # Authorization requires the Google IAM permission
# `resourcemanager.projects.setIamPolicy` on the project # `resourcemanager.projects.setIamPolicy` on the project
# @param [String] resource # @param [String] resource

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager # @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1beta1 module CloudresourcemanagerV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200504' REVISION = '20200608'
# 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

@ -56,7 +56,7 @@ module Google
# ` # `
# "audit_configs": [ # "audit_configs": [
# ` # `
# "service": "allServices" # "service": "allServices",
# "audit_log_configs": [ # "audit_log_configs": [
# ` # `
# "log_type": "DATA_READ", # "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": [ # "audit_log_configs": [
# ` # `
# "log_type": "DATA_READ", # "log_type": "DATA_READ"
# `, # `,
# ` # `
# "log_type": "DATA_WRITE", # "log_type": "DATA_WRITE",
@ -128,7 +128,7 @@ module Google
# ] # ]
# `, # `,
# ` # `
# "log_type": "DATA_WRITE", # "log_type": "DATA_WRITE"
# ` # `
# ] # ]
# ` # `

View File

@ -554,8 +554,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Sets the IAM access control policy for the specified Project. Overwrites # Sets the IAM access control policy for the specified Project.
# any existing policy. # 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()`: # The following constraints apply when using `setIamPolicy()`:
# + Project does not support `allUsers` and `allAuthenticatedUsers` as # + Project does not support `allUsers` and `allAuthenticatedUsers` as
# `members` in a `Binding` of a `Policy`. # `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 # 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 # IAM policies will be rejected until the lack of a ToS-accepting owner is
# rectified. # rectified.
# + This method will replace the existing policy, and cannot be used to # Authorization requires the Google IAM permission
# append additional IAM settings. # `resourcemanager.projects.setIamPolicy` on the project
# 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.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field. # See the operation documentation for the appropriate value for this field.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager # @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV2 module CloudresourcemanagerV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20200504' REVISION = '20200608'
# 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

@ -34,7 +34,7 @@ module Google
# ` # `
# "audit_configs": [ # "audit_configs": [
# ` # `
# "service": "allServices" # "service": "allServices",
# "audit_log_configs": [ # "audit_log_configs": [
# ` # `
# "log_type": "DATA_READ", # "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": [ # "audit_log_configs": [
# ` # `
# "log_type": "DATA_READ", # "log_type": "DATA_READ"
# `, # `,
# ` # `
# "log_type": "DATA_WRITE", # "log_type": "DATA_WRITE",
@ -106,7 +106,7 @@ module Google
# ] # ]
# `, # `,
# ` # `
# "log_type": "DATA_WRITE", # "log_type": "DATA_WRITE"
# ` # `
# ] # ]
# ` # `

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager # @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV2beta1 module CloudresourcemanagerV2beta1
VERSION = 'V2beta1' VERSION = 'V2beta1'
REVISION = '20200504' REVISION = '20200608'
# 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

@ -34,7 +34,7 @@ module Google
# ` # `
# "audit_configs": [ # "audit_configs": [
# ` # `
# "service": "allServices" # "service": "allServices",
# "audit_log_configs": [ # "audit_log_configs": [
# ` # `
# "log_type": "DATA_READ", # "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": [ # "audit_log_configs": [
# ` # `
# "log_type": "DATA_READ", # "log_type": "DATA_READ"
# `, # `,
# ` # `
# "log_type": "DATA_WRITE", # "log_type": "DATA_WRITE",
@ -106,7 +106,7 @@ module Google
# ] # ]
# `, # `,
# ` # `
# "log_type": "DATA_WRITE", # "log_type": "DATA_WRITE"
# ` # `
# ] # ]
# ` # `

View File

@ -34,7 +34,7 @@ module Google
# @see https://cloud.google.com/data-fusion/docs # @see https://cloud.google.com/data-fusion/docs
module DatafusionV1beta1 module DatafusionV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200311' REVISION = '20200609'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -53,7 +53,7 @@ module Google
# ` # `
# "audit_configs": [ # "audit_configs": [
# ` # `
# "service": "allServices" # "service": "allServices",
# "audit_log_configs": [ # "audit_log_configs": [
# ` # `
# "log_type": "DATA_READ", # "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": [ # "audit_log_configs": [
# ` # `
# "log_type": "DATA_READ", # "log_type": "DATA_READ"
# `, # `,
# ` # `
# "log_type": "DATA_WRITE", # "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] # @return [String]
attr_accessor :create_time attr_accessor :create_time
# Optional. An optional description of this instance. # A description of this instance.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
@ -499,6 +499,32 @@ module Google
end end
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<Google::Apis::DatafusionV1beta1::Version>]
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. # Response message for the list instance request.
class ListInstancesResponse class ListInstancesResponse
include Google::Apis::Core::Hashable 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 # Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created # permissions; each `role` can be an IAM predefined role or a user-created
# custom role. # custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical # For some types of Google Cloud resources, a `binding` can also specify a
# expression that allows access to a resource only if the expression evaluates # `condition`, which is a logical expression that allows access to a resource
# to `true`. A condition can add constraints based on attributes of the # only if the expression evaluates to `true`. A condition can add constraints
# request, the resource, or both. # based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# **JSON example:** # **JSON example:**
# ` # `
# "bindings": [ # "bindings": [
@ -811,7 +840,9 @@ module Google
# `, # `,
# ` # `
# "role": "roles/resourcemanager.organizationViewer", # "role": "roles/resourcemanager.organizationViewer",
# "members": ["user:eve@example.com"], # "members": [
# "user:eve@example.com"
# ],
# "condition": ` # "condition": `
# "title": "expirable access", # "title": "expirable access",
# "description": "Does not grant access after Sep 2020", # "description": "Does not grant access after Sep 2020",
@ -889,6 +920,9 @@ module Google
# the conditions in the version `3` policy are lost. # the conditions in the version `3` policy are lost.
# If a policy does not include any conditions, operations on that policy may # If a policy does not include any conditions, operations on that policy may
# specify any valid version or leave the field unset. # specify any valid version or leave the field unset.
# To learn which resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# Corresponds to the JSON property `version` # Corresponds to the JSON property `version`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version attr_accessor :version
@ -930,10 +964,13 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of # Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created # permissions; each `role` can be an IAM predefined role or a user-created
# custom role. # custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical # For some types of Google Cloud resources, a `binding` can also specify a
# expression that allows access to a resource only if the expression evaluates # `condition`, which is a logical expression that allows access to a resource
# to `true`. A condition can add constraints based on attributes of the # only if the expression evaluates to `true`. A condition can add constraints
# request, the resource, or both. # based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# **JSON example:** # **JSON example:**
# ` # `
# "bindings": [ # "bindings": [
@ -948,7 +985,9 @@ module Google
# `, # `,
# ` # `
# "role": "roles/resourcemanager.organizationViewer", # "role": "roles/resourcemanager.organizationViewer",
# "members": ["user:eve@example.com"], # "members": [
# "user:eve@example.com"
# ],
# "condition": ` # "condition": `
# "title": "expirable access", # "title": "expirable access",
# "description": "Does not grant access after Sep 2020", # "description": "Does not grant access after Sep 2020",
@ -986,8 +1025,7 @@ module Google
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
# the fields in the mask will be modified. If no mask is provided, the # the fields in the mask will be modified. If no mask is provided, the
# following default mask is used: # following default mask is used:
# paths: "bindings, etag" # `paths: "bindings, etag"`
# This field is only used by Cloud IAM.
# Corresponds to the JSON property `updateMask` # Corresponds to the JSON property `updateMask`
# @return [String] # @return [String]
attr_accessor :update_mask attr_accessor :update_mask
@ -1102,6 +1140,12 @@ module Google
class Version class Version
include Google::Apis::Core::Hashable 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'. # The version number of the Data Fusion instance, such as '6.0.1.0'.
# Corresponds to the JSON property `versionNumber` # Corresponds to the JSON property `versionNumber`
# @return [String] # @return [String]
@ -1113,6 +1157,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@default_version = args[:default_version] if args.key?(:default_version)
@version_number = args[:version_number] if args.key?(:version_number) @version_number = args[:version_number] if args.key?(:version_number)
end end
end end

View File

@ -70,6 +70,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListAvailableVersionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListInstancesResponse class ListInstancesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -247,6 +253,15 @@ module Google
end end
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 class ListInstancesResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -378,6 +393,7 @@ module Google
class Version class Version
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :default_version, as: 'defaultVersion'
property :version_number, as: 'versionNumber' property :version_number, as: 'versionNumber'
end end
end end

View File

@ -241,6 +241,9 @@ module Google
# Requests for policies with any conditional bindings must specify version 3. # Requests for policies with any conditional bindings must specify version 3.
# Policies without any conditional bindings may specify any valid value or # Policies without any conditional bindings may specify any valid value or
# leave the field unset. # leave the field unset.
# To learn which resources support conditions in their IAM policies, see the
# [IAM
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -394,7 +397,7 @@ module Google
# Sets the access control policy on the specified resource. Replaces any # Sets the access control policy on the specified resource. Replaces any
# existing policy. # existing policy.
# Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field. # See the operation documentation for the appropriate value for this field.
@ -430,7 +433,7 @@ module Google
# Returns permissions that a caller has on the specified resource. # Returns permissions that a caller has on the specified resource.
# If the resource does not exist, this will return an empty set of # If the resource does not exist, this will return an empty set of
# permissions, not a NOT_FOUND error. # permissions, not a `NOT_FOUND` error.
# Note: This operation is designed to be used for building permission-aware # Note: This operation is designed to be used for building permission-aware
# UIs and command-line tools, not for authorization checking. This operation # UIs and command-line tools, not for authorization checking. This operation
# may "fail open" without warning. # may "fail open" without warning.
@ -657,6 +660,50 @@ module Google
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end 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 protected

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/people/ # @see https://developers.google.com/people/
module PeopleV1 module PeopleV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200606' REVISION = '20200608'
# See, edit, download, and permanently delete your contacts # See, edit, download, and permanently delete your contacts
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts' AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'

View File

@ -780,6 +780,31 @@ module Google
end end
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. # A person's gender.
class Gender class Gender
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1022,6 +1047,40 @@ module Google
end end
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<Google::Apis::PeopleV1::Person>]
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. # The response to a request for the authenticated user's other contacts.
class ListOtherContactsResponse class ListOtherContactsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1514,6 +1573,11 @@ module Google
# @return [Array<Google::Apis::PeopleV1::Event>] # @return [Array<Google::Apis::PeopleV1::Event>]
attr_accessor :events attr_accessor :events
# The person's file-ases.
# Corresponds to the JSON property `fileAses`
# @return [Array<Google::Apis::PeopleV1::FileAs>]
attr_accessor :file_ases
# The person's genders. # The person's genders.
# Corresponds to the JSON property `genders` # Corresponds to the JSON property `genders`
# @return [Array<Google::Apis::PeopleV1::Gender>] # @return [Array<Google::Apis::PeopleV1::Gender>]
@ -1645,6 +1709,7 @@ module Google
@email_addresses = args[:email_addresses] if args.key?(:email_addresses) @email_addresses = args[:email_addresses] if args.key?(:email_addresses)
@etag = args[:etag] if args.key?(:etag) @etag = args[:etag] if args.key?(:etag)
@events = args[:events] if args.key?(:events) @events = args[:events] if args.key?(:events)
@file_ases = args[:file_ases] if args.key?(:file_ases)
@genders = args[:genders] if args.key?(:genders) @genders = args[:genders] if args.key?(:genders)
@im_clients = args[:im_clients] if args.key?(:im_clients) @im_clients = args[:im_clients] if args.key?(:im_clients)
@interests = args[:interests] if args.key?(:interests) @interests = args[:interests] if args.key?(:interests)
@ -2065,6 +2130,39 @@ module Google
end end
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<Google::Apis::PeopleV1::Person>]
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 # A person's SIP address. Session Initial Protocol addresses are used for VoIP
# communications to make voice or video calls over the internet. # communications to make voice or video calls over the internet.
class SipAddress class SipAddress

View File

@ -142,6 +142,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class FileAs
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Gender class Gender
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -178,6 +184,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListDirectoryPeopleResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOtherContactsResponse class ListOtherContactsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -292,6 +304,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class SearchDirectoryPeopleResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SipAddress class SipAddress
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -551,6 +569,15 @@ module Google
end end
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 class Gender
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -615,6 +642,16 @@ module Google
end end
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 class ListOtherContactsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -747,6 +784,8 @@ module Google
property :etag, as: 'etag' property :etag, as: 'etag'
collection :events, as: 'events', class: Google::Apis::PeopleV1::Event, decorator: Google::Apis::PeopleV1::Event::Representation 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 :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 collection :im_clients, as: 'imClients', class: Google::Apis::PeopleV1::ImClient, decorator: Google::Apis::PeopleV1::ImClient::Representation
@ -888,6 +927,16 @@ module Google
end end
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 class SipAddress
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -718,6 +718,174 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Provides a list of domain profiles and domain contacts in the authenticated
# user's domain directory.
# @param [Array<String>, 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>, 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>, 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>, 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 # Update contact data for an existing contact person. Any non-contact data
# will not be modified. # will not be modified.
# The request throws a 400 error if `updatePersonFields` is not specified. # The request throws a 400 error if `updatePersonFields` is not specified.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/service-consumer-management/docs/overview # @see https://cloud.google.com/service-consumer-management/docs/overview
module ServiceconsumermanagementV1 module ServiceconsumermanagementV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200606' REVISION = '20200609'
# 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

@ -1965,6 +1965,15 @@ module Google
# Defines a metric type and its schema. Once a metric descriptor is created, # 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 # deleting or altering it stops data collection and makes the metric type's
# existing data unusable. # 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 class MetricDescriptor
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1982,7 +1991,13 @@ module Google
attr_accessor :display_name attr_accessor :display_name
# The set of labels that can be used to describe a specific # 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 # `appengine.googleapis.com/http/server/response_latencies` metric
# type has a label for the HTTP response code, `response_code`, so # type has a label for the HTTP response code, `response_code`, so
# you can look at latencies for successful responses or just # you can look at latencies for successful responses or just
@ -2022,9 +2037,19 @@ module Google
attr_accessor :name attr_accessor :name
# The metric type, including its DNS name prefix. The type is not # The metric type, including its DNS name prefix. The type is not
# URL-encoded. All user-defined metric types have the DNS name # URL-encoded.
# `custom.googleapis.com` or `external.googleapis.com`. Metric types should # All service defined metrics must be prefixed with the service name, in the
# use a natural hierarchical grouping. For example: # 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" # "custom.googleapis.com/invoice/paid/amount"
# "external.googleapis.com/prometheus/up" # "external.googleapis.com/prometheus/up"
# "appengine.googleapis.com/http/server/response_latencies" # "appengine.googleapis.com/http/server/response_latencies"
@ -2303,9 +2328,20 @@ module Google
# descriptor for Google Compute Engine VM instances has a type of # descriptor for Google Compute Engine VM instances has a type of
# `"gce_instance"` and specifies the use of the labels `"instance_id"` and # `"gce_instance"` and specifies the use of the labels `"instance_id"` and
# `"zone"` to identify particular VM instances. # `"zone"` to identify particular VM instances.
# Different APIs can support different monitored resource types. APIs generally # Different services can support different monitored resource types.
# provide a `list` method that returns the monitored resource descriptors used # The following are specific rules to service defined monitored resources for
# by the API. # 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 class MonitoredResourceDescriptor
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2324,8 +2360,14 @@ module Google
attr_accessor :display_name attr_accessor :display_name
# Required. A set of labels used to describe instances of this monitored # Required. A set of labels used to describe instances of this monitored
# resource type. For example, an individual Google Cloud SQL database is # resource type.
# identified by values for the labels `"database_id"` and `"zone"`. # 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` # Corresponds to the JSON property `labels`
# @return [Array<Google::Apis::ServiceconsumermanagementV1::LabelDescriptor>] # @return [Array<Google::Apis::ServiceconsumermanagementV1::LabelDescriptor>]
attr_accessor :labels attr_accessor :labels
@ -2345,9 +2387,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Required. The monitored resource type. For example, the type # Note there are legacy service monitored resources not following this rule.
# `"cloudsql_database"` represents databases in Google Cloud SQL.
# The maximum length of this value is 256 characters.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/service-consumer-management/docs/overview # @see https://cloud.google.com/service-consumer-management/docs/overview
module ServiceconsumermanagementV1beta1 module ServiceconsumermanagementV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200606' REVISION = '20200609'
# 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

@ -1743,6 +1743,15 @@ module Google
# Defines a metric type and its schema. Once a metric descriptor is created, # 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 # deleting or altering it stops data collection and makes the metric type's
# existing data unusable. # 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 class MetricDescriptor
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1760,7 +1769,13 @@ module Google
attr_accessor :display_name attr_accessor :display_name
# The set of labels that can be used to describe a specific # 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 # `appengine.googleapis.com/http/server/response_latencies` metric
# type has a label for the HTTP response code, `response_code`, so # type has a label for the HTTP response code, `response_code`, so
# you can look at latencies for successful responses or just # you can look at latencies for successful responses or just
@ -1800,9 +1815,19 @@ module Google
attr_accessor :name attr_accessor :name
# The metric type, including its DNS name prefix. The type is not # The metric type, including its DNS name prefix. The type is not
# URL-encoded. All user-defined metric types have the DNS name # URL-encoded.
# `custom.googleapis.com` or `external.googleapis.com`. Metric types should # All service defined metrics must be prefixed with the service name, in the
# use a natural hierarchical grouping. For example: # 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" # "custom.googleapis.com/invoice/paid/amount"
# "external.googleapis.com/prometheus/up" # "external.googleapis.com/prometheus/up"
# "appengine.googleapis.com/http/server/response_latencies" # "appengine.googleapis.com/http/server/response_latencies"
@ -2081,9 +2106,20 @@ module Google
# descriptor for Google Compute Engine VM instances has a type of # descriptor for Google Compute Engine VM instances has a type of
# `"gce_instance"` and specifies the use of the labels `"instance_id"` and # `"gce_instance"` and specifies the use of the labels `"instance_id"` and
# `"zone"` to identify particular VM instances. # `"zone"` to identify particular VM instances.
# Different APIs can support different monitored resource types. APIs generally # Different services can support different monitored resource types.
# provide a `list` method that returns the monitored resource descriptors used # The following are specific rules to service defined monitored resources for
# by the API. # 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 class MonitoredResourceDescriptor
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2102,8 +2138,14 @@ module Google
attr_accessor :display_name attr_accessor :display_name
# Required. A set of labels used to describe instances of this monitored # Required. A set of labels used to describe instances of this monitored
# resource type. For example, an individual Google Cloud SQL database is # resource type.
# identified by values for the labels `"database_id"` and `"zone"`. # 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` # Corresponds to the JSON property `labels`
# @return [Array<Google::Apis::ServiceconsumermanagementV1beta1::LabelDescriptor>] # @return [Array<Google::Apis::ServiceconsumermanagementV1beta1::LabelDescriptor>]
attr_accessor :labels attr_accessor :labels
@ -2123,9 +2165,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Required. The monitored resource type. For example, the type # Note there are legacy service monitored resources not following this rule.
# `"cloudsql_database"` represents databases in Google Cloud SQL.
# The maximum length of this value is 256 characters.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
module ServicenetworkingV1 module ServicenetworkingV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200606' REVISION = '20200609'
# 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

@ -2316,6 +2316,15 @@ module Google
# Defines a metric type and its schema. Once a metric descriptor is created, # 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 # deleting or altering it stops data collection and makes the metric type's
# existing data unusable. # 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 class MetricDescriptor
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2333,7 +2342,13 @@ module Google
attr_accessor :display_name attr_accessor :display_name
# The set of labels that can be used to describe a specific # 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 # `appengine.googleapis.com/http/server/response_latencies` metric
# type has a label for the HTTP response code, `response_code`, so # type has a label for the HTTP response code, `response_code`, so
# you can look at latencies for successful responses or just # you can look at latencies for successful responses or just
@ -2373,9 +2388,19 @@ module Google
attr_accessor :name attr_accessor :name
# The metric type, including its DNS name prefix. The type is not # The metric type, including its DNS name prefix. The type is not
# URL-encoded. All user-defined metric types have the DNS name # URL-encoded.
# `custom.googleapis.com` or `external.googleapis.com`. Metric types should # All service defined metrics must be prefixed with the service name, in the
# use a natural hierarchical grouping. For example: # 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" # "custom.googleapis.com/invoice/paid/amount"
# "external.googleapis.com/prometheus/up" # "external.googleapis.com/prometheus/up"
# "appengine.googleapis.com/http/server/response_latencies" # "appengine.googleapis.com/http/server/response_latencies"
@ -2654,9 +2679,20 @@ module Google
# descriptor for Google Compute Engine VM instances has a type of # descriptor for Google Compute Engine VM instances has a type of
# `"gce_instance"` and specifies the use of the labels `"instance_id"` and # `"gce_instance"` and specifies the use of the labels `"instance_id"` and
# `"zone"` to identify particular VM instances. # `"zone"` to identify particular VM instances.
# Different APIs can support different monitored resource types. APIs generally # Different services can support different monitored resource types.
# provide a `list` method that returns the monitored resource descriptors used # The following are specific rules to service defined monitored resources for
# by the API. # 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 class MonitoredResourceDescriptor
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2675,8 +2711,14 @@ module Google
attr_accessor :display_name attr_accessor :display_name
# Required. A set of labels used to describe instances of this monitored # Required. A set of labels used to describe instances of this monitored
# resource type. For example, an individual Google Cloud SQL database is # resource type.
# identified by values for the labels `"database_id"` and `"zone"`. # 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` # Corresponds to the JSON property `labels`
# @return [Array<Google::Apis::ServicenetworkingV1::LabelDescriptor>] # @return [Array<Google::Apis::ServicenetworkingV1::LabelDescriptor>]
attr_accessor :labels attr_accessor :labels
@ -2696,9 +2738,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Required. The monitored resource type. For example, the type # Note there are legacy service monitored resources not following this rule.
# `"cloudsql_database"` represents databases in Google Cloud SQL.
# The maximum length of this value is 256 characters.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
module ServicenetworkingV1beta module ServicenetworkingV1beta
VERSION = 'V1beta' VERSION = 'V1beta'
REVISION = '20200606' REVISION = '20200609'
# 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

@ -2074,6 +2074,15 @@ module Google
# Defines a metric type and its schema. Once a metric descriptor is created, # 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 # deleting or altering it stops data collection and makes the metric type's
# existing data unusable. # 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 class MetricDescriptor
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2091,7 +2100,13 @@ module Google
attr_accessor :display_name attr_accessor :display_name
# The set of labels that can be used to describe a specific # 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 # `appengine.googleapis.com/http/server/response_latencies` metric
# type has a label for the HTTP response code, `response_code`, so # type has a label for the HTTP response code, `response_code`, so
# you can look at latencies for successful responses or just # you can look at latencies for successful responses or just
@ -2131,9 +2146,19 @@ module Google
attr_accessor :name attr_accessor :name
# The metric type, including its DNS name prefix. The type is not # The metric type, including its DNS name prefix. The type is not
# URL-encoded. All user-defined metric types have the DNS name # URL-encoded.
# `custom.googleapis.com` or `external.googleapis.com`. Metric types should # All service defined metrics must be prefixed with the service name, in the
# use a natural hierarchical grouping. For example: # 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" # "custom.googleapis.com/invoice/paid/amount"
# "external.googleapis.com/prometheus/up" # "external.googleapis.com/prometheus/up"
# "appengine.googleapis.com/http/server/response_latencies" # "appengine.googleapis.com/http/server/response_latencies"
@ -2412,9 +2437,20 @@ module Google
# descriptor for Google Compute Engine VM instances has a type of # descriptor for Google Compute Engine VM instances has a type of
# `"gce_instance"` and specifies the use of the labels `"instance_id"` and # `"gce_instance"` and specifies the use of the labels `"instance_id"` and
# `"zone"` to identify particular VM instances. # `"zone"` to identify particular VM instances.
# Different APIs can support different monitored resource types. APIs generally # Different services can support different monitored resource types.
# provide a `list` method that returns the monitored resource descriptors used # The following are specific rules to service defined monitored resources for
# by the API. # 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 class MonitoredResourceDescriptor
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2433,8 +2469,14 @@ module Google
attr_accessor :display_name attr_accessor :display_name
# Required. A set of labels used to describe instances of this monitored # Required. A set of labels used to describe instances of this monitored
# resource type. For example, an individual Google Cloud SQL database is # resource type.
# identified by values for the labels `"database_id"` and `"zone"`. # 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` # Corresponds to the JSON property `labels`
# @return [Array<Google::Apis::ServicenetworkingV1beta::LabelDescriptor>] # @return [Array<Google::Apis::ServicenetworkingV1beta::LabelDescriptor>]
attr_accessor :labels attr_accessor :labels
@ -2454,9 +2496,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Required. The monitored resource type. For example, the type # Note there are legacy service monitored resources not following this rule.
# `"cloudsql_database"` represents databases in Google Cloud SQL.
# The maximum length of this value is 256 characters.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-usage/ # @see https://cloud.google.com/service-usage/
module ServiceusageV1 module ServiceusageV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200606' REVISION = '20200609'
# 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

@ -2952,6 +2952,15 @@ module Google
# Defines a metric type and its schema. Once a metric descriptor is created, # 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 # deleting or altering it stops data collection and makes the metric type's
# existing data unusable. # 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 class MetricDescriptor
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2969,7 +2978,13 @@ module Google
attr_accessor :display_name attr_accessor :display_name
# The set of labels that can be used to describe a specific # 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 # `appengine.googleapis.com/http/server/response_latencies` metric
# type has a label for the HTTP response code, `response_code`, so # type has a label for the HTTP response code, `response_code`, so
# you can look at latencies for successful responses or just # you can look at latencies for successful responses or just
@ -3009,9 +3024,19 @@ module Google
attr_accessor :name attr_accessor :name
# The metric type, including its DNS name prefix. The type is not # The metric type, including its DNS name prefix. The type is not
# URL-encoded. All user-defined metric types have the DNS name # URL-encoded.
# `custom.googleapis.com` or `external.googleapis.com`. Metric types should # All service defined metrics must be prefixed with the service name, in the
# use a natural hierarchical grouping. For example: # 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" # "custom.googleapis.com/invoice/paid/amount"
# "external.googleapis.com/prometheus/up" # "external.googleapis.com/prometheus/up"
# "appengine.googleapis.com/http/server/response_latencies" # "appengine.googleapis.com/http/server/response_latencies"
@ -3290,9 +3315,20 @@ module Google
# descriptor for Google Compute Engine VM instances has a type of # descriptor for Google Compute Engine VM instances has a type of
# `"gce_instance"` and specifies the use of the labels `"instance_id"` and # `"gce_instance"` and specifies the use of the labels `"instance_id"` and
# `"zone"` to identify particular VM instances. # `"zone"` to identify particular VM instances.
# Different APIs can support different monitored resource types. APIs generally # Different services can support different monitored resource types.
# provide a `list` method that returns the monitored resource descriptors used # The following are specific rules to service defined monitored resources for
# by the API. # 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 class MonitoredResourceDescriptor
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -3311,8 +3347,14 @@ module Google
attr_accessor :display_name attr_accessor :display_name
# Required. A set of labels used to describe instances of this monitored # Required. A set of labels used to describe instances of this monitored
# resource type. For example, an individual Google Cloud SQL database is # resource type.
# identified by values for the labels `"database_id"` and `"zone"`. # 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` # Corresponds to the JSON property `labels`
# @return [Array<Google::Apis::ServiceusageV1::LabelDescriptor>] # @return [Array<Google::Apis::ServiceusageV1::LabelDescriptor>]
attr_accessor :labels attr_accessor :labels
@ -3332,9 +3374,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Required. The monitored resource type. For example, the type # Note there are legacy service monitored resources not following this rule.
# `"cloudsql_database"` represents databases in Google Cloud SQL.
# The maximum length of this value is 256 characters.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-usage/ # @see https://cloud.google.com/service-usage/
module ServiceusageV1beta1 module ServiceusageV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200606' REVISION = '20200609'
# 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

@ -3105,6 +3105,15 @@ module Google
# Defines a metric type and its schema. Once a metric descriptor is created, # 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 # deleting or altering it stops data collection and makes the metric type's
# existing data unusable. # 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 class MetricDescriptor
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -3122,7 +3131,13 @@ module Google
attr_accessor :display_name attr_accessor :display_name
# The set of labels that can be used to describe a specific # 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 # `appengine.googleapis.com/http/server/response_latencies` metric
# type has a label for the HTTP response code, `response_code`, so # type has a label for the HTTP response code, `response_code`, so
# you can look at latencies for successful responses or just # you can look at latencies for successful responses or just
@ -3162,9 +3177,19 @@ module Google
attr_accessor :name attr_accessor :name
# The metric type, including its DNS name prefix. The type is not # The metric type, including its DNS name prefix. The type is not
# URL-encoded. All user-defined metric types have the DNS name # URL-encoded.
# `custom.googleapis.com` or `external.googleapis.com`. Metric types should # All service defined metrics must be prefixed with the service name, in the
# use a natural hierarchical grouping. For example: # 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" # "custom.googleapis.com/invoice/paid/amount"
# "external.googleapis.com/prometheus/up" # "external.googleapis.com/prometheus/up"
# "appengine.googleapis.com/http/server/response_latencies" # "appengine.googleapis.com/http/server/response_latencies"
@ -3443,9 +3468,20 @@ module Google
# descriptor for Google Compute Engine VM instances has a type of # descriptor for Google Compute Engine VM instances has a type of
# `"gce_instance"` and specifies the use of the labels `"instance_id"` and # `"gce_instance"` and specifies the use of the labels `"instance_id"` and
# `"zone"` to identify particular VM instances. # `"zone"` to identify particular VM instances.
# Different APIs can support different monitored resource types. APIs generally # Different services can support different monitored resource types.
# provide a `list` method that returns the monitored resource descriptors used # The following are specific rules to service defined monitored resources for
# by the API. # 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 class MonitoredResourceDescriptor
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -3464,8 +3500,14 @@ module Google
attr_accessor :display_name attr_accessor :display_name
# Required. A set of labels used to describe instances of this monitored # Required. A set of labels used to describe instances of this monitored
# resource type. For example, an individual Google Cloud SQL database is # resource type.
# identified by values for the labels `"database_id"` and `"zone"`. # 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` # Corresponds to the JSON property `labels`
# @return [Array<Google::Apis::ServiceusageV1beta1::LabelDescriptor>] # @return [Array<Google::Apis::ServiceusageV1beta1::LabelDescriptor>]
attr_accessor :labels attr_accessor :labels
@ -3485,9 +3527,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Required. The monitored resource type. For example, the type # Note there are legacy service monitored resources not following this rule.
# `"cloudsql_database"` represents databases in Google Cloud SQL.
# The maximum length of this value is 256 characters.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type

View File

@ -251,6 +251,40 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end 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. # Returns the service configuration and enabled state for a given service.
# @param [String] name # @param [String] name
# Name of the consumer and service to get the `ConsumerState` for. # Name of the consumer and service to get the `ConsumerState` for.