google-apis-cloudasset_v1 0.9.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 558a06e37bce99cf51a7c6fbc13888f2ba23212ae707fea12ee49cc5e310badf
4
- data.tar.gz: 2986b2615d0b7508a6ba66b826f4c9aeb59a6bf166b7eec0048aefa88d0e6067
3
+ metadata.gz: 1aa790cf6afd014b6b04635946c1fd4d0ca9da4677357cc39e94765451c2bdc4
4
+ data.tar.gz: 9a9a0934768c0d5c51522a9ee0a1f4fd48040714da4f355a9a4ac7a78bf9d97a
5
5
  SHA512:
6
- metadata.gz: abb0f7f0990887b3590047b883f96ef50193e11eda30f302699550460924f0424d642598d43c98e013f80528575815ebe57d858a2dd3bcc0023b61102e54cbb9
7
- data.tar.gz: 5c5a2bd69c6dcec6567b68b6cfc5e0305e0b41ab2ce137e749ef3e8dd80b4703438b1c394ba0ae5fd8a9ec5defb72ffed58ff41c51a2a2db43a69735af43a2ba
6
+ metadata.gz: 6dadb069801247f2f79e59b1c8018da60843b69dfe09828d8fabdf17f069a32271c9facb5cb9cf88a886b4dc599e3d617c57784ce432e170f67aea6c0288e281
7
+ data.tar.gz: d2df18c4237dbe5f4895b4bf128f7ca61ea52c77ae424563d686513ac4cc49b4857459ce4f187f9bf5534c7cca89acc110547cb0a0b7c3d0860f7f08639e18da
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-cloudasset_v1
2
2
 
3
+ ### v0.13.0 (2021-07-21)
4
+
5
+ * Regenerated from discovery document revision 20210716
6
+
7
+ ### v0.12.0 (2021-07-14)
8
+
9
+ * Regenerated from discovery document revision 20210709
10
+
11
+ ### v0.11.0 (2021-06-30)
12
+
13
+ * Regenerated from discovery document revision 20210625
14
+ * Regenerated using generator version 0.4.0
15
+
16
+ ### v0.10.0 (2021-06-24)
17
+
18
+ * Unspecified changes
19
+
3
20
  ### v0.9.0 (2021-06-16)
4
21
 
5
22
  * Regenerated from discovery document revision 20210611
@@ -282,6 +282,37 @@ module Google
282
282
  end
283
283
  end
284
284
 
285
+ # Attached resource representation, which is defined by the corresponding
286
+ # service provider. It represents an attached resource's payload.
287
+ class AttachedResource
288
+ include Google::Apis::Core::Hashable
289
+
290
+ # The type of this attached resource. Example: `osconfig.googleapis.com/
291
+ # Inventory` You can find the supported attached asset types of each resource in
292
+ # this table: `https://cloud.google.com/asset-inventory/docs/supported-asset-
293
+ # types#searchable_asset_types`
294
+ # Corresponds to the JSON property `assetType`
295
+ # @return [String]
296
+ attr_accessor :asset_type
297
+
298
+ # Versioned resource representations of this attached resource. This is repeated
299
+ # because there could be multiple versions of the attached resource
300
+ # representations during version migration.
301
+ # Corresponds to the JSON property `versionedResources`
302
+ # @return [Array<Google::Apis::CloudassetV1::VersionedResource>]
303
+ attr_accessor :versioned_resources
304
+
305
+ def initialize(**args)
306
+ update!(**args)
307
+ end
308
+
309
+ # Update properties of this object
310
+ def update!(**args)
311
+ @asset_type = args[:asset_type] if args.key?(:asset_type)
312
+ @versioned_resources = args[:versioned_resources] if args.key?(:versioned_resources)
313
+ end
314
+ end
315
+
285
316
  # Specifies the audit configuration for a service. The configuration determines
286
317
  # which permission types are logged, and what identities, if any, are exempted
287
318
  # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
@@ -3605,6 +3636,15 @@ module Google
3605
3636
  # @return [String]
3606
3637
  attr_accessor :asset_type
3607
3638
 
3639
+ # Attached resources of this resource. For example, an OSConfig Inventory is an
3640
+ # attached resource of a Compute Instance. This field is repeated because a
3641
+ # resource could have multiple attached resources. This `attached_resources`
3642
+ # field is not searchable. Some attributes of the attached resources are exposed
3643
+ # in `additional_attributes` field, so as to allow users to search on them.
3644
+ # Corresponds to the JSON property `attachedResources`
3645
+ # @return [Array<Google::Apis::CloudassetV1::AttachedResource>]
3646
+ attr_accessor :attached_resources
3647
+
3608
3648
  # The create timestamp of this resource, at which the resource was created. The
3609
3649
  # granularity is in seconds. Timestamp.nanos will always be 0. This field is
3610
3650
  # available only when the resource's proto contains it. To search against `
@@ -3755,6 +3795,15 @@ module Google
3755
3795
  # @return [String]
3756
3796
  attr_accessor :update_time
3757
3797
 
3798
+ # Versioned resource representations of this resource. This is repeated because
3799
+ # there could be multiple versions of resource representations during version
3800
+ # migration. This `versioned_resources` field is not searchable. Some attributes
3801
+ # of the resource representations are exposed in `additional_attributes` field,
3802
+ # so as to allow users to search on them.
3803
+ # Corresponds to the JSON property `versionedResources`
3804
+ # @return [Array<Google::Apis::CloudassetV1::VersionedResource>]
3805
+ attr_accessor :versioned_resources
3806
+
3758
3807
  def initialize(**args)
3759
3808
  update!(**args)
3760
3809
  end
@@ -3763,6 +3812,7 @@ module Google
3763
3812
  def update!(**args)
3764
3813
  @additional_attributes = args[:additional_attributes] if args.key?(:additional_attributes)
3765
3814
  @asset_type = args[:asset_type] if args.key?(:asset_type)
3815
+ @attached_resources = args[:attached_resources] if args.key?(:attached_resources)
3766
3816
  @create_time = args[:create_time] if args.key?(:create_time)
3767
3817
  @description = args[:description] if args.key?(:description)
3768
3818
  @display_name = args[:display_name] if args.key?(:display_name)
@@ -3778,6 +3828,7 @@ module Google
3778
3828
  @project = args[:project] if args.key?(:project)
3779
3829
  @state = args[:state] if args.key?(:state)
3780
3830
  @update_time = args[:update_time] if args.key?(:update_time)
3831
+ @versioned_resources = args[:versioned_resources] if args.key?(:versioned_resources)
3781
3832
  end
3782
3833
  end
3783
3834
 
@@ -4116,6 +4167,40 @@ module Google
4116
4167
  end
4117
4168
  end
4118
4169
 
4170
+ # Resource representation as defined by the corresponding service providing the
4171
+ # resource for a given API version.
4172
+ class VersionedResource
4173
+ include Google::Apis::Core::Hashable
4174
+
4175
+ # JSON representation of the resource as defined by the corresponding service
4176
+ # providing this resource. Example: If the resource is an instance provided by
4177
+ # Compute Engine, this field will contain the JSON representation of the
4178
+ # instance as defined by Compute Engine: `https://cloud.google.com/compute/docs/
4179
+ # reference/rest/v1/instances`. You can find the resource definition for each
4180
+ # supported resource type in this table: `https://cloud.google.com/asset-
4181
+ # inventory/docs/supported-asset-types#searchable_asset_types`
4182
+ # Corresponds to the JSON property `resource`
4183
+ # @return [Hash<String,Object>]
4184
+ attr_accessor :resource
4185
+
4186
+ # API version of the resource. Example: If the resource is an instance provided
4187
+ # by Compute Engine v1 API as defined in `https://cloud.google.com/compute/docs/
4188
+ # reference/rest/v1/instances`, version will be "v1".
4189
+ # Corresponds to the JSON property `version`
4190
+ # @return [String]
4191
+ attr_accessor :version
4192
+
4193
+ def initialize(**args)
4194
+ update!(**args)
4195
+ end
4196
+
4197
+ # Update properties of this object
4198
+ def update!(**args)
4199
+ @resource = args[:resource] if args.key?(:resource)
4200
+ @version = args[:version] if args.key?(:version)
4201
+ end
4202
+ end
4203
+
4119
4204
  # Information related to a Quick Fix Engineering package. Fields are taken from
