Autogenerated update (2020-05-20)

Update:
- billingbudgets_v1beta1
- cloudasset_v1
- cloudasset_v1beta1
- cloudasset_v1p1beta1
- cloudasset_v1p4beta1
- cloudidentity_v1beta1
- displayvideo_v1
- games_configuration_v1configuration
- games_management_v1management
- remotebuildexecution_v1
- remotebuildexecution_v1alpha
- remotebuildexecution_v2
- serviceconsumermanagement_v1
- serviceconsumermanagement_v1beta1
- servicenetworking_v1
- servicenetworking_v1beta
- serviceusage_v1
- serviceusage_v1beta1
This commit is contained in:
Google APIs 2020-05-20 00:37:45 +00:00
parent dce3908621
commit 0bbabaf3a1
50 changed files with 815 additions and 272 deletions

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/billing/docs/how-to/budget-api-overview # @see https://cloud.google.com/billing/docs/how-to/budget-api-overview
module BillingbudgetsV1beta1 module BillingbudgetsV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200315' REVISION = '20200516'
# 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

@ -190,6 +190,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :credit_types_treatment attr_accessor :credit_types_treatment
# Optional. A single label and value pair specifying that usage from only this
# set of
# labeled resources should be included in the budget. Multiple entries or
# multiple values per entry are not allowed. If omitted, the report will
# include all labeled and unlabeled usage.
# Corresponds to the JSON property `labels`
# @return [Hash<String,Array<Object>>]
attr_accessor :labels
# Optional. A set of projects of the form `projects/`project``, # Optional. A set of projects of the form `projects/`project``,
# specifying that usage from only this set of projects should be # specifying that usage from only this set of projects should be
# included in the budget. If omitted, the report will include all usage for # included in the budget. If omitted, the report will include all usage for
@ -209,6 +218,16 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :services attr_accessor :services
# Optional. A set of subaccounts of the form `billingAccounts/`account_id``,
# specifying
# that usage from only this set of subaccounts should be included in the
# budget. If a subaccount is set to the name of the master account, usage
# from the master account will be included. If omitted, the report will
# include usage from the master account and all subaccounts, if they exist.
# Corresponds to the JSON property `subaccounts`
# @return [Array<String>]
attr_accessor :subaccounts
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -216,8 +235,10 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@credit_types_treatment = args[:credit_types_treatment] if args.key?(:credit_types_treatment) @credit_types_treatment = args[:credit_types_treatment] if args.key?(:credit_types_treatment)
@labels = args[:labels] if args.key?(:labels)
@projects = args[:projects] if args.key?(:projects) @projects = args[:projects] if args.key?(:projects)
@services = args[:services] if args.key?(:services) @services = args[:services] if args.key?(:services)
@subaccounts = args[:subaccounts] if args.key?(:subaccounts)
end end
end end

View File

@ -135,8 +135,14 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :credit_types_treatment, as: 'creditTypesTreatment' property :credit_types_treatment, as: 'creditTypesTreatment'
hash :labels, as: 'labels', :class => Array do
include Representable::JSON::Collection
items
end
collection :projects, as: 'projects' collection :projects, as: 'projects'
collection :services, as: 'services' collection :services, as: 'services'
collection :subaccounts, as: 'subaccounts'
end end
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/asset-inventory/docs/quickstart # @see https://cloud.google.com/asset-inventory/docs/quickstart
module CloudassetV1 module CloudassetV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200403' REVISION = '20200515'
# 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

@ -54,12 +54,12 @@ module Google
# with the closest ancestor in the hierarchy and ends at root. If the asset # with the closest ancestor in the hierarchy and ends at root. If the asset
# is a project, folder, or organization, the ancestry path starts from the # is a project, folder, or organization, the ancestry path starts from the
# asset itself. # asset itself.
# For example: `["projects/123456789", "folders/5432", "organizations/1234"]` # Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
# Corresponds to the JSON property `ancestors` # Corresponds to the JSON property `ancestors`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :ancestors attr_accessor :ancestors
# The type of the asset. For example: "compute.googleapis.com/Disk" # The type of the asset. Example: "compute.googleapis.com/Disk"
# See [Supported asset # See [Supported asset
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) # types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
# for more information. # for more information.
@ -74,10 +74,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": [
@ -92,7 +95,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",
@ -127,7 +132,7 @@ module Google
# @return [Google::Apis::CloudassetV1::Policy] # @return [Google::Apis::CloudassetV1::Policy]
attr_accessor :iam_policy attr_accessor :iam_policy
# The full name of the asset. For example: # The full name of the asset. Example:
# "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/ # "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
# instance1" # instance1"
# See [Resource # See [Resource
@ -490,11 +495,36 @@ module Google
end end
end end
# Explanation about the IAM policy search result.
class Explanation
include Google::Apis::Core::Hashable
# The map from roles to their included permissions that match the
# permission query (i.e., a query containing `policy.role.permissions:`).
# Example: if query `policy.role.permissions : "compute.disk.get"`
# matches a policy binding that contains owner role, the
# matched_permissions will be `"roles/owner": ["compute.disk.get"]`. The
# roles can also be found in the returned `policy` bindings. Note that the
# map is populated only for requests with permission queries.
# Corresponds to the JSON property `matchedPermissions`
# @return [Hash<String,Google::Apis::CloudassetV1::Permissions>]
attr_accessor :matched_permissions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@matched_permissions = args[:matched_permissions] if args.key?(:matched_permissions)
end
end
# Export asset request. # Export asset request.
class ExportAssetsRequest class ExportAssetsRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A list of asset types of which to take a snapshot for. For example: # A list of asset types of which to take a snapshot for. Example:
# "compute.googleapis.com/Disk". If specified, only matching assets will be # "compute.googleapis.com/Disk". If specified, only matching assets will be
# returned. See [Introduction to Cloud Asset # returned. See [Introduction to Cloud Asset
# Inventory](https://cloud.google.com/asset-inventory/docs/overview) # Inventory](https://cloud.google.com/asset-inventory/docs/overview)
@ -609,8 +639,8 @@ module Google
# A list of the full names of the assets to receive updates. You must specify # A list of the full names of the assets to receive updates. You must specify
# either or both of asset_names and asset_types. Only asset updates matching # either or both of asset_names and asset_types. Only asset updates matching
# specified asset_names and asset_types are exported to the feed. For # specified asset_names or asset_types are exported to the feed.
# example: # Example:
# `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/ # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
# instance1`. # instance1`.
# See [Resource # See [Resource
@ -622,8 +652,8 @@ module Google
# A list of types of the assets to receive updates. You must specify either # A list of types of the assets to receive updates. You must specify either
# or both of asset_names and asset_types. Only asset updates matching # or both of asset_names and asset_types. Only asset updates matching
# specified asset_names and asset_types are exported to the feed. # specified asset_names or asset_types are exported to the feed.
# For example: `"compute.googleapis.com/Disk"` # Example: `"compute.googleapis.com/Disk"`
# See [this # See [this
# topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types) # topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
# for a list of all supported asset types. # for a list of all supported asset types.
@ -690,7 +720,7 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The uri of the Cloud Storage object. It's the same uri that is used by # The uri of the Cloud Storage object. It's the same uri that is used by
# gsutil. For example: "gs://bucket_name/object_name". See [Viewing and # gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
# Editing Object # Editing Object
# Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata) # Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
# for more information. # for more information.
@ -698,10 +728,10 @@ module Google
# @return [String] # @return [String]
attr_accessor :uri attr_accessor :uri
# The uri prefix of all generated Cloud Storage objects. For example: # The uri prefix of all generated Cloud Storage objects. Example:
# "gs://bucket_name/object_name_prefix". Each object uri is in format: # "gs://bucket_name/object_name_prefix". Each object uri is in format:
# "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only # "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only
# contains assets for that type. <shard number> starts from 0. For example: # contains assets for that type. <shard number> starts from 0. Example:
# "gs://bucket_name/object_name_prefix/compute.googleapis.com/Disk/0" is # "gs://bucket_name/object_name_prefix/compute.googleapis.com/Disk/0" is
# the first shard of output objects containing all # the first shard of output objects containing all
# compute.googleapis.com/Disk assets. An INVALID_ARGUMENT error will be # compute.googleapis.com/Disk assets. An INVALID_ARGUMENT error will be
@ -1570,6 +1600,117 @@ module Google
end end
end end
# A result of IAM Policy search, containing information of an IAM policy.
class IamPolicySearchResult
include Google::Apis::Core::Hashable
# Explanation about the IAM policy search result.
# Corresponds to the JSON property `explanation`
# @return [Google::Apis::CloudassetV1::Explanation]
attr_accessor :explanation
# An Identity and Access Management (IAM) policy, which specifies access
# controls for Google Cloud resources.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
# `members` to a single `role`. Members can be user accounts, service accounts,
# Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created
# custom role.
# For some types of Google Cloud resources, a `binding` can also specify a
# `condition`, which is a logical expression that allows access to a resource
# only if the expression evaluates to `true`. A condition can add constraints
# based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# **JSON example:**
# `
# "bindings": [
# `
# "role": "roles/resourcemanager.organizationAdmin",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-project-id@appspot.gserviceaccount.com"
# ]
# `,
# `
# "role": "roles/resourcemanager.organizationViewer",
# "members": [
# "user:eve@example.com"
# ],
# "condition": `
# "title": "expirable access",
# "description": "Does not grant access after Sep 2020",
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
# ",
# `
# `
# ],
# "etag": "BwWWja0YfJA=",
# "version": 3
# `
# **YAML example:**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
# role: roles/resourcemanager.organizationAdmin
# - members:
# - user:eve@example.com
# role: roles/resourcemanager.organizationViewer
# condition:
# title: expirable access
# description: Does not grant access after Sep 2020
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
# - etag: BwWWja0YfJA=
# - version: 3
# For a description of IAM and its features, see the
# [IAM documentation](https://cloud.google.com/iam/docs/).
# Corresponds to the JSON property `policy`
# @return [Google::Apis::CloudassetV1::Policy]
attr_accessor :policy
# The project that the associated GCP resource belongs to, in the form of
# projects/`PROJECT_NUMBER`. If an IAM policy is set on a resource (like VM
# instance, Cloud Storage bucket), the project field will indicate the
# project that contains the resource. If an IAM policy is set on a folder or
# orgnization, the project field will be empty.
# To search against the `project`:
# * specify the `scope` field as this project in your search request.
# Corresponds to the JSON property `project`
# @return [String]
attr_accessor :project
# The full resource name of the resource associated with this IAM policy.
# Example:
# "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
# instance1".
# See [Cloud Asset Inventory Resource Name
# Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
# for more information.
# To search against the `resource`:
# * use a field query. Example: `resource : "organizations/123"`
# Corresponds to the JSON property `resource`
# @return [String]
attr_accessor :resource
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@explanation = args[:explanation] if args.key?(:explanation)
@policy = args[:policy] if args.key?(:policy)
@project = args[:project] if args.key?(:project)
@resource = args[:resource] if args.key?(:resource)
end
end
# #
class ListFeedsResponse class ListFeedsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1678,6 +1819,25 @@ module Google
end end
end end
# IAM permissions
class Permissions
include Google::Apis::Core::Hashable
# A list of permissions. A sample permission string: "compute.disk.get".
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@permissions = args[:permissions] if args.key?(:permissions)
end
end
# An Identity and Access Management (IAM) policy, which specifies access # An Identity and Access Management (IAM) policy, which specifies access
# controls for Google Cloud resources. # controls for Google Cloud resources.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more # A `Policy` is a collection of `bindings`. A `binding` binds one or more
@ -1685,10 +1845,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": [
@ -1703,7 +1866,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",
@ -1781,6 +1946,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
@ -1803,7 +1971,7 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The name of the Pub/Sub topic to publish to. # The name of the Pub/Sub topic to publish to.
# For example: `projects/PROJECT_ID/topics/TOPIC_ID`. # Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
# Corresponds to the JSON property `topic` # Corresponds to the JSON property `topic`
# @return [String] # @return [String]
attr_accessor :topic attr_accessor :topic
@ -1829,7 +1997,7 @@ module Google
attr_accessor :data attr_accessor :data
# The URL of the discovery document containing the resource's JSON schema. # The URL of the discovery document containing the resource's JSON schema.
# For example: # Example:
# "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest" # "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"
# This value is unspecified for resources that do not have an API based on a # This value is unspecified for resources that do not have an API based on a
# discovery document, such as Cloud Bigtable. # discovery document, such as Cloud Bigtable.
@ -1837,7 +2005,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :discovery_document_uri attr_accessor :discovery_document_uri
# The JSON schema name listed in the discovery document. For example: # The JSON schema name listed in the discovery document. Example:
# "Project" # "Project"
# This value is unspecified for resources that do not have an API based on a # This value is unspecified for resources that do not have an API based on a
# discovery document, such as Cloud Bigtable. # discovery document, such as Cloud Bigtable.
@ -1845,6 +2013,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :discovery_name attr_accessor :discovery_name
# The location of the resource in Google Cloud, such as its zone and region.
# For more information, see https://cloud.google.com/about/locations/.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# The full name of the immediate parent of this resource. See # The full name of the immediate parent of this resource. See
# [Resource # [Resource
# Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
@ -1852,7 +2026,7 @@ module Google
# For Google Cloud assets, this value is the parent resource defined in the # For Google Cloud assets, this value is the parent resource defined in the
# [Cloud IAM policy # [Cloud IAM policy
# hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). # hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
# For example: # Example:
# "//cloudresourcemanager.googleapis.com/projects/my_project_123" # "//cloudresourcemanager.googleapis.com/projects/my_project_123"
# For third-party assets, this field may be set differently. # For third-party assets, this field may be set differently.
# Corresponds to the JSON property `parent` # Corresponds to the JSON property `parent`
@ -1860,14 +2034,14 @@ module Google
attr_accessor :parent attr_accessor :parent
# The REST URL for accessing the resource. An HTTP `GET` request using this # The REST URL for accessing the resource. An HTTP `GET` request using this
# URL returns the resource itself. For example: # URL returns the resource itself. Example:
# "https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123" # "https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123"
# This value is unspecified for resources without a REST API. # This value is unspecified for resources without a REST API.
# Corresponds to the JSON property `resourceUrl` # Corresponds to the JSON property `resourceUrl`
# @return [String] # @return [String]
attr_accessor :resource_url attr_accessor :resource_url
# The API version. For example: "v1" # The API version. Example: "v1"
# Corresponds to the JSON property `version` # Corresponds to the JSON property `version`
# @return [String] # @return [String]
attr_accessor :version attr_accessor :version
@ -1881,12 +2055,182 @@ module Google
@data = args[:data] if args.key?(:data) @data = args[:data] if args.key?(:data)
@discovery_document_uri = args[:discovery_document_uri] if args.key?(:discovery_document_uri) @discovery_document_uri = args[:discovery_document_uri] if args.key?(:discovery_document_uri)
@discovery_name = args[:discovery_name] if args.key?(:discovery_name) @discovery_name = args[:discovery_name] if args.key?(:discovery_name)
@location = args[:location] if args.key?(:location)
@parent = args[:parent] if args.key?(:parent) @parent = args[:parent] if args.key?(:parent)
@resource_url = args[:resource_url] if args.key?(:resource_url) @resource_url = args[:resource_url] if args.key?(:resource_url)
@version = args[:version] if args.key?(:version) @version = args[:version] if args.key?(:version)
end end
end end
# A result of Resource Search, containing information of a cloud resoure.
class ResourceSearchResult
include Google::Apis::Core::Hashable
# The additional attributes of this resource. The attributes may vary from
# one resource type to another. Examples: "projectId" for Project,
# "dnsName" for DNS ManagedZone.
# To search against the `additional_attributes`:
# * use a free text query to match the attributes values. Example: to search
# additional_attributes = ` dnsName: "foobar" `, you can issue a query
# `"foobar"`.
# Corresponds to the JSON property `additionalAttributes`
# @return [Hash<String,Object>]
attr_accessor :additional_attributes
# The type of this resource. Example: "compute.googleapis.com/Disk".
# To search against the `asset_type`:
# * specify the `asset_type` field in your search request.
# Corresponds to the JSON property `assetType`
# @return [String]
attr_accessor :asset_type
# One or more paragraphs of text description of this resource. Maximum length
# could be up to 1M bytes.
# To search against the `description`:
# * use a field query. Example: `description : "*important instance*"`
# * use a free text query. Example: `"*important instance*"`
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# The display name of this resource.
# To search against the `display_name`:
# * use a field query. Example: `displayName : "My Instance"`
# * use a free text query. Example: `"My Instance"`
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Labels associated with this resource. See [Labelling and grouping GCP
# resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-
# your-google-cloud-platform-resources)
# for more information.
# To search against the `labels`:
# * use a field query, as following:
# - query on any label's key or value. Example: `labels : "prod"`
# - query by a given label. Example: `labels.env : "prod"`
# - query by a given label'sexistence. Example: `labels.env : *`
# * use a free text query. Example: `"prod"`
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Location can be "global", regional like "us-east1", or zonal like
# "us-west1-b".
# To search against the `location`:
# * use a field query. Example: `location : "us-west*"`
# * use a free text query. Example: `"us-west*"`
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# The full resource name of this resource. Example:
# "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
# instance1".
# See [Cloud Asset Inventory Resource Name
# Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
# for more information.
# To search against the `name`:
# * use a field query. Example: `name : "instance1"`
# * use a free text query. Example: `"instance1"`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Network tags associated with this resource. Like labels, network tags are a
# type of annotations used to group GCP resources. See [Labelling GCP
# resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-
# your-google-cloud-platform-resources)
# for more information.
# To search against the `network_tags`:
# * use a field query. Example: `networkTags : "internal"`
# * use a free text query. Example: `"internal"`
# Corresponds to the JSON property `networkTags`
# @return [Array<String>]
attr_accessor :network_tags
# The project that this resource belongs to, in the form of
# projects/`PROJECT_NUMBER`.
# To search against the `project`:
# * specify the `scope` field as this project in your search request.
# Corresponds to the JSON property `project`
# @return [String]
attr_accessor :project
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@additional_attributes = args[:additional_attributes] if args.key?(:additional_attributes)
@asset_type = args[:asset_type] if args.key?(:asset_type)
@description = args[:description] if args.key?(:description)
@display_name = args[:display_name] if args.key?(:display_name)
@labels = args[:labels] if args.key?(:labels)
@location = args[:location] if args.key?(:location)
@name = args[:name] if args.key?(:name)
@network_tags = args[:network_tags] if args.key?(:network_tags)
@project = args[:project] if args.key?(:project)
end
end
# Search all IAM policies response.
class SearchAllIamPoliciesResponse
include Google::Apis::Core::Hashable
# Set if there are more results than those appearing in this response; to get
# the next set of results, call this method again, using this value as the
# `page_token`.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# A list of IamPolicy that match the search query. Related information such
# as the associated resource is returned along with the policy.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::CloudassetV1::IamPolicySearchResult>]
attr_accessor :results
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)
@results = args[:results] if args.key?(:results)
end
end
# Search all resources response.
class SearchAllResourcesResponse
include Google::Apis::Core::Hashable
# If there are more results than those appearing in this response, then
# `next_page_token` is included. To get the next set of results, call this
# method again using the value of `next_page_token` as `page_token`.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# A list of Resources that match the search query. It contains the resource
# standard metadata information.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::CloudassetV1::ResourceSearchResult>]
attr_accessor :results
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)
@results = args[:results] if args.key?(:results)
end
end
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is # different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # used by [gRPC](https://github.com/grpc). Each `Status` message contains

View File

@ -70,6 +70,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Explanation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExportAssetsRequest class ExportAssetsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -184,6 +190,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class IamPolicySearchResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListFeedsResponse class ListFeedsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -202,6 +214,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Permissions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -220,6 +238,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ResourceSearchResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SearchAllIamPoliciesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SearchAllResourcesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status class Status
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -324,6 +360,14 @@ module Google
end end
end end
class Explanation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :matched_permissions, as: 'matchedPermissions', class: Google::Apis::CloudassetV1::Permissions, decorator: Google::Apis::CloudassetV1::Permissions::Representation
end
end
class ExportAssetsRequest class ExportAssetsRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -522,6 +566,18 @@ module Google
end end
end end
class IamPolicySearchResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :explanation, as: 'explanation', class: Google::Apis::CloudassetV1::Explanation, decorator: Google::Apis::CloudassetV1::Explanation::Representation
property :policy, as: 'policy', class: Google::Apis::CloudassetV1::Policy, decorator: Google::Apis::CloudassetV1::Policy::Representation
property :project, as: 'project'
property :resource, as: 'resource'
end
end
class ListFeedsResponse class ListFeedsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -552,6 +608,13 @@ module Google
end end
end end
class Permissions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class Policy class Policy
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -577,12 +640,46 @@ module Google
hash :data, as: 'data' hash :data, as: 'data'
property :discovery_document_uri, as: 'discoveryDocumentUri' property :discovery_document_uri, as: 'discoveryDocumentUri'
property :discovery_name, as: 'discoveryName' property :discovery_name, as: 'discoveryName'
property :location, as: 'location'
property :parent, as: 'parent' property :parent, as: 'parent'
property :resource_url, as: 'resourceUrl' property :resource_url, as: 'resourceUrl'
property :version, as: 'version' property :version, as: 'version'
end end
end end
class ResourceSearchResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :additional_attributes, as: 'additionalAttributes'
property :asset_type, as: 'assetType'
property :description, as: 'description'
property :display_name, as: 'displayName'
hash :labels, as: 'labels'
property :location, as: 'location'
property :name, as: 'name'
collection :network_tags, as: 'networkTags'
property :project, as: 'project'
end
end
class SearchAllIamPoliciesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :results, as: 'results', class: Google::Apis::CloudassetV1::IamPolicySearchResult, decorator: Google::Apis::CloudassetV1::IamPolicySearchResult::Representation
end
end
class SearchAllResourcesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :results, as: 'results', class: Google::Apis::CloudassetV1::ResourceSearchResult, decorator: Google::Apis::CloudassetV1::ResourceSearchResult::Representation
end
end
class Status class Status
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -265,14 +265,11 @@ module Google
# organization number (such as "organizations/123"), a project ID (such as # organization number (such as "organizations/123"), a project ID (such as
# "projects/my-project-id")", or a project number (such as "projects/12345"). # "projects/my-project-id")", or a project number (such as "projects/12345").
# @param [Array<String>, String] asset_names # @param [Array<String>, String] asset_names
# A list of the full names of the assets. For example: # A list of the full names of the assets.
# See: https://cloud.google.com/asset-inventory/docs/resource-name-format
# Example:
# `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/ # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
# instance1`. # instance1`.
# See [Resource
# Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
# and [Resource Name
# Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
# for more info.
# The request becomes a no-op if the asset name list is empty, and the max # The request becomes a no-op if the asset name list is empty, and the max
# size of the asset name list is 100 in one request. # size of the asset name list is 100 in one request.
# @param [String] content_type # @param [String] content_type
@ -314,9 +311,13 @@ module Google
end end
# Exports assets with time and resource types to a given Cloud Storage # Exports assets with time and resource types to a given Cloud Storage
# location. The output format is newline-delimited JSON. # location. The output format is newline-delimited JSON. Each line represents
# a google.cloud.asset.v1.Asset in the JSON format.
# This API implements the google.longrunning.Operation API allowing you # This API implements the google.longrunning.Operation API allowing you
# to keep track of the export. # to keep track of the export. We recommend intervals of at least 2 seconds
# with exponential retry to poll the export operation result. For
# regular-size resource parent, the export operation usually finishes within
# 5 minutes.
# @param [String] parent # @param [String] parent
# Required. The relative name of the root asset. This can only be an # Required. The relative name of the root asset. This can only be an
# organization number (such as "organizations/123"), a project ID (such as # organization number (such as "organizations/123"), a project ID (such as
@ -352,6 +353,183 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Searches all the IAM policies within the given accessible scope (e.g., a
# project, a folder or an organization). Callers should have
# cloud.assets.SearchAllIamPolicies permission upon the requested scope,
# otherwise the request will be rejected.
# @param [String] scope
# Required. A scope can be a project, a folder or an organization. The search is
# limited to the IAM policies within the `scope`.
# The allowed values are:
# * projects/`PROJECT_ID`
# * projects/`PROJECT_NUMBER`
# * folders/`FOLDER_NUMBER`
# * organizations/`ORGANIZATION_NUMBER`
# @param [Fixnum] page_size
# Optional. The page size for search result pagination. Page size is capped at
# 500 even
# if a larger value is given. If set to zero, server will pick an appropriate
# default. Returned results may be fewer than requested. When this happens,
# there could be more results as long as `next_page_token` is returned.
# @param [String] page_token
# Optional. If present, retrieve the next batch of results from the preceding
# call to
# this method. `page_token` must be the value of `next_page_token` from the
# previous response. The values of all other method parameters must be
# identical to those in the previous call.
# @param [String] query
# Optional. The query statement. An empty query can be specified to search all
# the IAM
# policies within the given `scope`.
# Examples:
# * `policy : "amy@gmail.com"` to find Cloud IAM policy bindings that
# specify user "amy@gmail.com".
# * `policy : "roles/compute.admin"` to find Cloud IAM policy bindings that
# specify the Compute Admin role.
# * `policy.role.permissions : "storage.buckets.update"` to find Cloud IAM
# policy bindings that specify a role containing "storage.buckets.update"
# permission.
# * `resource : "organizations/123"` to find Cloud IAM policy bindings that
# are set on "organizations/123".
# * `(resource : ("organizations/123" OR "folders/1234") AND policy : "amy")`
# to find Cloud IAM policy bindings that are set on "organizations/123" or
# "folders/1234", and also specify user "amy".
# See [how to construct a
# query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#
# how_to_construct_a_query)
# for more details.
# @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::CloudassetV1::SearchAllIamPoliciesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudassetV1::SearchAllIamPoliciesResponse]
#
# @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_all_iam_policies(scope, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+scope}:searchAllIamPolicies', options)
command.response_representation = Google::Apis::CloudassetV1::SearchAllIamPoliciesResponse::Representation
command.response_class = Google::Apis::CloudassetV1::SearchAllIamPoliciesResponse
command.params['scope'] = scope unless scope.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['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Searches all the resources within the given accessible scope (e.g., a
# project, a folder or an organization). Callers should have
# cloud.assets.SearchAllResources permission upon the requested scope,
# otherwise the request will be rejected.
# @param [String] scope
# Required. A scope can be a project, a folder or an organization. The search is
# limited to the resources within the `scope`.
# The allowed values are:
# * projects/`PROJECT_ID`
# * projects/`PROJECT_NUMBER`
# * folders/`FOLDER_NUMBER`
# * organizations/`ORGANIZATION_NUMBER`
# @param [Array<String>, String] asset_types
# Optional. A list of asset types that this request searches for. If empty, it
# will
# search all the [searchable asset
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#
# searchable_asset_types).
# @param [String] order_by
# Optional. A comma separated list of fields specifying the sorting order of the
# results. The default order is ascending. Add " DESC" after the field name
# to indicate descending order. Redundant space characters are ignored.
# Example: "location DESC, name". See [supported resource metadata
# fields](https://cloud.google.com/asset-inventory/docs/searching-resources#
# query_on_resource_metadata_fields)
# for more details.
# @param [Fixnum] page_size
# Optional. The page size for search result pagination. Page size is capped at
# 500 even
# if a larger value is given. If set to zero, server will pick an appropriate
# default. Returned results may be fewer than requested. When this happens,
# there could be more results as long as `next_page_token` is returned.
# @param [String] page_token
# Optional. If present, then retrieve the next batch of results from the
# preceding call
# to this method. `page_token` must be the value of `next_page_token` from
# the previous response. The values of all other method parameters, must be
# identical to those in the previous call.
# @param [String] query
# Optional. The query statement. An empty query can be specified to search all
# the
# resources of certain `asset_types` within the given `scope`.
# Examples:
# * `name : "Important"` to find Cloud resources whose name contains
# "Important" as a word.
# * `displayName : "Impor*"` to find Cloud resources whose display name
# contains "Impor" as a word prefix.
# * `description : "*por*"` to find Cloud resources whose description
# contains "por" as a substring.
# * `location : "us-west*"` to find Cloud resources whose location is
# prefixed with "us-west".
# * `labels : "prod"` to find Cloud resources whose labels contain "prod" as
# a key or value.
# * `labels.env : "prod"` to find Cloud resources which have a label "env"
# and its value is "prod".
# * `labels.env : *` to find Cloud resources which have a label "env".
# * `"Important"` to find Cloud resources which contain "Important" as a word
# in any of the searchable fields.
# * `"Impor*"` to find Cloud resources which contain "Impor" as a word prefix
# in any of the searchable fields.
# * `"*por*"` to find Cloud resources which contain "por" as a substring in
# any of the searchable fields.
# * `("Important" AND location : ("us-west1" OR "global"))` to find Cloud
# resources which contain "Important" as a word in any of the searchable
# fields and are also located in the "us-west1" region or the "global"
# location.
# See [how to construct a
# query](https://cloud.google.com/asset-inventory/docs/searching-resources#
# how_to_construct_a_query)
# for more details.
# @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::CloudassetV1::SearchAllResourcesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudassetV1::SearchAllResourcesResponse]
#
# @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_all_resources(scope, asset_types: nil, order_by: nil, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+scope}:searchAllResources', options)
command.response_representation = Google::Apis::CloudassetV1::SearchAllResourcesResponse::Representation
command.response_class = Google::Apis::CloudassetV1::SearchAllResourcesResponse
command.params['scope'] = scope unless scope.nil?
command.query['assetTypes'] = asset_types unless asset_types.nil?
command.query['orderBy'] = order_by unless order_by.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['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected protected
def apply_command_defaults(command) def apply_command_defaults(command)

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/asset-inventory/docs/quickstart # @see https://cloud.google.com/asset-inventory/docs/quickstart
module CloudassetV1beta1 module CloudassetV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200221' REVISION = '20200515'
# 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

@ -39,10 +39,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": [
@ -57,7 +60,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",
@ -574,10 +579,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": [
@ -592,7 +600,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",
@ -670,6 +680,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

View File

@ -50,7 +50,10 @@ module Google
# Exports assets with time and resource types to a given Cloud Storage # Exports assets with time and resource types to a given Cloud Storage
# location. The output format is newline-delimited JSON. # location. The output format is newline-delimited JSON.
# This API implements the google.longrunning.Operation API allowing you # This API implements the google.longrunning.Operation API allowing you
# to keep track of the export. # to keep track of the export. We recommend intervals of at least 2 seconds
# with exponential retry to poll the export operation result. For
# regular-size resource parent, the export operation usually finishes within
# 5 minutes.
# @param [String] parent # @param [String] parent
# Required. The relative name of the root asset. This can only be an # Required. The relative name of the root asset. This can only be an
# organization number (such as "organizations/123"), a project ID (such as # organization number (such as "organizations/123"), a project ID (such as
@ -179,7 +182,10 @@ module Google
# Exports assets with time and resource types to a given Cloud Storage # Exports assets with time and resource types to a given Cloud Storage
# location. The output format is newline-delimited JSON. # location. The output format is newline-delimited JSON.
# This API implements the google.longrunning.Operation API allowing you # This API implements the google.longrunning.Operation API allowing you
# to keep track of the export. # to keep track of the export. We recommend intervals of at least 2 seconds
# with exponential retry to poll the export operation result. For
# regular-size resource parent, the export operation usually finishes within
# 5 minutes.
# @param [String] parent # @param [String] parent
# Required. The relative name of the root asset. This can only be an # Required. The relative name of the root asset. This can only be an
# organization number (such as "organizations/123"), a project ID (such as # organization number (such as "organizations/123"), a project ID (such as
@ -308,7 +314,10 @@ module Google
# Exports assets with time and resource types to a given Cloud Storage # Exports assets with time and resource types to a given Cloud Storage
# location. The output format is newline-delimited JSON. # location. The output format is newline-delimited JSON.
# This API implements the google.longrunning.Operation API allowing you # This API implements the google.longrunning.Operation API allowing you
# to keep track of the export. # to keep track of the export. We recommend intervals of at least 2 seconds
# with exponential retry to poll the export operation result. For
# regular-size resource parent, the export operation usually finishes within
# 5 minutes.
# @param [String] parent # @param [String] parent
# Required. The relative name of the root asset. This can only be an # Required. The relative name of the root asset. This can only be an
# organization number (such as "organizations/123"), a project ID (such as # organization number (such as "organizations/123"), a project ID (such as

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/asset-inventory/docs/quickstart # @see https://cloud.google.com/asset-inventory/docs/quickstart
module CloudassetV1p1beta1 module CloudassetV1p1beta1
VERSION = 'V1p1beta1' VERSION = 'V1p1beta1'
REVISION = '20200410' REVISION = '20200515'
# 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

@ -323,10 +323,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": [
@ -341,7 +344,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",
@ -431,10 +436,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": [
@ -449,7 +457,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",
@ -527,6 +537,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
@ -627,6 +640,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :display_name attr_accessor :display_name
# Labels associated with this resource. See [Labelling and grouping GCP
# resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-
# your-google-cloud-platform-resources)
# for more information.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Location can be "global", regional like "us-east1", or zonal like # Location can be "global", regional like "us-east1", or zonal like
# "us-west1-b". # "us-west1-b".
# Corresponds to the JSON property `location` # Corresponds to the JSON property `location`
@ -643,6 +664,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Network tags associated with this resource. Like labels, network tags are a
# type of annotations used to group GCP resources. See [Labelling GCP
# resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-
# your-google-cloud-platform-resources)
# for more information.
# Corresponds to the JSON property `networkTags`
# @return [Array<String>]
attr_accessor :network_tags
# The project that this resource belongs to, in the form of # The project that this resource belongs to, in the form of
# `projects/`project_number``. # `projects/`project_number``.
# Corresponds to the JSON property `project` # Corresponds to the JSON property `project`
@ -659,8 +689,10 @@ module Google
@asset_type = args[:asset_type] if args.key?(:asset_type) @asset_type = args[:asset_type] if args.key?(:asset_type)
@description = args[:description] if args.key?(:description) @description = args[:description] if args.key?(:description)
@display_name = args[:display_name] if args.key?(:display_name) @display_name = args[:display_name] if args.key?(:display_name)
@labels = args[:labels] if args.key?(:labels)
@location = args[:location] if args.key?(:location) @location = args[:location] if args.key?(:location)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@network_tags = args[:network_tags] if args.key?(:network_tags)
@project = args[:project] if args.key?(:project) @project = args[:project] if args.key?(:project)
end end
end end

View File

@ -189,8 +189,10 @@ module Google
property :asset_type, as: 'assetType' property :asset_type, as: 'assetType'
property :description, as: 'description' property :description, as: 'description'
property :display_name, as: 'displayName' property :display_name, as: 'displayName'
hash :labels, as: 'labels'
property :location, as: 'location' property :location, as: 'location'
property :name, as: 'name' property :name, as: 'name'
collection :network_tags, as: 'networkTags'
property :project, as: 'project' property :project, as: 'project'
end end
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/asset-inventory/docs/quickstart # @see https://cloud.google.com/asset-inventory/docs/quickstart
module CloudassetV1p4beta1 module CloudassetV1p4beta1
VERSION = 'V1p4beta1' VERSION = 'V1p4beta1'
REVISION = '20200403' REVISION = '20200515'
# 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

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/identity/ # @see https://cloud.google.com/identity/
module CloudidentityV1beta1 module CloudidentityV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200502' REVISION = '20200516'
# See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group # See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group
AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups' AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups'

View File

@ -472,6 +472,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :compromised_state attr_accessor :compromised_state
# When the user first signed in to the device
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Output only. Most recent time when user registered with this service. # Output only. Most recent time when user registered with this service.
# Corresponds to the JSON property `firstSyncTime` # Corresponds to the JSON property `firstSyncTime`
# @return [String] # @return [String]
@ -522,6 +527,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@compromised_state = args[:compromised_state] if args.key?(:compromised_state) @compromised_state = args[:compromised_state] if args.key?(:compromised_state)
@create_time = args[:create_time] if args.key?(:create_time)
@first_sync_time = args[:first_sync_time] if args.key?(:first_sync_time) @first_sync_time = args[:first_sync_time] if args.key?(:first_sync_time)
@language_code = args[:language_code] if args.key?(:language_code) @language_code = args[:language_code] if args.key?(:language_code)
@last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time) @last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time)

View File

@ -329,6 +329,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :compromised_state, as: 'compromisedState' property :compromised_state, as: 'compromisedState'
property :create_time, as: 'createTime'
property :first_sync_time, as: 'firstSyncTime' property :first_sync_time, as: 'firstSyncTime'
property :language_code, as: 'languageCode' property :language_code, as: 'languageCode'
property :last_sync_time, as: 'lastSyncTime' property :last_sync_time, as: 'lastSyncTime'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/display-video/ # @see https://developers.google.com/display-video/
module DisplayvideoV1 module DisplayvideoV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200505' REVISION = '20200519'
# Create, see, edit, and permanently delete your Display & Video 360 entities and reports # Create, see, edit, and permanently delete your Display & Video 360 entities and reports
AUTH_DISPLAY_VIDEO = 'https://www.googleapis.com/auth/display-video' AUTH_DISPLAY_VIDEO = 'https://www.googleapis.com/auth/display-video'

View File

@ -737,8 +737,7 @@ module Google
# * Between `(` and `)` there can only be restrictions combined by `OR` # * Between `(` and `)` there can only be restrictions combined by `OR`
# for the same field. # for the same field.
# * A restriction has the form of ``field` `operator` `value``. # * A restriction has the form of ``field` `operator` `value``.
# * The operator must be `EQUALS (=)`. # * The operator must be `EQUALS (=)` for the following fields:
# * Supported fields:
# - `entityStatus` # - `entityStatus`
# - `creativeType`. # - `creativeType`.
# - `dimensions` # - `dimensions`
@ -747,6 +746,8 @@ module Google
# - `approvalStatus` # - `approvalStatus`
# - `exchangeReviewStatus` # - `exchangeReviewStatus`
# - `dynamic` # - `dynamic`
# * The operator must be `HAS (:)` for the following fields:
# - `lineItemIds`
# * For `entityStatus`, `minDuration`, `maxDuration`, and `dynamic` there may # * For `entityStatus`, `minDuration`, `maxDuration`, and `dynamic` there may
# be at most one restriction. # be at most one restriction.
# * For `dimensions`, the value is in the form of `"`width`x`height`"`. # * For `dimensions`, the value is in the form of `"`width`x`height`"`.
@ -754,6 +755,8 @@ module Google
# ``exchange`-`reviewStatus``. # ``exchange`-`reviewStatus``.
# * For `minDuration` and `maxDuration`, the value is in the form of # * For `minDuration` and `maxDuration`, the value is in the form of
# `"`duration`s"`. Only seconds are supported with millisecond granularity. # `"`duration`s"`. Only seconds are supported with millisecond granularity.
# * There may be multiple `lineItemIds` restrictions in order to search
# against multiple possible line item IDs.
# Examples: # Examples:
# * All native creatives: `creativeType="CREATIVE_TYPE_NATIVE"` # * All native creatives: `creativeType="CREATIVE_TYPE_NATIVE"`
# * All active creatives with 300x400 or 50x100 dimensions: # * All active creatives with 300x400 or 50x100 dimensions:
@ -764,6 +767,8 @@ module Google
# `dynamic="true" AND minDuration="5.2s" AND # `dynamic="true" AND minDuration="5.2s" AND
# (exchangeReviewStatus="EXCHANGE_GOOGLE_AD_MANAGER-REVIEW_STATUS_APPROVED" # (exchangeReviewStatus="EXCHANGE_GOOGLE_AD_MANAGER-REVIEW_STATUS_APPROVED"
# OR exchangeReviewStatus="EXCHANGE_APPNEXUS-REVIEW_STATUS_APPROVED")` # OR exchangeReviewStatus="EXCHANGE_APPNEXUS-REVIEW_STATUS_APPROVED")`
# * All video creatives that are associated with line item ID 1 or 2:
# creativeType="CREATIVE_TYPE_VIDEO" AND (lineItemIds:1 OR lineItemIds:2)
# The length of this field should be no more than 500 characters. # The length of this field should be no more than 500 characters.
# @param [String] order_by # @param [String] order_by
# Field by which to sort the list. # Field by which to sort the list.

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/games/ # @see https://developers.google.com/games/
module GamesConfigurationV1configuration module GamesConfigurationV1configuration
VERSION = 'V1configuration' VERSION = 'V1configuration'
REVISION = '20200416' REVISION = '20200514'
# View and manage your Google Play Developer account # View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'

View File

@ -45,7 +45,7 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', '') super('https://www.googleapis.com/', '')
@batch_path = 'batch' @batch_path = 'batch/games/v1configuration'
end end
# Delete the achievement configuration with the given ID. # Delete the achievement configuration with the given ID.

View File

@ -27,7 +27,7 @@ module Google
# @see https://developers.google.com/games/ # @see https://developers.google.com/games/
module GamesManagementV1management module GamesManagementV1management
VERSION = 'V1management' VERSION = 'V1management'
REVISION = '20200504' REVISION = '20200514'
# Create, edit, and delete your Google Play Games activity # Create, edit, and delete your Google Play Games activity
AUTH_GAMES = 'https://www.googleapis.com/auth/games' AUTH_GAMES = 'https://www.googleapis.com/auth/games'

View File

@ -46,7 +46,7 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', '') super('https://www.googleapis.com/', '')
@batch_path = 'batch' @batch_path = 'batch/games/v1management'
end end
# Resets the achievement with the given ID for the currently authenticated # Resets the achievement with the given ID for the currently authenticated

View File

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

View File

@ -2322,6 +2322,11 @@ module Google
attr_accessor :reserved attr_accessor :reserved
alias_method :reserved?, :reserved alias_method :reserved?, :reserved
# Output only. The name of the image used by each VM.
# Corresponds to the JSON property `vmImage`
# @return [String]
attr_accessor :vm_image
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -2337,6 +2342,7 @@ module Google
@min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
@network_access = args[:network_access] if args.key?(:network_access) @network_access = args[:network_access] if args.key?(:network_access)
@reserved = args[:reserved] if args.key?(:reserved) @reserved = args[:reserved] if args.key?(:reserved)
@vm_image = args[:vm_image] if args.key?(:vm_image)
end end
end end

View File

@ -854,6 +854,7 @@ module Google
property :min_cpu_platform, as: 'minCpuPlatform' property :min_cpu_platform, as: 'minCpuPlatform'
property :network_access, as: 'networkAccess' property :network_access, as: 'networkAccess'
property :reserved, as: 'reserved' property :reserved, as: 'reserved'
property :vm_image, as: 'vmImage'
end end
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/remote-build-execution/docs/ # @see https://cloud.google.com/remote-build-execution/docs/
module RemotebuildexecutionV1alpha module RemotebuildexecutionV1alpha
VERSION = 'V1alpha' VERSION = 'V1alpha'
REVISION = '20200505' REVISION = '20200513'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2303,6 +2303,11 @@ module Google
attr_accessor :reserved attr_accessor :reserved
alias_method :reserved?, :reserved alias_method :reserved?, :reserved
# Output only. The name of the image used by each VM.
# Corresponds to the JSON property `vmImage`
# @return [String]
attr_accessor :vm_image
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -2318,6 +2323,7 @@ module Google
@min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
@network_access = args[:network_access] if args.key?(:network_access) @network_access = args[:network_access] if args.key?(:network_access)
@reserved = args[:reserved] if args.key?(:reserved) @reserved = args[:reserved] if args.key?(:reserved)
@vm_image = args[:vm_image] if args.key?(:vm_image)
end end
end end

View File

@ -823,6 +823,7 @@ module Google
property :min_cpu_platform, as: 'minCpuPlatform' property :min_cpu_platform, as: 'minCpuPlatform'
property :network_access, as: 'networkAccess' property :network_access, as: 'networkAccess'
property :reserved, as: 'reserved' property :reserved, as: 'reserved'
property :vm_image, as: 'vmImage'
end end
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/remote-build-execution/docs/ # @see https://cloud.google.com/remote-build-execution/docs/
module RemotebuildexecutionV2 module RemotebuildexecutionV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20200505' REVISION = '20200513'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -3002,6 +3002,11 @@ module Google
attr_accessor :reserved attr_accessor :reserved
alias_method :reserved?, :reserved alias_method :reserved?, :reserved
# Output only. The name of the image used by each VM.
# Corresponds to the JSON property `vmImage`
# @return [String]
attr_accessor :vm_image
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -3017,6 +3022,7 @@ module Google
@min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
@network_access = args[:network_access] if args.key?(:network_access) @network_access = args[:network_access] if args.key?(:network_access)
@reserved = args[:reserved] if args.key?(:reserved) @reserved = args[:reserved] if args.key?(:reserved)
@vm_image = args[:vm_image] if args.key?(:vm_image)
end end
end end

View File

@ -1142,6 +1142,7 @@ module Google
property :min_cpu_platform, as: 'minCpuPlatform' property :min_cpu_platform, as: 'minCpuPlatform'
property :network_access, as: 'networkAccess' property :network_access, as: 'networkAccess'
property :reserved, as: 'reserved' property :reserved, as: 'reserved'
property :vm_image, as: 'vmImage'
end end
end end

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 = '20200506' REVISION = '20200516'
# 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

@ -535,36 +535,6 @@ module Google
# @return [String] # @return [String]
attr_accessor :protocol attr_accessor :protocol
# Unimplemented. Do not use.
# The new name the selected proto elements should be renamed to.
# The package, the service and the method can all be renamed.
# The backend server should implement the renamed proto. However, clients
# should call the original method, and ESF routes the traffic to the renamed
# method.
# HTTP clients should call the URL mapped to the original method.
# gRPC and Stubby clients should call the original method with package name.
# For legacy reasons, ESF allows Stubby clients to call with the
# short name (without the package name). However, for API Versioning(or
# multiple methods mapped to the same short name), all Stubby clients must
# call the method's full name with the package name, otherwise the first one
# (selector) wins.
# If this `rename_to` is specified with a trailing `*`, the `selector` must
# be specified with a trailing `*` as well. The all element short names
# matched by the `*` in the selector will be kept in the `rename_to`.
# For example,
# rename_rules:
# - selector: |-
# google.example.library.v1.*
# rename_to: google.example.library.*
# The selector matches `google.example.library.v1.Library.CreateShelf` and
# `google.example.library.v1.Library.CreateBook`, they will be renamed to
# `google.example.library.Library.CreateShelf` and
# `google.example.library.Library.CreateBook`. It essentially renames the
# proto package name section of the matched proto service and methods.
# Corresponds to the JSON property `renameTo`
# @return [String]
attr_accessor :rename_to
# Selects the methods to which this rule applies. # Selects the methods to which this rule applies.
# Refer to selector for syntax details. # Refer to selector for syntax details.
# Corresponds to the JSON property `selector` # Corresponds to the JSON property `selector`
@ -585,7 +555,6 @@ module Google
@operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline) @operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline)
@path_translation = args[:path_translation] if args.key?(:path_translation) @path_translation = args[:path_translation] if args.key?(:path_translation)
@protocol = args[:protocol] if args.key?(:protocol) @protocol = args[:protocol] if args.key?(:protocol)
@rename_to = args[:rename_to] if args.key?(:rename_to)
@selector = args[:selector] if args.key?(:selector) @selector = args[:selector] if args.key?(:selector)
end end
end end

