google-cloud-asset-v1 0.14.1 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/asset/v1/asset_service/client.rb +52 -3
- data/lib/google/cloud/asset/v1/asset_service_pb.rb +5 -0
- data/lib/google/cloud/asset/v1/assets_pb.rb +21 -0
- data/lib/google/cloud/asset/v1/version.rb +1 -1
- data/proto_docs/google/cloud/asset/v1/asset_service.rb +74 -1
- data/proto_docs/google/cloud/asset/v1/assets.rb +72 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe4cb183d47d24ad9e43d0e891edf702ca9fa3d1208f1d59ea304c3afa9ec580
|
4
|
+
data.tar.gz: 153470a82f027869dbf0a6efae2633c471ea63e873f07ee79265153bdb1a290b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3a92efbe9930cb0e62d26963e50baa9a7b1f0c33e82ea05103f1154485003bae40459ac9c96efb8c0c6ac02ae09661754e0cf0f271e4d9c83707857d2e68a01
|
7
|
+
data.tar.gz: e5be3acdae9470c8e543a9caeb544e8b3f63c22a7afc5d35bba90ac0f98331696a6e3451c9313e41e584ea254d72d53bc30c7341218482d24a9a90394359f0ec
|
@@ -226,7 +226,7 @@ module Google
|
|
226
226
|
# @param options [::Gapic::CallOptions, ::Hash]
|
227
227
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
228
228
|
#
|
229
|
-
# @overload export_assets(parent: nil, read_time: nil, asset_types: nil, content_type: nil, output_config: nil)
|
229
|
+
# @overload export_assets(parent: nil, read_time: nil, asset_types: nil, content_type: nil, output_config: nil, relationship_types: nil)
|
230
230
|
# Pass arguments to `export_assets` via keyword arguments. Note that at
|
231
231
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
232
232
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -266,6 +266,22 @@ module Google
|
|
266
266
|
# returned.
|
267
267
|
# @param output_config [::Google::Cloud::Asset::V1::OutputConfig, ::Hash]
|
268
268
|
# Required. Output configuration indicating where the results will be output to.
|
269
|
+
# @param relationship_types [::Array<::String>]
|
270
|
+
# A list of relationship types to export, for example:
|
271
|
+
# `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
|
272
|
+
# content_type=RELATIONSHIP.
|
273
|
+
# * If specified:
|
274
|
+
# it snapshots specified relationships. It returns an error if
|
275
|
+
# any of the [relationship_types] doesn't belong to the supported
|
276
|
+
# relationship types of the [asset_types] or if any of the [asset_types]
|
277
|
+
# doesn't belong to the source types of the [relationship_types].
|
278
|
+
# * Otherwise:
|
279
|
+
# it snapshots the supported relationships for all [asset_types] or returns
|
280
|
+
# an error if any of the [asset_types] has no relationship support.
|
281
|
+
# An unspecified asset types field means all supported asset_types.
|
282
|
+
# See [Introduction to Cloud Asset
|
283
|
+
# Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
|
284
|
+
# supported asset types and relationship types.
|
269
285
|
#
|
270
286
|
# @yield [response, operation] Access the result along with the RPC operation
|
271
287
|
# @yieldparam response [::Gapic::Operation]
|
@@ -329,7 +345,7 @@ module Google
|
|
329
345
|
# @param options [::Gapic::CallOptions, ::Hash]
|
330
346
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
331
347
|
#
|
332
|
-
# @overload list_assets(parent: nil, read_time: nil, asset_types: nil, content_type: nil, page_size: nil, page_token: nil)
|
348
|
+
# @overload list_assets(parent: nil, read_time: nil, asset_types: nil, content_type: nil, page_size: nil, page_token: nil, relationship_types: nil)
|
333
349
|
# Pass arguments to `list_assets` via keyword arguments. Note that at
|
334
350
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
335
351
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -374,6 +390,22 @@ module Google
|
|
374
390
|
# The `next_page_token` returned from the previous `ListAssetsResponse`, or
|
375
391
|
# unspecified for the first `ListAssetsRequest`. It is a continuation of a
|
376
392
|
# prior `ListAssets` call, and the API should return the next page of assets.
|
393
|
+
# @param relationship_types [::Array<::String>]
|
394
|
+
# A list of relationship types to output, for example:
|
395
|
+
# `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
|
396
|
+
# content_type=RELATIONSHIP.
|
397
|
+
# * If specified:
|
398
|
+
# it snapshots specified relationships. It returns an error if
|
399
|
+
# any of the [relationship_types] doesn't belong to the supported
|
400
|
+
# relationship types of the [asset_types] or if any of the [asset_types]
|
401
|
+
# doesn't belong to the source types of the [relationship_types].
|
402
|
+
# * Otherwise:
|
403
|
+
# it snapshots the supported relationships for all [asset_types] or returns
|
404
|
+
# an error if any of the [asset_types] has no relationship support.
|
405
|
+
# An unspecified asset types field means all supported asset_types.
|
406
|
+
# See [Introduction to Cloud Asset
|
407
|
+
# Inventory](https://cloud.google.com/asset-inventory/docs/overview)
|
408
|
+
# for all supported asset types and relationship types.
|
377
409
|
#
|
378
410
|
# @yield [response, operation] Access the result along with the RPC operation
|
379
411
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Asset::V1::Asset>]
|
@@ -442,7 +474,7 @@ module Google
|
|
442
474
|
# @param options [::Gapic::CallOptions, ::Hash]
|
443
475
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
444
476
|
#
|
445
|
-
# @overload batch_get_assets_history(parent: nil, asset_names: nil, content_type: nil, read_time_window: nil)
|
477
|
+
# @overload batch_get_assets_history(parent: nil, asset_names: nil, content_type: nil, read_time_window: nil, relationship_types: nil)
|
446
478
|
# Pass arguments to `batch_get_assets_history` via keyword arguments. Note that at
|
447
479
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
448
480
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -469,6 +501,23 @@ module Google
|
|
469
501
|
# If start_time is not set, the snapshot of the assets at end_time will be
|
470
502
|
# returned. The returned results contain all temporal assets whose time
|
471
503
|
# window overlap with read_time_window.
|
504
|
+
# @param relationship_types [::Array<::String>]
|
505
|
+
# Optional. A list of relationship types to output, for example:
|
506
|
+
# `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
|
507
|
+
# content_type=RELATIONSHIP.
|
508
|
+
# * If specified:
|
509
|
+
# it outputs specified relationships' history on the [asset_names]. It
|
510
|
+
# returns an error if any of the [relationship_types] doesn't belong to the
|
511
|
+
# supported relationship types of the [asset_names] or if any of the
|
512
|
+
# [asset_names]'s types doesn't belong to the source types of the
|
513
|
+
# [relationship_types].
|
514
|
+
# * Otherwise:
|
515
|
+
# it outputs the supported relationships' history on the [asset_names] or
|
516
|
+
# returns an error if any of the [asset_names]'s types has no relationship
|
517
|
+
# support.
|
518
|
+
# See [Introduction to Cloud Asset
|
519
|
+
# Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
|
520
|
+
# supported asset types and relationship types.
|
472
521
|
#
|
473
522
|
# @yield [response, operation] Access the result along with the RPC operation
|
474
523
|
# @yieldparam response [::Google::Cloud::Asset::V1::BatchGetAssetsHistoryResponse]
|
@@ -27,6 +27,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
27
27
|
repeated :asset_types, :string, 3
|
28
28
|
optional :content_type, :enum, 4, "google.cloud.asset.v1.ContentType"
|
29
29
|
optional :output_config, :message, 5, "google.cloud.asset.v1.OutputConfig"
|
30
|
+
repeated :relationship_types, :string, 6
|
30
31
|
end
|
31
32
|
add_message "google.cloud.asset.v1.ExportAssetsResponse" do
|
32
33
|
optional :read_time, :message, 1, "google.protobuf.Timestamp"
|
@@ -40,6 +41,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
40
41
|
optional :content_type, :enum, 4, "google.cloud.asset.v1.ContentType"
|
41
42
|
optional :page_size, :int32, 5
|
42
43
|
optional :page_token, :string, 6
|
44
|
+
repeated :relationship_types, :string, 7
|
43
45
|
end
|
44
46
|
add_message "google.cloud.asset.v1.ListAssetsResponse" do
|
45
47
|
optional :read_time, :message, 1, "google.protobuf.Timestamp"
|
@@ -51,6 +53,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
51
53
|
repeated :asset_names, :string, 2
|
52
54
|
optional :content_type, :enum, 3, "google.cloud.asset.v1.ContentType"
|
53
55
|
optional :read_time_window, :message, 4, "google.cloud.asset.v1.TimeWindow"
|
56
|
+
repeated :relationship_types, :string, 5
|
54
57
|
end
|
55
58
|
add_message "google.cloud.asset.v1.BatchGetAssetsHistoryResponse" do
|
56
59
|
repeated :assets, :message, 1, "google.cloud.asset.v1.TemporalAsset"
|
@@ -126,6 +129,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
126
129
|
optional :content_type, :enum, 4, "google.cloud.asset.v1.ContentType"
|
127
130
|
optional :feed_output_config, :message, 5, "google.cloud.asset.v1.FeedOutputConfig"
|
128
131
|
optional :condition, :message, 6, "google.type.Expr"
|
132
|
+
repeated :relationship_types, :string, 7
|
129
133
|
end
|
130
134
|
add_message "google.cloud.asset.v1.SearchAllResourcesRequest" do
|
131
135
|
optional :scope, :string, 1
|
@@ -257,6 +261,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
257
261
|
value :ORG_POLICY, 4
|
258
262
|
value :ACCESS_POLICY, 5
|
259
263
|
value :OS_INVENTORY, 6
|
264
|
+
value :RELATIONSHIP, 7
|
260
265
|
end
|
261
266
|
end
|
262
267
|
end
|
@@ -10,9 +10,11 @@ require 'google/identity/accesscontextmanager/v1/access_level_pb'
|
|
10
10
|
require 'google/identity/accesscontextmanager/v1/access_policy_pb'
|
11
11
|
require 'google/cloud/osconfig/v1/inventory_pb'
|
12
12
|
require 'google/identity/accesscontextmanager/v1/service_perimeter_pb'
|
13
|
+
require 'google/protobuf/any_pb'
|
13
14
|
require 'google/protobuf/struct_pb'
|
14
15
|
require 'google/protobuf/timestamp_pb'
|
15
16
|
require 'google/rpc/code_pb'
|
17
|
+
require 'google/api/annotations_pb'
|
16
18
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
19
|
add_file("google/cloud/asset/v1/assets.proto", :syntax => :proto3) do
|
18
20
|
add_message "google.cloud.asset.v1.TemporalAsset" do
|
@@ -41,6 +43,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
41
43
|
optional :iam_policy, :message, 4, "google.iam.v1.Policy"
|
42
44
|
repeated :org_policy, :message, 6, "google.cloud.orgpolicy.v1.Policy"
|
43
45
|
optional :os_inventory, :message, 12, "google.cloud.osconfig.v1.Inventory"
|
46
|
+
optional :related_assets, :message, 13, "google.cloud.asset.v1.RelatedAssets"
|
44
47
|
repeated :ancestors, :string, 10
|
45
48
|
oneof :access_context_policy do
|
46
49
|
optional :access_policy, :message, 7, "google.identity.accesscontextmanager.v1.AccessPolicy"
|
@@ -57,6 +60,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
57
60
|
optional :data, :message, 6, "google.protobuf.Struct"
|
58
61
|
optional :location, :string, 8
|
59
62
|
end
|
63
|
+
add_message "google.cloud.asset.v1.RelatedAssets" do
|
64
|
+
optional :relationship_attributes, :message, 1, "google.cloud.asset.v1.RelationshipAttributes"
|
65
|
+
repeated :assets, :message, 2, "google.cloud.asset.v1.RelatedAsset"
|
66
|
+
end
|
67
|
+
add_message "google.cloud.asset.v1.RelationshipAttributes" do
|
68
|
+
optional :type, :string, 4
|
69
|
+
optional :source_resource_type, :string, 1
|
70
|
+
optional :target_resource_type, :string, 2
|
71
|
+
optional :action, :string, 3
|
72
|
+
end
|
73
|
+
add_message "google.cloud.asset.v1.RelatedAsset" do
|
74
|
+
optional :asset, :string, 1
|
75
|
+
optional :asset_type, :string, 2
|
76
|
+
repeated :ancestors, :string, 3
|
77
|
+
end
|
60
78
|
add_message "google.cloud.asset.v1.ResourceSearchResult" do
|
61
79
|
optional :name, :string, 1
|
62
80
|
optional :asset_type, :string, 2
|
@@ -162,6 +180,9 @@ module Google
|
|
162
180
|
TimeWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.TimeWindow").msgclass
|
163
181
|
Asset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.Asset").msgclass
|
164
182
|
Resource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.Resource").msgclass
|
183
|
+
RelatedAssets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.RelatedAssets").msgclass
|
184
|
+
RelationshipAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.RelationshipAttributes").msgclass
|
185
|
+
RelatedAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.RelatedAsset").msgclass
|
165
186
|
ResourceSearchResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.ResourceSearchResult").msgclass
|
166
187
|
VersionedResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.VersionedResource").msgclass
|
167
188
|
AttachedResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.AttachedResource").msgclass
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# AnalyzeIamPolicyLongrunning rpc.
|
26
26
|
# @!attribute [r] create_time
|
27
27
|
# @return [::Google::Protobuf::Timestamp]
|
28
|
-
# The time the operation was created.
|
28
|
+
# Output only. The time the operation was created.
|
29
29
|
class AnalyzeIamPolicyLongrunningMetadata
|
30
30
|
include ::Google::Protobuf::MessageExts
|
31
31
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -72,6 +72,23 @@ module Google
|
|
72
72
|
# @!attribute [rw] output_config
|
73
73
|
# @return [::Google::Cloud::Asset::V1::OutputConfig]
|
74
74
|
# Required. Output configuration indicating where the results will be output to.
|
75
|
+
# @!attribute [rw] relationship_types
|
76
|
+
# @return [::Array<::String>]
|
77
|
+
# A list of relationship types to export, for example:
|
78
|
+
# `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
|
79
|
+
# content_type=RELATIONSHIP.
|
80
|
+
# * If specified:
|
81
|
+
# it snapshots specified relationships. It returns an error if
|
82
|
+
# any of the [relationship_types] doesn't belong to the supported
|
83
|
+
# relationship types of the [asset_types] or if any of the [asset_types]
|
84
|
+
# doesn't belong to the source types of the [relationship_types].
|
85
|
+
# * Otherwise:
|
86
|
+
# it snapshots the supported relationships for all [asset_types] or returns
|
87
|
+
# an error if any of the [asset_types] has no relationship support.
|
88
|
+
# An unspecified asset types field means all supported asset_types.
|
89
|
+
# See [Introduction to Cloud Asset
|
90
|
+
# Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
|
91
|
+
# supported asset types and relationship types.
|
75
92
|
class ExportAssetsRequest
|
76
93
|
include ::Google::Protobuf::MessageExts
|
77
94
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -145,6 +162,23 @@ module Google
|
|
145
162
|
# The `next_page_token` returned from the previous `ListAssetsResponse`, or
|
146
163
|
# unspecified for the first `ListAssetsRequest`. It is a continuation of a
|
147
164
|
# prior `ListAssets` call, and the API should return the next page of assets.
|
165
|
+
# @!attribute [rw] relationship_types
|
166
|
+
# @return [::Array<::String>]
|
167
|
+
# A list of relationship types to output, for example:
|
168
|
+
# `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
|
169
|
+
# content_type=RELATIONSHIP.
|
170
|
+
# * If specified:
|
171
|
+
# it snapshots specified relationships. It returns an error if
|
172
|
+
# any of the [relationship_types] doesn't belong to the supported
|
173
|
+
# relationship types of the [asset_types] or if any of the [asset_types]
|
174
|
+
# doesn't belong to the source types of the [relationship_types].
|
175
|
+
# * Otherwise:
|
176
|
+
# it snapshots the supported relationships for all [asset_types] or returns
|
177
|
+
# an error if any of the [asset_types] has no relationship support.
|
178
|
+
# An unspecified asset types field means all supported asset_types.
|
179
|
+
# See [Introduction to Cloud Asset
|
180
|
+
# Inventory](https://cloud.google.com/asset-inventory/docs/overview)
|
181
|
+
# for all supported asset types and relationship types.
|
148
182
|
class ListAssetsRequest
|
149
183
|
include ::Google::Protobuf::MessageExts
|
150
184
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -194,6 +228,24 @@ module Google
|
|
194
228
|
# If start_time is not set, the snapshot of the assets at end_time will be
|
195
229
|
# returned. The returned results contain all temporal assets whose time
|
196
230
|
# window overlap with read_time_window.
|
231
|
+
# @!attribute [rw] relationship_types
|
232
|
+
# @return [::Array<::String>]
|
233
|
+
# Optional. A list of relationship types to output, for example:
|
234
|
+
# `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
|
235
|
+
# content_type=RELATIONSHIP.
|
236
|
+
# * If specified:
|
237
|
+
# it outputs specified relationships' history on the [asset_names]. It
|
238
|
+
# returns an error if any of the [relationship_types] doesn't belong to the
|
239
|
+
# supported relationship types of the [asset_names] or if any of the
|
240
|
+
# [asset_names]'s types doesn't belong to the source types of the
|
241
|
+
# [relationship_types].
|
242
|
+
# * Otherwise:
|
243
|
+
# it outputs the supported relationships' history on the [asset_names] or
|
244
|
+
# returns an error if any of the [asset_names]'s types has no relationship
|
245
|
+
# support.
|
246
|
+
# See [Introduction to Cloud Asset
|
247
|
+
# Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
|
248
|
+
# supported asset types and relationship types.
|
197
249
|
class BatchGetAssetsHistoryRequest
|
198
250
|
include ::Google::Protobuf::MessageExts
|
199
251
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -530,6 +582,24 @@ module Google
|
|
530
582
|
# See our [user
|
531
583
|
# guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition)
|
532
584
|
# for detailed instructions.
|
585
|
+
# @!attribute [rw] relationship_types
|
586
|
+
# @return [::Array<::String>]
|
587
|
+
# A list of relationship types to output, for example:
|
588
|
+
# `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
|
589
|
+
# content_type=RELATIONSHIP.
|
590
|
+
# * If specified:
|
591
|
+
# it outputs specified relationship updates on the [asset_names] or the
|
592
|
+
# [asset_types]. It returns an error if any of the [relationship_types]
|
593
|
+
# doesn't belong to the supported relationship types of the [asset_names] or
|
594
|
+
# [asset_types], or any of the [asset_names] or the [asset_types] doesn't
|
595
|
+
# belong to the source types of the [relationship_types].
|
596
|
+
# * Otherwise:
|
597
|
+
# it outputs the supported relationships of the types of [asset_names] and
|
598
|
+
# [asset_types] or returns an error if any of the [asset_names] or the
|
599
|
+
# [asset_types] has no replationship support.
|
600
|
+
# See [Introduction to Cloud Asset
|
601
|
+
# Inventory](https://cloud.google.com/asset-inventory/docs/overview)
|
602
|
+
# for all supported asset types and relationship types.
|
533
603
|
class Feed
|
534
604
|
include ::Google::Protobuf::MessageExts
|
535
605
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1263,6 +1333,9 @@ module Google
|
|
1263
1333
|
|
1264
1334
|
# The runtime OS Inventory information.
|
1265
1335
|
OS_INVENTORY = 6
|
1336
|
+
|
1337
|
+
# The related resources.
|
1338
|
+
RELATIONSHIP = 7
|
1266
1339
|
end
|
1267
1340
|
end
|
1268
1341
|
end
|
@@ -140,6 +140,10 @@ module Google
|
|
140
140
|
# A representation of runtime OS Inventory information. See [this
|
141
141
|
# topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
|
142
142
|
# for more information.
|
143
|
+
# @!attribute [rw] related_assets
|
144
|
+
# @return [::Google::Cloud::Asset::V1::RelatedAssets]
|
145
|
+
# The related assets of the asset of one relationship type.
|
146
|
+
# One asset only represents one type of relationship.
|
143
147
|
# @!attribute [rw] ancestors
|
144
148
|
# @return [::Array<::String>]
|
145
149
|
# The ancestry path of an asset in Google Cloud [resource
|
@@ -208,6 +212,74 @@ module Google
|
|
208
212
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
209
213
|
end
|
210
214
|
|
215
|
+
# The detailed related assets with the `relationship_type`.
|
216
|
+
# @!attribute [rw] relationship_attributes
|
217
|
+
# @return [::Google::Cloud::Asset::V1::RelationshipAttributes]
|
218
|
+
# The detailed relationship attributes.
|
219
|
+
# @!attribute [rw] assets
|
220
|
+
# @return [::Array<::Google::Cloud::Asset::V1::RelatedAsset>]
|
221
|
+
# The peer resources of the relationship.
|
222
|
+
class RelatedAssets
|
223
|
+
include ::Google::Protobuf::MessageExts
|
224
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
225
|
+
end
|
226
|
+
|
227
|
+
# The relationship attributes which include `type`, `source_resource_type`,
|
228
|
+
# `target_resource_type` and `action`.
|
229
|
+
# @!attribute [rw] type
|
230
|
+
# @return [::String]
|
231
|
+
# The unique identifier of the relationship type. Example:
|
232
|
+
# `INSTANCE_TO_INSTANCEGROUP`
|
233
|
+
# @!attribute [rw] source_resource_type
|
234
|
+
# @return [::String]
|
235
|
+
# The source asset type. Example: `compute.googleapis.com/Instance`
|
236
|
+
# @!attribute [rw] target_resource_type
|
237
|
+
# @return [::String]
|
238
|
+
# The target asset type. Example: `compute.googleapis.com/Disk`
|
239
|
+
# @!attribute [rw] action
|
240
|
+
# @return [::String]
|
241
|
+
# The detail of the relationship, e.g. `contains`, `attaches`
|
242
|
+
class RelationshipAttributes
|
243
|
+
include ::Google::Protobuf::MessageExts
|
244
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
|
+
end
|
246
|
+
|
247
|
+
# An asset identify in Google Cloud which contains its name, type and
|
248
|
+
# ancestors. An asset can be any resource in the Google Cloud [resource
|
249
|
+
# hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
|
250
|
+
# a resource outside the Google Cloud resource hierarchy (such as Google
|
251
|
+
# Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy).
|
252
|
+
# See [Supported asset
|
253
|
+
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
|
254
|
+
# for more information.
|
255
|
+
# @!attribute [rw] asset
|
256
|
+
# @return [::String]
|
257
|
+
# The full name of the asset. Example:
|
258
|
+
# `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
|
259
|
+
#
|
260
|
+
# See [Resource
|
261
|
+
# names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
|
262
|
+
# for more information.
|
263
|
+
# @!attribute [rw] asset_type
|
264
|
+
# @return [::String]
|
265
|
+
# The type of the asset. Example: `compute.googleapis.com/Disk`
|
266
|
+
#
|
267
|
+
# See [Supported asset
|
268
|
+
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
|
269
|
+
# for more information.
|
270
|
+
# @!attribute [rw] ancestors
|
271
|
+
# @return [::Array<::String>]
|
272
|
+
# The ancestors of an asset in Google Cloud [resource
|
273
|
+
# hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
|
274
|
+
# represented as a list of relative resource names. An ancestry path starts
|
275
|
+
# with the closest ancestor in the hierarchy and ends at root.
|
276
|
+
#
|
277
|
+
# Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
|
278
|
+
class RelatedAsset
|
279
|
+
include ::Google::Protobuf::MessageExts
|
280
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
281
|
+
end
|
282
|
+
|
211
283
|
# A result of Resource Search, containing information of a cloud resource.
|
212
284
|
# @!attribute [rw] name
|
213
285
|
# @return [::String]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-asset-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-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|