google-cloud-asset-v1 0.26.1 → 0.27.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: a35e756907ebd1db6200332672b33c298efd5b741d7250f907691d4a33fd0736
4
- data.tar.gz: ab178dde1f4d28102bf6c4bc3d7a34b0a640ba2b096a0b08e9502fd4cebc1ec3
3
+ metadata.gz: ce8dc4fea3414af0a84ee4b12cf7c991b4a6bd44dc1a86339cc70ffb514bad35
4
+ data.tar.gz: 3798fd9b888bb17b535f979a31e982b70a95c8111ab979961e8b044eced9b95d
5
5
  SHA512:
6
- metadata.gz: 4308d598b287cee09c334bebb2fc331aab2a7c3529a86f2d624ce9522ba4af528353883e27396b8b0f7df56496fe8e02c4ffa43381f4fbee2758c4654dd26e50
7
- data.tar.gz: 763ac86ca5e01fcbf614214cf958ec3ca1c667377140c148ec72b2a588aa9118090e77379689ceb181b7f6be184d1e57cc4ccee365306039934825449e38c905
6
+ metadata.gz: e8f68cbe594e330ae2029da80fafe4a049ec88709ca9de00d38100b8c574c0f722be312914d8f0e50c541d77d3e9e1bf8f5e130b8ccc6b2345d7f186c857f2fb
7
+ data.tar.gz: 8457d1254fb5b7bc87c4b2f379de5bcc56c88838a8956bd3980525e7f34d05b00c929ad2f2aefc2e64fc63d8c13a675a057474a5d630e6db4afd829a8d1555fd
@@ -236,7 +236,8 @@ module Google
236
236
  credentials: credentials,
237
237
  endpoint: @config.endpoint,
238
238
  channel_args: @config.channel_args,
239
- interceptors: @config.interceptors
239
+ interceptors: @config.interceptors,
240
+ channel_pool_config: @config.channel_pool
240
241
  )
241
242
  end
242
243
 
@@ -3114,6 +3115,14 @@ module Google
3114
3115
  end
3115
3116
  end
3116
3117
 
3118
+ ##
3119
+ # Configuration for the channel pool
3120
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
3121
+ #
3122
+ def channel_pool
3123
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
3124
+ end
3125
+
3117
3126
  ##
3118
3127
  # Configuration RPC class for the AssetService API.
3119
3128
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -327,6 +327,29 @@ module Google
327
327
  # @return [::Gapic::Operation]
328
328
  #
329
329
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
330
+ #
331
+ # @example Basic example
332
+ # require "google/cloud/asset/v1"
333
+ #
334
+ # # Create a client object. The client can be reused for multiple calls.
335
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
336
+ #
337
+ # # Create a request. To set request fields, pass in keyword arguments.
338
+ # request = Google::Cloud::Asset::V1::ExportAssetsRequest.new
339
+ #
340
+ # # Call the export_assets method.
341
+ # result = client.export_assets request
342
+ #
343
+ # # The returned object is of type Gapic::Operation. You can use it to
344
+ # # check the status of an operation, cancel it, or wait for results.
345
+ # # Here is how to wait for a response.
346
+ # result.wait_until_done! timeout: 60
347
+ # if result.response?
348
+ # p result.response
349
+ # else
350
+ # puts "No response received."
351
+ # end
352
+ #
330
353
  def export_assets request, options = nil
331
354
  raise ::ArgumentError, "request must be provided" if request.nil?
332
355
 
@@ -446,6 +469,26 @@ module Google
446
469
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Asset::V1::Asset>]
447
470
  #
448
471
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
472
+ #
473
+ # @example Basic example
474
+ # require "google/cloud/asset/v1"
475
+ #
476
+ # # Create a client object. The client can be reused for multiple calls.
477
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
478
+ #
479
+ # # Create a request. To set request fields, pass in keyword arguments.
480
+ # request = Google::Cloud::Asset::V1::ListAssetsRequest.new
481
+ #
482
+ # # Call the list_assets method.
483
+ # result = client.list_assets request
484
+ #
485
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
486
+ # # over elements, and API calls will be issued to fetch pages as needed.
487
+ # result.each do |item|
488
+ # # Each element is of type ::Google::Cloud::Asset::V1::Asset.
489
+ # p item
490
+ # end
491
+ #
449
492
  def list_assets request, options = nil
450
493
  raise ::ArgumentError, "request must be provided" if request.nil?
451
494
 
@@ -552,6 +595,22 @@ module Google
552
595
  # @return [::Google::Cloud::Asset::V1::BatchGetAssetsHistoryResponse]
553
596
  #
554
597
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
598
+ #
599
+ # @example Basic example
600
+ # require "google/cloud/asset/v1"
601
+ #
602
+ # # Create a client object. The client can be reused for multiple calls.
603
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
604
+ #
605
+ # # Create a request. To set request fields, pass in keyword arguments.
606
+ # request = Google::Cloud::Asset::V1::BatchGetAssetsHistoryRequest.new
607
+ #
608
+ # # Call the batch_get_assets_history method.
609
+ # result = client.batch_get_assets_history request
610
+ #
611
+ # # The returned object is of type Google::Cloud::Asset::V1::BatchGetAssetsHistoryResponse.
612
+ # p result
613
+ #
555
614
  def batch_get_assets_history request, options = nil
556
615
  raise ::ArgumentError, "request must be provided" if request.nil?
557
616
 
@@ -627,6 +686,22 @@ module Google
627
686
  # @return [::Google::Cloud::Asset::V1::Feed]
628
687
  #
629
688
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
689
+ #
690
+ # @example Basic example
691
+ # require "google/cloud/asset/v1"
692
+ #
693
+ # # Create a client object. The client can be reused for multiple calls.
694
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
695
+ #
696
+ # # Create a request. To set request fields, pass in keyword arguments.
697
+ # request = Google::Cloud::Asset::V1::CreateFeedRequest.new
698
+ #
699
+ # # Call the create_feed method.
700
+ # result = client.create_feed request
701
+ #
702
+ # # The returned object is of type Google::Cloud::Asset::V1::Feed.
703
+ # p result
704
+ #
630
705
  def create_feed request, options = nil
631
706
  raise ::ArgumentError, "request must be provided" if request.nil?
632
707
 
@@ -692,6 +767,22 @@ module Google
692
767
  # @return [::Google::Cloud::Asset::V1::Feed]
693
768
  #
694
769
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
770
+ #
771
+ # @example Basic example
772
+ # require "google/cloud/asset/v1"
773
+ #
774
+ # # Create a client object. The client can be reused for multiple calls.
775
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
776
+ #
777
+ # # Create a request. To set request fields, pass in keyword arguments.
778
+ # request = Google::Cloud::Asset::V1::GetFeedRequest.new
779
+ #
780
+ # # Call the get_feed method.
781
+ # result = client.get_feed request
782
+ #
783
+ # # The returned object is of type Google::Cloud::Asset::V1::Feed.
784
+ # p result
785
+ #
695
786
  def get_feed request, options = nil
696
787
  raise ::ArgumentError, "request must be provided" if request.nil?
697
788
 
@@ -756,6 +847,22 @@ module Google
756
847
  # @return [::Google::Cloud::Asset::V1::ListFeedsResponse]
757
848
  #
758
849
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
850
+ #
851
+ # @example Basic example
852
+ # require "google/cloud/asset/v1"
853
+ #
854
+ # # Create a client object. The client can be reused for multiple calls.
855
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
856
+ #
857
+ # # Create a request. To set request fields, pass in keyword arguments.
858
+ # request = Google::Cloud::Asset::V1::ListFeedsRequest.new
859
+ #
860
+ # # Call the list_feeds method.
861
+ # result = client.list_feeds request
862
+ #
863
+ # # The returned object is of type Google::Cloud::Asset::V1::ListFeedsResponse.
864
+ # p result
865
+ #
759
866
  def list_feeds request, options = nil
760
867
  raise ::ArgumentError, "request must be provided" if request.nil?
761
868
 
@@ -826,6 +933,22 @@ module Google
826
933
  # @return [::Google::Cloud::Asset::V1::Feed]
827
934
  #
828
935
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
936
+ #
937
+ # @example Basic example
938
+ # require "google/cloud/asset/v1"
939
+ #
940
+ # # Create a client object. The client can be reused for multiple calls.
941
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
942
+ #
943
+ # # Create a request. To set request fields, pass in keyword arguments.
944
+ # request = Google::Cloud::Asset::V1::UpdateFeedRequest.new
945
+ #
946
+ # # Call the update_feed method.
947
+ # result = client.update_feed request
948
+ #
949
+ # # The returned object is of type Google::Cloud::Asset::V1::Feed.
950
+ # p result
951
+ #
829
952
  def update_feed request, options = nil
830
953
  raise ::ArgumentError, "request must be provided" if request.nil?
831
954
 
@@ -891,6 +1014,22 @@ module Google
891
1014
  # @return [::Google::Protobuf::Empty]
892
1015
  #
893
1016
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1017
+ #
1018
+ # @example Basic example
1019
+ # require "google/cloud/asset/v1"
1020
+ #
1021
+ # # Create a client object. The client can be reused for multiple calls.
1022
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
1023
+ #
1024
+ # # Create a request. To set request fields, pass in keyword arguments.
1025
+ # request = Google::Cloud::Asset::V1::DeleteFeedRequest.new
1026
+ #
1027
+ # # Call the delete_feed method.
1028
+ # result = client.delete_feed request
1029
+ #
1030
+ # # The returned object is of type Google::Protobuf::Empty.
1031
+ # p result
1032
+ #
894
1033
  def delete_feed request, options = nil
895
1034
  raise ::ArgumentError, "request must be provided" if request.nil?
896
1035
 
@@ -1102,6 +1241,26 @@ module Google
1102
1241
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Asset::V1::ResourceSearchResult>]
1103
1242
  #
1104
1243
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1244
+ #
1245
+ # @example Basic example
1246
+ # require "google/cloud/asset/v1"
1247
+ #
1248
+ # # Create a client object. The client can be reused for multiple calls.
1249
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
1250
+ #
1251
+ # # Create a request. To set request fields, pass in keyword arguments.
1252
+ # request = Google::Cloud::Asset::V1::SearchAllResourcesRequest.new
1253
+ #
1254
+ # # Call the search_all_resources method.
1255
+ # result = client.search_all_resources request
1256
+ #
1257
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1258
+ # # over elements, and API calls will be issued to fetch pages as needed.
1259
+ # result.each do |item|
1260
+ # # Each element is of type ::Google::Cloud::Asset::V1::ResourceSearchResult.
1261
+ # p item
1262
+ # end
1263
+ #
1105
1264
  def search_all_resources request, options = nil
1106
1265
  raise ::ArgumentError, "request must be provided" if request.nil?
1107
1266
 
@@ -1262,6 +1421,26 @@ module Google
1262
1421
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Asset::V1::IamPolicySearchResult>]
1263
1422
  #
1264
1423
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1424
+ #
1425
+ # @example Basic example
1426
+ # require "google/cloud/asset/v1"
1427
+ #
1428
+ # # Create a client object. The client can be reused for multiple calls.
1429
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
1430
+ #
1431
+ # # Create a request. To set request fields, pass in keyword arguments.
1432
+ # request = Google::Cloud::Asset::V1::SearchAllIamPoliciesRequest.new
1433
+ #
1434
+ # # Call the search_all_iam_policies method.
1435
+ # result = client.search_all_iam_policies request
1436
+ #
1437
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1438
+ # # over elements, and API calls will be issued to fetch pages as needed.
1439
+ # result.each do |item|
1440
+ # # Each element is of type ::Google::Cloud::Asset::V1::IamPolicySearchResult.
1441
+ # p item
1442
+ # end
1443
+ #
1265
1444
  def search_all_iam_policies request, options = nil
1266
1445
  raise ::ArgumentError, "request must be provided" if request.nil?
1267
1446
 
@@ -1355,6 +1534,22 @@ module Google
1355
1534
  # @return [::Google::Cloud::Asset::V1::AnalyzeIamPolicyResponse]
1356
1535
  #
1357
1536
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1537
+ #
1538
+ # @example Basic example
1539
+ # require "google/cloud/asset/v1"
1540
+ #
1541
+ # # Create a client object. The client can be reused for multiple calls.
1542
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
1543
+ #
1544
+ # # Create a request. To set request fields, pass in keyword arguments.
1545
+ # request = Google::Cloud::Asset::V1::AnalyzeIamPolicyRequest.new
1546
+ #
1547
+ # # Call the analyze_iam_policy method.
1548
+ # result = client.analyze_iam_policy request
1549
+ #
1550
+ # # The returned object is of type Google::Cloud::Asset::V1::AnalyzeIamPolicyResponse.
1551
+ # p result
1552
+ #
1358
1553
  def analyze_iam_policy request, options = nil
1359
1554
  raise ::ArgumentError, "request must be provided" if request.nil?
1360
1555
 
@@ -1446,6 +1641,29 @@ module Google
1446
1641
  # @return [::Gapic::Operation]
1447
1642
  #
1448
1643
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1644
+ #
1645
+ # @example Basic example
1646
+ # require "google/cloud/asset/v1"
1647
+ #
1648
+ # # Create a client object. The client can be reused for multiple calls.
1649
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
1650
+ #
1651
+ # # Create a request. To set request fields, pass in keyword arguments.
1652
+ # request = Google::Cloud::Asset::V1::AnalyzeIamPolicyLongrunningRequest.new
1653
+ #
1654
+ # # Call the analyze_iam_policy_longrunning method.
1655
+ # result = client.analyze_iam_policy_longrunning request
1656
+ #
1657
+ # # The returned object is of type Gapic::Operation. You can use it to
1658
+ # # check the status of an operation, cancel it, or wait for results.
1659
+ # # Here is how to wait for a response.
1660
+ # result.wait_until_done! timeout: 60
1661
+ # if result.response?
1662
+ # p result.response
1663
+ # else
1664
+ # puts "No response received."
1665
+ # end
1666
+ #
1449
1667
  def analyze_iam_policy_longrunning request, options = nil
1450
1668
  raise ::ArgumentError, "request must be provided" if request.nil?
1451
1669
 
@@ -1525,6 +1743,22 @@ module Google
1525
1743
  # @return [::Google::Cloud::Asset::V1::AnalyzeMoveResponse]
1526
1744
  #
1527
1745
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1746
+ #
1747
+ # @example Basic example
1748
+ # require "google/cloud/asset/v1"
1749
+ #
1750
+ # # Create a client object. The client can be reused for multiple calls.
1751
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
1752
+ #
1753
+ # # Create a request. To set request fields, pass in keyword arguments.
1754
+ # request = Google::Cloud::Asset::V1::AnalyzeMoveRequest.new
1755
+ #
1756
+ # # Call the analyze_move method.
1757
+ # result = client.analyze_move request
1758
+ #
1759
+ # # The returned object is of type Google::Cloud::Asset::V1::AnalyzeMoveResponse.
1760
+ # p result
1761
+ #
1528
1762
  def analyze_move request, options = nil
1529
1763
  raise ::ArgumentError, "request must be provided" if request.nil?
1530
1764
 
@@ -1654,6 +1888,22 @@ module Google
1654
1888
  # @return [::Google::Cloud::Asset::V1::QueryAssetsResponse]
1655
1889
  #
1656
1890
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1891
+ #
1892
+ # @example Basic example
1893
+ # require "google/cloud/asset/v1"
1894
+ #
1895
+ # # Create a client object. The client can be reused for multiple calls.
1896
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
1897
+ #
1898
+ # # Create a request. To set request fields, pass in keyword arguments.
1899
+ # request = Google::Cloud::Asset::V1::QueryAssetsRequest.new
1900
+ #
1901
+ # # Call the query_assets method.
1902
+ # result = client.query_assets request
1903
+ #
1904
+ # # The returned object is of type Google::Cloud::Asset::V1::QueryAssetsResponse.
1905
+ # p result
1906
+ #
1657
1907
  def query_assets request, options = nil
1658
1908
  raise ::ArgumentError, "request must be provided" if request.nil?
1659
1909
 
@@ -1733,6 +1983,22 @@ module Google
1733
1983
  # @return [::Google::Cloud::Asset::V1::SavedQuery]
1734
1984
  #
1735
1985
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1986
+ #
1987
+ # @example Basic example
1988
+ # require "google/cloud/asset/v1"
1989
+ #
1990
+ # # Create a client object. The client can be reused for multiple calls.
1991
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
1992
+ #
1993
+ # # Create a request. To set request fields, pass in keyword arguments.
1994
+ # request = Google::Cloud::Asset::V1::CreateSavedQueryRequest.new
1995
+ #
1996
+ # # Call the create_saved_query method.
1997
+ # result = client.create_saved_query request
1998
+ #
1999
+ # # The returned object is of type Google::Cloud::Asset::V1::SavedQuery.
2000
+ # p result
2001
+ #
1736
2002
  def create_saved_query request, options = nil
1737
2003
  raise ::ArgumentError, "request must be provided" if request.nil?
1738
2004
 
@@ -1799,6 +2065,22 @@ module Google
1799
2065
  # @return [::Google::Cloud::Asset::V1::SavedQuery]
1800
2066
  #
