google-apis-cloudasset_v1 0.11.0 → 0.12.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: 96056a4dab9fe27dcef98e70e3be48fb7b0eb310a031f4221872f51b963d40fd
4
- data.tar.gz: d78608bea7d4c775803cbe15f89b8491b3977db6bdc294198bf791739dd95725
3
+ metadata.gz: c38f65fcf1850393aa7f18916850c85b209fd0691b2a6696308a180d6933e254
4
+ data.tar.gz: f01a352349d9590e05a2597df3e750c8e7cabd975246a42f86502a8c32f09583
5
5
  SHA512:
6
- metadata.gz: f116def195bdc557c96d191dd92d33cdccb90af4ee73c0b32f0f12b2bfabcbc920eabb90ca4a63597d77ce2f7ab263bda4ef7b457176b20b09915ec1104a95e0
7
- data.tar.gz: 6339411725ca423360885299ecf8051f425263dabe9a54ce33c17a4e78516cb5e13688ae78139583b1436d1647d98c14adb0802a14d972e3cac145d314b9f5d6
6
+ metadata.gz: fc78c758ef284a7b9dce6cfe0bb8c3418cd77c8c8e3ee3951b6b675290fc4c523268ec5d632be8bf706ff3a63d81984a1f7de6e6273e9504bbee737cadef1632
7
+ data.tar.gz: 879590b7b52b7d015374256d1dd9f6403f56c1665e9d27ffac2c113067707de1a34b0b3ba0c4a877004209fa2e810b70404c4dabf310459f1ecec62cabb26e82
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-cloudasset_v1
2
2
 
3
+ ### v0.12.0 (2021-07-14)
4
+
5
+ * Regenerated from discovery document revision 20210709
6
+
3
7
  ### v0.11.0 (2021-06-30)
4
8
 
5
9
  * Regenerated from discovery document revision 20210625
@@ -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 `
@@ -3772,6 +3812,7 @@ module Google
3772
3812
  def update!(**args)
3773
3813
  @additional_attributes = args[:additional_attributes] if args.key?(:additional_attributes)
3774
3814
  @asset_type = args[:asset_type] if args.key?(:asset_type)
3815
+ @attached_resources = args[:attached_resources] if args.key?(:attached_resources)
3775
3816
  @create_time = args[:create_time] if args.key?(:create_time)
3776
3817
  @description = args[:description] if args.key?(:description)
3777
3818
  @display_name = args[:display_name] if args.key?(:display_name)
@@ -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.11.0"
19
+ GEM_VERSION = "0.12.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210625"
25
+ REVISION = "20210709"
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
 
@@ -659,6 +665,15 @@ module Google
659
665
  end
660
666
  end
661
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
+
662
677
  class AuditConfig
663
678
  # @private
664
679
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1425,6 +1440,8 @@ module Google
1425
1440
  class Representation < Google::Apis::Core::JsonRepresentation
1426
1441
  hash :additional_attributes, as: 'additionalAttributes'
1427
1442
  property :asset_type, as: 'assetType'
1443
+ collection :attached_resources, as: 'attachedResources', class: Google::Apis::CloudassetV1::AttachedResource, decorator: Google::Apis::CloudassetV1::AttachedResource::Representation
1444
+
1428
1445
  property :create_time, as: 'createTime'
1429
1446
  property :description, as: 'description'
1430
1447
  property :display_name, as: 'displayName'
@@ -804,32 +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.
819
818
  # @param [String] read_mask
820
819
  # Optional. A comma-separated list of fields specifying which fields to be
821
820
  # returned in ResourceSearchResult. Only '*' or combination of top level fields
822
821
  # can be specified. Field names of both snake_case and camelCase are supported.
823
822
  # Examples: `"*"`, `"name,location"`, `"name,versionedResources"`. The read_mask
824
823
  # 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.
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.
833
830
  # @param [String] fields
834
831
  # Selector specifying which fields to include in a partial response.
835
832
  # @param [String] quota_user
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.11.0
4
+ version: 0.12.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-07-05 00:00:00.000000000 Z
11
+ date: 2021-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -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.11.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1/v0.12.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: []