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:
parent
dce3908621
commit
0bbabaf3a1
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/billing/docs/how-to/budget-api-overview
|
||||
module BillingbudgetsV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20200315'
|
||||
REVISION = '20200516'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -190,6 +190,15 @@ module Google
|
|||
# @return [String]
|
||||
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``,
|
||||
# specifying that usage from only this set of projects should be
|
||||
# included in the budget. If omitted, the report will include all usage for
|
||||
|
@ -209,6 +218,16 @@ module Google
|
|||
# @return [Array<String>]
|
||||
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)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -216,8 +235,10 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@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)
|
||||
@services = args[:services] if args.key?(:services)
|
||||
@subaccounts = args[:subaccounts] if args.key?(:subaccounts)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -135,8 +135,14 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :credit_types_treatment, as: 'creditTypesTreatment'
|
||||
hash :labels, as: 'labels', :class => Array do
|
||||
include Representable::JSON::Collection
|
||||
items
|
||||
end
|
||||
|
||||
collection :projects, as: 'projects'
|
||||
collection :services, as: 'services'
|
||||
collection :subaccounts, as: 'subaccounts'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/asset-inventory/docs/quickstart
|
||||
module CloudassetV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200403'
|
||||
REVISION = '20200515'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -54,12 +54,12 @@ module Google
|
|||
# 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
|
||||
# asset itself.
|
||||
# For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
|
||||
# Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
|
||||
# Corresponds to the JSON property `ancestors`
|
||||
# @return [Array<String>]
|
||||
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
|
||||
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
|
||||
# for more information.
|
||||
|
@ -74,10 +74,13 @@ module Google
|
|||
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
||||
# permissions; each `role` can be an IAM predefined role or a user-created
|
||||
# custom role.
|
||||
# Optionally, a `binding` can specify a `condition`, which is a logical
|
||||
# expression that allows access to a resource only if the expression evaluates
|
||||
# to `true`. A condition can add constraints based on attributes of the
|
||||
# request, the resource, or both.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
|
@ -92,7 +95,9 @@ module Google
|
|||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": ["user:eve@example.com"],
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
|
@ -127,7 +132,7 @@ module Google
|
|||
# @return [Google::Apis::CloudassetV1::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/
|
||||
# instance1"
|
||||
# See [Resource
|
||||
|
@ -490,11 +495,36 @@ module Google
|
|||
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.
|
||||
class ExportAssetsRequest
|
||||
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
|
||||
# returned. See [Introduction to Cloud Asset
|
||||
# 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
|
||||
# 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
|
||||
# example:
|
||||
# specified asset_names or asset_types are exported to the feed.
|
||||
# Example:
|
||||
# `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
|
||||
# instance1`.
|
||||
# See [Resource
|
||||
|
@ -622,8 +652,8 @@ module Google
|
|||
|
||||
# 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
|
||||
# specified asset_names and asset_types are exported to the feed.
|
||||
# For example: `"compute.googleapis.com/Disk"`
|
||||
# specified asset_names or asset_types are exported to the feed.
|
||||
# Example: `"compute.googleapis.com/Disk"`
|
||||
# See [this
|
||||
# topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
|
||||
# for a list of all supported asset types.
|
||||
|
@ -690,7 +720,7 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# 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
|
||||
# Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
|
||||
# for more information.
|
||||
|
@ -698,10 +728,10 @@ module Google
|
|||
# @return [String]
|
||||
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/<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
|
||||
# the first shard of output objects containing all
|
||||
# compute.googleapis.com/Disk assets. An INVALID_ARGUMENT error will be
|
||||
|
@ -1570,6 +1600,117 @@ module Google
|
|||
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
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -1678,6 +1819,25 @@ module Google
|
|||
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
|
||||
# controls for Google Cloud resources.
|
||||
# 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
|
||||
# permissions; each `role` can be an IAM predefined role or a user-created
|
||||
# custom role.
|
||||
# Optionally, a `binding` can specify a `condition`, which is a logical
|
||||
# expression that allows access to a resource only if the expression evaluates
|
||||
# to `true`. A condition can add constraints based on attributes of the
|
||||
# request, the resource, or both.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
|
@ -1703,7 +1866,9 @@ module Google
|
|||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": ["user:eve@example.com"],
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
|
@ -1781,6 +1946,9 @@ module Google
|
|||
# the conditions in the version `3` policy are lost.
|
||||
# If a policy does not include any conditions, operations on that policy may
|
||||
# specify any valid version or leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :version
|
||||
|
@ -1803,7 +1971,7 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# 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`
|
||||
# @return [String]
|
||||
attr_accessor :topic
|
||||
|
@ -1829,7 +1997,7 @@ module Google
|
|||
attr_accessor :data
|
||||
|
||||
# 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"
|
||||
# This value is unspecified for resources that do not have an API based on a
|
||||
# discovery document, such as Cloud Bigtable.
|
||||
|
@ -1837,7 +2005,7 @@ module Google
|
|||
# @return [String]
|
||||
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"
|
||||
# This value is unspecified for resources that do not have an API based on a
|
||||
# discovery document, such as Cloud Bigtable.
|
||||
|
@ -1845,6 +2013,12 @@ module Google
|
|||
# @return [String]
|
||||
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
|
||||
# [Resource
|
||||
# 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
|
||||
# [Cloud IAM policy
|
||||
# hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
|
||||
# For example:
|
||||
# Example:
|
||||
# "//cloudresourcemanager.googleapis.com/projects/my_project_123"
|
||||
# For third-party assets, this field may be set differently.
|
||||
# Corresponds to the JSON property `parent`
|
||||
|
@ -1860,14 +2034,14 @@ module Google
|
|||
attr_accessor :parent
|
||||
|
||||
# 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"
|
||||
# This value is unspecified for resources without a REST API.
|
||||
# Corresponds to the JSON property `resourceUrl`
|
||||
# @return [String]
|
||||
attr_accessor :resource_url
|
||||
|
||||
# The API version. For example: "v1"
|
||||
# The API version. Example: "v1"
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [String]
|
||||
attr_accessor :version
|
||||
|
@ -1881,12 +2055,182 @@ module Google
|
|||
@data = args[:data] if args.key?(:data)
|
||||
@discovery_document_uri = args[:discovery_document_uri] if args.key?(:discovery_document_uri)
|
||||
@discovery_name = args[:discovery_name] if args.key?(:discovery_name)
|
||||
@location = args[:location] if args.key?(:location)
|
||||
@parent = args[:parent] if args.key?(:parent)
|
||||
@resource_url = args[:resource_url] if args.key?(:resource_url)
|
||||
@version = args[:version] if args.key?(:version)
|
||||
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
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||
|
|
|
@ -70,6 +70,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Explanation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ExportAssetsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -184,6 +190,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class IamPolicySearchResult
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListFeedsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -202,6 +214,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Permissions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Policy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -220,6 +238,24 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
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 Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -324,6 +360,14 @@ module Google
|
|||
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
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -522,6 +566,18 @@ module Google
|
|||
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
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -552,6 +608,13 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Permissions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
|
||||
class Policy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -577,12 +640,46 @@ module Google
|
|||
hash :data, as: 'data'
|
||||
property :discovery_document_uri, as: 'discoveryDocumentUri'
|
||||
property :discovery_name, as: 'discoveryName'
|
||||
property :location, as: 'location'
|
||||
property :parent, as: 'parent'
|
||||
property :resource_url, as: 'resourceUrl'
|
||||
property :version, as: 'version'
|
||||
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
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -265,14 +265,11 @@ module Google
|
|||
# organization number (such as "organizations/123"), a project ID (such as
|
||||
# "projects/my-project-id")", or a project number (such as "projects/12345").
|
||||
# @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/
|
||||
# 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
|
||||
# size of the asset name list is 100 in one request.
|
||||
# @param [String] content_type
|
||||
|
@ -314,9 +311,13 @@ module Google
|
|||
end
|
||||
|
||||
# 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
|
||||
# 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
|
||||
# Required. The relative name of the root asset. This can only be an
|
||||
# organization number (such as "organizations/123"), a project ID (such as
|
||||
|
@ -352,6 +353,183 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
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
|
||||
|
||||
def apply_command_defaults(command)
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/asset-inventory/docs/quickstart
|
||||
module CloudassetV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20200221'
|
||||
REVISION = '20200515'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -39,10 +39,13 @@ module Google
|
|||
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
||||
# permissions; each `role` can be an IAM predefined role or a user-created
|
||||
# custom role.
|
||||
# Optionally, a `binding` can specify a `condition`, which is a logical
|
||||
# expression that allows access to a resource only if the expression evaluates
|
||||
# to `true`. A condition can add constraints based on attributes of the
|
||||
# request, the resource, or both.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
|
@ -57,7 +60,9 @@ module Google
|
|||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": ["user:eve@example.com"],
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
|
@ -574,10 +579,13 @@ module Google
|
|||
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
||||
# permissions; each `role` can be an IAM predefined role or a user-created
|
||||
# custom role.
|
||||
# Optionally, a `binding` can specify a `condition`, which is a logical
|
||||
# expression that allows access to a resource only if the expression evaluates
|
||||
# to `true`. A condition can add constraints based on attributes of the
|
||||
# request, the resource, or both.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
|
@ -592,7 +600,9 @@ module Google
|
|||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": ["user:eve@example.com"],
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
|
@ -670,6 +680,9 @@ module Google
|
|||
# the conditions in the version `3` policy are lost.
|
||||
# If a policy does not include any conditions, operations on that policy may
|
||||
# specify any valid version or leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :version
|
||||
|
|
|
@ -50,7 +50,10 @@ module Google
|
|||
# Exports assets with time and resource types to a given Cloud Storage
|
||||
# location. The output format is newline-delimited JSON.
|
||||
# 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
|
||||
# Required. The relative name of the root asset. This can only be an
|
||||
# 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
|
||||
# location. The output format is newline-delimited JSON.
|
||||
# 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
|
||||
# Required. The relative name of the root asset. This can only be an
|
||||
# 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
|
||||
# location. The output format is newline-delimited JSON.
|
||||
# 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
|
||||
# Required. The relative name of the root asset. This can only be an
|
||||
# organization number (such as "organizations/123"), a project ID (such as
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/asset-inventory/docs/quickstart
|
||||
module CloudassetV1p1beta1
|
||||
VERSION = 'V1p1beta1'
|
||||
REVISION = '20200410'
|
||||
REVISION = '20200515'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -323,10 +323,13 @@ module Google
|
|||
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
||||
# permissions; each `role` can be an IAM predefined role or a user-created
|
||||
# custom role.
|
||||
# Optionally, a `binding` can specify a `condition`, which is a logical
|
||||
# expression that allows access to a resource only if the expression evaluates
|
||||
# to `true`. A condition can add constraints based on attributes of the
|
||||
# request, the resource, or both.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
|
@ -341,7 +344,9 @@ module Google
|
|||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": ["user:eve@example.com"],
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
|
@ -431,10 +436,13 @@ module Google
|
|||
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
||||
# permissions; each `role` can be an IAM predefined role or a user-created
|
||||
# custom role.
|
||||
# Optionally, a `binding` can specify a `condition`, which is a logical
|
||||
# expression that allows access to a resource only if the expression evaluates
|
||||
# to `true`. A condition can add constraints based on attributes of the
|
||||
# request, the resource, or both.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
|
@ -449,7 +457,9 @@ module Google
|
|||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": ["user:eve@example.com"],
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
|
@ -527,6 +537,9 @@ module Google
|
|||
# the conditions in the version `3` policy are lost.
|
||||
# If a policy does not include any conditions, operations on that policy may
|
||||
# specify any valid version or leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :version
|
||||
|
@ -627,6 +640,14 @@ module Google
|
|||
# @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.
|
||||
# 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".
|
||||
# Corresponds to the JSON property `location`
|
||||
|
@ -643,6 +664,15 @@ module Google
|
|||
# @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](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
|
||||
# `projects/`project_number``.
|
||||
# Corresponds to the JSON property `project`
|
||||
|
@ -659,8 +689,10 @@ module Google
|
|||
@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
|
||||
|
|
|
@ -189,8 +189,10 @@ module Google
|
|||
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
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/asset-inventory/docs/quickstart
|
||||
module CloudassetV1p4beta1
|
||||
VERSION = 'V1p4beta1'
|
||||
REVISION = '20200403'
|
||||
REVISION = '20200515'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/identity/
|
||||
module CloudidentityV1beta1
|
||||
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
|
||||
AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups'
|
||||
|
|
|
@ -472,6 +472,11 @@ module Google
|
|||
# @return [String]
|
||||
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.
|
||||
# Corresponds to the JSON property `firstSyncTime`
|
||||
# @return [String]
|
||||
|
@ -522,6 +527,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@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)
|
||||
@language_code = args[:language_code] if args.key?(:language_code)
|
||||
@last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time)
|
||||
|
|
|
@ -329,6 +329,7 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :compromised_state, as: 'compromisedState'
|
||||
property :create_time, as: 'createTime'
|
||||
property :first_sync_time, as: 'firstSyncTime'
|
||||
property :language_code, as: 'languageCode'
|
||||
property :last_sync_time, as: 'lastSyncTime'
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/display-video/
|
||||
module DisplayvideoV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200505'
|
||||
REVISION = '20200519'
|
||||
|
||||
# Create, see, edit, and permanently delete your Display & Video 360 entities and reports
|
||||
AUTH_DISPLAY_VIDEO = 'https://www.googleapis.com/auth/display-video'
|
||||
|
|
|
@ -737,8 +737,7 @@ module Google
|
|||
# * Between `(` and `)` there can only be restrictions combined by `OR`
|
||||
# for the same field.
|
||||
# * A restriction has the form of ``field` `operator` `value``.
|
||||
# * The operator must be `EQUALS (=)`.
|
||||
# * Supported fields:
|
||||
# * The operator must be `EQUALS (=)` for the following fields:
|
||||
# - `entityStatus`
|
||||
# - `creativeType`.
|
||||
# - `dimensions`
|
||||
|
@ -747,6 +746,8 @@ module Google
|
|||
# - `approvalStatus`
|
||||
# - `exchangeReviewStatus`
|
||||
# - `dynamic`
|
||||
# * The operator must be `HAS (:)` for the following fields:
|
||||
# - `lineItemIds`
|
||||
# * For `entityStatus`, `minDuration`, `maxDuration`, and `dynamic` there may
|
||||
# be at most one restriction.
|
||||
# * For `dimensions`, the value is in the form of `"`width`x`height`"`.
|
||||
|
@ -754,6 +755,8 @@ module Google
|
|||
# ``exchange`-`reviewStatus``.
|
||||
# * For `minDuration` and `maxDuration`, the value is in the form of
|
||||
# `"`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:
|
||||
# * All native creatives: `creativeType="CREATIVE_TYPE_NATIVE"`
|
||||
# * All active creatives with 300x400 or 50x100 dimensions:
|
||||
|
@ -764,6 +767,8 @@ module Google
|
|||
# `dynamic="true" AND minDuration="5.2s" AND
|
||||
# (exchangeReviewStatus="EXCHANGE_GOOGLE_AD_MANAGER-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.
|
||||
# @param [String] order_by
|
||||
# Field by which to sort the list.
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/games/
|
||||
module GamesConfigurationV1configuration
|
||||
VERSION = 'V1configuration'
|
||||
REVISION = '20200416'
|
||||
REVISION = '20200514'
|
||||
|
||||
# View and manage your Google Play Developer account
|
||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||
|
|
|
@ -45,7 +45,7 @@ module Google
|
|||
|
||||
def initialize
|
||||
super('https://www.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
@batch_path = 'batch/games/v1configuration'
|
||||
end
|
||||
|
||||
# Delete the achievement configuration with the given ID.
|
||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://developers.google.com/games/
|
||||
module GamesManagementV1management
|
||||
VERSION = 'V1management'
|
||||
REVISION = '20200504'
|
||||
REVISION = '20200514'
|
||||
|
||||
# Create, edit, and delete your Google Play Games activity
|
||||
AUTH_GAMES = 'https://www.googleapis.com/auth/games'
|
||||
|
|
|
@ -46,7 +46,7 @@ module Google
|
|||
|
||||
def initialize
|
||||
super('https://www.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
@batch_path = 'batch/games/v1management'
|
||||
end
|
||||
|
||||
# Resets the achievement with the given ID for the currently authenticated
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/remote-build-execution/docs/
|
||||
module RemotebuildexecutionV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200505'
|
||||
REVISION = '20200513'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -2322,6 +2322,11 @@ module Google
|
|||
attr_accessor :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)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -2337,6 +2342,7 @@ module Google
|
|||
@min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
|
||||
@network_access = args[:network_access] if args.key?(:network_access)
|
||||
@reserved = args[:reserved] if args.key?(:reserved)
|
||||
@vm_image = args[:vm_image] if args.key?(:vm_image)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -854,6 +854,7 @@ module Google
|
|||
property :min_cpu_platform, as: 'minCpuPlatform'
|
||||
property :network_access, as: 'networkAccess'
|
||||
property :reserved, as: 'reserved'
|
||||
property :vm_image, as: 'vmImage'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/remote-build-execution/docs/
|
||||
module RemotebuildexecutionV1alpha
|
||||
VERSION = 'V1alpha'
|
||||
REVISION = '20200505'
|
||||
REVISION = '20200513'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -2303,6 +2303,11 @@ module Google
|
|||
attr_accessor :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)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -2318,6 +2323,7 @@ module Google
|
|||
@min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
|
||||
@network_access = args[:network_access] if args.key?(:network_access)
|
||||
@reserved = args[:reserved] if args.key?(:reserved)
|
||||
@vm_image = args[:vm_image] if args.key?(:vm_image)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -823,6 +823,7 @@ module Google
|
|||
property :min_cpu_platform, as: 'minCpuPlatform'
|
||||
property :network_access, as: 'networkAccess'
|
||||
property :reserved, as: 'reserved'
|
||||
property :vm_image, as: 'vmImage'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/remote-build-execution/docs/
|
||||
module RemotebuildexecutionV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20200505'
|
||||
REVISION = '20200513'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -3002,6 +3002,11 @@ module Google
|
|||
attr_accessor :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)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -3017,6 +3022,7 @@ module Google
|
|||
@min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
|
||||
@network_access = args[:network_access] if args.key?(:network_access)
|
||||
@reserved = args[:reserved] if args.key?(:reserved)
|
||||
@vm_image = args[:vm_image] if args.key?(:vm_image)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1142,6 +1142,7 @@ module Google
|
|||
property :min_cpu_platform, as: 'minCpuPlatform'
|
||||
property :network_access, as: 'networkAccess'
|
||||
property :reserved, as: 'reserved'
|
||||
property :vm_image, as: 'vmImage'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/service-consumer-management/docs/overview
|
||||
module ServiceconsumermanagementV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200506'
|
||||
REVISION = '20200516'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -535,36 +535,6 @@ module Google
|
|||
# @return [String]
|
||||
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.
|
||||
# Refer to selector for syntax details.
|
||||
# Corresponds to the JSON property `selector`
|
||||
|
@ -585,7 +555,6 @@ module Google
|
|||
@operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline)
|
||||
@path_translation = args[:path_translation] if args.key?(:path_translation)
|
||||
@protocol = args[:protocol] if args.key?(:protocol)
|
||||
@rename_to = args[:rename_to] if args.key?(:rename_to)
|
||||
@selector = args[:selector] if args.key?(:selector)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -662,7 +662,6 @@ module Google
|
|||
property :operation_deadline, as: 'operationDeadline'
|
||||
property :path_translation, as: 'pathTranslation'
|
||||
property :protocol, as: 'protocol'
|
||||
property :rename_to, as: 'renameTo'
|
||||
property :selector, as: 'selector'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/service-consumer-management/docs/overview
|
||||
module ServiceconsumermanagementV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20200506'
|
||||
REVISION = '20200516'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -441,36 +441,6 @@ module Google
|
|||
# @return [String]
|
||||
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.
|
||||
# Refer to selector for syntax details.
|
||||
# Corresponds to the JSON property `selector`
|
||||
|
@ -491,7 +461,6 @@ module Google
|
|||
@operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline)
|
||||
@path_translation = args[:path_translation] if args.key?(:path_translation)
|
||||
@protocol = args[:protocol] if args.key?(:protocol)
|
||||
@rename_to = args[:rename_to] if args.key?(:rename_to)
|
||||
@selector = args[:selector] if args.key?(:selector)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -569,7 +569,6 @@ module Google
|
|||
property :operation_deadline, as: 'operationDeadline'
|
||||
property :path_translation, as: 'pathTranslation'
|
||||
property :protocol, as: 'protocol'
|
||||
property :rename_to, as: 'renameTo'
|
||||
property :selector, as: 'selector'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
|
||||
module ServicenetworkingV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200506'
|
||||
REVISION = '20200516'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -595,36 +595,6 @@ module Google
|
|||
# @return [String]
|
||||
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.
|
||||
# Refer to selector for syntax details.
|
||||
# Corresponds to the JSON property `selector`
|
||||
|
@ -645,7 +615,6 @@ module Google
|
|||
@operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline)
|
||||
@path_translation = args[:path_translation] if args.key?(:path_translation)
|
||||
@protocol = args[:protocol] if args.key?(:protocol)
|
||||
@rename_to = args[:rename_to] if args.key?(:rename_to)
|
||||
@selector = args[:selector] if args.key?(:selector)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -583,7 +583,6 @@ module Google
|
|||
property :operation_deadline, as: 'operationDeadline'
|
||||
property :path_translation, as: 'pathTranslation'
|
||||
property :protocol, as: 'protocol'
|
||||
property :rename_to, as: 'renameTo'
|
||||
property :selector, as: 'selector'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
|
||||
module ServicenetworkingV1beta
|
||||
VERSION = 'V1beta'
|
||||
REVISION = '20200506'
|
||||
REVISION = '20200516'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -556,36 +556,6 @@ module Google
|
|||
# @return [String]
|
||||
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.
|
||||
# Refer to selector for syntax details.
|
||||
# Corresponds to the JSON property `selector`
|
||||
|
@ -606,7 +576,6 @@ module Google
|
|||
@operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline)
|
||||
@path_translation = args[:path_translation] if args.key?(:path_translation)
|
||||
@protocol = args[:protocol] if args.key?(:protocol)
|
||||
@rename_to = args[:rename_to] if args.key?(:rename_to)
|
||||
@selector = args[:selector] if args.key?(:selector)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -513,7 +513,6 @@ module Google
|
|||
property :operation_deadline, as: 'operationDeadline'
|
||||
property :path_translation, as: 'pathTranslation'
|
||||
property :protocol, as: 'protocol'
|
||||
property :rename_to, as: 'renameTo'
|
||||
property :selector, as: 'selector'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://cloud.google.com/service-usage/
|
||||
module ServiceusageV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200506'
|
||||
REVISION = '20200516'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -441,36 +441,6 @@ module Google
|
|||
# @return [String]
|
||||
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.
|
||||
# Refer to selector for syntax details.
|
||||
# Corresponds to the JSON property `selector`
|
||||
|
@ -491,7 +461,6 @@ module Google
|
|||
@operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline)
|
||||
@path_translation = args[:path_translation] if args.key?(:path_translation)
|
||||
@protocol = args[:protocol] if args.key?(:protocol)
|
||||
@rename_to = args[:rename_to] if args.key?(:rename_to)
|
||||
@selector = args[:selector] if args.key?(:selector)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -569,7 +569,6 @@ module Google
|
|||
property :operation_deadline, as: 'operationDeadline'
|
||||
property :path_translation, as: 'pathTranslation'
|
||||
property :protocol, as: 'protocol'
|
||||
property :rename_to, as: 'renameTo'
|
||||
property :selector, as: 'selector'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://cloud.google.com/service-usage/
|
||||
module ServiceusageV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20200506'
|
||||
REVISION = '20200516'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -441,36 +441,6 @@ module Google
|
|||
# @return [String]
|
||||
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.
|
||||
# Refer to selector for syntax details.
|
||||
# Corresponds to the JSON property `selector`
|
||||
|
@ -491,7 +461,6 @@ module Google
|
|||
@operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline)
|
||||
@path_translation = args[:path_translation] if args.key?(:path_translation)
|
||||
@protocol = args[:protocol] if args.key?(:protocol)
|
||||
@rename_to = args[:rename_to] if args.key?(:rename_to)
|
||||
@selector = args[:selector] if args.key?(:selector)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -605,7 +605,6 @@ module Google
|
|||
property :operation_deadline, as: 'operationDeadline'
|
||||
property :path_translation, as: 'pathTranslation'
|
||||
property :protocol, as: 'protocol'
|
||||
property :rename_to, as: 'renameTo'
|
||||
property :selector, as: 'selector'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue