google-apis-cloudasset_v1 0.35.0 → 0.38.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: d52db6758a07ed8b8b6355f0299a96de9da6fadd351c38aa7e541234cfaad96b
4
- data.tar.gz: f4626b9e50a78a3415c373de99abeea590f8e4c83bcd07ab33f98acd8207c463
3
+ metadata.gz: 8847ed167e248d266294c1296bd48fa1e3cb269993a214ad7fe657e55e238559
4
+ data.tar.gz: 93661fc7356a02e5beee2e75ba21289f8bb3f9623f4b23830c524dea51475f9e
5
5
  SHA512:
6
- metadata.gz: 9b7809987730a89f59df37155db174da419b458cdd6ffd096c3ff2aa6e1af4b6ea01c038c8df702549fb1b77a4a15a035e537201563447dbd8c5c57ced9fabc9
7
- data.tar.gz: 8fd6fa55cbc987c457715433bba795d167e131fb2507354c4dc8d22523427667e2b749958aec78a8c0cd336715ee97bebad5ab118f8f7f2812fa24cd519cd808
6
+ metadata.gz: e5d9d29e43d95a0613528251666a490cbeb64c036db0379108e039aa4599e38bac657196e08159814e9d94a28de81613ef8581c8e2d7502fa7f114d3eb0032fc
7
+ data.tar.gz: 0b762df355f244656ae008acc5cd5e94f2f5d3961165856919a8bf14449a5129c35b138bc28912e715210872cac2efa7706e9eea4a448a0cf7da1c39d37353ac
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-cloudasset_v1
2
2
 
3
+ ### v0.38.0 (2022-06-07)
4
+
5
+ * Regenerated from discovery document revision 20220604
6
+ * Regenerated using generator version 0.5.0
7
+
8
+ ### v0.37.0 (2022-05-25)
9
+
10
+ * Regenerated from discovery document revision 20220520
11
+
12
+ ### v0.36.0 (2022-05-18)
13
+
14
+ * Regenerated from discovery document revision 20220513
15
+
3
16
  ### v0.35.0 (2022-05-12)
4
17
 
5
18
  * 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)
@@ -2374,6 +2394,13 @@ module Google
2374
2394
  class GoogleIdentityAccesscontextmanagerV1EgressTo
2375
2395
  include Google::Apis::Core::Hashable
2376
2396
 
2397
+ # A list of external resources that are allowed to be accessed. A request
2398
+ # matches if it contains an external resource in this list (Example: s3://bucket/
2399
+ # path). Currently '*' is not allowed.
2400
+ # Corresponds to the JSON property `externalResources`
2401
+ # @return [Array<String>]
2402
+ attr_accessor :external_resources
2403
+
2377
2404
  # A list of ApiOperations allowed to be performed by the sources specified in
2378
2405
  # the corresponding EgressFrom. A request matches if it uses an operation/
2379
2406
  # service in this list.
@@ -2396,6 +2423,7 @@ module Google
2396
2423
 
2397
2424
  # Update properties of this object
2398
2425
  def update!(**args)
2426
+ @external_resources = args[:external_resources] if args.key?(:external_resources)
2399
2427
  @operations = args[:operations] if args.key?(:operations)
2400
2428
  @resources = args[:resources] if args.key?(:resources)
2401
2429
  end
@@ -3853,6 +3881,89 @@ module Google
3853
3881
  end
3854
3882
  end
3855
3883
 