4120
4205
  # Windows QuickFixEngineering Interface and match the source names: https://docs.
4121
4206
  # 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.9.0"
19
+ GEM_VERSION = "0.13.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 = "20210716"
26
26
  end
27
27
  end
28
28
  end
@@ -58,6 +58,12 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
+ class AttachedResource
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
61
67
  class AuditConfig
62
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
69
 
@@ -562,6 +568,12 @@ module Google
562
568
  include Google::Apis::Core::JsonObjectSupport
563
569
  end
564
570
 
571
+ class VersionedResource
572
+ class Representation < Google::Apis::Core::JsonRepresentation; end
573
+
574
+ include Google::Apis::Core::JsonObjectSupport
575
+ end
576
+
565
577
  class WindowsQuickFixEngineeringPackage
566
578
  class Representation < Google::Apis::Core::JsonRepresentation; end
567
579
 
@@ -653,6 +665,15 @@ module Google
653
665
  end
654
666
  end
655
667
 
668
+ class AttachedResource
669
+ # @private
670
+ class Representation < Google::Apis::Core::JsonRepresentation
671
+ property :asset_type, as: 'assetType'
672
+ collection :versioned_resources, as: 'versionedResources', class: Google::Apis::CloudassetV1::VersionedResource, decorator: Google::Apis::CloudassetV1::VersionedResource::Representation
673
+
674
+ end
675
+ end
676
+
656
677
  class AuditConfig
657
678
  # @private
658
679
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1419,6 +1440,8 @@ module Google
1419
1440
  class Representation < Google::Apis::Core::JsonRepresentation
1420
1441
  hash :additional_attributes, as: 'additionalAttributes'
1421
1442
  property :asset_type, as: 'assetType'
1443
+ collection :attached_resources, as: 'attachedResources', class: Google::Apis::CloudassetV1::AttachedResource, decorator: Google::Apis::CloudassetV1::AttachedResource::Representation
1444
+
1422
1445
  property :create_time, as: 'createTime'
1423
1446
  property :description, as: 'description'
1424
1447
  property :display_name, as: 'displayName'
@@ -1434,6 +1457,8 @@ module Google
1434
1457
  property :project, as: 'project'
1435
1458
  property :state, as: 'state'
1436
1459
  property :update_time, as: 'updateTime'
1460
+ collection :versioned_resources, as: 'versionedResources', class: Google::Apis::CloudassetV1::VersionedResource, decorator: Google::Apis::CloudassetV1::VersionedResource::Representation
1461
+
1437
1462
  end
1438
1463
  end
1439
1464
 
@@ -1533,6 +1558,14 @@ module Google
1533
1558
  end
1534
1559
  end
1535
1560
 
1561
+ class VersionedResource
1562
+ # @private
1563
+ class Representation < Google::Apis::Core::JsonRepresentation
1564
+ hash :resource, as: 'resource'
1565
+ property :version, as: 'version'
1566
+ end
1567
+ end
1568
+
1536
1569
  class WindowsQuickFixEngineeringPackage
1537
1570
  # @private
1538
1571
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -452,7 +452,7 @@ module Google
452
452
  # method implements the google.longrunning.Operation, which allows you to track
453
453
  # the operation status. We recommend intervals of at least 2 seconds with
454
454
  # exponential backoff retry to poll the operation result. The metadata contains
455
- # the request to help callers to map responses to requests.
455
+ # the metadata for the long-running operation.
456
456
  # @param [String] scope
457
457
  # Required. The relative name of the root asset. Only resources and IAM policies
458
458
  # within the scope will be analyzed. This can only be an organization number (
@@ -804,18 +804,29 @@ module Google
804
804
  # kmsKey:key` to find Cloud resources encrypted with a customer-managed
805
805
  # encryption key whose name contains the word "key". * `state:ACTIVE` to find
806
806
  # Cloud resources whose state contains "ACTIVE" as a word. * `NOT state:ACTIVE`
