google-apis-cloudasset_v1 0.35.0 → 0.36.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: d52db6758a07ed8b8b6355f0299a96de9da6fadd351c38aa7e541234cfaad96b
4
- data.tar.gz: f4626b9e50a78a3415c373de99abeea590f8e4c83bcd07ab33f98acd8207c463
3
+ metadata.gz: 22b67eca1c60df3b1f6d126cf827f45f86248207a2579ca761742beb8c95a22e
4
+ data.tar.gz: a9368607fddb0a10dda9a45e119c11c33c77744f594987dffb8fc4c3de1ec7ff
5
5
  SHA512:
6
- metadata.gz: 9b7809987730a89f59df37155db174da419b458cdd6ffd096c3ff2aa6e1af4b6ea01c038c8df702549fb1b77a4a15a035e537201563447dbd8c5c57ced9fabc9
7
- data.tar.gz: 8fd6fa55cbc987c457715433bba795d167e131fb2507354c4dc8d22523427667e2b749958aec78a8c0cd336715ee97bebad5ab118f8f7f2812fa24cd519cd808
6
+ metadata.gz: 78d7eca709fb6a7e55df9748c0abff0fcb529e5be68c55ab03946787dd2883be9d1c1ca30b2a7d45d7c1be96972341e3f60c79ce9862e73f5e063bf7435e15a1
7
+ data.tar.gz: bf54ffcc14bc97c24cc2fe4187efc1d4020209474cd919f2ade11686d3846797224c77b808ec33f06da0c352428f53ca7f61ec664f6a6416a4fa8d8c5cb7bb1c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-cloudasset_v1
2
2
 
3
+ ### v0.36.0 (2022-05-18)
4
+
5
+ * Regenerated from discovery document revision 20220513
6
+
3
7
  ### v0.35.0 (2022-05-12)
4
8
 
5
9
  * Regenerated from discovery document revision 20220507
@@ -278,6 +278,24 @@ module Google
278
278
  # @return [Google::Apis::CloudassetV1::Inventory]
279
279
  attr_accessor :os_inventory
280
280
 
281
+ # An asset identifier in Google Cloud which contains its name, type and
282
+ # ancestors. An asset can be any resource in the Google Cloud [resource
283
+ # hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-
284
+ # resource-hierarchy), a resource outside the Google Cloud resource hierarchy (
285
+ # such as Google Kubernetes Engine clusters and objects), or a policy (e.g.
286
+ # Cloud IAM policy). See [Supported asset types](https://cloud.google.com/asset-
287
+ # inventory/docs/supported-asset-types) for more information.
288
+ # Corresponds to the JSON property `relatedAsset`
289
+ # @return [Google::Apis::CloudassetV1::RelatedAsset]
290
+ attr_accessor :related_asset
291
+
292
+ # DEPRECATED. This message only presents for the purpose of backward-
293
+ # compatibility. The server will never populate this message in responses. The
294
+ # detailed related assets with the `relationship_type`.
295
+ # Corresponds to the JSON property `relatedAssets`
296
+ # @return [Google::Apis::CloudassetV1::RelatedAssets]
297
+ attr_accessor :related_assets
298
+
281
299
  # A representation of a Google Cloud resource.
282
300
  # Corresponds to the JSON property `resource`
283
301
  # @return [Google::Apis::CloudassetV1::Resource]
@@ -316,6 +334,8 @@ module Google
316
334
  @name = args[:name] if args.key?(:name)
317
335
  @org_policy = args[:org_policy] if args.key?(:org_policy)
318
336
  @os_inventory = args[:os_inventory] if args.key?(:os_inventory)
337
+ @related_asset = args[:related_asset] if args.key?(:related_asset)
338
+ @related_assets = args[:related_assets] if args.key?(:related_assets)
319
339
  @resource = args[:resource] if args.key?(:resource)
320
340
  @service_perimeter = args[:service_perimeter] if args.key?(:service_perimeter)
321
341
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -3853,6 +3873,89 @@ module Google
3853
3873
  end
3854
3874
  end
3855
3875
 
3876
+ # An asset identifier in Google Cloud which contains its name, type and
3877
+ # ancestors. An asset can be any resource in the Google Cloud [resource
3878
+ # hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-
3879
+ # resource-hierarchy), a resource outside the Google Cloud resource hierarchy (
3880
+ # such as Google Kubernetes Engine clusters and objects), or a policy (e.g.
3881
+ # Cloud IAM policy). See [Supported asset types](https://cloud.google.com/asset-
3882
+ # inventory/docs/supported-asset-types) for more information.
3883
+ class RelatedAsset
3884
+ include Google::Apis::Core::Hashable
3885
+
3886
+ # The ancestors of an asset in Google Cloud [resource hierarchy](https://cloud.
3887
+ # google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
3888
+ # represented as a list of relative resource names. An ancestry path starts with
3889
+ # the closest ancestor in the hierarchy and ends at root. Example: `["projects/
3890
+ # 123456789", "folders/5432", "organizations/1234"]`
3891
+ # Corresponds to the JSON property `ancestors`
3892
+ # @return [Array<String>]
3893
+ attr_accessor :ancestors
3894
+
3895
+ # The full name of the asset. Example: `//compute.googleapis.com/projects/
3896
+ # my_project_123/zones/zone1/instances/instance1` See [Resource names](https://
3897
+ # cloud.google.com/apis/design/resource_names#full_resource_name) for more
3898
+ # information.
3899
+ # Corresponds to the JSON property `asset`
3900
+ # @return [String]
3901
+ attr_accessor :asset
3902
+
3903
+ # The type of the asset. Example: `compute.googleapis.com/Disk` See [Supported
3904
+ # asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-
3905
+ # types) for more information.
3906
+ # Corresponds to the JSON property `assetType`
3907
+ # @return [String]
3908
+ attr_accessor :asset_type
3909
+
3910
+ # The unique identifier of the relationship type. Example: `
3911
+ # INSTANCE_TO_INSTANCEGROUP`
3912
+ # Corresponds to the JSON property `relationshipType`
3913
+ # @return [String]
3914
+ attr_accessor :relationship_type
3915
+
3916
+ def initialize(**args)
3917
+ update!(**args)
3918
+ end
3919
+
3920
+ # Update properties of this object
3921
+ def update!(**args)
3922
+ @ancestors = args[:ancestors] if args.key?(:ancestors)
3923
+ @asset = args[:asset] if args.key?(:asset)
3924
+ @asset_type = args[:asset_type] if args.key?(:asset_type)
3925
+ @relationship_type = args[:relationship_type] if args.key?(:relationship_type)
3926
+ end
3927
+ end
3928
+
3929
+ # DEPRECATED. This message only presents for the purpose of backward-
3930
+ # compatibility. The server will never populate this message in responses. The
3931
+ # detailed related assets with the `relationship_type`.
3932
+ class RelatedAssets
3933
+ include Google::Apis::Core::Hashable
3934
+
3935
+ # The peer resources of the relationship.
3936
+ # Corresponds to the JSON property `assets`
3937
+ # @return [Array<Google::Apis::CloudassetV1::RelatedAsset>]
3938
+ attr_accessor :assets
3939
+
3940
+ # DEPRECATED. This message only presents for the purpose of backward-
3941
+ # compatibility. The server will never populate this message in responses. The
3942
+ # relationship attributes which include `type`, `source_resource_type`, `
3943
+ # target_resource_type` and `action`.
3944
+ # Corresponds to the JSON property `relationshipAttributes`
3945
+ # @return [Google::Apis::CloudassetV1::RelationshipAttributes]
3946
+ attr_accessor :relationship_attributes
3947
+
3948
+ def initialize(**args)
3949
+ update!(**args)
3950
+ end
3951
+
3952
+ # Update properties of this object
3953
+ def update!(**args)
3954
+ @assets = args[:assets] if args.key?(:assets)
3955
+ @relationship_attributes = args[:relationship_attributes] if args.key?(:relationship_attributes)
3956
+ end
3957
+ end
3958
+
3856
3959
  # The detailed related resource.
3857
3960
  class RelatedResource
3858
3961
  include Google::Apis::Core::Hashable
@@ -3898,6 +4001,47 @@ module Google
3898
4001
  end
3899
4002
  end
3900
4003
 
4004
+ # DEPRECATED. This message only presents for the purpose of backward-
4005
+ # compatibility. The server will never populate this message in responses. The
4006
+ # relationship attributes which include `type`, `source_resource_type`, `
4007
+ # target_resource_type` and `action`.
4008
+ class RelationshipAttributes
4009
+ include Google::Apis::Core::Hashable
4010
+
4011
+ # The detail of the relationship, e.g. `contains`, `attaches`
4012
+ # Corresponds to the JSON property `action`
4013
+ # @return [String]
4014
+ attr_accessor :action
4015
+
4016
+ # The source asset type. Example: `compute.googleapis.com/Instance`
4017
+ # Corresponds to the JSON property `sourceResourceType`
4018
+ # @return [String]
4019
+ attr_accessor :source_resource_type
4020
+
4021
+ # The target asset type. Example: `compute.googleapis.com/Disk`
4022
+ # Corresponds to the JSON property `targetResourceType`
4023
+ # @return [String]
4024
+ attr_accessor :target_resource_type
4025
+
4026
+ # The unique identifier of the relationship type. Example: `
4027
+ # INSTANCE_TO_INSTANCEGROUP`
4028
+ # Corresponds to the JSON property `type`
4029
+ # @return [String]
4030
+ attr_accessor :type
4031
+
4032
+ def initialize(**args)
4033
+ update!(**args)
4034
+ end
4035
+
4036
+ # Update properties of this object
4037
+ def update!(**args)
4038
+ @action = args[:action] if args.key?(:action)
4039
+ @source_resource_type = args[:source_resource_type] if args.key?(:source_resource_type)
4040
+ @target_resource_type = args[:target_resource_type] if args.key?(:target_resource_type)
4041
+ @type = args[:type] if args.key?(:type)
4042
+ end
4043
+ end
4044
+
3901
4045
  # A representation of a Google Cloud resource.
3902
4046
  class Resource
3903
4047
  include Google::Apis::Core::Hashable
@@ -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.35.0"
19
+ GEM_VERSION = "0.36.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220507"
25
+ REVISION = "20220513"
26
26
  end
27
27
  end
28
28
  end
@@ -544,6 +544,18 @@ module Google
544
544
  include Google::Apis::Core::JsonObjectSupport
545
545
  end
546
546
 
547
+ class RelatedAsset
548
+ class Representation < Google::Apis::Core::JsonRepresentation; end
549
+
550
+ include Google::Apis::Core::JsonObjectSupport
551
+ end
552
+
553
+ class RelatedAssets
554
+ class Representation < Google::Apis::Core::JsonRepresentation; end
555
+
556
+ include Google::Apis::Core::JsonObjectSupport
557
+ end
558
+
547
559
  class RelatedResource
548
560
  class Representation < Google::Apis::Core::JsonRepresentation; end
549
561
 
@@ -556,6 +568,12 @@ module Google
556
568
  include Google::Apis::Core::JsonObjectSupport
557
569
  end
558
570
 
571
+ class RelationshipAttributes
572
+ class Representation < Google::Apis::Core::JsonRepresentation; end
573
+
574
+ include Google::Apis::Core::JsonObjectSupport
575
+ end
576
+
559
577
  class Resource
560
578
  class Representation < Google::Apis::Core::JsonRepresentation; end
561
579
 
@@ -731,6 +749,10 @@ module Google
731
749
 
732
750
  property :os_inventory, as: 'osInventory', class: Google::Apis::CloudassetV1::Inventory, decorator: Google::Apis::CloudassetV1::Inventory::Representation
733
751
 
752
+ property :related_asset, as: 'relatedAsset', class: Google::Apis::CloudassetV1::RelatedAsset, decorator: Google::Apis::CloudassetV1::RelatedAsset::Representation
753
+
754
+ property :related_assets, as: 'relatedAssets', class: Google::Apis::CloudassetV1::RelatedAssets, decorator: Google::Apis::CloudassetV1::RelatedAssets::Representation
755
+
734
756
  property :resource, as: 'resource', class: Google::Apis::CloudassetV1::Resource, decorator: Google::Apis::CloudassetV1::Resource::Representation
735
757
 
736
758
  property :service_perimeter, as: 'servicePerimeter', class: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter, decorator: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter::Representation
@@ -1553,6 +1575,26 @@ module Google
1553
1575
  end
1554
1576
  end
1555
1577
 
1578
+ class RelatedAsset
1579
+ # @private
1580
+ class Representation < Google::Apis::Core::JsonRepresentation
1581
+ collection :ancestors, as: 'ancestors'
1582
+ property :asset, as: 'asset'
1583
+ property :asset_type, as: 'assetType'
1584
+ property :relationship_type, as: 'relationshipType'
1585
+ end
1586
+ end
1587
+
1588
+ class RelatedAssets
1589
+ # @private
1590
+ class Representation < Google::Apis::Core::JsonRepresentation
1591
+ collection :assets, as: 'assets', class: Google::Apis::CloudassetV1::RelatedAsset, decorator: Google::Apis::CloudassetV1::RelatedAsset::Representation
1592
+
1593
+ property :relationship_attributes, as: 'relationshipAttributes', class: Google::Apis::CloudassetV1::RelationshipAttributes, decorator: Google::Apis::CloudassetV1::RelationshipAttributes::Representation
1594
+
1595
+ end
1596
+ end
1597
+
1556
1598
  class RelatedResource
1557
1599
  # @private
1558
1600
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1569,6 +1611,16 @@ module Google
1569
1611
  end
1570
1612
  end
1571
1613
 
1614
+ class RelationshipAttributes
1615
+ # @private
1616
+ class Representation < Google::Apis::Core::JsonRepresentation
1617
+ property :action, as: 'action'
1618
+ property :source_resource_type, as: 'sourceResourceType'
1619
+ property :target_resource_type, as: 'targetResourceType'
1620
+ property :type, as: 'type'
1621
+ end
1622
+ end
1623
+
1572
1624
  class Resource
1573
1625
  # @private
1574
1626
  class Representation < Google::Apis::Core::JsonRepresentation
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.35.0
4
+ version: 0.36.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: 2022-05-16 00:00:00.000000000 Z
11
+ date: 2022-05-23 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/main/generated/google-apis-cloudasset_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1/v0.35.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1/v0.36.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudasset_v1
63
63
  post_install_message:
64
64
  rdoc_options: []