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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8cc1b419784cf746cafa20ca39158e6344d101e6861461c5621db2f1e580ddc3
4
- data.tar.gz: 4cd6921bbbea34aa66cbcc7864e0347c8f9aa6ca23e384a8a63ed3e9affced3b
3
+ metadata.gz: 8169f8b40f0f0a7250e0f37e18f6a9c48de6d992e196ade0b676291f979cb8b7
4
+ data.tar.gz: eddd28d1f71c57cf79f2635df07087f6931e1156c0cbda62b58b68212d5e97d8
5
5
  SHA512:
6
- metadata.gz: 06d22c1799c844023dd9336ebc3d92de04e01ef97973832efaac80f836212e063e95d5a938a15270adb3f73215a792883afb9d14a593c85ee912e1c5e917c142
7
- data.tar.gz: 0d9584daa580108316348200dc95bc856a3da6dde332c43d223870ec8b6e5d7271491a279dd3a7be851cb455f6899c5da3b57fbf1ae280c1b42e2f0b2b776910
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
- API Client library for the Cloud Asset V1 API
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 this
339
- # # object to check the status of an operation, cancel it, or wait
340
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
489
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
1312
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
1501
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
1736
- # # object to check the status of an operation, cancel it, or wait
1737
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
2295
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
2694
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
2810
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
2948
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
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 "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil