feat: Automated regeneration of cloudasset v1 client (#2230)

This commit is contained in:
Yoshi Automation Bot 2021-01-07 08:49:05 -08:00 committed by GitHub
parent da290206c2
commit b9f6456d0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 103 additions and 86 deletions

View File

@ -1,7 +1,7 @@
# Release history for google-apis-cloudasset_v1 # Release history for google-apis-cloudasset_v1
### v0.1.0 (2021-01-01) ### v0.1.0 (2021-01-07)
* Regenerated from discovery document revision 20201211 * Regenerated from discovery document revision 20210101
* Regenerated using generator version 0.1.0 * Regenerated using generator version 0.1.1

View File

@ -2394,8 +2394,8 @@ module Google
# @return [Google::Apis::CloudassetV1::Policy] # @return [Google::Apis::CloudassetV1::Policy]
attr_accessor :policy attr_accessor :policy
# The project that the associated GCP resource belongs to, in the form of # Optional. The project that the associated GCP resource belongs to, in the form
# projects/`PROJECT_NUMBER`. If an IAM policy is set on a resource (like VM # 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 # 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, # 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 project field will be empty. To search against the `project`: * specify
@ -2404,8 +2404,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :project attr_accessor :project
# The full resource name of the resource associated with this IAM policy. # Required. The full resource name of the resource associated with this IAM
# Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/ # policy. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/
# instances/instance1`. See [Cloud Asset Inventory Resource Name Format](https:// # instances/instance1`. See [Cloud Asset Inventory Resource Name Format](https://
# cloud.google.com/asset-inventory/docs/resource-name-format) for more # cloud.google.com/asset-inventory/docs/resource-name-format) for more
# information. To search against the `resource`: * use a field query. Example: ` # information. To search against the `resource`: * use a field query. Example: `
@ -3018,49 +3018,52 @@ module Google
class ResourceSearchResult class ResourceSearchResult
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The additional searchable attributes of this resource. The attributes may vary # Optional. The additional searchable attributes of this resource. The
# from one resource type to another. Examples: `projectId` for Project, `dnsName` # attributes may vary from one resource type to another. Examples: `projectId`
# for DNS ManagedZone. This field contains a subset of the resource metadata # for Project, `dnsName` for DNS ManagedZone. This field contains a subset of
# fields that are returned by the List or Get APIs provided by the corresponding # the resource metadata fields that are returned by the List or Get APIs
# GCP service (e.g., Compute Engine). see [API references and supported # provided by the corresponding GCP service (e.g., Compute Engine). see [API
# searchable attributes](https://cloud.google.com/asset-inventory/docs/supported- # references and supported searchable attributes](https://cloud.google.com/asset-
# asset-types#searchable_asset_types) for more information. You can search # inventory/docs/supported-asset-types#searchable_asset_types) for more
# values of these fields through free text search. However, you should not # information. You can search values of these fields through free text search.
# consume the field programically as the field names and values may change as # However, you should not consume the field programically as the field names and
# the GCP service updates to a new incompatible API version. To search against # values may change as the GCP service updates to a new incompatible API version.
# the `additional_attributes`: * use a free text query to match the attributes # To search against the `additional_attributes`: * use a free text query to
# values. Example: to search `additional_attributes = ` dnsName: "foobar" ``, # match the attributes values. Example: to search `additional_attributes = `
# you can issue a query `foobar`. # dnsName: "foobar" ``, you can issue a query `foobar`.
# Corresponds to the JSON property `additionalAttributes` # Corresponds to the JSON property `additionalAttributes`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :additional_attributes attr_accessor :additional_attributes
# The type of this resource. Example: `compute.googleapis.com/Disk`. To search # Required. The type of this resource. Example: `compute.googleapis.com/Disk`.
# against the `asset_type`: * specify the `asset_type` field in your search # To search against the `asset_type`: * specify the `asset_type` field in your
# request. # search request.
# Corresponds to the JSON property `assetType` # Corresponds to the JSON property `assetType`
# @return [String] # @return [String]
attr_accessor :asset_type attr_accessor :asset_type
# One or more paragraphs of text description of this resource. Maximum length # Optional. One or more paragraphs of text description of this resource. Maximum
# could be up to 1M bytes. To search against the `description`: * use a field # length could be up to 1M bytes. This field is available only when the resource'
# query. Example: `description:"*important instance*"` * use a free text query. # s proto contains it. To search against the `description`: * use a field query.
# Example: `"*important instance*"` # Example: `description:"*important instance*"` * use a free text query. Example:
# `"*important instance*"`
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# The display name of this resource. To search against the `display_name`: * use # Optional. The display name of this resource. This field is available only when
# the resource's proto contains it. To search against the `display_name`: * use
# a field query. Example: `displayName:"My Instance"` * use a free text query. # a field query. Example: `displayName:"My Instance"` * use a free text query.
# Example: `"My Instance"` # Example: `"My Instance"`
# Corresponds to the JSON property `displayName` # Corresponds to the JSON property `displayName`
# @return [String] # @return [String]
attr_accessor :display_name attr_accessor :display_name
# Labels associated with this resource. See [Labelling and grouping GCP # Optional. Labels associated with this resource. See [Labelling and grouping
# resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping- # GCP resources](https://cloud.google.com/blog/products/gcp/labelling-and-
# your-google-cloud-platform-resources) for more information. To search against # grouping-your-google-cloud-platform-resources) for more information. This
# the `labels`: * use a field query: - query on any label's key or value. # field is available only when the resource's proto contains it. To search
# against the `labels`: * use a field query: - query on any label's key or value.
# Example: `labels:prod` - query by a given label. Example: `labels.env:prod` - # Example: `labels:prod` - query by a given label. Example: `labels.env:prod` -
# query by a given label's existence. Example: `labels.env:*` * use a free text # query by a given label's existence. Example: `labels.env:*` * use a free text
# query. Example: `prod` # query. Example: `prod`
@ -3068,36 +3071,39 @@ module Google
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
# Location can be `global`, regional like `us-east1`, or zonal like `us-west1-b`. # Optional. Location can be `global`, regional like `us-east1`, or zonal like `
# To search against the `location`: * use a field query. Example: `location:us- # us-west1-b`. This field is available only when the resource's proto contains
# west*` * use a free text query. Example: `us-west*` # it. 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` # Corresponds to the JSON property `location`
# @return [String] # @return [String]
attr_accessor :location attr_accessor :location
# The full resource name of this resource. Example: `//compute.googleapis.com/ # Required. The full resource name of this resource. Example: `//compute.
# projects/my_project_123/zones/zone1/instances/instance1`. See [Cloud Asset # googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See [
# Inventory Resource Name Format](https://cloud.google.com/asset-inventory/docs/ # Cloud Asset Inventory Resource Name Format](https://cloud.google.com/asset-
# resource-name-format) for more information. To search against the `name`: * # inventory/docs/resource-name-format) for more information. To search against
# use a field query. Example: `name:instance1` * use a free text query. Example: # the `name`: * use a field query. Example: `name:instance1` * use a free text
# `instance1` # query. Example: `instance1`
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Network tags associated with this resource. Like labels, network tags are a # Optional. Network tags associated with this resource. Like labels, network
# type of annotations used to group GCP resources. See [Labelling GCP resources]( # tags are a type of annotations used to group GCP resources. See [Labelling GCP
# https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google- # resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-
# cloud-platform-resources) for more information. To search against the ` # your-google-cloud-platform-resources) for more information. This field is
# available only when the resource's proto contains it. To search against the `
# network_tags`: * use a field query. Example: `networkTags:internal` * use a # network_tags`: * use a field query. Example: `networkTags:internal` * use a
# free text query. Example: `internal` # free text query. Example: `internal`
# Corresponds to the JSON property `networkTags` # Corresponds to the JSON property `networkTags`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :network_tags attr_accessor :network_tags
# The project that this resource belongs to, in the form of projects/` # Optional. The project that this resource belongs to, in the form of projects/`
# PROJECT_NUMBER`. To search against the `project`: * specify the `scope` field # PROJECT_NUMBER`. This field is available when the resource belongs to a
# as this project in your search request. # project. To search against the `project`: * specify the `scope` field as this
# project in your search request.
# Corresponds to the JSON property `project` # Corresponds to the JSON property `project`
# @return [String] # @return [String]
attr_accessor :project attr_accessor :project

View File

@ -19,10 +19,10 @@ module Google
GEM_VERSION = "0.1.0" GEM_VERSION = "0.1.0"
# Version of the code generator used to generate this client # Version of the code generator used to generate this client
GENERATOR_VERSION = "0.1.0" GENERATOR_VERSION = "0.1.1"
# Revision of the discovery document this client was generated from # Revision of the discovery document this client was generated from
REVISION = "20201211" REVISION = "20210101"
end end
end end
end end

View File

@ -545,21 +545,28 @@ module Google
# Optional. The query statement. See [how to construct a query](https://cloud. # Optional. The query statement. See [how to construct a query](https://cloud.
# google.com/asset-inventory/docs/searching-iam-policies# # google.com/asset-inventory/docs/searching-iam-policies#
# how_to_construct_a_query) for more information. If not specified or empty, it # how_to_construct_a_query) for more information. If not specified or empty, it
# will search all the IAM policies within the specified `scope`. Examples: * ` # will search all the IAM policies within the specified `scope`. Note that the
# policy:amy@gmail.com` to find IAM policy bindings that specify user "amy@gmail. # query string is compared against each Cloud IAM policy binding, including its
# com". * `policy:roles/compute.admin` to find IAM policy bindings that specify # members, roles, and Cloud IAM conditions. The returned Cloud IAM policies will
# the Compute Admin role. * `policy.role.permissions:storage.buckets.update` to # only contain the bindings that match your query. To learn more about the IAM
# find IAM policy bindings that specify a role containing "storage.buckets. # policy structure, see [IAM policy doc](https://cloud.google.com/iam/docs/
# update" permission. Note that if callers don't have `iam.roles.get` access to # policies#structure). Examples: * `policy:amy@gmail.com` to find IAM policy
# a role's included permissions, policy bindings that specify this role will be # bindings that specify user "amy@gmail.com". * `policy:roles/compute.admin` to
# dropped from the search results. * `resource:organizations/123456` to find IAM # find IAM policy bindings that specify the Compute Admin role. * `policy.role.
# policy bindings that are set on "organizations/123456". * `Important` to find # permissions:storage.buckets.update` to find IAM policy bindings that specify a
# IAM policy bindings that contain "Important" as a word in any of the # role containing "storage.buckets.update" permission. Note that if callers don'
# searchable fields (except for the included permissions). * `*por*` to find IAM # t have `iam.roles.get` access to a role's included permissions, policy
# policy bindings that contain "por" as a substring in any of the searchable # bindings that specify this role will be dropped from the search results. * `
# fields (except for the included permissions). * `resource:(instance1 OR # resource:organizations/123456` to find IAM policy bindings that are set on "
# instance2) policy:amy` to find IAM policy bindings that are set on resources " # organizations/123456". * `resource=//cloudresourcemanager.googleapis.com/
# instance1" or "instance2" and also specify user "amy". # projects/myproject` to find IAM policy bindings that are set on the project
# named "myproject". * `Important` to find IAM policy bindings that contain "
# Important" as a word in any of the searchable fields (except for the included
# permissions). * `*por*` to find IAM policy bindings that contain "por" as a
# substring in any of the searchable fields (except for the included permissions)
# . * `resource:(instance1 OR instance2) policy:amy` to find IAM policy bindings
# that are set on resources "instance1" or "instance2" and also specify user "
# amy".
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -606,7 +613,14 @@ module Google
# @param [Array<String>, String] asset_types # @param [Array<String>, String] asset_types
# Optional. A list of asset types that this request searches for. If empty, it # 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- # will search all the [searchable asset types](https://cloud.google.com/asset-
# inventory/docs/supported-asset-types#searchable_asset_types). # inventory/docs/supported-asset-types#searchable_asset_types). Regular
# expressions are also supported. For example: * "compute.googleapis.com.*"
# snapshots resources whose asset type starts with "compute.googleapis.com". * ".
# *Instance" snapshots resources whose asset type ends with "Instance". * ".*
# Instance.*" snapshots resources whose asset type contains "Instance". See [RE2]
# (https://github.com/google/re2/wiki/Syntax) for all supported regular
# expression syntax. If the regular expression does not match any supported
# asset type, an INVALID_ARGUMENT error will be returned.
# @param [String] order_by # @param [String] order_by
# Optional. A comma separated list of fields specifying the sorting order of the # 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 # results. The default order is ascending. Add " DESC" after the field name to
@ -629,25 +643,22 @@ module Google
# Optional. The query statement. See [how to construct a query](http://cloud. # Optional. The query statement. See [how to construct a query](http://cloud.
# google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query) # google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
# for more information. If not specified or empty, it will search all the # for more information. If not specified or empty, it will search all the
# resources within the specified `scope`. Note that the query string is compared # resources within the specified `scope`. Examples: * `name:Important` to find
# against each Cloud IAM policy binding, including its members, roles, and Cloud # Cloud resources whose name contains "Important" as a word. * `name=Important`
# IAM conditions. The returned Cloud IAM policies will only contain the bindings # to find the Cloud resource whose name is exactly "Important". * `displayName:
# that match your query. To learn more about the IAM policy structure, see [IAM # Impor*` to find Cloud resources whose display name contains "Impor" as a
# policy doc](https://cloud.google.com/iam/docs/policies#structure). Examples: * # prefix. * `description:*por*` to find Cloud resources whose description
# `name:Important` to find Cloud resources whose name contains "Important" as a # contains "por" as a substring. * `location:us-west*` to find Cloud resources
# word. * `displayName:Impor*` to find Cloud resources whose display name # whose location is prefixed with "us-west". * `labels:prod` to find Cloud
# contains "Impor" as a prefix. * `description:*por*` to find Cloud resources # resources whose labels contain "prod" as a key or value. * `labels.env:prod`
# whose description contains "por" as a substring. * `location:us-west*` to find # to find Cloud resources that have a label "env" and its value is "prod". * `
# Cloud resources whose location is prefixed with "us-west". * `labels:prod` to # labels.env:*` to find Cloud resources that have a label "env". * `Important`
# find Cloud resources whose labels contain "prod" as a key or value. * `labels. # to find Cloud resources that contain "Important" as a word in any of the
# env:prod` to find Cloud resources that have a label "env" and its value is " # searchable fields. * `Impor*` to find Cloud resources that contain "Impor" as
# prod". * `labels.env:*` to find Cloud resources that have a label "env". * ` # a prefix in any of the searchable fields. * `*por*` to find Cloud resources
# Important` to find Cloud resources that contain "Important" as a word in any # that contain "por" as a substring in any of the searchable fields. * `
# of the searchable fields. * `Impor*` to find Cloud resources that contain " # Important location:(us-west1 OR global)` to find Cloud resources that contain "
# Impor" as a prefix in any of the searchable fields. * `*por*` to find Cloud # Important" as a word in any of the searchable fields and are also located in
# resources that contain "por" as a substring in any of the searchable fields. *
# `Important location:(us-west1 OR global)` to find Cloud resources that contain
# "Important" as a word in any of the searchable fields and are also located in
# the "us-west1" region or the "global" location. # the "us-west1" region or the "global" location.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.

View File

@ -4,7 +4,7 @@
"git": { "git": {
"name": ".", "name": ".",
"remote": "https://github.com/googleapis/google-api-ruby-client.git", "remote": "https://github.com/googleapis/google-api-ruby-client.git",
"sha": "e023fd6f01de7cda74a2820cb217f0b3ad2a65ae" "sha": "6de8b4ee653db67c0e789203767a89b32fcf8a51"
} }
} }
] ]