View File

@ -662,7 +662,6 @@ module Google
property :operation_deadline, as: 'operationDeadline' property :operation_deadline, as: 'operationDeadline'
property :path_translation, as: 'pathTranslation' property :path_translation, as: 'pathTranslation'
property :protocol, as: 'protocol' property :protocol, as: 'protocol'
property :rename_to, as: 'renameTo'
property :selector, as: 'selector' property :selector, as: 'selector'
end end
end end

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 = '20200506' REVISION = '20200516'
# 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

@ -441,36 +441,6 @@ module Google
# @return [String] # @return [String]
attr_accessor :protocol attr_accessor :protocol
# Unimplemented. Do not use.
# The new name the selected proto elements should be renamed to.
# The package, the service and the method can all be renamed.
# The backend server should implement the renamed proto. However, clients
# should call the original method, and ESF routes the traffic to the renamed
# method.
# HTTP clients should call the URL mapped to the original method.
# gRPC and Stubby clients should call the original method with package name.
# For legacy reasons, ESF allows Stubby clients to call with the
# short name (without the package name). However, for API Versioning(or
# multiple methods mapped to the same short name), all Stubby clients must
# call the method's full name with the package name, otherwise the first one
# (selector) wins.
# If this `rename_to` is specified with a trailing `*`, the `selector` must
# be specified with a trailing `*` as well. The all element short names
# matched by the `*` in the selector will be kept in the `rename_to`.
# For example,
# rename_rules:
# - selector: |-
# google.example.library.v1.*
# rename_to: google.example.library.*
# The selector matches `google.example.library.v1.Library.CreateShelf` and
# `google.example.library.v1.Library.CreateBook`, they will be renamed to
# `google.example.library.Library.CreateShelf` and
# `google.example.library.Library.CreateBook`. It essentially renames the
# proto package name section of the matched proto service and methods.
# Corresponds to the JSON property `renameTo`
# @return [String]
attr_accessor :rename_to
# Selects the methods to which this rule applies. # Selects the methods to which this rule applies.
# Refer to selector for syntax details. # Refer to selector for syntax details.
# Corresponds to the JSON property `selector` # Corresponds to the JSON property `selector`
@ -491,7 +461,6 @@ module Google
@operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline) @operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline)
@path_translation = args[:path_translation] if args.key?(:path_translation) @path_translation = args[:path_translation] if args.key?(:path_translation)
@protocol = args[:protocol] if args.key?(:protocol) @protocol = args[:protocol] if args.key?(:protocol)
@rename_to = args[:rename_to] if args.key?(:rename_to)
@selector = args[:selector] if args.key?(:selector) @selector = args[:selector] if args.key?(:selector)
end end
end end

View File

@ -569,7 +569,6 @@ module Google
property :operation_deadline, as: 'operationDeadline' property :operation_deadline, as: 'operationDeadline'
property :path_translation, as: 'pathTranslation' property :path_translation, as: 'pathTranslation'
property :protocol, as: 'protocol' property :protocol, as: 'protocol'
property :rename_to, as: 'renameTo'
property :selector, as: 'selector' property :selector, as: 'selector'
end end
end end

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 = '20200506' REVISION = '20200516'
# 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

@ -595,36 +595,6 @@ module Google
# @return [String] # @return [String]
attr_accessor :protocol attr_accessor :protocol
# Unimplemented. Do not use.
# The new name the selected proto elements should be renamed to.
# The package, the service and the method can all be renamed.
# The backend server should implement the renamed proto. However, clients
# should call the original method, and ESF routes the traffic to the renamed
# method.
# HTTP clients should call the URL mapped to the original method.
# gRPC and Stubby clients should call the original method with package name.
# For legacy reasons, ESF allows Stubby clients to call with the
# short name (without the package name). However, for API Versioning(or
# multiple methods mapped to the same short name), all Stubby clients must
# call the method's full name with the package name, otherwise the first one
# (selector) wins.
# If this `rename_to` is specified with a trailing `*`, the `selector` must
# be specified with a trailing `*` as well. The all element short names
# matched by the `*` in the selector will be kept in the `rename_to`.
# For example,
# rename_rules:
# - selector: |-
# google.example.library.v1.*
# rename_to: google.example.library.*
# The selector matches `google.example.library.v1.Library.CreateShelf` and
# `google.example.library.v1.Library.CreateBook`, they will be renamed to
# `google.example.library.Library.CreateShelf` and
# `google.example.library.Library.CreateBook`. It essentially renames the
# proto package name section of the matched proto service and methods.
# Corresponds to the JSON property `renameTo`
# @return [String]
attr_accessor :rename_to
# Selects the methods to which this rule applies. # Selects the methods to which this rule applies.
# Refer to selector for syntax details. # Refer to selector for syntax details.
# Corresponds to the JSON property `selector` # Corresponds to the JSON property `selector`
@ -645,7 +615,6 @@ module Google
@operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline) @operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline)
@path_translation = args[:path_translation] if args.key?(:path_translation) @path_translation = args[:path_translation] if args.key?(:path_translation)
@protocol = args[:protocol] if args.key?(:protocol) @protocol = args[:protocol] if args.key?(:protocol)
@rename_to = args[:rename_to] if args.key?(:rename_to)
@selector = args[:selector] if args.key?(:selector) @selector = args[:selector] if args.key?(:selector)
end end
end end