3884
+ # An asset identifier in Google Cloud which contains its name, type and
3885
+ # ancestors. An asset can be any resource in the Google Cloud [resource
3886
+ # hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-
3887
+ # resource-hierarchy), a resource outside the Google Cloud resource hierarchy (
3888
+ # such as Google Kubernetes Engine clusters and objects), or a policy (e.g.
3889
+ # Cloud IAM policy). See [Supported asset types](https://cloud.google.com/asset-
3890
+ # inventory/docs/supported-asset-types) for more information.
3891
+ class RelatedAsset
3892
+ include Google::Apis::Core::Hashable
3893
+
3894
+ # The ancestors of an asset in Google Cloud [resource hierarchy](https://cloud.
3895
+ # google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
3896
+ # represented as a list of relative resource names. An ancestry path starts with
3897
+ # the closest ancestor in the hierarchy and ends at root. Example: `["projects/
3898
+ # 123456789", "folders/5432", "organizations/1234"]`
3899
+ # Corresponds to the JSON property `ancestors`
3900
+ # @return [Array<String>]
3901
+ attr_accessor :ancestors
3902
+
3903
+ # The full name of the asset. Example: `//compute.googleapis.com/projects/
3904
+ # my_project_123/zones/zone1/instances/instance1` See [Resource names](https://
3905
+ # cloud.google.com/apis/design/resource_names#full_resource_name) for more
3906
+ # information.
3907
+ # Corresponds to the JSON property `asset`
3908
+ # @return [String]
3909
+ attr_accessor :asset
3910
+
3911
+ # The type of the asset. Example: `compute.googleapis.com/Disk` See [Supported
3912
+ # asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-
3913
+ # types) for more information.
3914
+ # Corresponds to the JSON property `assetType`
3915
+ # @return [String]
3916
+ attr_accessor :asset_type
3917
+
3918
+ # The unique identifier of the relationship type. Example: `
3919
+ # INSTANCE_TO_INSTANCEGROUP`
3920
+ # Corresponds to the JSON property `relationshipType`
3921
+ # @return [String]
3922
+ attr_accessor :relationship_type
3923
+
3924
+ def initialize(**args)
3925
+ update!(**args)
3926
+ end
3927
+
3928
+ # Update properties of this object
3929
+ def update!(**args)
3930
+ @ancestors = args[:ancestors] if args.key?(:ancestors)
3931
+ @asset = args[:asset] if args.key?(:asset)
3932
+ @asset_type = args[:asset_type] if args.key?(:asset_type)
3933
+ @relationship_type = args[:relationship_type] if args.key?(:relationship_type)
3934
+ end
3935
+ end
3936
+
3937
+ # DEPRECATED. This message only presents for the purpose of backward-
3938
+ # compatibility. The server will never populate this message in responses. The
3939
+ # detailed related assets with the `relationship_type`.
3940
+ class RelatedAssets
3941
+ include Google::Apis::Core::Hashable
3942
+
3943
+ # The peer resources of the relationship.
3944
+ # Corresponds to the JSON property `assets`
3945
+ # @return [Array<Google::Apis::CloudassetV1::RelatedAsset>]
3946
+ attr_accessor :assets
3947
+
3948
+ # DEPRECATED. This message only presents for the purpose of backward-
3949
+ # compatibility. The server will never populate this message in responses. The
3950
+ # relationship attributes which include `type`, `source_resource_type`, `
3951
+ # target_resource_type` and `action`.
3952
+ # Corresponds to the JSON property `relationshipAttributes`
3953
+ # @return [Google::Apis::CloudassetV1::RelationshipAttributes]
3954
+ attr_accessor :relationship_attributes
3955
+
3956
+ def initialize(**args)
3957
+ update!(**args)
3958
+ end
3959
+
3960
+ # Update properties of this object
3961
+ def update!(**args)
3962
+ @assets = args[:assets] if args.key?(:assets)
3963
+ @relationship_attributes = args[:relationship_attributes] if args.key?(:relationship_attributes)
3964
+ end
3965
+ end
3966
+
3856
3967
  # The detailed related resource.
3857
3968
  class RelatedResource
3858
3969
  include Google::Apis::Core::Hashable
@@ -3898,6 +4009,47 @@ module Google
3898
4009
  end
3899
4010
  end
3900
4011
 
4012
+ # DEPRECATED. This message only presents for the purpose of backward-
4013
+ # compatibility. The server will never populate this message in responses. The
4014
+ # relationship attributes which include `type`, `source_resource_type`, `
4015
+ # target_resource_type` and `action`.
4016
+ class RelationshipAttributes
4017
+ include Google::Apis::Core::Hashable
4018
+
4019
+ # The detail of the relationship, e.g. `contains`, `attaches`
4020
+ # Corresponds to the JSON property `action`
4021
+ # @return [String]
4022
+ attr_accessor :action
4023
+
4024
+ # The source asset type. Example: `compute.googleapis.com/Instance`
4025
+ # Corresponds to the JSON property `sourceResourceType`
4026
+ # @return [String]
4027
+ attr_accessor :source_resource_type
4028
+
4029
+ # The target asset type. Example: `compute.googleapis.com/Disk`
4030
+ # Corresponds to the JSON property `targetResourceType`
4031
+ # @return [String]
4032
+ attr_accessor :target_resource_type
4033
+
4034
+ # The unique identifier of the relationship type. Example: `
4035
+ # INSTANCE_TO_INSTANCEGROUP`
4036
+ # Corresponds to the JSON property `type`
4037
+ # @return [String]
4038
+ attr_accessor :type
4039
+
4040
+ def initialize(**args)
4041
+ update!(**args)
4042
+ end
4043
+
4044
+ # Update properties of this object
4045
+ def update!(**args)
4046
+ @action = args[:action] if args.key?(:action)
4047
+ @source_resource_type = args[:source_resource_type] if args.key?(:source_resource_type)
4048
+ @target_resource_type = args[:target_resource_type] if args.key?(:target_resource_type)
4049
+ @type = args[:type] if args.key?(:type)
4050
+ end
4051
+ end
4052
+
3901
4053
  # A representation of a Google Cloud resource.
3902
4054
  class Resource
3903
4055
  include Google::Apis::Core::Hashable
@@ -3969,7 +4121,8 @@ module Google
3969
4121
  end
3970
4122
  end
3971
4123
 
3972
- # A result of Resource Search, containing information of a cloud resource.
4124
+ # A result of Resource Search, containing information of a cloud resource. Next
4125
+ # ID: 28
3973
4126
  class ResourceSearchResult
3974
4127
  include Google::Apis::Core::Hashable
3975
4128
 
@@ -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.38.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.5.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220507"
25
+ REVISION = "20220604"
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
@@ -1191,6 +1213,7 @@ module Google
1191
1213
  class GoogleIdentityAccesscontextmanagerV1EgressTo
1192
1214
  # @private
1193
1215
  class Representation < Google::Apis::Core::JsonRepresentation
1216
+ collection :external_resources, as: 'externalResources'
1194
1217
  collection :operations, as: 'operations', class: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ApiOperation, decorator: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ApiOperation::Representation
1195
1218
 
1196
1219
  collection :resources, as: 'resources'
@@ -1553,6 +1576,26 @@ module Google
1553
1576
  end
1554
1577
  end
1555
1578
 
1579
+ class RelatedAsset
1580
+ # @private
1581
+ class Representation < Google::Apis::Core::JsonRepresentation
1582
+ collection :ancestors, as: 'ancestors'
1583
+ property :asset, as: 'asset'
1584
+ property :asset_type, as: 'assetType'
1585
+ property :relationship_type, as: 'relationshipType'
1586
+ end
1587
+ end
1588
+
1589
+ class RelatedAssets
1590
+ # @private
1591
+ class Representation < Google::Apis::Core::JsonRepresentation
1592
+ collection :assets, as: 'assets', class: Google::Apis::CloudassetV1::RelatedAsset, decorator: Google::Apis::CloudassetV1::RelatedAsset::Representation
1593
+
1594
+ property :relationship_attributes, as: 'relationshipAttributes', class: Google::Apis::CloudassetV1::RelationshipAttributes, decorator: Google::Apis::CloudassetV1::RelationshipAttributes::Representation
1595
+
1596
+ end
1597
+ end
1598
+
1556
1599
  class RelatedResource
