google-apis-cloudasset_v1 0.12.0 → 0.16.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: c38f65fcf1850393aa7f18916850c85b209fd0691b2a6696308a180d6933e254
4
- data.tar.gz: f01a352349d9590e05a2597df3e750c8e7cabd975246a42f86502a8c32f09583
3
+ metadata.gz: 286ee1f529c088104b4afa8fb71de92eb0f22d424de62fcd7f279b127afe7be0
4
+ data.tar.gz: baf1fb71f1245b5df8e5d0017b4517d8bbc5101d43aa77772b420a933aefcd7e
5
5
  SHA512:
6
- metadata.gz: fc78c758ef284a7b9dce6cfe0bb8c3418cd77c8c8e3ee3951b6b675290fc4c523268ec5d632be8bf706ff3a63d81984a1f7de6e6273e9504bbee737cadef1632
7
- data.tar.gz: 879590b7b52b7d015374256d1dd9f6403f56c1665e9d27ffac2c113067707de1a34b0b3ba0c4a877004209fa2e810b70404c4dabf310459f1ecec62cabb26e82
6
+ metadata.gz: 55d1d9854ebdb16a520cc3b5a28404b8e66d15d4577a581a54c3ac4d7e59321b124326bf3a9846ecbeb17b837690d27081d3ff3f70ae705bccbba3b7fa5defce
7
+ data.tar.gz: 92529fbeedf9f6964fbd90d66c92a27b4927ff1717816d9479023680fe99aef6994c6e5be64d80e9b7601c972501813a031e3d030b43960d83a145c851ea17ab
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-cloudasset_v1
2
2
 
3
+ ### v0.16.0 (2021-09-01)
4
+
5
+ * Regenerated from discovery document revision 20210827
6
+
7
+ ### v0.15.0 (2021-08-04)
8
+
9
+ * Regenerated from discovery document revision 20210802
10
+
11
+ ### v0.14.0 (2021-07-28)
12
+
13
+ * Regenerated from discovery document revision 20210723
14
+
15
+ ### v0.13.0 (2021-07-21)
16
+
17
+ * Regenerated from discovery document revision 20210716
18
+
3
19
  ### v0.12.0 (2021-07-14)
4
20
 
5
21
  * Regenerated from discovery document revision 20210709
@@ -50,6 +50,26 @@ module Google
50
50
  end
51
51
  end
52
52
 
53
+ # Represents the metadata of the longrunning operation for the
54
+ # AnalyzeIamPolicyLongrunning rpc.
55
+ class AnalyzeIamPolicyLongrunningMetadata
56
+ include Google::Apis::Core::Hashable
57
+
58
+ # Output only. The time the operation was created.
59
+ # Corresponds to the JSON property `createTime`
60
+ # @return [String]
61
+ attr_accessor :create_time
62
+
63
+ def initialize(**args)
64
+ update!(**args)
65
+ end
66
+
67
+ # Update properties of this object
68
+ def update!(**args)
69
+ @create_time = args[:create_time] if args.key?(:create_time)
70
+ end
71
+ end
72
+
53
73
  # A request message for AssetService.AnalyzeIamPolicyLongrunning.
54
74
  class AnalyzeIamPolicyLongrunningRequest
55
75
  include Google::Apis::Core::Hashable
@@ -210,7 +230,7 @@ module Google
210
230
  # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
211
231
  # roles/resourcemanager.organizationViewer condition: title: expirable access
212
232
  # description: Does not grant access after Sep 2020 expression: request.time <
213
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
233
+ # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
214
234
  # description of IAM and its features, see the [IAM documentation](https://cloud.
215
235
  # google.com/iam/docs/).
216
236
  # Corresponds to the JSON property `iamPolicy`
@@ -233,11 +253,20 @@ module Google
233
253
  # @return [Array<Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1Policy>]
234
254
  attr_accessor :org_policy
235
255
 
236
- # The inventory details of a VM.
256
+ # This API resource represents the available inventory data for a Compute Engine
257
+ # virtual machine (VM) instance at a given point in time. You can use this API
258
+ # resource to determine the inventory data of your VM. For more information, see
259
+ # [Information provided by OS inventory management](https://cloud.google.com/
260
+ # compute/docs/instances/os-inventory-management#data-collected).
237
261
  # Corresponds to the JSON property `osInventory`
238
262
  # @return [Google::Apis::CloudassetV1::Inventory]
239
263
  attr_accessor :os_inventory
240
264
 
265
+ # The detailed related assets with the `relationship_type`.
266
+ # Corresponds to the JSON property `relatedAssets`
267
+ # @return [Google::Apis::CloudassetV1::RelatedAssets]
268
+ attr_accessor :related_assets
269
+
241
270
  # A representation of a Google Cloud resource.
242
271
  # Corresponds to the JSON property `resource`
243
272
  # @return [Google::Apis::CloudassetV1::Resource]
@@ -276,6 +305,7 @@ module Google
276
305
  @name = args[:name] if args.key?(:name)
277
306
  @org_policy = args[:org_policy] if args.key?(:org_policy)
278
307
  @os_inventory = args[:os_inventory] if args.key?(:os_inventory)
308
+ @related_assets = args[:related_assets] if args.key?(:related_assets)
279
309
  @resource = args[:resource] if args.key?(:resource)
280
310
  @service_perimeter = args[:service_perimeter] if args.key?(:service_perimeter)
281
311
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -614,6 +644,47 @@ module Google
614
644
  end
615
645
  end
616
646
 
647
+ # Represents a whole or partial calendar date, such as a birthday. The time of
648
+ # day and time zone are either specified elsewhere or are insignificant. The
649
+ # date is relative to the Gregorian Calendar. This can represent one of the
650
+ # following: * A full date, with non-zero year, month, and day values * A month
651
+ # and day value, with a zero year, such as an anniversary * A year on its own,
652
+ # with zero month and day values * A year and month value, with a zero day, such
653
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
654
+ # google.protobuf.Timestamp`.
655
+ class Date
656
+ include Google::Apis::Core::Hashable
657
+
658
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
659
+ # specify a year by itself or a year and month where the day isn't significant.
660
+ # Corresponds to the JSON property `day`
661
+ # @return [Fixnum]
662
+ attr_accessor :day
663
+
664
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
665
+ # and day.
666
+ # Corresponds to the JSON property `month`
667
+ # @return [Fixnum]
668
+ attr_accessor :month
669
+
670
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
671
+ # year.
672
+ # Corresponds to the JSON property `year`
673
+ # @return [Fixnum]
674
+ attr_accessor :year
675
+
676
+ def initialize(**args)
677
+ update!(**args)
678
+ end
679
+
680
+ # Update properties of this object
681
+ def update!(**args)
682
+ @day = args[:day] if args.key?(:day)
683
+ @month = args[:month] if args.key?(:month)
684
+ @year = args[:year] if args.key?(:year)
685
+ end
686
+ end
687
+
617
688
  # A generic empty message that you can re-use to avoid defining duplicated empty
618
689
  # messages in your APIs. A typical example is to use it as the request or the
619
690
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -695,6 +766,22 @@ module Google
695
766
  # @return [String]
696
767
  attr_accessor :read_time
697
768
 
769
+ # A list of relationship types to export, for example: `
770
+ # INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
771
+ # content_type=RELATIONSHIP. * If specified: it snapshots specified
772
+ # relationships. It returns an error if any of the [relationship_types] doesn't
773
+ # belong to the supported relationship types of the [asset_types] or if any of
774
+ # the [asset_types] doesn't belong to the source types of the [
775
+ # relationship_types]. * Otherwise: it snapshots the supported relationships for
776
+ # all [asset_types] or returns an error if any of the [asset_types] has no
777
+ # relationship support. An unspecified asset types field means all supported
778
+ # asset_types. See [Introduction to Cloud Asset Inventory](https://cloud.google.
779
+ # com/asset-inventory/docs/overview) for all supported asset types and
780
+ # relationship types.
781
+ # Corresponds to the JSON property `relationshipTypes`
782
+ # @return [Array<String>]
783
+ attr_accessor :relationship_types
784
+
698
785
  def initialize(**args)
699
786
  update!(**args)
700
787
  end
@@ -705,6 +792,7 @@ module Google
705
792
  @content_type = args[:content_type] if args.key?(:content_type)
706
793
  @output_config = args[:output_config] if args.key?(:output_config)
707
794
  @read_time = args[:read_time] if args.key?(:read_time)
795
+ @relationship_types = args[:relationship_types] if args.key?(:relationship_types)
708
796
  end
709
797
  end
710
798
 
@@ -827,6 +915,22 @@ module Google
827
915
  # @return [String]
828
916
  attr_accessor :name
829
917
 
918
+ # A list of relationship types to output, for example: `
919
+ # INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
920
+ # content_type=RELATIONSHIP. * If specified: it outputs specified relationship
921
+ # updates on the [asset_names] or the [asset_types]. It returns an error if any
922
+ # of the [relationship_types] doesn't belong to the supported relationship types
923
+ # of the [asset_names] or [asset_types], or any of the [asset_names] or the [
924
+ # asset_types] doesn't belong to the source types of the [relationship_types]. *
925
+ # Otherwise: it outputs the supported relationships of the types of [asset_names]
926
+ # and [asset_types] or returns an error if any of the [asset_names] or the [
927
+ # asset_types] has no replationship support. See [Introduction to Cloud Asset
928
+ # Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
929
+ # supported asset types and relationship types.
930
+ # Corresponds to the JSON property `relationshipTypes`
931
+ # @return [Array<String>]
932
+ attr_accessor :relationship_types
933
+
830
934
  def initialize(**args)