View File

@ -583,7 +583,6 @@ module Google
property :operation_deadline, as: 'operationDeadline' property :operation_deadline, as: 'operationDeadline'
property :path_translation, as: 'pathTranslation' property :path_translation, as: 'pathTranslation'
property :protocol, as: 'protocol' property :protocol, as: 'protocol'
property :rename_to, as: 'renameTo'
property :selector, as: 'selector' property :selector, as: 'selector'
end end
end end

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 = '20200506' REVISION = '20200516'
# 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

@ -556,36 +556,6 @@ module Google
# @return [String] # @return [String]
attr_accessor :protocol attr_accessor :protocol
# Unimplemented. Do not use.
# The new name the selected proto elements should be renamed to.
# The package, the service and the method can all be renamed.
# The backend server should implement the renamed proto. However, clients
# should call the original method, and ESF routes the traffic to the renamed
# method.
# HTTP clients should call the URL mapped to the original method.
# gRPC and Stubby clients should call the original method with package name.
# For legacy reasons, ESF allows Stubby clients to call with the
# short name (without the package name). However, for API Versioning(or
# multiple methods mapped to the same short name), all Stubby clients must
# call the method's full name with the package name, otherwise the first one
# (selector) wins.
# If this `rename_to` is specified with a trailing `*`, the `selector` must
# be specified with a trailing `*` as well. The all element short names
# matched by the `*` in the selector will be kept in the `rename_to`.
# For example,
# rename_rules:
# - selector: |-
# google.example.library.v1.*
# rename_to: google.example.library.*
# The selector matches `google.example.library.v1.Library.CreateShelf` and
# `google.example.library.v1.Library.CreateBook`, they will be renamed to
# `google.example.library.Library.CreateShelf` and
# `google.example.library.Library.CreateBook`. It essentially renames the
# proto package name section of the matched proto service and methods.
# Corresponds to the JSON property `renameTo`
# @return [String]
attr_accessor :rename_to
# Selects the methods to which this rule applies. # Selects the methods to which this rule applies.
# Refer to selector for syntax details. # Refer to selector for syntax details.
# Corresponds to the JSON property `selector` # Corresponds to the JSON property `selector`
@ -606,7 +576,6 @@ module Google
@operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline) @operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline)
@path_translation = args[:path_translation] if args.key?(:path_translation) @path_translation = args[:path_translation] if args.key?(:path_translation)
@protocol = args[:protocol] if args.key?(:protocol) @protocol = args[:protocol] if args.key?(:protocol)
@rename_to = args[:rename_to] if args.key?(:rename_to)
@selector = args[:selector] if args.key?(:selector) @selector = args[:selector] if args.key?(:selector)
end end
end end

View File

@ -513,7 +513,6 @@ module Google
property :operation_deadline, as: 'operationDeadline' property :operation_deadline, as: 'operationDeadline'
property :path_translation, as: 'pathTranslation' property :path_translation, as: 'pathTranslation'
property :protocol, as: 'protocol' property :protocol, as: 'protocol'
property :rename_to, as: 'renameTo'
property :selector, as: 'selector' property :selector, as: 'selector'
end end
end end

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 = '20200506' REVISION = '20200516'
# 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

@ -441,36 +441,6 @@ module Google
# @return [String] # @return [String]
attr_accessor :protocol attr_accessor :protocol
# Unimplemented. Do not use.
# The new name the selected proto elements should be renamed to.
# The package, the service and the method can all be renamed.
# The backend server should implement the renamed proto. However, clients
# should call the original method, and ESF routes the traffic to the renamed
# method.
# HTTP clients should call the URL mapped to the original method.
# gRPC and Stubby clients should call the original method with package name.
# For legacy reasons, ESF allows Stubby clients to call with the
# short name (without the package name). However, for API Versioning(or
# multiple methods mapped to the same short name), all Stubby clients must
# call the method's full name with the package name, otherwise the first one
# (selector) wins.
# If this `rename_to` is specified with a trailing `*`, the `selector` must
# be specified with a trailing `*` as well. The all element short names
# matched by the `*` in the selector will be kept in the `rename_to`.
# For example,
# rename_rules:
# - selector: |-
# google.example.library.v1.*
# rename_to: google.example.library.*
# The selector matches `google.example.library.v1.Library.CreateShelf` and
# `google.example.library.v1.Library.CreateBook`, they will be renamed to
# `google.example.library.Library.CreateShelf` and
# `google.example.library.Library.CreateBook`. It essentially renames the
# proto package name section of the matched proto service and methods.
# Corresponds to the JSON property `renameTo`
# @return [String]
attr_accessor :rename_to
# Selects the methods to which this rule applies. # Selects the methods to which this rule applies.
# Refer to selector for syntax details. # Refer to selector for syntax details.
# Corresponds to the JSON property `selector` # Corresponds to the JSON property `selector`
@ -491,7 +461,6 @@ module Google
@operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline) @operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline)
@path_translation = args[:path_translation] if args.key?(:path_translation) @path_translation = args[:path_translation] if args.key?(:path_translation)
@protocol = args[:protocol] if args.key?(:protocol) @protocol = args[:protocol] if args.key?(:protocol)
@rename_to = args[:rename_to] if args.key?(:rename_to)
@selector = args[:selector] if args.key?(:selector) @selector = args[:selector] if args.key?(:selector)
end end
end end