1557
1600
  # @private
1558
1601
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1569,6 +1612,16 @@ module Google
1569
1612
  end
1570
1613
  end
1571
1614
 
1615
+ class RelationshipAttributes
1616
+ # @private
1617
+ class Representation < Google::Apis::Core::JsonRepresentation
1618
+ property :action, as: 'action'
1619
+ property :source_resource_type, as: 'sourceResourceType'
1620
+ property :target_resource_type, as: 'targetResourceType'
1621
+ property :type, as: 'type'
1622
+ end
1623
+ end
1624
+
1572
1625
  class Resource
1573
1626
  # @private
1574
1627
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -982,21 +982,21 @@ module Google
982
982
  # query string is compared against each Cloud IAM policy binding, including its
983
983
  # principals, roles, and Cloud IAM conditions. The returned Cloud IAM policies
984
984
  # will only contain the bindings that match your query. To learn more about the
985
- # IAM policy structure, see [IAM policy doc](https://cloud.google.com/iam/docs/
986
- # policies#structure). Examples: * `policy:amy@gmail.com` to find IAM policy
987
- # bindings that specify user "amy@gmail.com". * `policy:roles/compute.admin` to
988
- # find IAM policy bindings that specify the Compute Admin role. * `policy:comp*`
989
- # to find IAM policy bindings that contain "comp" as a prefix of any word in the
990
- # binding. * `policy.role.permissions:storage.buckets.update` to find IAM policy
991
- # bindings that specify a role containing "storage.buckets.update" permission.
992
- # Note that if callers don't have `iam.roles.get` access to a role's included
993
- # permissions, policy bindings that specify this role will be dropped from the
994
- # search results. * `policy.role.permissions:upd*` to find IAM policy bindings
995
- # that specify a role containing "upd" as a prefix of any word in the role
996
- # permission. Note that if callers don't have `iam.roles.get` access to a role's
997
- # included permissions, policy bindings that specify this role will be dropped
998
- # from the search results. * `resource:organizations/123456` to find IAM policy
999
- # bindings that are set on "organizations/123456". * `resource=//
985
+ # IAM policy structure, see the [IAM policy documentation](https://cloud.google.
986
+ # com/iam/help/allow-policies/structure). Examples: * `policy:amy@gmail.com` to
987
+ # find IAM policy bindings that specify user "amy@gmail.com". * `policy:roles/
988
+ # compute.admin` to find IAM policy bindings that specify the Compute Admin role.
989
+ # * `policy:comp*` to find IAM policy bindings that contain "comp" as a prefix
990
+ # of any word in the binding. * `policy.role.permissions:storage.buckets.update`
991
+ # to find IAM policy bindings that specify a role containing "storage.buckets.
992
+ # update" permission. Note that if callers don't have `iam.roles.get` access to
993
+ # a role's included permissions, policy bindings that specify this role will be
994
+ # dropped from the search results. * `policy.role.permissions:upd*` to find IAM
995
+ # policy bindings that specify a role containing "upd" as a prefix of any word
996
+ # in the role permission. Note that if callers don't have `iam.roles.get` access
997
+ # to a role's included permissions, policy bindings that specify this role will
998
+ # be dropped from the search results. * `resource:organizations/123456` to find
999
+ # IAM policy bindings that are set on "organizations/123456". * `resource=//
1000
1000
  # cloudresourcemanager.googleapis.com/projects/myproject` to find IAM policy
1001
1001
  # bindings that are set on the project named "myproject". * `Important` to find
1002
1002
  # IAM policy bindings that contain "Important" as a word in any of the
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.38.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-06-13 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.4'
19
+ version: '0.5'
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.4'
29
+ version: '0.5'
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/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.38.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Asset API V1