google-apis-cloudasset_v1 0.14.0 → 0.15.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:
|
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
@@ -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,6 +285,7 @@ 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)
|
@@ -695,6 +705,22 @@ module Google
|
|
695
705
|
# @return [String]
|
696
706
|
attr_accessor :read_time
|
697
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
|
+
|
698
724
|
def initialize(**args)
|
699
725
|
update!(**args)
|
700
726
|
end
|
@@ -705,6 +731,7 @@ module Google
|
|
705
731
|
@content_type = args[:content_type] if args.key?(:content_type)
|
706
732
|
@output_config = args[:output_config] if args.key?(:output_config)
|
707
733
|
@read_time = args[:read_time] if args.key?(:read_time)
|
734
|
+
@relationship_types = args[:relationship_types] if args.key?(:relationship_types)
|
708
735
|
end
|
709
736
|
end
|
710
737
|
|
@@ -827,6 +854,22 @@ module Google
|
|
827
854
|
# @return [String]
|
828
855
|
attr_accessor :name
|
829
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
|
+
|
830
873
|
def initialize(**args)
|
831
874
|
update!(**args)
|
832
875
|
end
|
@@ -839,6 +882,7 @@ module Google
|
|
839
882
|
@content_type = args[:content_type] if args.key?(:content_type)
|
840
883
|
@feed_output_config = args[:feed_output_config] if args.key?(:feed_output_config)
|
841
884
|
@name = args[:name] if args.key?(:name)
|
885
|
+
@relationship_types = args[:relationship_types] if args.key?(:relationship_types)
|
842
886
|
end
|
843
887
|
end
|
844
888
|
|
@@ -2930,7 +2974,11 @@ module Google
|
|
2930
2974
|
end
|
2931
2975
|
end
|
2932
2976
|
|
2933
|
-
#
|
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).
|
2934
2982
|
class Inventory
|
2935
2983
|
include Google::Apis::Core::Hashable
|
2936
2984
|
|
@@ -2941,11 +2989,22 @@ module Google
|
|
2941
2989
|
# @return [Hash<String,Google::Apis::CloudassetV1::Item>]
|
2942
2990
|
attr_accessor :items
|
2943
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
|
+
|
2944
2998
|
# Operating system information for the VM.
|
2945
2999
|
# Corresponds to the JSON property `osInfo`
|
2946
3000
|
# @return [Google::Apis::CloudassetV1::OsInfo]
|
2947
3001
|
attr_accessor :os_info
|
2948
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
|
+
|
2949
3008
|
def initialize(**args)
|
2950
3009
|
update!(**args)
|
2951
3010
|
end
|
@@ -2953,7 +3012,9 @@ module Google
|
|
2953
3012
|
# Update properties of this object
|
2954
3013
|
def update!(**args)
|
2955
3014
|
@items = args[:items] if args.key?(:items)
|
3015
|
+
@name = args[:name] if args.key?(:name)
|
2956
3016
|
@os_info = args[:os_info] if args.key?(:os_info)
|
3017
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
2957
3018
|
end
|
2958
3019
|
end
|
2959
3020
|
|
@@ -3537,6 +3598,117 @@ module Google
|
|
3537
3598
|
end
|
3538
3599
|
end
|
3539
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
|
+
|
3540
3712
|
# A representation of a Google Cloud resource.
|
3541
3713
|
class Resource
|
3542
3714
|
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.
|
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
|
@@ -502,6 +502,24 @@ module Google
|
|
502
502
|
include Google::Apis::Core::JsonObjectSupport
|
503
503
|
end
|
504
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
|
+
|
505
523
|
class Resource
|
506
524
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
507
525
|
|
@@ -657,6 +675,8 @@ module Google
|
|
657
675
|
|
658
676
|
property :os_inventory, as: 'osInventory', class: Google::Apis::CloudassetV1::Inventory, decorator: Google::Apis::CloudassetV1::Inventory::Representation
|
659
677
|
|
678
|
+
property :related_assets, as: 'relatedAssets', class: Google::Apis::CloudassetV1::RelatedAssets, decorator: Google::Apis::CloudassetV1::RelatedAssets::Representation
|
679
|
+
|
660
680
|
property :resource, as: 'resource', class: Google::Apis::CloudassetV1::Resource, decorator: Google::Apis::CloudassetV1::Resource::Representation
|
661
681
|
|
662
682
|
property :service_perimeter, as: 'servicePerimeter', class: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter, decorator: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter::Representation
|
@@ -766,6 +786,7 @@ module Google
|
|
766
786
|
property :output_config, as: 'outputConfig', class: Google::Apis::CloudassetV1::OutputConfig, decorator: Google::Apis::CloudassetV1::OutputConfig::Representation
|
767
787
|
|
768
788
|
property :read_time, as: 'readTime'
|
789
|
+
collection :relationship_types, as: 'relationshipTypes'
|
769
790
|
end
|
770
791
|
end
|
771
792
|
|
@@ -790,6 +811,7 @@ module Google
|
|
790
811
|
property :feed_output_config, as: 'feedOutputConfig', class: Google::Apis::CloudassetV1::FeedOutputConfig, decorator: Google::Apis::CloudassetV1::FeedOutputConfig::Representation
|
791
812
|
|
792
813
|
property :name, as: 'name'
|
814
|
+
collection :relationship_types, as: 'relationshipTypes'
|
793
815
|
end
|
794
816
|
end
|
795
817
|
|
@@ -1275,8 +1297,10 @@ module Google
|
|
1275
1297
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1276
1298
|
hash :items, as: 'items', class: Google::Apis::CloudassetV1::Item, decorator: Google::Apis::CloudassetV1::Item::Representation
|
1277
1299
|
|
1300
|
+
property :name, as: 'name'
|
1278
1301
|
property :os_info, as: 'osInfo', class: Google::Apis::CloudassetV1::OsInfo, decorator: Google::Apis::CloudassetV1::OsInfo::Representation
|
1279
1302
|
|
1303
|
+
property :update_time, as: 'updateTime'
|
1280
1304
|
end
|
1281
1305
|
end
|
1282
1306
|
|
@@ -1422,6 +1446,35 @@ module Google
|
|
1422
1446
|
end
|
1423
1447
|
end
|
1424
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
|
+
|
1425
1478
|
class Resource
|
1426
1479
|
# @private
|
1427
1480
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -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)
|
@@ -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)
|
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-08-
|
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: []
|