807
- # to find ``gcp_name`` resources whose state doesn't contain "ACTIVE" as a word.
808
- # * `createTime<1609459200` to find Cloud resources that were created before "
809
- # 2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of "2021-01-01 00:
810
- # 00:00 UTC" in seconds. * `updateTime>1609459200` to find Cloud resources that
811
- # were updated after "2021-01-01 00:00:00 UTC". 1609459200 is the epoch
812
- # timestamp of "2021-01-01 00:00:00 UTC" in seconds. * `Important` to find Cloud
813
- # resources that contain "Important" as a word in any of the searchable fields. *
814
- # `Impor*` to find Cloud resources that contain "Impor" as a prefix of any word
815
- # in any of the searchable fields. * `Important location:(us-west1 OR global)`
816
- # to find Cloud resources that contain "Important" as a word in any of the
817
- # searchable fields and are also located in the "us-west1" region or the "global"
818
- # location.
807
+ # to find Cloud resources whose state doesn't contain "ACTIVE" as a word. * `
808
+ # createTime<1609459200` to find Cloud resources that were created before "2021-
809
+ # 01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of "2021-01-01 00:00:00
810
+ # UTC" in seconds. * `updateTime>1609459200` to find Cloud resources that were
811
+ # updated after "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of "
812
+ # 2021-01-01 00:00:00 UTC" in seconds. * `Important` to find Cloud resources
813
+ # that contain "Important" as a word in any of the searchable fields. * `Impor*`
814
+ # to find Cloud resources that contain "Impor" as a prefix of any word in any of
815
+ # the searchable fields. * `Important location:(us-west1 OR global)` to find
816
+ # Cloud resources that contain "Important" as a word in any of the searchable
817
+ # fields and are also located in the "us-west1" region or the "global" location.
818
+ # @param [String] read_mask
819
+ # Optional. A comma-separated list of fields specifying which fields to be
820
+ # returned in ResourceSearchResult. Only '*' or combination of top level fields
821
+ # can be specified. Field names of both snake_case and camelCase are supported.
822
+ # Examples: `"*"`, `"name,location"`, `"name,versionedResources"`. The read_mask
823
+ # paths must be valid field paths listed but not limited to (both snake_case and
824
+ # camelCase are supported): * name * assetType * project * displayName *
825
+ # description * location * labels * networkTags * kmsKey * createTime *
826
+ # updateTime * state * additionalAttributes * versionedResources If read_mask is
827
+ # not specified, all fields except versionedResources will be returned. If only '
828
+ # *' is specified, all fields including versionedResources will be returned. Any
829
+ # invalid field path will trigger INVALID_ARGUMENT error.
819
830
  # @param [String] fields
820
831
  # Selector specifying which fields to include in a partial response.
821
832
  # @param [String] quota_user
@@ -833,7 +844,7 @@ module Google
833
844
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
834
845
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
835
846
  # @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)
847
+ 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
848
  command = make_simple_command(:get, 'v1/{+scope}:searchAllResources', options)
838
849
  command.response_representation = Google::Apis::CloudassetV1::SearchAllResourcesResponse::Representation
839
850
  command.response_class = Google::Apis::CloudassetV1::SearchAllResourcesResponse
@@ -843,6 +854,7 @@ module Google
843
854
  command.query['pageSize'] = page_size unless page_size.nil?
844
855
  command.query['pageToken'] = page_token unless page_token.nil?
845
856
  command.query['query'] = query unless query.nil?
857
+ command.query['readMask'] = read_mask unless read_mask.nil?
846
858
  command.query['fields'] = fields unless fields.nil?
847
859
  command.query['quotaUser'] = quota_user unless quota_user.nil?
848
860
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudasset_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.13.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-21 00:00:00.000000000 Z
11
+ date: 2021-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Cloud Asset API V1. Simple REST clients
28
34
  are Ruby client libraries that provide access to Google services via their HTTP
29
35
  REST API endpoints. These libraries are generated and updated automatically based
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudasset_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1/v0.9.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1/v0.13.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudasset_v1
57
63
  post_install_message:
58
64
  rdoc_options: []