google-apis-cloudasset_v1 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d706aea49112e231e679cb9b1d672f4bc93e53c6e2e9e6296fff1aa8c94027a2
4
- data.tar.gz: b76e65d8fd8201694995619a7592fdd4e652102ede64e3e33a641291f88ab6e9
3
+ metadata.gz: 96056a4dab9fe27dcef98e70e3be48fb7b0eb310a031f4221872f51b963d40fd
4
+ data.tar.gz: d78608bea7d4c775803cbe15f89b8491b3977db6bdc294198bf791739dd95725
5
5
  SHA512:
6
- metadata.gz: b47fa734bc07f41e4590c8b5fa3b3317301d1cf60579728ca16eaad8064d4c2001e8b1e7ac23cff0fadffb617259d2ff030ca956ad7acd48c5349050dc88e2bf
7
- data.tar.gz: 856cec339376a9f92ffb5deb885031aa900328d475e04bc6007975890b64b7925a18cc9e596747e7ea6e0fa3f5c5d80591d07484f3fce5b845c8337d2e72dada
6
+ metadata.gz: f116def195bdc557c96d191dd92d33cdccb90af4ee73c0b32f0f12b2bfabcbc920eabb90ca4a63597d77ce2f7ab263bda4ef7b457176b20b09915ec1104a95e0
7
+ data.tar.gz: 6339411725ca423360885299ecf8051f425263dabe9a54ce33c17a4e78516cb5e13688ae78139583b1436d1647d98c14adb0802a14d972e3cac145d314b9f5d6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-cloudasset_v1
2
2
 
3
+ ### v0.11.0 (2021-06-30)
4
+
5
+ * Regenerated from discovery document revision 20210625
6
+ * Regenerated using generator version 0.4.0
7
+
3
8
  ### v0.10.0 (2021-06-24)
4
9
 
5
10
  * Unspecified changes
@@ -3755,6 +3755,15 @@ module Google
3755
3755
  # @return [String]
3756
3756
  attr_accessor :update_time
3757
3757
 
3758
+ # Versioned resource representations of this resource. This is repeated because
3759
+ # there could be multiple versions of resource representations during version
3760
+ # migration. This `versioned_resources` field is not searchable. Some attributes
3761
+ # of the resource representations are exposed in `additional_attributes` field,
3762
+ # so as to allow users to search on them.
3763
+ # Corresponds to the JSON property `versionedResources`
3764
+ # @return [Array<Google::Apis::CloudassetV1::VersionedResource>]
3765
+ attr_accessor :versioned_resources
3766
+
3758
3767
  def initialize(**args)
3759
3768
  update!(**args)
3760
3769
  end
@@ -3778,6 +3787,7 @@ module Google
3778
3787
  @project = args[:project] if args.key?(:project)
3779
3788
  @state = args[:state] if args.key?(:state)
3780
3789
  @update_time = args[:update_time] if args.key?(:update_time)
3790
+ @versioned_resources = args[:versioned_resources] if args.key?(:versioned_resources)
3781
3791
  end
3782
3792
  end
3783
3793
 
@@ -4116,6 +4126,40 @@ module Google
4116
4126
  end
4117
4127
  end
4118
4128
 
4129
+ # Resource representation as defined by the corresponding service providing the
4130
+ # resource for a given API version.
4131
+ class VersionedResource
4132
+ include Google::Apis::Core::Hashable
4133
+
4134
+ # JSON representation of the resource as defined by the corresponding service
4135
+ # providing this resource. Example: If the resource is an instance provided by
4136
+ # Compute Engine, this field will contain the JSON representation of the
4137
+ # instance as defined by Compute Engine: `https://cloud.google.com/compute/docs/
4138
+ # reference/rest/v1/instances`. You can find the resource definition for each
4139
+ # supported resource type in this table: `https://cloud.google.com/asset-
4140
+ # inventory/docs/supported-asset-types#searchable_asset_types`
4141
+ # Corresponds to the JSON property `resource`
4142
+ # @return [Hash<String,Object>]
4143
+ attr_accessor :resource
4144
+
4145
+ # API version of the resource. Example: If the resource is an instance provided
4146
+ # by Compute Engine v1 API as defined in `https://cloud.google.com/compute/docs/
4147
+ # reference/rest/v1/instances`, version will be "v1".
4148
+ # Corresponds to the JSON property `version`
4149
+ # @return [String]
4150
+ attr_accessor :version
4151
+
4152
+ def initialize(**args)
4153
+ update!(**args)
4154
+ end
4155
+
4156
+ # Update properties of this object
4157
+ def update!(**args)
4158
+ @resource = args[:resource] if args.key?(:resource)
4159
+ @version = args[:version] if args.key?(:version)
4160
+ end
4161
+ end
4162
+
4119
4163
  # Information related to a Quick Fix Engineering package. Fields are taken from