831
935
  update!(**args)
832
936
  end
@@ -839,6 +943,7 @@ module Google
839
943
  @content_type = args[:content_type] if args.key?(:content_type)
840
944
  @feed_output_config = args[:feed_output_config] if args.key?(:feed_output_config)
841
945
  @name = args[:name] if args.key?(:name)
946
+ @relationship_types = args[:relationship_types] if args.key?(:relationship_types)
842
947
  end
843
948
  end
844
949
 
@@ -1239,7 +1344,7 @@ module Google
1239
1344
  # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1240
1345
  # roles/resourcemanager.organizationViewer condition: title: expirable access
1241
1346
  # description: Does not grant access after Sep 2020 expression: request.time <
1242
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1347
+ # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
1243
1348
  # description of IAM and its features, see the [IAM documentation](https://cloud.
1244
1349
  # google.com/iam/docs/).
1245
1350
  # Corresponds to the JSON property `iamPolicy`
@@ -1796,8 +1901,8 @@ module Google
1796
1901
 
1797
1902
  # Required. Resource name for the Access Level. The `short_name` component must
1798
1903
  # begin with a letter and only include alphanumeric and '_'. Format: `
1799
- # accessPolicies/`policy_id`/accessLevels/`short_name``. The maximum length of
1800
- # the `short_name` component is 50 characters.
1904
+ # accessPolicies/`access_policy`/accessLevels/`access_level``. The maximum
1905
+ # length of the `access_level` component is 50 characters.
1801
1906
  # Corresponds to the JSON property `name`
1802
1907
  # @return [String]
1803
1908
  attr_accessor :name
@@ -1838,7 +1943,7 @@ module Google
1838
1943
  attr_accessor :etag
1839
1944
 
1840
1945
  # Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/`
1841
- # policy_id``
1946
+ # access_policy``
1842
1947
  # Corresponds to the JSON property `name`
1843
1948
  # @return [String]
1844
1949
  attr_accessor :name
@@ -2443,7 +2548,7 @@ module Google
2443
2548
 
2444
2549
  # Required. Resource name for the ServicePerimeter. The `short_name` component
2445
2550
  # must begin with a letter and only include alphanumeric and '_'. Format: `
2446
- # accessPolicies/`policy_id`/servicePerimeters/`short_name``
2551
+ # accessPolicies/`access_policy`/servicePerimeters/`service_perimeter``
2447
2552
  # Corresponds to the JSON property `name`
2448
2553
  # @return [String]
2449
2554
  attr_accessor :name
@@ -2861,7 +2966,7 @@ module Google
2861
2966
  # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
2862
2967
  # roles/resourcemanager.organizationViewer condition: title: expirable access
2863
2968
  # description: Does not grant access after Sep 2020 expression: request.time <
2864
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
2969
+ # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
2865
2970
  # description of IAM and its features, see the [IAM documentation](https://cloud.
2866
2971
  # google.com/iam/docs/).
2867
2972
  # Corresponds to the JSON property `policy`
@@ -2930,7 +3035,11 @@ module Google
2930
3035
  end
2931
3036
  end
2932
3037
 
2933
- # The inventory details of a VM.
3038
+ # This API resource represents the available inventory data for a Compute Engine
3039
+ # virtual machine (VM) instance at a given point in time. You can use this API
3040
+ # resource to determine the inventory data of your VM. For more information, see
3041
+ # [Information provided by OS inventory management](https://cloud.google.com/
3042
+ # compute/docs/instances/os-inventory-management#data-collected).
2934
3043
  class Inventory
2935
3044
  include Google::Apis::Core::Hashable
2936
3045
 
@@ -2941,11 +3050,22 @@ module Google
2941
3050
  # @return [Hash<String,Google::Apis::CloudassetV1::Item>]
2942
3051
  attr_accessor :items
2943
3052
 
3053
+ # Output only. The `Inventory` API resource name. Format: `projects/`
3054
+ # project_number`/locations/`location`/instances/`instance_id`/inventory`
3055
+ # Corresponds to the JSON property `name`
3056
+ # @return [String]
3057
+ attr_accessor :name
3058
+
2944
3059
  # Operating system information for the VM.
2945
3060
  # Corresponds to the JSON property `osInfo`
2946
3061
  # @return [Google::Apis::CloudassetV1::OsInfo]
2947
3062
  attr_accessor :os_info
2948
3063
 
3064
+ # Output only. Timestamp of the last reported inventory for the VM.
3065
+ # Corresponds to the JSON property `updateTime`
3066
+ # @return [String]
3067
+ attr_accessor :update_time
3068
+
2949
3069
  def initialize(**args)
2950
3070
  update!(**args)
2951
3071
  end
@@ -2953,7 +3073,9 @@ module Google
2953
3073
  # Update properties of this object
2954
3074
  def update!(**args)
2955
3075
  @items = args[:items] if args.key?(:items)
3076
+ @name = args[:name] if args.key?(:name)
2956
3077
  @os_info = args[:os_info] if args.key?(:os_info)
3078
+ @update_time = args[:update_time] if args.key?(:update_time)
2957
3079
  end
2958
3080
  end
2959
3081
 
@@ -3451,7 +3573,7 @@ module Google
3451
3573
  # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
3452
3574
  # roles/resourcemanager.organizationViewer condition: title: expirable access
3453
3575
  # description: Does not grant access after Sep 2020 expression: request.time <
3454
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
3576
+ # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
3455
3577
  # description of IAM and its features, see the [IAM documentation](https://cloud.
3456
3578
  # google.com/iam/docs/).
3457
3579
  class Policy
@@ -3537,6 +3659,162 @@ module Google
3537
3659
  end
3538
3660
  end
3539
3661
 
3662
+ # An asset identify in Google Cloud which contains its name, type and ancestors.
3663
+ # An asset can be any resource in the Google Cloud [resource hierarchy](https://
3664
+ # cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), a
3665
+ # resource outside the Google Cloud resource hierarchy (such as Google
3666
+ # Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy).
3667
+ # See [Supported asset types](https://cloud.google.com/asset-inventory/docs/
3668
+ # supported-asset-types) for more information.
3669
+ class RelatedAsset
3670
+ include Google::Apis::Core::Hashable
3671
+
3672
+ # The ancestors of an asset in Google Cloud [resource hierarchy](https://cloud.
3673
+ # google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
3674
+ # represented as a list of relative resource names. An ancestry path starts with
3675
+ # the closest ancestor in the hierarchy and ends at root. Example: `["projects/
3676
+ # 123456789", "folders/5432", "organizations/1234"]`
3677
+ # Corresponds to the JSON property `ancestors`
3678
+ # @return [Array<String>]
3679
+ attr_accessor :ancestors
3680
+
3681
+ # The full name of the asset. Example: `//compute.googleapis.com/projects/
3682
+ # my_project_123/zones/zone1/instances/instance1` See [Resource names](https://
3683
+ # cloud.google.com/apis/design/resource_names#full_resource_name) for more
3684
+ # information.
3685
+ # Corresponds to the JSON property `asset`
3686
+ # @return [String]
3687
+ attr_accessor :asset
3688
+
3689
+ # The type of the asset. Example: `compute.googleapis.com/Disk` See [Supported
3690
+ # asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-
3691
+ # types) for more information.
3692
+ # Corresponds to the JSON property `assetType`
3693
+ # @return [String]
3694
+ attr_accessor :asset_type
3695
+
3696
+ def initialize(**args)
3697
+ update!(**args)
3698
+ end
3699
+
3700
+ # Update properties of this object
3701
+ def update!(**args)
3702
+ @ancestors = args[:ancestors] if args.key?(:ancestors)
3703
+ @asset = args[:asset] if args.key?(:asset)
3704
+ @asset_type = args[:asset_type] if args.key?(:asset_type)
3705
+ end
3706
+ end
3707
+
3708
+ # The detailed related assets with the `relationship_type`.
3709
+ class RelatedAssets
3710
+ include Google::Apis::Core::Hashable
3711
+
3712
+ # The peer resources of the relationship.
3713
+ # Corresponds to the JSON property `assets`
3714
+ # @return [Array<Google::Apis::CloudassetV1::RelatedAsset>]
3715
+ attr_accessor :assets
3716
+
3717
+ # The relationship attributes which include `type`, `source_resource_type`, `
3718
+ # target_resource_type` and `action`.
3719
+ # Corresponds to the JSON property `relationshipAttributes`
3720
+ # @return [Google::Apis::CloudassetV1::RelationshipAttributes]
3721
+ attr_accessor :relationship_attributes
3722
+
3723
+ def initialize(**args)
3724
+ update!(**args)
3725
+ end
3726
+
3727
+ # Update properties of this object
3728
+ def update!(**args)
3729
+ @assets = args[:assets] if args.key?(:assets)
3730
+ @relationship_attributes = args[:relationship_attributes] if args.key?(:relationship_attributes)
3731
+ end
3732
+ end
3733
+
3734
+ # The detailed related resource.
3735
+ class RelatedResource
3736
+ include Google::Apis::Core::Hashable
3737
+
3738
+ # The type of the asset. Example: `compute.googleapis.com/Instance`
3739
+ # Corresponds to the JSON property `assetType`
3740
+ # @return [String]
3741
+ attr_accessor :asset_type
3742
+
3743
+ # The full resource name of the related resource. Example: `//compute.googleapis.
3744
+ # com/projects/my_proj_123/zones/instance/instance123`
3745
+ # Corresponds to the JSON property `fullResourceName`
3746
+ # @return [String]
3747
+ attr_accessor :full_resource_name
3748
+
3749
+ def initialize(**args)
3750
+ update!(**args)
3751
+ end
3752
+
3753
+ # Update properties of this object
3754
+ def update!(**args)
3755
+ @asset_type = args[:asset_type] if args.key?(:asset_type)
3756
+ @full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name)
3757
+ end
3758
+ end
3759
+
3760
+ # The related resources of the primary resource.
3761
+ class RelatedResources
3762
+ include Google::Apis::Core::Hashable
3763
+
3764
+ # The detailed related resources of the primary resource.
3765
+ # Corresponds to the JSON property `relatedResources`
3766
+ # @return [Array<Google::Apis::CloudassetV1::RelatedResource>]
3767
+ attr_accessor :related_resources
3768
+
3769
+ def initialize(**args)
3770
+ update!(**args)
3771
+ end
3772
+
3773
+ # Update properties of this object
3774
+ def update!(**args)
3775
+ @related_resources = args[:related_resources] if args.key?(:related_resources)
3776
+ end
3777
+ end
3778
+
3779
+ # The relationship attributes which include `type`, `source_resource_type`, `
3780
+ # target_resource_type` and `action`.
3781
+ class RelationshipAttributes
3782
+ include Google::Apis::Core::Hashable
3783
+
3784
+ # The detail of the relationship, e.g. `contains`, `attaches`
3785
+ # Corresponds to the JSON property `action`
3786
+ # @return [String]
3787
+ attr_accessor :action
3788
+
3789
+ # The source asset type. Example: `compute.googleapis.com/Instance`
3790
+ # Corresponds to the JSON property `sourceResourceType`
3791
+ # @return [String]
3792
+ attr_accessor :source_resource_type
3793
+
3794
+ # The target asset type. Example: `compute.googleapis.com/Disk`
3795
+ # Corresponds to the JSON property `targetResourceType`
3796
+ # @return [String]
3797
+ attr_accessor :target_resource_type
3798
+
3799
+ # The unique identifier of the relationship type. Example: `
3800
+ # INSTANCE_TO_INSTANCEGROUP`
3801
+ # Corresponds to the JSON property `type`
3802
+ # @return [String]
3803
+ attr_accessor :type
3804
+
3805
+ def initialize(**args)
3806
+ update!(**args)
3807
+ end
3808
+
3809
+ # Update properties of this object
3810
+ def update!(**args)
3811
+ @action = args[:action] if args.key?(:action)
3812
+ @source_resource_type = args[:source_resource_type] if args.key?(:source_resource_type)
3813
+ @target_resource_type = args[:target_resource_type] if args.key?(:target_resource_type)
3814
+ @type = args[:type] if args.key?(:type)
3815
+ end
3816
+ end
3817
+
3540
3818
  # A representation of a Google Cloud resource.
3541
3819
  class Resource
3542
3820
  include Google::Apis::Core::Hashable
@@ -3767,6 +4045,15 @@ module Google
3767
4045
  # @return [String]
3768
4046
  attr_accessor :project
3769
4047
 
4048
+ # A map of related resources of this resource, keyed by the relationship type. A
4049
+ # relationship type is in the format of `SourceType`_`ACTION`_`DestType`.
4050
+ # Example: `DISK_TO_INSTANCE`, `DISK_TO_NETWORK`, `INSTANCE_TO_INSTANCEGROUP`.
4051
+ # See [supported relationship types](https://cloud.google.com/asset-inventory/
4052
+ # docs/supported-asset-types#supported_relationship_types).
4053
+ # Corresponds to the JSON property `relationships`
4054
+ # @return [Hash<String,Google::Apis::CloudassetV1::RelatedResources>]
4055
+ attr_accessor :relationships
4056
+
3770
4057
  # The state of this resource. Different resources types have different state
3771
4058
  # definitions that are mapped from various fields of different resource types.
3772
4059
  # This field is available only when the resource's proto contains it. Example:
@@ -3826,6 +4113,7 @@ module Google
3826
4113
  @parent_asset_type = args[:parent_asset_type] if args.key?(:parent_asset_type)
3827
4114
  @parent_full_resource_name = args[:parent_full_resource_name] if args.key?(:parent_full_resource_name)
3828
4115
  @project = args[:project] if args.key?(:project)
4116
+ @relationships = args[:relationships] if args.key?(:relationships)
3829
4117
  @state = args[:state] if args.key?(:state)
3830
4118
  @update_time = args[:update_time] if args.key?(:update_time)
3831
4119
  @versioned_resources = args[:versioned_resources] if args.key?(:versioned_resources)
@@ -3941,6 +4229,14 @@ module Google
3941
4229
  # @return [Google::Apis::CloudassetV1::WindowsQuickFixEngineeringPackage]
3942
4230
  attr_accessor :qfe_package
3943
4231
 
4232
+ # Contains information about a Windows application as retrieved from the Windows
4233
+ # Registry. For more information about these fields, see [Windows Installer
4234
+ # Properties for the Uninstall Registry](https://docs.microsoft.com/en-us/
4235
+ # windows/win32/msi/uninstall-registry-key)`: class="external" `
4236
+ # Corresponds to the JSON property `windowsApplication`
4237
+ # @return [Google::Apis::CloudassetV1::WindowsApplication]
4238
+ attr_accessor :windows_application
4239
+
3944
4240
  # Details related to a Windows Update package. Field data and names are taken
3945
4241
  # from Windows Update API IUpdate Interface: https://docs.microsoft.com/en-us/
3946
4242
  # windows/win32/api/_wua/ Descriptive fields like title, and description are
@@ -3976,6 +4272,7 @@ module Google
3976
4272
  @cos_package = args[:cos_package] if args.key?(:cos_package)
3977
4273
  @googet_package = args[:googet_package] if args.key?(:googet_package)
3978
4274
  @qfe_package = args[:qfe_package] if args.key?(:qfe_package)
4275
+ @windows_application = args[:windows_application] if args.key?(:windows_application)
3979
4276
  @wua_package = args[:wua_package] if args.key?(:wua_package)
3980
4277
  @yum_package = args[:yum_package] if args.key?(:yum_package)
3981
4278
  @zypper_package = args[:zypper_package] if args.key?(:zypper_package)
@@ -4201,6 +4498,59 @@ module Google
4201
4498
  end
4202
4499
  end
4203
4500
 
4501
+ # Contains information about a Windows application as retrieved from the Windows
4502
+ # Registry. For more information about these fields, see [Windows Installer
4503
+ # Properties for the Uninstall Registry](https://docs.microsoft.com/en-us/
4504
+ # windows/win32/msi/uninstall-registry-key)`: class="external" `
4505
+ class WindowsApplication
4506
+ include Google::Apis::Core::Hashable
4507
+
4508
+ # The name of the application or product.
4509
+ # Corresponds to the JSON property `displayName`
4510
+ # @return [String]
4511
+ attr_accessor :display_name
4512
+
4513
+ # The version of the product or application in string format.
4514
+ # Corresponds to the JSON property `displayVersion`
4515
+ # @return [String]
4516
+ attr_accessor :display_version
4517
+
4518
+ # The internet address for technical support.
4519
+ # Corresponds to the JSON property `helpLink`
4520
+ # @return [String]
4521
+ attr_accessor :help_link
4522
+
4523
+ # Represents a whole or partial calendar date, such as a birthday. The time of
4524
+ # day and time zone are either specified elsewhere or are insignificant. The
4525
+ # date is relative to the Gregorian Calendar. This can represent one of the
4526
+ # following: * A full date, with non-zero year, month, and day values * A month
4527
+ # and day value, with a zero year, such as an anniversary * A year on its own,
4528
+ # with zero month and day values * A year and month value, with a zero day, such
4529
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
4530
+ # google.protobuf.Timestamp`.
4531
+ # Corresponds to the JSON property `installDate`
4532
+ # @return [Google::Apis::CloudassetV1::Date]
4533
+ attr_accessor :install_date
4534
+
4535
+ # The name of the manufacturer for the product or application.
4536
+ # Corresponds to the JSON property `publisher`
4537
+ # @return [String]
4538
+ attr_accessor :publisher
4539
+
4540
+ def initialize(**args)
4541
+ update!(**args)
4542
+ end
4543
+
4544
+ # Update properties of this object
4545
+ def update!(**args)
4546
+ @display_name = args[:display_name] if args.key?(:display_name)
4547
+ @display_version = args[:display_version] if args.key?(:display_version)
4548
+ @help_link = args[:help_link] if args.key?(:help_link)
4549
+ @install_date = args[:install_date] if args.key?(:install_date)
4550
+ @publisher = args[:publisher] if args.key?(:publisher)
4551
+ end
4552
+ end
4553
+
4204
4554
  # Information related to a Quick Fix Engineering package. Fields are taken from
4205
4555
  # Windows QuickFixEngineering Interface and match the source names: https://docs.
4206
4556
  # microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering
@@ -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.12.0"
19
+ GEM_VERSION = "0.16.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 = "20210709"
25
+ REVISION = "20210827"
26
26
  end
27
27
  end
28
28
  end
@@ -28,6 +28,12 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class AnalyzeIamPolicyLongrunningMetadata
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
31
37
  class AnalyzeIamPolicyLongrunningRequest
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
@@ -112,6 +118,12 @@ module Google
112
118
  include Google::Apis::Core::JsonObjectSupport
113
119
  end
114
120
 
121
+ class Date
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
115
127
  class Empty
116
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
129
 
@@ -502,6 +514,36 @@ module Google
502
514
  include Google::Apis::Core::JsonObjectSupport
503
515
  end
504
516
 
517
+ class RelatedAsset
518
+ class Representation < Google::Apis::Core::JsonRepresentation; end
519
+
520
+ include Google::Apis::Core::JsonObjectSupport
521
+ end
522
+
523
+ class RelatedAssets
524
+ class Representation < Google::Apis::Core::JsonRepresentation; end
525
+
526
+ include Google::Apis::Core::JsonObjectSupport
527
+ end
528
+
529
+ class RelatedResource
530
+ class Representation < Google::Apis::Core::JsonRepresentation; end
531
+
532
+ include Google::Apis::Core::JsonObjectSupport
533
+ end
534
+
535
+ class RelatedResources
536
+ class Representation < Google::Apis::Core::JsonRepresentation; end
537
+
538
+ include Google::Apis::Core::JsonObjectSupport
539
+ end
540
+
541
+ class RelationshipAttributes
542
+ class Representation < Google::Apis::Core::JsonRepresentation; end
543
+
544
+ include Google::Apis::Core::JsonObjectSupport
545
+ end
546
+
505
547
  class Resource
506
548
  class Representation < Google::Apis::Core::JsonRepresentation; end
507
549
 
@@ -574,6 +616,12 @@ module Google
574
616
  include Google::Apis::Core::JsonObjectSupport
575
617
  end
576
618
 
619
+ class WindowsApplication
620
+ class Representation < Google::Apis::Core::JsonRepresentation; end
621
+
622
+ include Google::Apis::Core::JsonObjectSupport
623
+ end
624
+
577
625
  class WindowsQuickFixEngineeringPackage
578
626
  class Representation < Google::Apis::Core::JsonRepresentation; end
579
627
 
@@ -606,6 +654,13 @@ module Google
606
654
  end
607
655
  end
608
656
 
657
+ class AnalyzeIamPolicyLongrunningMetadata
658
+ # @private
659
+ class Representation < Google::Apis::Core::JsonRepresentation
660
+ property :create_time, as: 'createTime'
661
+ end
662
+ end
663
+
609
664
  class AnalyzeIamPolicyLongrunningRequest
610
665
  # @private
611
666
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -657,6 +712,8 @@ module Google
657
712
 
658
713
  property :os_inventory, as: 'osInventory', class: Google::Apis::CloudassetV1::Inventory, decorator: Google::Apis::CloudassetV1::Inventory::Representation
659
714
 
715
+ property :related_assets, as: 'relatedAssets', class: Google::Apis::CloudassetV1::RelatedAssets, decorator: Google::Apis::CloudassetV1::RelatedAssets::Representation
716
+
660
717
  property :resource, as: 'resource', class: Google::Apis::CloudassetV1::Resource, decorator: Google::Apis::CloudassetV1::Resource::Representation
661
718
 
662
719
  property :service_perimeter, as: 'servicePerimeter', class: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter, decorator: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter::Representation
@@ -744,6 +801,15 @@ module Google
744
801
  end
745
802
  end
746
803
 
804
+ class Date
805
+ # @private
806
+ class Representation < Google::Apis::Core::JsonRepresentation
807
+ property :day, as: 'day'
808
+ property :month, as: 'month'
809
+ property :year, as: 'year'
810
+ end
811
+ end
812
+
747
813
  class Empty
748
814
  # @private
749
815
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -766,6 +832,7 @@ module Google
766
832
  property :output_config, as: 'outputConfig', class: Google::Apis::CloudassetV1::OutputConfig, decorator: Google::Apis::CloudassetV1::OutputConfig::Representation
767
833
 
768
834
  property :read_time, as: 'readTime'
835
+ collection :relationship_types, as: 'relationshipTypes'
769
836
  end
770
837
  end
771
838
 
@@ -790,6 +857,7 @@ module Google
790
857
  property :feed_output_config, as: 'feedOutputConfig', class: Google::Apis::CloudassetV1::FeedOutputConfig, decorator: Google::Apis::CloudassetV1::FeedOutputConfig::Representation
791
858
 
792
859
  property :name, as: 'name'
860
+ collection :relationship_types, as: 'relationshipTypes'
793
861
  end
794
862
  end
795
863
 
@@ -1275,8 +1343,10 @@ module Google
1275
1343
  class Representation < Google::Apis::Core::JsonRepresentation
1276
1344
  hash :items, as: 'items', class: Google::Apis::CloudassetV1::Item, decorator: Google::Apis::CloudassetV1::Item::Representation
1277
1345
 
1346
+ property :name, as: 'name'
1278
1347
  property :os_info, as: 'osInfo', class: Google::Apis::CloudassetV1::OsInfo, decorator: Google::Apis::CloudassetV1::OsInfo::Representation
1279
1348
 
1349
+ property :update_time, as: 'updateTime'
1280
1350
  end
1281
1351
  end
1282
1352
 
@@ -1422,6 +1492,51 @@ module Google
1422
1492
  end
1423
1493
  end
1424
1494
 
1495
+ class RelatedAsset
1496
+ # @private
1497
+ class Representation < Google::Apis::Core::JsonRepresentation
1498
+ collection :ancestors, as: 'ancestors'
1499
+ property :asset, as: 'asset'
1500
+ property :asset_type, as: 'assetType'
1501
+ end
1502
+ end
1503
+
1504
+ class RelatedAssets
1505
+ # @private
1506
+ class Representation < Google::Apis::Core::JsonRepresentation
1507
+ collection :assets, as: 'assets', class: Google::Apis::CloudassetV1::RelatedAsset, decorator: Google::Apis::CloudassetV1::RelatedAsset::Representation
1508
+
1509
+ property :relationship_attributes, as: 'relationshipAttributes', class: Google::Apis::CloudassetV1::RelationshipAttributes, decorator: Google::Apis::CloudassetV1::RelationshipAttributes::Representation
1510
+
1511
+ end
1512
+ end
1513
+
1514
+ class RelatedResource
1515
+ # @private
1516
+ class Representation < Google::Apis::Core::JsonRepresentation
1517
+ property :asset_type, as: 'assetType'
1518
+ property :full_resource_name, as: 'fullResourceName'
1519
+ end
1520
+ end
1521
+
1522
+ class RelatedResources
1523
+ # @private
1524
+ class Representation < Google::Apis::Core::JsonRepresentation
1525
+ collection :related_resources, as: 'relatedResources', class: Google::Apis::CloudassetV1::RelatedResource, decorator: Google::Apis::CloudassetV1::RelatedResource::Representation
1526
+
1527
+ end
1528
+ end
1529
+
1530
+ class RelationshipAttributes
1531
+ # @private
1532
+ class Representation < Google::Apis::Core::JsonRepresentation
1533
+ property :action, as: 'action'
1534
+ property :source_resource_type, as: 'sourceResourceType'
1535
+ property :target_resource_type, as: 'targetResourceType'
1536
+ property :type, as: 'type'
1537
+ end
1538
+ end
1539
+
1425
1540
  class Resource
1426
1541
  # @private
1427
1542
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1455,6 +1570,8 @@ module Google
1455
1570
  property :parent_asset_type, as: 'parentAssetType'
1456
1571
  property :parent_full_resource_name, as: 'parentFullResourceName'
1457
1572
  property :project, as: 'project'
1573
+ hash :relationships, as: 'relationships', class: Google::Apis::CloudassetV1::RelatedResources, decorator: Google::Apis::CloudassetV1::RelatedResources::Representation
1574
+
1458
1575
  property :state, as: 'state'
1459
1576
  property :update_time, as: 'updateTime'
1460
1577
  collection :versioned_resources, as: 'versionedResources', class: Google::Apis::CloudassetV1::VersionedResource, decorator: Google::Apis::CloudassetV1::VersionedResource::Representation
@@ -1498,6 +1615,8 @@ module Google
1498
1615
 
1499
1616
  property :qfe_package, as: 'qfePackage', class: Google::Apis::CloudassetV1::WindowsQuickFixEngineeringPackage, decorator: Google::Apis::CloudassetV1::WindowsQuickFixEngineeringPackage::Representation
1500
1617
 
1618
+ property :windows_application, as: 'windowsApplication', class: Google::Apis::CloudassetV1::WindowsApplication, decorator: Google::Apis::CloudassetV1::WindowsApplication::Representation
1619
+
1501
1620
  property :wua_package, as: 'wuaPackage', class: Google::Apis::CloudassetV1::WindowsUpdatePackage, decorator: Google::Apis::CloudassetV1::WindowsUpdatePackage::Representation
1502
1621
 
1503
1622
  property :yum_package, as: 'yumPackage', class: Google::Apis::CloudassetV1::VersionedPackage, decorator: Google::Apis::CloudassetV1::VersionedPackage::Representation
@@ -1566,6 +1685,18 @@ module Google
1566
1685
  end
1567
1686
  end
1568
1687
 
1688
+ class WindowsApplication
1689
+ # @private
1690
+ class Representation < Google::Apis::Core::JsonRepresentation
1691
+ property :display_name, as: 'displayName'
1692
+ property :display_version, as: 'displayVersion'
1693
+ property :help_link, as: 'helpLink'
1694
+ property :install_date, as: 'installDate', class: Google::Apis::CloudassetV1::Date, decorator: Google::Apis::CloudassetV1::Date::Representation
1695
+
1696
+ property :publisher, as: 'publisher'
1697
+ end
1698
+ end
1699
+
1569
1700
  class WindowsQuickFixEngineeringPackage
1570
1701
  # @private
1571
1702
  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)
@@ -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 request to help callers to map responses to requests.
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)
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1'
31
31
 
32
- # See, edit, configure, and delete your Google Cloud Platform data
32
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
34
  end
35
35
  end
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.12.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-19 00:00:00.000000000 Z
11
+ date: 2021-09-06 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.12.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1/v0.16.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: []