1801
2067
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2068
+ #
2069
+ # @example Basic example
2070
+ # require "google/cloud/asset/v1"
2071
+ #
2072
+ # # Create a client object. The client can be reused for multiple calls.
2073
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
2074
+ #
2075
+ # # Create a request. To set request fields, pass in keyword arguments.
2076
+ # request = Google::Cloud::Asset::V1::GetSavedQueryRequest.new
2077
+ #
2078
+ # # Call the get_saved_query method.
2079
+ # result = client.get_saved_query request
2080
+ #
2081
+ # # The returned object is of type Google::Cloud::Asset::V1::SavedQuery.
2082
+ # p result
2083
+ #
1802
2084
  def get_saved_query request, options = nil
1803
2085
  raise ::ArgumentError, "request must be provided" if request.nil?
1804
2086
 
@@ -1882,6 +2164,26 @@ module Google
1882
2164
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Asset::V1::SavedQuery>]
1883
2165
  #
1884
2166
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2167
+ #
2168
+ # @example Basic example
2169
+ # require "google/cloud/asset/v1"
2170
+ #
2171
+ # # Create a client object. The client can be reused for multiple calls.
2172
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
2173
+ #
2174
+ # # Create a request. To set request fields, pass in keyword arguments.
2175
+ # request = Google::Cloud::Asset::V1::ListSavedQueriesRequest.new
2176
+ #
2177
+ # # Call the list_saved_queries method.
2178
+ # result = client.list_saved_queries request
2179
+ #
2180
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2181
+ # # over elements, and API calls will be issued to fetch pages as needed.
2182
+ # result.each do |item|
2183
+ # # Each element is of type ::Google::Cloud::Asset::V1::SavedQuery.
2184
+ # p item
2185
+ # end
2186
+ #
1885
2187
  def list_saved_queries request, options = nil
1886
2188
  raise ::ArgumentError, "request must be provided" if request.nil?
1887
2189
 
@@ -1954,6 +2256,22 @@ module Google
1954
2256
  # @return [::Google::Cloud::Asset::V1::SavedQuery]
1955
2257
  #
1956
2258
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2259
+ #
2260
+ # @example Basic example
2261
+ # require "google/cloud/asset/v1"
2262
+ #
2263
+ # # Create a client object. The client can be reused for multiple calls.
2264
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
2265
+ #
2266
+ # # Create a request. To set request fields, pass in keyword arguments.
2267
+ # request = Google::Cloud::Asset::V1::UpdateSavedQueryRequest.new
2268
+ #
2269
+ # # Call the update_saved_query method.
2270
+ # result = client.update_saved_query request
2271
+ #
2272
+ # # The returned object is of type Google::Cloud::Asset::V1::SavedQuery.
2273
+ # p result
2274
+ #
1957
2275
  def update_saved_query request, options = nil
1958
2276
  raise ::ArgumentError, "request must be provided" if request.nil?
1959
2277
 
@@ -2021,6 +2339,22 @@ module Google
2021
2339
  # @return [::Google::Protobuf::Empty]
2022
2340
  #
2023
2341
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2342
+ #
2343
+ # @example Basic example
2344
+ # require "google/cloud/asset/v1"
2345
+ #
2346
+ # # Create a client object. The client can be reused for multiple calls.
2347
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
2348
+ #
2349
+ # # Create a request. To set request fields, pass in keyword arguments.
2350
+ # request = Google::Cloud::Asset::V1::DeleteSavedQueryRequest.new
2351
+ #
2352
+ # # Call the delete_saved_query method.
2353
+ # result = client.delete_saved_query request
2354
+ #
2355
+ # # The returned object is of type Google::Protobuf::Empty.
2356
+ # p result
2357
+ #
2024
2358
  def delete_saved_query request, options = nil
2025
2359
  raise ::ArgumentError, "request must be provided" if request.nil?
2026
2360
 
@@ -2099,6 +2433,22 @@ module Google
2099
2433
  # @return [::Google::Cloud::Asset::V1::BatchGetEffectiveIamPoliciesResponse]
2100
2434
  #
2101
2435
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2436
+ #
2437
+ # @example Basic example
2438
+ # require "google/cloud/asset/v1"
2439
+ #
2440
+ # # Create a client object. The client can be reused for multiple calls.
2441
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
2442
+ #
2443
+ # # Create a request. To set request fields, pass in keyword arguments.
2444
+ # request = Google::Cloud::Asset::V1::BatchGetEffectiveIamPoliciesRequest.new
2445
+ #
2446
+ # # Call the batch_get_effective_iam_policies method.
2447
+ # result = client.batch_get_effective_iam_policies request
2448
+ #
2449
+ # # The returned object is of type Google::Cloud::Asset::V1::BatchGetEffectiveIamPoliciesResponse.
2450
+ # p result
2451
+ #
2102
2452
  def batch_get_effective_iam_policies request, options = nil
2103
2453
  raise ::ArgumentError, "request must be provided" if request.nil?
2104
2454
 
@@ -2183,6 +2533,26 @@ module Google
2183
2533
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Asset::V1::AnalyzeOrgPoliciesResponse::OrgPolicyResult>]
2184
2534
  #
2185
2535
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2536
+ #
2537
+ # @example Basic example
2538
+ # require "google/cloud/asset/v1"
2539
+ #
2540
+ # # Create a client object. The client can be reused for multiple calls.
2541
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
2542
+ #
2543
+ # # Create a request. To set request fields, pass in keyword arguments.
2544
+ # request = Google::Cloud::Asset::V1::AnalyzeOrgPoliciesRequest.new
2545
+ #
2546
+ # # Call the analyze_org_policies method.
2547
+ # result = client.analyze_org_policies request
2548
+ #
2549
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2550
+ # # over elements, and API calls will be issued to fetch pages as needed.
2551
+ # result.each do |item|
2552
+ # # Each element is of type ::Google::Cloud::Asset::V1::AnalyzeOrgPoliciesResponse::OrgPolicyResult.
2553
+ # p item
2554
+ # end
2555
+ #
2186
2556
  def analyze_org_policies request, options = nil
2187
2557
  raise ::ArgumentError, "request must be provided" if request.nil?
2188
2558
 
@@ -2270,6 +2640,26 @@ module Google
2270
2640
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedContainersResponse::GovernedContainer>]
2271
2641
  #
2272
2642
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2643
+ #
2644
+ # @example Basic example
2645
+ # require "google/cloud/asset/v1"
2646
+ #
2647
+ # # Create a client object. The client can be reused for multiple calls.
2648
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
2649
+ #
2650
+ # # Create a request. To set request fields, pass in keyword arguments.
2651
+ # request = Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedContainersRequest.new
2652
+ #
2653
+ # # Call the analyze_org_policy_governed_containers method.
2654
+ # result = client.analyze_org_policy_governed_containers request
2655
+ #
2656
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2657
+ # # over elements, and API calls will be issued to fetch pages as needed.
2658
+ # result.each do |item|
2659
+ # # Each element is of type ::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedContainersResponse::GovernedContainer.
2660
+ # p item
2661
+ # end
2662
+ #
2273
2663
  def analyze_org_policy_governed_containers request, options = nil
2274
2664
  raise ::ArgumentError, "request must be provided" if request.nil?
2275
2665
 
@@ -2379,6 +2769,26 @@ module Google
2379
2769
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedAssetsResponse::GovernedAsset>]
2380
2770
  #
2381
2771
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2772
+ #
2773
+ # @example Basic example
2774
+ # require "google/cloud/asset/v1"
2775
+ #
2776
+ # # Create a client object. The client can be reused for multiple calls.
2777
+ # client = Google::Cloud::Asset::V1::AssetService::Rest::Client.new
2778
+ #
2779
+ # # Create a request. To set request fields, pass in keyword arguments.
2780
+ # request = Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedAssetsRequest.new
2781
+ #
2782
+ # # Call the analyze_org_policy_governed_assets method.
2783
+ # result = client.analyze_org_policy_governed_assets request
2784
+ #
2785
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2786
+ # # over elements, and API calls will be issued to fetch pages as needed.
2787
+ # result.each do |item|
2788
+ # # Each element is of type ::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedAssetsResponse::GovernedAsset.
2789
+ # p item
2790
+ # end
2791
+ #
2382
2792
  def analyze_org_policy_governed_assets request, options = nil
2383
2793
  raise ::ArgumentError, "request must be provided" if request.nil?
2384
2794
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Asset
23
23
  module V1
24
- VERSION = "0.26.1"
24
+ VERSION = "0.27.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
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.26.1
4
+ version: 0.27.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: 2023-08-04 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -285,7 +285,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
285
285
  - !ruby/object:Gem::Version
286
286
  version: '0'
287
287
  requirements: []
288
- rubygems_version: 3.4.2
288
+ rubygems_version: 3.4.19
289
289
  signing_key:
290
290
  specification_version: 4
291
291
  summary: The Cloud Asset API manages the history and inventory of Google Cloud resources.