feat: Automated regeneration of cloudasset v1 client (#2230)
This commit is contained in:
		
							parent
							
								
									da290206c2
								
							
						
					
					
						commit
						b9f6456d0c
					
				| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
# 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 using generator version 0.1.0
 | 
			
		||||
* Regenerated from discovery document revision 20210101
 | 
			
		||||
* Regenerated using generator version 0.1.1
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2394,8 +2394,8 @@ module Google
 | 
			
		|||
        # @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
 | 
			
		||||
        # Optional. 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
 | 
			
		||||
| 
						 | 
				
			
			@ -2404,8 +2404,8 @@ module Google
 | 
			
		|||
        # @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/
 | 
			
		||||
        # Required. 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: `
 | 
			
		||||
| 
						 | 
				
			
			@ -3018,49 +3018,52 @@ module Google
 | 
			
		|||
      class ResourceSearchResult
 | 
			
		||||
        include Google::Apis::Core::Hashable
 | 
			
		||||
      
 | 
			
		||||
        # The additional searchable attributes of this resource. The attributes may vary
 | 
			
		||||
        # from one resource type to another. Examples: `projectId` for Project, `dnsName`
 | 
			
		||||
        # for DNS ManagedZone. This field contains a subset of the resource metadata
 | 
			
		||||
        # fields that are returned by the List or Get APIs provided by the corresponding
 | 
			
		||||
        # GCP service (e.g., Compute Engine). see [API references and supported
 | 
			
		||||
        # searchable attributes](https://cloud.google.com/asset-inventory/docs/supported-
 | 
			
		||||
        # asset-types#searchable_asset_types) for more information. You can search
 | 
			
		||||
        # values of these fields through free text search. However, you should not
 | 
			
		||||
        # consume the field programically as the field names and values may change as
 | 
			
		||||
        # the GCP service updates to a new incompatible API version. 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`.
 | 
			
		||||
        # Optional. The additional searchable attributes of this resource. The
 | 
			
		||||
        # attributes may vary from one resource type to another. Examples: `projectId`
 | 
			
		||||
        # for Project, `dnsName` for DNS ManagedZone. This field contains a subset of
 | 
			
		||||
        # the resource metadata fields that are returned by the List or Get APIs
 | 
			
		||||
        # provided by the corresponding GCP service (e.g., Compute Engine). see [API
 | 
			
		||||
        # references and supported searchable attributes](https://cloud.google.com/asset-
 | 
			
		||||
        # inventory/docs/supported-asset-types#searchable_asset_types) for more
 | 
			
		||||
        # information. You can search values of these fields through free text search.
 | 
			
		||||
        # However, you should not consume the field programically as the field names and
 | 
			
		||||
        # values may change as the GCP service updates to a new incompatible API version.
 | 
			
		||||
        # 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.
 | 
			
		||||
        # Required. 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*"`
 | 
			
		||||
        # Optional. One or more paragraphs of text description of this resource. Maximum
 | 
			
		||||
        # length could be up to 1M bytes. This field is available only when the resource'
 | 
			
		||||
        # s proto contains it. 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
 | 
			
		||||
        # 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.
 | 
			
		||||
        # 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: - query on any label's key or value.
 | 
			
		||||
        # Optional. 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. This
 | 
			
		||||
        # 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` -
 | 
			
		||||
        # query by a given label's existence. Example: `labels.env:*` * use a free text
 | 
			
		||||
        # query. Example: `prod`
 | 
			
		||||
| 
						 | 
				
			
			@ -3068,36 +3071,39 @@ module Google
 | 
			
		|||
        # @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*`
 | 
			
		||||
        # Optional. Location can be `global`, regional like `us-east1`, or zonal like `
 | 
			
		||||
        # us-west1-b`. This field is available only when the resource's proto contains
 | 
			
		||||
        # 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`
 | 
			
		||||
        # @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`
 | 
			
		||||
        # Required. 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 `
 | 
			
		||||
        # Optional. 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. 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
 | 
			
		||||
        # 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.
 | 
			
		||||
        # Optional. The project that this resource belongs to, in the form of projects/`
 | 
			
		||||
        # PROJECT_NUMBER`. This field is available when the resource belongs to a
 | 
			
		||||
        # project. 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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -19,10 +19,10 @@ module Google
 | 
			
		|||
      GEM_VERSION = "0.1.0"
 | 
			
		||||
 | 
			
		||||
      # 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 = "20201211"
 | 
			
		||||
      REVISION = "20210101"
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -545,21 +545,28 @@ module Google
 | 
			
		|||
        #   Optional. The query statement. See [how to construct a query](https://cloud.
 | 
			
		||||
        #   google.com/asset-inventory/docs/searching-iam-policies#
 | 
			
		||||
        #   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: * `
 | 
			
		||||
        #   policy:amy@gmail.com` to find IAM policy bindings that specify user "amy@gmail.
 | 
			
		||||
        #   com". * `policy:roles/compute.admin` to find IAM policy bindings that specify
 | 
			
		||||
        #   the Compute Admin role. * `policy.role.permissions:storage.buckets.update` to
 | 
			
		||||
        #   find IAM policy bindings that specify a role containing "storage.buckets.
 | 
			
		||||
        #   update" permission. Note that if callers don't have `iam.roles.get` access to
 | 
			
		||||
        #   a role's included permissions, policy bindings that specify this role will be
 | 
			
		||||
        #   dropped from the search results. * `resource:organizations/123456` to find IAM
 | 
			
		||||
        #   policy bindings that are set on "organizations/123456". * `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".
 | 
			
		||||
        #   will search all the IAM policies within the specified `scope`. Note that the
 | 
			
		||||
        #   query string is compared against each Cloud IAM policy binding, including its
 | 
			
		||||
        #   members, roles, and Cloud IAM conditions. The returned Cloud IAM policies will
 | 
			
		||||
        #   only contain the bindings that match your query. To learn more about the IAM
 | 
			
		||||
        #   policy structure, see [IAM policy doc](https://cloud.google.com/iam/docs/
 | 
			
		||||
        #   policies#structure). Examples: * `policy:amy@gmail.com` to find IAM policy
 | 
			
		||||
        #   bindings that specify user "amy@gmail.com". * `policy:roles/compute.admin` to
 | 
			
		||||
        #   find IAM policy bindings that specify the Compute Admin role. * `policy.role.
 | 
			
		||||
        #   permissions:storage.buckets.update` to find IAM policy bindings that specify a
 | 
			
		||||
        #   role containing "storage.buckets.update" permission. Note that if callers don'
 | 
			
		||||
        #   t have `iam.roles.get` access to a role's included permissions, policy
 | 
			
		||||
        #   bindings that specify this role will be dropped from the search results. * `
 | 
			
		||||
        #   resource:organizations/123456` to find IAM policy bindings that are set on "
 | 
			
		||||
        #   organizations/123456". * `resource=//cloudresourcemanager.googleapis.com/
 | 
			
		||||
        #   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
 | 
			
		||||
        #   Selector specifying which fields to include in a partial response.
 | 
			
		||||
        # @param [String] quota_user
 | 
			
		||||
| 
						 | 
				
			
			@ -606,7 +613,14 @@ module Google
 | 
			
		|||
        # @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).
 | 
			
		||||
        #   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
 | 
			
		||||
        #   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
 | 
			
		||||
| 
						 | 
				
			
			@ -629,25 +643,22 @@ module Google
 | 
			
		|||
        #   Optional. The query statement. See [how to construct a query](http://cloud.
 | 
			
		||||
        #   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
 | 
			
		||||
        #   resources within the specified `scope`. Note that the query string is compared
 | 
			
		||||
        #   against each Cloud IAM policy binding, including its members, roles, and Cloud
 | 
			
		||||
        #   IAM conditions. The returned Cloud IAM policies will only contain the bindings
 | 
			
		||||
        #   that match your query. To learn more about the IAM policy structure, see [IAM
 | 
			
		||||
        #   policy doc](https://cloud.google.com/iam/docs/policies#structure). 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 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 that have a label "env" and its value is "
 | 
			
		||||
        #   prod". * `labels.env:*` to find Cloud resources that have a label "env". * `
 | 
			
		||||
        #   Important` to find Cloud resources that contain "Important" as a word in any
 | 
			
		||||
        #   of the searchable fields. * `Impor*` to find Cloud resources that contain "
 | 
			
		||||
        #   Impor" as a prefix in any of the searchable fields. * `*por*` to find Cloud
 | 
			
		||||
        #   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
 | 
			
		||||
        #   resources within the specified `scope`. Examples: * `name:Important` to find
 | 
			
		||||
        #   Cloud resources whose name contains "Important" as a word. * `name=Important`
 | 
			
		||||
        #   to find the Cloud resource whose name is exactly "Important". * `displayName:
 | 
			
		||||
        #   Impor*` to find Cloud resources whose display name contains "Impor" as a
 | 
			
		||||
        #   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 that have a label "env" and its value is "prod". * `
 | 
			
		||||
        #   labels.env:*` to find Cloud resources that have a label "env". * `Important`
 | 
			
		||||
        #   to find Cloud resources that contain "Important" as a word in any of the
 | 
			
		||||
        #   searchable fields. * `Impor*` to find Cloud resources that contain "Impor" as
 | 
			
		||||
        #   a prefix in any of the searchable fields. * `*por*` to find Cloud 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.
 | 
			
		||||
        # @param [String] fields
 | 
			
		||||
        #   Selector specifying which fields to include in a partial response.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,7 +4,7 @@
 | 
			
		|||
      "git": {
 | 
			
		||||
        "name": ".",
 | 
			
		||||
        "remote": "https://github.com/googleapis/google-api-ruby-client.git",
 | 
			
		||||
        "sha": "e023fd6f01de7cda74a2820cb217f0b3ad2a65ae"
 | 
			
		||||
        "sha": "6de8b4ee653db67c0e789203767a89b32fcf8a51"
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  ]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue