google-apis-cloudasset_v1 0.11.0 → 0.15.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e600fe6301948758f14bd60376b012735a21701044d1c2ab7fc3c2dd5a30c5c5
|
4
|
+
data.tar.gz: f3d0b9aa2db9f747cc3fdc45ae42d78a1634a7c5bedfe8fd199c7f14268d7c96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f73c065c52437172925dc7963c7e6bee6a51b9d92c83632f7b744fb901ea031a1d9530c1af03b4c0cf0ce93273224b433d641103fedcc05e7a8ecc025cd9fcbc
|
7
|
+
data.tar.gz: a8cc28bcdc860afba6a7d402655d9d6e3b429e0bf7f1f4d4aafab9178962c412aea9850e09295731474b3942f945d849424f7dd8efb3fb3b959105f80632686e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-cloudasset_v1
|
2
2
|
|
3
|
+
### v0.15.0 (2021-08-04)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210802
|
6
|
+
|
7
|
+
### v0.14.0 (2021-07-28)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210723
|
10
|
+
|
11
|
+
### v0.13.0 (2021-07-21)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210716
|
14
|
+
|
15
|
+
### v0.12.0 (2021-07-14)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210709
|
18
|
+
|
3
19
|
### v0.11.0 (2021-06-30)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20210625
|
@@ -233,11 +233,20 @@ module Google
|
|
233
233
|
# @return [Array<Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1Policy>]
|
234
234
|
attr_accessor :org_policy
|
235
235
|
|
236
|
-
#
|
236
|
+
# This API resource represents the available inventory data for a Compute Engine
|
237
|
+
# virtual machine (VM) instance at a given point in time. You can use this API
|
238
|
+
# resource to determine the inventory data of your VM. For more information, see
|
239
|
+
# [Information provided by OS inventory management](https://cloud.google.com/
|
240
|
+
# compute/docs/instances/os-inventory-management#data-collected).
|
237
241
|
# Corresponds to the JSON property `osInventory`
|
238
242
|
# @return [Google::Apis::CloudassetV1::Inventory]
|
239
243
|
attr_accessor :os_inventory
|
240
244
|
|
245
|
+
# The detailed related assets with the `relationship_type`.
|
246
|
+
# Corresponds to the JSON property `relatedAssets`
|
247
|
+
# @return [Google::Apis::CloudassetV1::RelatedAssets]
|
248
|
+
attr_accessor :related_assets
|
249
|
+
|
241
250
|
# A representation of a Google Cloud resource.
|
242
251
|
# Corresponds to the JSON property `resource`
|
243
252
|
# @return [Google::Apis::CloudassetV1::Resource]
|
@@ -276,12 +285,44 @@ module Google
|
|
276
285
|
@name = args[:name] if args.key?(:name)
|
277
286
|
@org_policy = args[:org_policy] if args.key?(:org_policy)
|
278
287
|
@os_inventory = args[:os_inventory] if args.key?(:os_inventory)
|
288
|
+
@related_assets = args[:related_assets] if args.key?(:related_assets)
|
279
289
|
@resource = args[:resource] if args.key?(:resource)
|
280
290
|
@service_perimeter = args[:service_perimeter] if args.key?(:service_perimeter)
|
281
291
|
@update_time = args[:update_time] if args.key?(:update_time)
|
282
292
|
end
|
283
293
|
end
|
284
294
|
|
295
|
+
# Attached resource representation, which is defined by the corresponding
|
296
|
+
# service provider. It represents an attached resource's payload.
|
297
|
+
class AttachedResource
|
298
|
+
include Google::Apis::Core::Hashable
|
299
|
+
|
300
|
+
# The type of this attached resource. Example: `osconfig.googleapis.com/
|
301
|
+
# Inventory` You can find the supported attached asset types of each resource in
|
302
|
+
# this table: `https://cloud.google.com/asset-inventory/docs/supported-asset-
|
303
|
+
# types#searchable_asset_types`
|
304
|
+
# Corresponds to the JSON property `assetType`
|
305
|
+
# @return [String]
|
306
|
+
attr_accessor :asset_type
|
307
|
+
|
308
|
+
# Versioned resource representations of this attached resource. This is repeated
|
309
|
+
# because there could be multiple versions of the attached resource
|
310
|
+
# representations during version migration.
|
311
|
+
# Corresponds to the JSON property `versionedResources`
|
312
|
+
# @return [Array<Google::Apis::CloudassetV1::VersionedResource>]
|
313
|
+
attr_accessor :versioned_resources
|
314
|
+
|
315
|
+
def initialize(**args)
|
316
|
+
update!(**args)
|
317
|
+
end
|
318
|
+
|
319
|
+
# Update properties of this object
|
320
|
+
def update!(**args)
|
321
|
+
@asset_type = args[:asset_type] if args.key?(:asset_type)
|
322
|
+
@versioned_resources = args[:versioned_resources] if args.key?(:versioned_resources)
|
323
|
+
end
|
324
|
+
end
|
325
|
+
|
285
326
|
# Specifies the audit configuration for a service. The configuration determines
|
286
327
|
# which permission types are logged, and what identities, if any, are exempted
|
287
328
|
# from logging. An AuditConfig must have one or more AuditLogConfigs. If there
|
@@ -664,6 +705,22 @@ module Google
|
|
664
705
|
# @return [String]
|
665
706
|
attr_accessor :read_time
|
666
707
|
|
708
|
+
# A list of relationship types to export, for example: `
|
709
|
+
# INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
|
710
|
+
# content_type=RELATIONSHIP. * If specified: it snapshots specified
|
711
|
+
# relationships. It returns an error if any of the [relationship_types] doesn't
|
712
|
+
# belong to the supported relationship types of the [asset_types] or if any of
|
713
|
+
# the [asset_types] doesn't belong to the source types of the [
|
714
|
+
# relationship_types]. * Otherwise: it snapshots the supported relationships for
|
715
|
+
# all [asset_types] or returns an error if any of the [asset_types] has no
|
716
|
+
# relationship support. An unspecified asset types field means all supported
|
717
|
+
# asset_types. See [Introduction to Cloud Asset Inventory](https://cloud.google.
|
718
|
+
# com/asset-inventory/docs/overview) for all supported asset types and
|
719
|
+
# relationship types.
|
720
|
+
# Corresponds to the JSON property `relationshipTypes`
|
721
|
+
# @return [Array<String>]
|
722
|
+
attr_accessor :relationship_types
|
723
|
+
|
667
724
|
def initialize(**args)
|
668
725
|
update!(**args)
|
669
726
|
end
|
@@ -674,6 +731,7 @@ module Google
|
|
674
731
|
@content_type = args[:content_type] if args.key?(:content_type)
|
675
732
|
@output_config = args[:output_config] if args.key?(:output_config)
|
676
733
|
@read_time = args[:read_time] if args.key?(:read_time)
|
734
|
+
@relationship_types = args[:relationship_types] if args.key?(:relationship_types)
|
677
735
|
end
|
678
736
|
end
|
679
737
|
|
@@ -796,6 +854,22 @@ module Google
|
|
796
854
|
# @return [String]
|
797
855
|
attr_accessor :name
|
798
856
|
|
857
|
+
# A list of relationship types to output, for example: `
|
858
|
+
# INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
|
859
|
+
# content_type=RELATIONSHIP. * If specified: it outputs specified relationship
|
860
|
+
# updates on the [asset_names] or the [asset_types]. It returns an error if any
|
861
|
+
# of the [relationship_types] doesn't belong to the supported relationship types
|
862
|
+
# of the [asset_names] or [asset_types], or any of the [asset_names] or the [
|
863
|
+
# asset_types] doesn't belong to the source types of the [relationship_types]. *
|
864
|
+
# Otherwise: it outputs the supported relationships of the types of [asset_names]
|
865
|
+
# and [asset_types] or returns an error if any of the [asset_names] or the [
|
866
|
+
# asset_types] has no replationship support. See [Introduction to Cloud Asset
|
867
|
+
# Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
|
868
|
+
# supported asset types and relationship types.
|
869
|
+
# Corresponds to the JSON property `relationshipTypes`
|
870
|
+
# @return [Array<String>]
|
871
|
+
attr_accessor :relationship_types
|
872
|
+
|
799
873
|
def initialize(**args)
|
800
874
|
update!(**args)
|
801
875
|
end
|
@@ -808,6 +882,7 @@ module Google
|
|
808
882
|
@content_type = args[:content_type] if args.key?(:content_type)
|
809
883
|
@feed_output_config = args[:feed_output_config] if args.key?(:feed_output_config)
|
810
884
|
@name = args[:name] if args.key?(:name)
|
885
|
+
@relationship_types = args[:relationship_types] if args.key?(:relationship_types)
|
811
886
|
end
|
812
887
|
end
|
813
888
|
|
@@ -1765,8 +1840,8 @@ module Google
|
|
1765
1840
|
|
1766
1841
|
# Required. Resource name for the Access Level. The `short_name` component must
|
1767
1842
|
# begin with a letter and only include alphanumeric and '_'. Format: `
|
1768
|
-
# accessPolicies/`
|
1769
|
-
# the `
|
1843
|
+
# accessPolicies/`access_policy`/accessLevels/`access_level``. The maximum
|
1844
|
+
# length of the `access_level` component is 50 characters.
|
1770
1845
|
# Corresponds to the JSON property `name`
|
1771
1846
|
# @return [String]
|
1772
1847
|
attr_accessor :name
|
@@ -1807,7 +1882,7 @@ module Google
|
|
1807
1882
|
attr_accessor :etag
|
1808
1883
|
|
1809
1884
|
# Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/`
|
1810
|
-
#
|
1885
|
+
# access_policy``
|
1811
1886
|
# Corresponds to the JSON property `name`
|
1812
1887
|
# @return [String]
|
1813
1888
|
attr_accessor :name
|
@@ -2412,7 +2487,7 @@ module Google
|
|
2412
2487
|
|
2413
2488
|
# Required. Resource name for the ServicePerimeter. The `short_name` component
|
2414
2489
|
# must begin with a letter and only include alphanumeric and '_'. Format: `
|
2415
|
-
# accessPolicies/`
|
2490
|
+
# accessPolicies/`access_policy`/servicePerimeters/`service_perimeter``
|
2416
2491
|
# Corresponds to the JSON property `name`
|
2417
2492
|
# @return [String]
|
2418
2493
|
attr_accessor :name
|
@@ -2899,7 +2974,11 @@ module Google
|
|
2899
2974
|
end
|
2900
2975
|
end
|
2901
2976
|
|
2902
|
-
#
|
2977
|
+
# This API resource represents the available inventory data for a Compute Engine
|
2978
|
+
# virtual machine (VM) instance at a given point in time. You can use this API
|
2979
|
+
# resource to determine the inventory data of your VM. For more information, see
|
2980
|
+
# [Information provided by OS inventory management](https://cloud.google.com/
|
2981
|
+
# compute/docs/instances/os-inventory-management#data-collected).
|
2903
2982
|
class Inventory
|
2904
2983
|
include Google::Apis::Core::Hashable
|
2905
2984
|
|
@@ -2910,11 +2989,22 @@ module Google
|
|
2910
2989
|
# @return [Hash<String,Google::Apis::CloudassetV1::Item>]
|
2911
2990
|
attr_accessor :items
|
2912
2991
|
|
2992
|
+
# Output only. The `Inventory` API resource name. Format: `projects/`
|
2993
|
+
# project_number`/locations/`location`/instances/`instance_id`/inventory`
|
2994
|
+
# Corresponds to the JSON property `name`
|
2995
|
+
# @return [String]
|
2996
|
+
attr_accessor :name
|
2997
|
+
|
2913
2998
|
# Operating system information for the VM.
|
2914
2999
|
# Corresponds to the JSON property `osInfo`
|
2915
3000
|
# @return [Google::Apis::CloudassetV1::OsInfo]
|
2916
3001
|
attr_accessor :os_info
|
2917
3002
|
|
3003
|
+
# Output only. Timestamp of the last reported inventory for the VM.
|
3004
|
+
# Corresponds to the JSON property `updateTime`
|
3005
|
+
# @return [String]
|
3006
|
+
attr_accessor :update_time
|
3007
|
+
|
2918
3008
|
def initialize(**args)
|
2919
3009
|
update!(**args)
|
2920
3010
|
end
|
@@ -2922,7 +3012,9 @@ module Google
|
|
2922
3012
|
# Update properties of this object
|
2923
3013
|
def update!(**args)
|
2924
3014
|
@items = args[:items] if args.key?(:items)
|
3015
|
+
@name = args[:name] if args.key?(:name)
|
2925
3016
|
@os_info = args[:os_info] if args.key?(:os_info)
|
3017
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
2926
3018
|
end
|
2927
3019
|
end
|
2928
3020
|
|
@@ -3506,6 +3598,117 @@ module Google
|
|
3506
3598
|
end
|
3507
3599
|
end
|
3508
3600
|
|
3601
|
+
# An asset identify in Google Cloud which contains its name, type and ancestors.
|
3602
|
+
# An asset can be any resource in the Google Cloud [resource hierarchy](https://
|
3603
|
+
# cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), a
|
3604
|
+
# resource outside the Google Cloud resource hierarchy (such as Google
|
3605
|
+
# Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy).
|
3606
|
+
# See [Supported asset types](https://cloud.google.com/asset-inventory/docs/
|
3607
|
+
# supported-asset-types) for more information.
|
3608
|
+
class RelatedAsset
|
3609
|
+
include Google::Apis::Core::Hashable
|
3610
|
+
|
3611
|
+
# The ancestors of an asset in Google Cloud [resource hierarchy](https://cloud.
|
3612
|
+
# google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
|
3613
|
+
# represented as a list of relative resource names. An ancestry path starts with
|
3614
|
+
# the closest ancestor in the hierarchy and ends at root. Example: `["projects/
|
3615
|
+
# 123456789", "folders/5432", "organizations/1234"]`
|
3616
|
+
# Corresponds to the JSON property `ancestors`
|
3617
|
+
# @return [Array<String>]
|
3618
|
+
attr_accessor :ancestors
|
3619
|
+
|
3620
|
+
# The full name of the asset. Example: `//compute.googleapis.com/projects/
|
3621
|
+
# my_project_123/zones/zone1/instances/instance1` See [Resource names](https://
|
3622
|
+
# cloud.google.com/apis/design/resource_names#full_resource_name) for more
|
3623
|
+
# information.
|
3624
|
+
# Corresponds to the JSON property `asset`
|
3625
|
+
# @return [String]
|
3626
|
+
attr_accessor :asset
|
3627
|
+
|
3628
|
+
# The type of the asset. Example: `compute.googleapis.com/Disk` See [Supported
|
3629
|
+
# asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-
|
3630
|
+
# types) for more information.
|
3631
|
+
# Corresponds to the JSON property `assetType`
|
3632
|
+
# @return [String]
|
3633
|
+
attr_accessor :asset_type
|
3634
|
+
|
3635
|
+
def initialize(**args)
|
3636
|
+
update!(**args)
|
3637
|
+
end
|
3638
|
+
|
3639
|
+
# Update properties of this object
|
3640
|
+
def update!(**args)
|
3641
|
+
@ancestors = args[:ancestors] if args.key?(:ancestors)
|
3642
|
+
@asset = args[:asset] if args.key?(:asset)
|
3643
|
+
@asset_type = args[:asset_type] if args.key?(:asset_type)
|
3644
|
+
end
|
3645
|
+
end
|
3646
|
+
|
3647
|
+
# The detailed related assets with the `relationship_type`.
|
3648
|
+
class RelatedAssets
|
3649
|
+
include Google::Apis::Core::Hashable
|
3650
|
+
|
3651
|
+
# The peer resources of the relationship.
|
3652
|
+
# Corresponds to the JSON property `assets`
|
3653
|
+
# @return [Array<Google::Apis::CloudassetV1::RelatedAsset>]
|
3654
|
+
attr_accessor :assets
|
3655
|
+
|
3656
|
+
# The relationship attributes which include `type`, `source_resource_type`, `
|
3657
|
+
# target_resource_type` and `action`.
|
3658
|
+
# Corresponds to the JSON property `relationshipAttributes`
|
3659
|
+
# @return [Google::Apis::CloudassetV1::RelationshipAttributes]
|
3660
|
+
attr_accessor :relationship_attributes
|
3661
|
+
|
3662
|
+
def initialize(**args)
|
3663
|
+
update!(**args)
|
3664
|
+
end
|
3665
|
+
|
3666
|
+
# Update properties of this object
|
3667
|
+
def update!(**args)
|
3668
|
+
@assets = args[:assets] if args.key?(:assets)
|
3669
|
+
@relationship_attributes = args[:relationship_attributes] if args.key?(:relationship_attributes)
|
3670
|
+
end
|
3671
|
+
end
|
3672
|
+
|
3673
|
+
# The relationship attributes which include `type`, `source_resource_type`, `
|
3674
|
+
# target_resource_type` and `action`.
|
3675
|
+
class RelationshipAttributes
|
3676
|
+
include Google::Apis::Core::Hashable
|
3677
|
+
|
3678
|
+
# The detail of the relationship, e.g. `contains`, `attaches`
|
3679
|
+
# Corresponds to the JSON property `action`
|
3680
|
+
# @return [String]
|
3681
|
+
attr_accessor :action
|
3682
|
+
|
3683
|
+
# The source asset type. Example: `compute.googleapis.com/Instance`
|
3684
|
+
# Corresponds to the JSON property `sourceResourceType`
|
3685
|
+
# @return [String]
|
3686
|
+
attr_accessor :source_resource_type
|
3687
|
+
|
3688
|
+
# The target asset type. Example: `compute.googleapis.com/Disk`
|
3689
|
+
# Corresponds to the JSON property `targetResourceType`
|
3690
|
+
# @return [String]
|
3691
|
+
attr_accessor :target_resource_type
|
3692
|
+
|
3693
|
+
# The unique identifier of the relationship type. Example: `
|
3694
|
+
# INSTANCE_TO_INSTANCEGROUP`
|
3695
|
+
# Corresponds to the JSON property `type`
|
3696
|
+
# @return [String]
|
3697
|
+
attr_accessor :type
|
3698
|
+
|
3699
|
+
def initialize(**args)
|
3700
|
+
update!(**args)
|
3701
|
+
end
|
3702
|
+
|
3703
|
+
# Update properties of this object
|
3704
|
+
def update!(**args)
|
3705
|
+
@action = args[:action] if args.key?(:action)
|
3706
|
+
@source_resource_type = args[:source_resource_type] if args.key?(:source_resource_type)
|
3707
|
+
@target_resource_type = args[:target_resource_type] if args.key?(:target_resource_type)
|
3708
|
+
@type = args[:type] if args.key?(:type)
|
3709
|
+
end
|
3710
|
+
end
|
3711
|
+
|
3509
3712
|
# A representation of a Google Cloud resource.
|
3510
3713
|
class Resource
|
3511
3714
|
include Google::Apis::Core::Hashable
|
@@ -3605,6 +3808,15 @@ module Google
|
|
3605
3808
|
# @return [String]
|
3606
3809
|
attr_accessor :asset_type
|
3607
3810
|
|
3811
|
+
# Attached resources of this resource. For example, an OSConfig Inventory is an
|
3812
|
+
# attached resource of a Compute Instance. This field is repeated because a
|
3813
|
+
# resource could have multiple attached resources. This `attached_resources`
|
3814
|
+
# field is not searchable. Some attributes of the attached resources are exposed
|
3815
|
+
# in `additional_attributes` field, so as to allow users to search on them.
|
3816
|
+
# Corresponds to the JSON property `attachedResources`
|
3817
|
+
# @return [Array<Google::Apis::CloudassetV1::AttachedResource>]
|
3818
|
+
attr_accessor :attached_resources
|
3819
|
+
|
3608
3820
|
# The create timestamp of this resource, at which the resource was created. The
|
3609
3821
|
# granularity is in seconds. Timestamp.nanos will always be 0. This field is
|
3610
3822
|
# available only when the resource's proto contains it. To search against `
|
@@ -3772,6 +3984,7 @@ module Google
|
|
3772
3984
|
def update!(**args)
|
3773
3985
|
@additional_attributes = args[:additional_attributes] if args.key?(:additional_attributes)
|
3774
3986
|
@asset_type = args[:asset_type] if args.key?(:asset_type)
|
3987
|
+
@attached_resources = args[:attached_resources] if args.key?(:attached_resources)
|
3775
3988
|
@create_time = args[:create_time] if args.key?(:create_time)
|
3776
3989
|
@description = args[:description] if args.key?(:description)
|
3777
3990
|
@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.
|
19
|
+
GEM_VERSION = "0.15.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 = "
|
25
|
+
REVISION = "20210802"
|
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
|
|
@@ -496,6 +502,24 @@ module Google
|
|
496
502
|
include Google::Apis::Core::JsonObjectSupport
|
497
503
|
end
|
498
504
|
|
505
|
+
class RelatedAsset
|
506
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
507
|
+
|
508
|
+
include Google::Apis::Core::JsonObjectSupport
|
509
|
+
end
|
510
|
+
|
511
|
+
class RelatedAssets
|
512
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
513
|
+
|
514
|
+
include Google::Apis::Core::JsonObjectSupport
|
515
|
+
end
|
516
|
+
|
517
|
+
class RelationshipAttributes
|
518
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
519
|
+
|
520
|
+
include Google::Apis::Core::JsonObjectSupport
|
521
|
+
end
|
522
|
+
|
499
523
|
class Resource
|
500
524
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
501
525
|
|
@@ -651,6 +675,8 @@ module Google
|
|
651
675
|
|
652
676
|
property :os_inventory, as: 'osInventory', class: Google::Apis::CloudassetV1::Inventory, decorator: Google::Apis::CloudassetV1::Inventory::Representation
|
653
677
|
|
678
|
+
property :related_assets, as: 'relatedAssets', class: Google::Apis::CloudassetV1::RelatedAssets, decorator: Google::Apis::CloudassetV1::RelatedAssets::Representation
|
679
|
+
|
654
680
|
property :resource, as: 'resource', class: Google::Apis::CloudassetV1::Resource, decorator: Google::Apis::CloudassetV1::Resource::Representation
|
655
681
|
|
656
682
|
property :service_perimeter, as: 'servicePerimeter', class: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter, decorator: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter::Representation
|
@@ -659,6 +685,15 @@ module Google
|
|
659
685
|
end
|
660
686
|
end
|
661
687
|
|
688
|
+
class AttachedResource
|
689
|
+
# @private
|
690
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
691
|
+
property :asset_type, as: 'assetType'
|
692
|
+
collection :versioned_resources, as: 'versionedResources', class: Google::Apis::CloudassetV1::VersionedResource, decorator: Google::Apis::CloudassetV1::VersionedResource::Representation
|
693
|
+
|
694
|
+
end
|
695
|
+
end
|
696
|
+
|
662
697
|
class AuditConfig
|
663
698
|
# @private
|
664
699
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -751,6 +786,7 @@ module Google
|
|
751
786
|
property :output_config, as: 'outputConfig', class: Google::Apis::CloudassetV1::OutputConfig, decorator: Google::Apis::CloudassetV1::OutputConfig::Representation
|
752
787
|
|
753
788
|
property :read_time, as: 'readTime'
|
789
|
+
collection :relationship_types, as: 'relationshipTypes'
|
754
790
|
end
|
755
791
|
end
|
756
792
|
|
@@ -775,6 +811,7 @@ module Google
|
|
775
811
|
property :feed_output_config, as: 'feedOutputConfig', class: Google::Apis::CloudassetV1::FeedOutputConfig, decorator: Google::Apis::CloudassetV1::FeedOutputConfig::Representation
|
776
812
|
|
777
813
|
property :name, as: 'name'
|
814
|
+
collection :relationship_types, as: 'relationshipTypes'
|
778
815
|
end
|
779
816
|
end
|
780
817
|
|
@@ -1260,8 +1297,10 @@ module Google
|
|
1260
1297
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1261
1298
|
hash :items, as: 'items', class: Google::Apis::CloudassetV1::Item, decorator: Google::Apis::CloudassetV1::Item::Representation
|
1262
1299
|
|
1300
|
+
property :name, as: 'name'
|
1263
1301
|
property :os_info, as: 'osInfo', class: Google::Apis::CloudassetV1::OsInfo, decorator: Google::Apis::CloudassetV1::OsInfo::Representation
|
1264
1302
|
|
1303
|
+
property :update_time, as: 'updateTime'
|
1265
1304
|
end
|
1266
1305
|
end
|
1267
1306
|
|
@@ -1407,6 +1446,35 @@ module Google
|
|
1407
1446
|
end
|
1408
1447
|
end
|
1409
1448
|
|
1449
|
+
class RelatedAsset
|
1450
|
+
# @private
|
1451
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1452
|
+
collection :ancestors, as: 'ancestors'
|
1453
|
+
property :asset, as: 'asset'
|
1454
|
+
property :asset_type, as: 'assetType'
|
1455
|
+
end
|
1456
|
+
end
|
1457
|
+
|
1458
|
+
class RelatedAssets
|
1459
|
+
# @private
|
1460
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1461
|
+
collection :assets, as: 'assets', class: Google::Apis::CloudassetV1::RelatedAsset, decorator: Google::Apis::CloudassetV1::RelatedAsset::Representation
|
1462
|
+
|
1463
|
+
property :relationship_attributes, as: 'relationshipAttributes', class: Google::Apis::CloudassetV1::RelationshipAttributes, decorator: Google::Apis::CloudassetV1::RelationshipAttributes::Representation
|
1464
|
+
|
1465
|
+
end
|
1466
|
+
end
|
1467
|
+
|
1468
|
+
class RelationshipAttributes
|
1469
|
+
# @private
|
1470
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1471
|
+
property :action, as: 'action'
|
1472
|
+
property :source_resource_type, as: 'sourceResourceType'
|
1473
|
+
property :target_resource_type, as: 'targetResourceType'
|
1474
|
+
property :type, as: 'type'
|
1475
|
+
end
|
1476
|
+
end
|
1477
|
+
|
1410
1478
|
class Resource
|
1411
1479
|
# @private
|
1412
1480
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1425,6 +1493,8 @@ module Google
|
|
1425
1493
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1426
1494
|
hash :additional_attributes, as: 'additionalAttributes'
|
1427
1495
|
property :asset_type, as: 'assetType'
|
1496
|
+
collection :attached_resources, as: 'attachedResources', class: Google::Apis::CloudassetV1::AttachedResource, decorator: Google::Apis::CloudassetV1::AttachedResource::Representation
|
1497
|
+
|
1428
1498
|
property :create_time, as: 'createTime'
|
1429
1499
|
property :description, as: 'description'
|
1430
1500
|
property :display_name, as: 'displayName'
|
@@ -84,6 +84,19 @@ module Google
|
|
84
84
|
# not specified, the current time will be used. Due to delays in resource data
|
85
85
|
# collection and indexing, there is a volatile window during which running the
|
86
86
|
# same query may get different results.
|
87
|
+
# @param [Array<String>, String] relationship_types
|
88
|
+
# A list of relationship types to output, for example: `
|
89
|
+
# INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
|
90
|
+
# content_type=RELATIONSHIP. * If specified: it snapshots specified
|
91
|
+
# relationships. It returns an error if any of the [relationship_types] doesn't
|
92
|
+
# belong to the supported relationship types of the [asset_types] or if any of
|
93
|
+
# the [asset_types] doesn't belong to the source types of the [
|
94
|
+
# relationship_types]. * Otherwise: it snapshots the supported relationships for
|
95
|
+
# all [asset_types] or returns an error if any of the [asset_types] has no
|
96
|
+
# relationship support. An unspecified asset types field means all supported
|
97
|
+
# asset_types. See [Introduction to Cloud Asset Inventory](https://cloud.google.
|
98
|
+
# com/asset-inventory/docs/overview) for all supported asset types and
|
99
|
+
# relationship types.
|
87
100
|
# @param [String] fields
|
88
101
|
# Selector specifying which fields to include in a partial response.
|
89
102
|
# @param [String] quota_user
|
@@ -101,7 +114,7 @@ module Google
|
|
101
114
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
102
115
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
103
116
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
104
|
-
def list_assets(parent, asset_types: nil, content_type: nil, page_size: nil, page_token: nil, read_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
117
|
+
def list_assets(parent, asset_types: nil, content_type: nil, page_size: nil, page_token: nil, read_time: nil, relationship_types: nil, fields: nil, quota_user: nil, options: nil, &block)
|
105
118
|
command = make_simple_command(:get, 'v1/{+parent}/assets', options)
|
106
119
|
command.response_representation = Google::Apis::CloudassetV1::ListAssetsResponse::Representation
|
107
120
|
command.response_class = Google::Apis::CloudassetV1::ListAssetsResponse
|
@@ -111,6 +124,7 @@ module Google
|
|
111
124
|
command.query['pageSize'] = page_size unless page_size.nil?
|
112
125
|
command.query['pageToken'] = page_token unless page_token.nil?
|
113
126
|
command.query['readTime'] = read_time unless read_time.nil?
|
127
|
+
command.query['relationshipTypes'] = relationship_types unless relationship_types.nil?
|
114
128
|
command.query['fields'] = fields unless fields.nil?
|
115
129
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
116
130
|
execute_or_queue_command(command, &block)
|
@@ -452,7 +466,7 @@ module Google
|
|
452
466
|
# method implements the google.longrunning.Operation, which allows you to track
|
453
467
|
# the operation status. We recommend intervals of at least 2 seconds with
|
454
468
|
# exponential backoff retry to poll the operation result. The metadata contains
|
455
|
-
# the
|
469
|
+
# the metadata for the long-running operation.
|
456
470
|
# @param [String] scope
|
457
471
|
# Required. The relative name of the root asset. Only resources and IAM policies
|
458
472
|
# within the scope will be analyzed. This can only be an organization number (
|
@@ -562,6 +576,18 @@ module Google
|
|
562
576
|
# timestamp is used instead.
|
563
577
|
# @param [String] read_time_window_start_time
|
564
578
|
# Start time of the time window (exclusive).
|
579
|
+
# @param [Array<String>, String] relationship_types
|
580
|
+
# Optional. A list of relationship types to output, for example: `
|
581
|
+
# INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
|
582
|
+
# content_type=RELATIONSHIP. * If specified: it outputs specified relationships'
|
583
|
+
# history on the [asset_names]. It returns an error if any of the [
|
584
|
+
# relationship_types] doesn't belong to the supported relationship types of the [
|
585
|
+
# asset_names] or if any of the [asset_names]'s types doesn't belong to the
|
586
|
+
# source types of the [relationship_types]. * Otherwise: it outputs the
|
587
|
+
# supported relationships' history on the [asset_names] or returns an error if
|
588
|
+
# any of the [asset_names]'s types has no relationship support. See [
|
589
|
+
# Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-
|
590
|
+
# inventory/docs/overview) for all supported asset types and relationship types.
|
565
591
|
# @param [String] fields
|
566
592
|
# Selector specifying which fields to include in a partial response.
|
567
593
|
# @param [String] quota_user
|
@@ -579,7 +605,7 @@ module Google
|
|
579
605
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
580
606
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
581
607
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
582
|
-
def batch_get_assets_history(parent, asset_names: nil, content_type: nil, read_time_window_end_time: nil, read_time_window_start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
608
|
+
def batch_get_assets_history(parent, asset_names: nil, content_type: nil, read_time_window_end_time: nil, read_time_window_start_time: nil, relationship_types: nil, fields: nil, quota_user: nil, options: nil, &block)
|
583
609
|
command = make_simple_command(:get, 'v1/{+parent}:batchGetAssetsHistory', options)
|
584
610
|
command.response_representation = Google::Apis::CloudassetV1::BatchGetAssetsHistoryResponse::Representation
|
585
611
|
command.response_class = Google::Apis::CloudassetV1::BatchGetAssetsHistoryResponse
|
@@ -588,6 +614,7 @@ module Google
|
|
588
614
|
command.query['contentType'] = content_type unless content_type.nil?
|
589
615
|
command.query['readTimeWindow.endTime'] = read_time_window_end_time unless read_time_window_end_time.nil?
|
590
616
|
command.query['readTimeWindow.startTime'] = read_time_window_start_time unless read_time_window_start_time.nil?
|
617
|
+
command.query['relationshipTypes'] = relationship_types unless relationship_types.nil?
|
591
618
|
command.query['fields'] = fields unless fields.nil?
|
592
619
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
593
620
|
execute_or_queue_command(command, &block)
|
@@ -804,32 +831,29 @@ module Google
|
|
804
831
|
# kmsKey:key` to find Cloud resources encrypted with a customer-managed
|
805
832
|
# encryption key whose name contains the word "key". * `state:ACTIVE` to find
|
806
833
|
# Cloud resources whose state contains "ACTIVE" as a word. * `NOT state:ACTIVE`
|
807
|
-
# to find
|
808
|
-
#
|
809
|
-
#
|
810
|
-
#
|
811
|
-
#
|
812
|
-
#
|
813
|
-
#
|
814
|
-
#
|
815
|
-
#
|
816
|
-
#
|
817
|
-
#
|
818
|
-
# location.
|
834
|
+
# to find Cloud resources whose state doesn't contain "ACTIVE" as a word. * `
|
835
|
+
# createTime<1609459200` to find Cloud resources that were created before "2021-
|
836
|
+
# 01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of "2021-01-01 00:00:00
|
837
|
+
# UTC" in seconds. * `updateTime>1609459200` to find Cloud resources that were
|
838
|
+
# updated after "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of "
|
839
|
+
# 2021-01-01 00:00:00 UTC" in seconds. * `Important` to find Cloud resources
|
840
|
+
# that contain "Important" as a word in any of the searchable fields. * `Impor*`
|
841
|
+
# to find Cloud resources that contain "Impor" as a prefix of any word in any of
|
842
|
+
# the searchable fields. * `Important location:(us-west1 OR global)` to find
|
843
|
+
# Cloud resources that contain "Important" as a word in any of the searchable
|
844
|
+
# fields and are also located in the "us-west1" region or the "global" location.
|
819
845
|
# @param [String] read_mask
|
820
846
|
# Optional. A comma-separated list of fields specifying which fields to be
|
821
847
|
# returned in ResourceSearchResult. Only '*' or combination of top level fields
|
822
848
|
# can be specified. Field names of both snake_case and camelCase are supported.
|
823
849
|
# Examples: `"*"`, `"name,location"`, `"name,versionedResources"`. The read_mask
|
824
850
|
# paths must be valid field paths listed but not limited to (both snake_case and
|
825
|
-
# camelCase are supported): * name *
|
826
|
-
#
|
827
|
-
#
|
828
|
-
#
|
829
|
-
#
|
830
|
-
#
|
831
|
-
# all fields including versionedResources will be returned. Any invalid field
|
832
|
-
# path will trigger INVALID_ARGUMENT error.
|
851
|
+
# camelCase are supported): * name * assetType * project * displayName *
|
852
|
+
# description * location * labels * networkTags * kmsKey * createTime *
|
853
|
+
# updateTime * state * additionalAttributes * versionedResources If read_mask is
|
854
|
+
# not specified, all fields except versionedResources will be returned. If only '
|
855
|
+
# *' is specified, all fields including versionedResources will be returned. Any
|
856
|
+
# invalid field path will trigger INVALID_ARGUMENT error.
|
833
857
|
# @param [String] fields
|
834
858
|
# Selector specifying which fields to include in a partial response.
|
835
859
|
# @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.
|
4
|
+
version: 0.15.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-
|
11
|
+
date: 2021-08-09 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1/v0.15.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: []
|