View File

@ -569,7 +569,6 @@ module Google
property :operation_deadline, as: 'operationDeadline' property :operation_deadline, as: 'operationDeadline'
property :path_translation, as: 'pathTranslation' property :path_translation, as: 'pathTranslation'
property :protocol, as: 'protocol' property :protocol, as: 'protocol'
property :rename_to, as: 'renameTo'
property :selector, as: 'selector' property :selector, as: 'selector'
end end
end end

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 = '20200506' REVISION = '20200516'
# 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

@ -441,36 +441,6 @@ module Google
# @return [String] # @return [String]
attr_accessor :protocol attr_accessor :protocol
# Unimplemented. Do not use.
# The new name the selected proto elements should be renamed to.
# The package, the service and the method can all be renamed.
# The backend server should implement the renamed proto. However, clients
# should call the original method, and ESF routes the traffic to the renamed
# method.
# HTTP clients should call the URL mapped to the original method.
# gRPC and Stubby clients should call the original method with package name.
# For legacy reasons, ESF allows Stubby clients to call with the
# short name (without the package name). However, for API Versioning(or
# multiple methods mapped to the same short name), all Stubby clients must
# call the method's full name with the package name, otherwise the first one
# (selector) wins.
# If this `rename_to` is specified with a trailing `*`, the `selector` must
# be specified with a trailing `*` as well. The all element short names
# matched by the `*` in the selector will be kept in the `rename_to`.
# For example,
# rename_rules:
# - selector: |-
# google.example.library.v1.*
# rename_to: google.example.library.*
# The selector matches `google.example.library.v1.Library.CreateShelf` and
# `google.example.library.v1.Library.CreateBook`, they will be renamed to
# `google.example.library.Library.CreateShelf` and
# `google.example.library.Library.CreateBook`. It essentially renames the
# proto package name section of the matched proto service and methods.
# Corresponds to the JSON property `renameTo`
# @return [String]
attr_accessor :rename_to
# Selects the methods to which this rule applies. # Selects the methods to which this rule applies.
# Refer to selector for syntax details. # Refer to selector for syntax details.
# Corresponds to the JSON property `selector` # Corresponds to the JSON property `selector`
@ -491,7 +461,6 @@ module Google
@operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline) @operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline)
@path_translation = args[:path_translation] if args.key?(:path_translation) @path_translation = args[:path_translation] if args.key?(:path_translation)
@protocol = args[:protocol] if args.key?(:protocol) @protocol = args[:protocol] if args.key?(:protocol)
@rename_to = args[:rename_to] if args.key?(:rename_to)
@selector = args[:selector] if args.key?(:selector) @selector = args[:selector] if args.key?(:selector)
end end
end end

View File

@ -605,7 +605,6 @@ module Google
property :operation_deadline, as: 'operationDeadline' property :operation_deadline, as: 'operationDeadline'
property :path_translation, as: 'pathTranslation' property :path_translation, as: 'pathTranslation'
property :protocol, as: 'protocol' property :protocol, as: 'protocol'
property :rename_to, as: 'renameTo'
property :selector, as: 'selector' property :selector, as: 'selector'
end end
end end