4120
4164
  # Windows QuickFixEngineering Interface and match the source names: https://docs.
4121
4165
  # microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudassetV1
18
18
  # Version of the google-apis-cloudasset_v1 gem
19
- GEM_VERSION = "0.10.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.3.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210611"
25
+ REVISION = "20210625"
26
26
  end
27
27
  end
28
28
  end
@@ -562,6 +562,12 @@ module Google
562
562
  include Google::Apis::Core::JsonObjectSupport
563
563
  end
564
564
 
565
+ class VersionedResource
566
+ class Representation < Google::Apis::Core::JsonRepresentation; end
567
+
568
+ include Google::Apis::Core::JsonObjectSupport
569
+ end
570
+
565
571
  class WindowsQuickFixEngineeringPackage
566
572
  class Representation < Google::Apis::Core::JsonRepresentation; end
567
573
 
@@ -1434,6 +1440,8 @@ module Google
1434
1440
  property :project, as: 'project'
1435
1441
  property :state, as: 'state'
1436
1442
  property :update_time, as: 'updateTime'
1443
+ collection :versioned_resources, as: 'versionedResources', class: Google::Apis::CloudassetV1::VersionedResource, decorator: Google::Apis::CloudassetV1::VersionedResource::Representation
1444
+
1437
1445
  end
1438
1446
  end
1439
1447
 
@@ -1533,6 +1541,14 @@ module Google
1533
1541
  end
1534
1542
  end
1535
1543
 
1544
+ class VersionedResource
1545
+ # @private
1546
+ class Representation < Google::Apis::Core::JsonRepresentation
1547
+ hash :resource, as: 'resource'
1548
+ property :version, as: 'version'
1549
+ end
1550
+ end
1551
+
1536
1552
  class WindowsQuickFixEngineeringPackage
1537
1553
  # @private
1538
1554
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -816,6 +816,20 @@ module Google
816
816
  # to find Cloud resources that contain "Important" as a word in any of the
817
817
  # searchable fields and are also located in the "us-west1" region or the "global"
818
818
  # location.
819
+ # @param [String] read_mask
820
+ # Optional. A comma-separated list of fields specifying which fields to be
821
+ # returned in ResourceSearchResult. Only '*' or combination of top level fields
822
+ # can be specified. Field names of both snake_case and camelCase are supported.
823
+ # Examples: `"*"`, `"name,location"`, `"name,versionedResources"`. The read_mask
824
+ # paths must be valid field paths listed but not limited to (both snake_case and
825
+ # camelCase are supported): * name * asset_type or assetType * project *
826
+ # display_name or displayName * description * location * labels * network_tags
827
+ # or networkTags * kms_key or kmsKey * create_time or createTime * update_time
828
+ # or updateTime * state * additional_attributes or additionalAttributes *
829
+ # versioned_resources or versionedResources If read_mask is not specified, all
830
+ # fields except versionedResources will be returned. If only '*' is specified,
831
+ # all fields including versionedResources will be returned. Any invalid field
832
+ # path will trigger INVALID_ARGUMENT error.
819
833
  # @param [String] fields
820
834
  # Selector specifying which fields to include in a partial response.
821
835
  # @param [String] quota_user
@@ -833,7 +847,7 @@ module Google
833
847
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
834
848
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
835
849
  # @raise [Google::Apis::AuthorizationError] Authorization is required
836
- 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)
850
+ def search_all_resources(scope, asset_types: nil, order_by: nil, page_size: nil, page_token: nil, query: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
837
851
  command = make_simple_command(:get, 'v1/{+scope}:searchAllResources', options)
838
852
  command.response_representation = Google::Apis::CloudassetV1::SearchAllResourcesResponse::Representation
839
853
  command.response_class = Google::Apis::CloudassetV1::SearchAllResourcesResponse
@@ -843,6 +857,7 @@ module Google
843
857
  command.query['pageSize'] = page_size unless page_size.nil?
844
858
  command.query['pageToken'] = page_token unless page_token.nil?
845
859
  command.query['query'] = query unless query.nil?
860
+ command.query['readMask'] = read_mask unless read_mask.nil?
846
861
  command.query['fields'] = fields unless fields.nil?
847
862
  command.query['quotaUser'] = quota_user unless quota_user.nil?
848
863
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudasset_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-28 00:00:00.000000000 Z
11
+ date: 2021-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.3'
19
+ version: '0.4'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.3'
29
+ version: '0.4'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudasset_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1/v0.10.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1/v0.11.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudasset_v1
63
63
  post_install_message:
64
64
  rdoc_options: []