google-cloud-asset-v1 0.23.0 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/asset/v1/asset_service/client.rb +36 -50
- data/lib/google/cloud/asset/v1/asset_service/operations.rb +12 -14
- data/lib/google/cloud/asset/v1/asset_service/rest/client.rb +2701 -0
- data/lib/google/cloud/asset/v1/asset_service/rest/operations.rb +793 -0
- data/lib/google/cloud/asset/v1/asset_service/rest/service_stub.rb +1412 -0
- data/lib/google/cloud/asset/v1/asset_service/rest.rb +53 -0
- data/lib/google/cloud/asset/v1/asset_service.rb +6 -0
- data/lib/google/cloud/asset/v1/rest.rb +37 -0
- data/lib/google/cloud/asset/v1/version.rb +1 -1
- data/lib/google/cloud/asset/v1.rb +5 -0
- metadata +12 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8169f8b40f0f0a7250e0f37e18f6a9c48de6d992e196ade0b676291f979cb8b7
|
4
|
+
data.tar.gz: eddd28d1f71c57cf79f2635df07087f6931e1156c0cbda62b58b68212d5e97d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33a9ed14e263097a9854f4cfd4480105b31c7a4d8ab5bcffaa4940a999b778dc6d3d21387bf02cbd45bb0bf7944bc5f8f6ef01dcf945391d6c6595d1d93763c3
|
7
|
+
data.tar.gz: bfd8d52a468c93ba36e9e24ff5699a815941a43ebd8a1511c90c0e19ddae58548d09624670df11a0c0f5246f9b63a4cdc6189eed1c0d1eda4069cd0b238c8282
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Cloud Asset V1 API
|
2
2
|
|
3
|
-
|
3
|
+
The Cloud Asset API manages the history and inventory of Google Cloud resources.
|
4
4
|
|
5
5
|
A metadata inventory service that allows you to view, monitor, and analyze all your GCP and Anthos assets across projects and services.
|
6
6
|
|
@@ -335,14 +335,14 @@ module Google
|
|
335
335
|
# # Call the export_assets method.
|
336
336
|
# result = client.export_assets request
|
337
337
|
#
|
338
|
-
# # The returned object is of type Gapic::Operation. You can use
|
339
|
-
# #
|
340
|
-
# #
|
338
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
339
|
+
# # check the status of an operation, cancel it, or wait for results.
|
340
|
+
# # Here is how to wait for a response.
|
341
341
|
# result.wait_until_done! timeout: 60
|
342
342
|
# if result.response?
|
343
343
|
# p result.response
|
344
344
|
# else
|
345
|
-
# puts "
|
345
|
+
# puts "No response received."
|
346
346
|
# end
|
347
347
|
#
|
348
348
|
def export_assets request, options = nil
|
@@ -484,13 +484,11 @@ module Google
|
|
484
484
|
# # Call the list_assets method.
|
485
485
|
# result = client.list_assets request
|
486
486
|
#
|
487
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
488
|
-
# #
|
489
|
-
#
|
490
|
-
# # methods are also available for managing paging directly.
|
491
|
-
# result.each do |response|
|
487
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
488
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
489
|
+
# result.each do |item|
|
492
490
|
# # Each element is of type ::Google::Cloud::Asset::V1::Asset.
|
493
|
-
# p
|
491
|
+
# p item
|
494
492
|
# end
|
495
493
|
#
|
496
494
|
def list_assets request, options = nil
|
@@ -1307,13 +1305,11 @@ module Google
|
|
1307
1305
|
# # Call the search_all_resources method.
|
1308
1306
|
# result = client.search_all_resources request
|
1309
1307
|
#
|
1310
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1311
|
-
# #
|
1312
|
-
#
|
1313
|
-
# # methods are also available for managing paging directly.
|
1314
|
-
# result.each do |response|
|
1308
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1309
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1310
|
+
# result.each do |item|
|
1315
1311
|
# # Each element is of type ::Google::Cloud::Asset::V1::ResourceSearchResult.
|
1316
|
-
# p
|
1312
|
+
# p item
|
1317
1313
|
# end
|
1318
1314
|
#
|
1319
1315
|
def search_all_resources request, options = nil
|
@@ -1496,13 +1492,11 @@ module Google
|
|
1496
1492
|
# # Call the search_all_iam_policies method.
|
1497
1493
|
# result = client.search_all_iam_policies request
|
1498
1494
|
#
|
1499
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1500
|
-
# #
|
1501
|
-
#
|
1502
|
-
# # methods are also available for managing paging directly.
|
1503
|
-
# result.each do |response|
|
1495
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1496
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1497
|
+
# result.each do |item|
|
1504
1498
|
# # Each element is of type ::Google::Cloud::Asset::V1::IamPolicySearchResult.
|
1505
|
-
# p
|
1499
|
+
# p item
|
1506
1500
|
# end
|
1507
1501
|
#
|
1508
1502
|
def search_all_iam_policies request, options = nil
|
@@ -1732,14 +1726,14 @@ module Google
|
|
1732
1726
|
# # Call the analyze_iam_policy_longrunning method.
|
1733
1727
|
# result = client.analyze_iam_policy_longrunning request
|
1734
1728
|
#
|
1735
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1736
|
-
# #
|
1737
|
-
# #
|
1729
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1730
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1731
|
+
# # Here is how to wait for a response.
|
1738
1732
|
# result.wait_until_done! timeout: 60
|
1739
1733
|
# if result.response?
|
1740
1734
|
# p result.response
|
1741
1735
|
# else
|
1742
|
-
# puts "
|
1736
|
+
# puts "No response received."
|
1743
1737
|
# end
|
1744
1738
|
#
|
1745
1739
|
def analyze_iam_policy_longrunning request, options = nil
|
@@ -2290,13 +2284,11 @@ module Google
|
|
2290
2284
|
# # Call the list_saved_queries method.
|
2291
2285
|
# result = client.list_saved_queries request
|
2292
2286
|
#
|
2293
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2294
|
-
# #
|
2295
|
-
#
|
2296
|
-
# # methods are also available for managing paging directly.
|
2297
|
-
# result.each do |response|
|
2287
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2288
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2289
|
+
# result.each do |item|
|
2298
2290
|
# # Each element is of type ::Google::Cloud::Asset::V1::SavedQuery.
|
2299
|
-
# p
|
2291
|
+
# p item
|
2300
2292
|
# end
|
2301
2293
|
#
|
2302
2294
|
def list_saved_queries request, options = nil
|
@@ -2689,13 +2681,11 @@ module Google
|
|
2689
2681
|
# # Call the analyze_org_policies method.
|
2690
2682
|
# result = client.analyze_org_policies request
|
2691
2683
|
#
|
2692
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2693
|
-
# #
|
2694
|
-
#
|
2695
|
-
# # methods are also available for managing paging directly.
|
2696
|
-
# result.each do |response|
|
2684
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2685
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2686
|
+
# result.each do |item|
|
2697
2687
|
# # Each element is of type ::Google::Cloud::Asset::V1::AnalyzeOrgPoliciesResponse::OrgPolicyResult.
|
2698
|
-
# p
|
2688
|
+
# p item
|
2699
2689
|
# end
|
2700
2690
|
#
|
2701
2691
|
def analyze_org_policies request, options = nil
|
@@ -2805,13 +2795,11 @@ module Google
|
|
2805
2795
|
# # Call the analyze_org_policy_governed_containers method.
|
2806
2796
|
# result = client.analyze_org_policy_governed_containers request
|
2807
2797
|
#
|
2808
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2809
|
-
# #
|
2810
|
-
#
|
2811
|
-
# # methods are also available for managing paging directly.
|
2812
|
-
# result.each do |response|
|
2798
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2799
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2800
|
+
# result.each do |item|
|
2813
2801
|
# # Each element is of type ::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedContainersResponse::GovernedContainer.
|
2814
|
-
# p
|
2802
|
+
# p item
|
2815
2803
|
# end
|
2816
2804
|
#
|
2817
2805
|
def analyze_org_policy_governed_containers request, options = nil
|
@@ -2943,13 +2931,11 @@ module Google
|
|
2943
2931
|
# # Call the analyze_org_policy_governed_assets method.
|
2944
2932
|
# result = client.analyze_org_policy_governed_assets request
|
2945
2933
|
#
|
2946
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2947
|
-
# #
|
2948
|
-
#
|
2949
|
-
# # methods are also available for managing paging directly.
|
2950
|
-
# result.each do |response|
|
2934
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2935
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2936
|
+
# result.each do |item|
|
2951
2937
|
# # Each element is of type ::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedAssetsResponse::GovernedAsset.
|
2952
|
-
# p
|
2938
|
+
# p item
|
2953
2939
|
# end
|
2954
2940
|
#
|
2955
2941
|
def analyze_org_policy_governed_assets request, options = nil
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|