google-cloud-resource_manager-v3 0.6.2 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/resource_manager/v3/folders/client.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/folders/operations.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/folders/rest/client.rb +219 -0
- data/lib/google/cloud/resource_manager/v3/folders/rest/operations.rb +75 -0
- data/lib/google/cloud/resource_manager/v3/organizations/client.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/organizations/rest/client.rb +84 -0
- data/lib/google/cloud/resource_manager/v3/projects/client.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/projects/operations.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/projects/rest/client.rb +219 -0
- data/lib/google/cloud/resource_manager/v3/projects/rest/operations.rb +75 -0
- data/lib/google/cloud/resource_manager/v3/tag_bindings/client.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/tag_bindings/operations.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/client.rb +86 -0
- data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/operations.rb +75 -0
- data/lib/google/cloud/resource_manager/v3/tag_holds/client.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/tag_holds/operations.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/tag_holds/rest/client.rb +66 -0
- data/lib/google/cloud/resource_manager/v3/tag_holds/rest/operations.rb +75 -0
- data/lib/google/cloud/resource_manager/v3/tag_keys/client.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/tag_keys/operations.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/tag_keys/rest/client.rb +169 -0
- data/lib/google/cloud/resource_manager/v3/tag_keys/rest/operations.rb +75 -0
- data/lib/google/cloud/resource_manager/v3/tag_values/client.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/tag_values/operations.rb +10 -1
- data/lib/google/cloud/resource_manager/v3/tag_values/rest/client.rb +169 -0
- data/lib/google/cloud/resource_manager/v3/tag_values/rest/operations.rb +75 -0
- data/lib/google/cloud/resource_manager/v3/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
@@ -208,6 +208,22 @@ module Google
|
|
208
208
|
# @return [::Google::Cloud::ResourceManager::V3::Project]
|
209
209
|
#
|
210
210
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
211
|
+
#
|
212
|
+
# @example Basic example
|
213
|
+
# require "google/cloud/resource_manager/v3"
|
214
|
+
#
|
215
|
+
# # Create a client object. The client can be reused for multiple calls.
|
216
|
+
# client = Google::Cloud::ResourceManager::V3::Projects::Rest::Client.new
|
217
|
+
#
|
218
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
219
|
+
# request = Google::Cloud::ResourceManager::V3::GetProjectRequest.new
|
220
|
+
#
|
221
|
+
# # Call the get_project method.
|
222
|
+
# result = client.get_project request
|
223
|
+
#
|
224
|
+
# # The returned object is of type Google::Cloud::ResourceManager::V3::Project.
|
225
|
+
# p result
|
226
|
+
#
|
211
227
|
def get_project request, options = nil
|
212
228
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
213
229
|
|
@@ -291,6 +307,26 @@ module Google
|
|
291
307
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ResourceManager::V3::Project>]
|
292
308
|
#
|
293
309
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
310
|
+
#
|
311
|
+
# @example Basic example
|
312
|
+
# require "google/cloud/resource_manager/v3"
|
313
|
+
#
|
314
|
+
# # Create a client object. The client can be reused for multiple calls.
|
315
|
+
# client = Google::Cloud::ResourceManager::V3::Projects::Rest::Client.new
|
316
|
+
#
|
317
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
318
|
+
# request = Google::Cloud::ResourceManager::V3::ListProjectsRequest.new
|
319
|
+
#
|
320
|
+
# # Call the list_projects method.
|
321
|
+
# result = client.list_projects request
|
322
|
+
#
|
323
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
324
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
325
|
+
# result.each do |item|
|
326
|
+
# # Each element is of type ::Google::Cloud::ResourceManager::V3::Project.
|
327
|
+
# p item
|
328
|
+
# end
|
329
|
+
#
|
294
330
|
def list_projects request, options = nil
|
295
331
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
296
332
|
|
@@ -403,6 +439,26 @@ module Google
|
|
403
439
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ResourceManager::V3::Project>]
|
404
440
|
#
|
405
441
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
442
|
+
#
|
443
|
+
# @example Basic example
|
444
|
+
# require "google/cloud/resource_manager/v3"
|
445
|
+
#
|
446
|
+
# # Create a client object. The client can be reused for multiple calls.
|
447
|
+
# client = Google::Cloud::ResourceManager::V3::Projects::Rest::Client.new
|
448
|
+
#
|
449
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
450
|
+
# request = Google::Cloud::ResourceManager::V3::SearchProjectsRequest.new
|
451
|
+
#
|
452
|
+
# # Call the search_projects method.
|
453
|
+
# result = client.search_projects request
|
454
|
+
#
|
455
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
456
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
457
|
+
# result.each do |item|
|
458
|
+
# # Each element is of type ::Google::Cloud::ResourceManager::V3::Project.
|
459
|
+
# p item
|
460
|
+
# end
|
461
|
+
#
|
406
462
|
def search_projects request, options = nil
|
407
463
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
408
464
|
|
@@ -478,6 +534,29 @@ module Google
|
|
478
534
|
# @return [::Gapic::Operation]
|
479
535
|
#
|
480
536
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
537
|
+
#
|
538
|
+
# @example Basic example
|
539
|
+
# require "google/cloud/resource_manager/v3"
|
540
|
+
#
|
541
|
+
# # Create a client object. The client can be reused for multiple calls.
|
542
|
+
# client = Google::Cloud::ResourceManager::V3::Projects::Rest::Client.new
|
543
|
+
#
|
544
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
545
|
+
# request = Google::Cloud::ResourceManager::V3::CreateProjectRequest.new
|
546
|
+
#
|
547
|
+
# # Call the create_project method.
|
548
|
+
# result = client.create_project request
|
549
|
+
#
|
550
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
551
|
+
# # check the status of an operation, cancel it, or wait for results.
|
552
|
+
# # Here is how to wait for a response.
|
553
|
+
# result.wait_until_done! timeout: 60
|
554
|
+
# if result.response?
|
555
|
+
# p result.response
|
556
|
+
# else
|
557
|
+
# puts "No response received."
|
558
|
+
# end
|
559
|
+
#
|
481
560
|
def create_project request, options = nil
|
482
561
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
483
562
|
|
@@ -548,6 +627,29 @@ module Google
|
|
548
627
|
# @return [::Gapic::Operation]
|
549
628
|
#
|
550
629
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
630
|
+
#
|
631
|
+
# @example Basic example
|
632
|
+
# require "google/cloud/resource_manager/v3"
|
633
|
+
#
|
634
|
+
# # Create a client object. The client can be reused for multiple calls.
|
635
|
+
# client = Google::Cloud::ResourceManager::V3::Projects::Rest::Client.new
|
636
|
+
#
|
637
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
638
|
+
# request = Google::Cloud::ResourceManager::V3::UpdateProjectRequest.new
|
639
|
+
#
|
640
|
+
# # Call the update_project method.
|
641
|
+
# result = client.update_project request
|
642
|
+
#
|
643
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
644
|
+
# # check the status of an operation, cancel it, or wait for results.
|
645
|
+
# # Here is how to wait for a response.
|
646
|
+
# result.wait_until_done! timeout: 60
|
647
|
+
# if result.response?
|
648
|
+
# p result.response
|
649
|
+
# else
|
650
|
+
# puts "No response received."
|
651
|
+
# end
|
652
|
+
#
|
551
653
|
def update_project request, options = nil
|
552
654
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
553
655
|
|
@@ -626,6 +728,29 @@ module Google
|
|
626
728
|
# @return [::Gapic::Operation]
|
627
729
|
#
|
628
730
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
731
|
+
#
|
732
|
+
# @example Basic example
|
733
|
+
# require "google/cloud/resource_manager/v3"
|
734
|
+
#
|
735
|
+
# # Create a client object. The client can be reused for multiple calls.
|
736
|
+
# client = Google::Cloud::ResourceManager::V3::Projects::Rest::Client.new
|
737
|
+
#
|
738
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
739
|
+
# request = Google::Cloud::ResourceManager::V3::MoveProjectRequest.new
|
740
|
+
#
|
741
|
+
# # Call the move_project method.
|
742
|
+
# result = client.move_project request
|
743
|
+
#
|
744
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
745
|
+
# # check the status of an operation, cancel it, or wait for results.
|
746
|
+
# # Here is how to wait for a response.
|
747
|
+
# result.wait_until_done! timeout: 60
|
748
|
+
# if result.response?
|
749
|
+
# p result.response
|
750
|
+
# else
|
751
|
+
# puts "No response received."
|
752
|
+
# end
|
753
|
+
#
|
629
754
|
def move_project request, options = nil
|
630
755
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
631
756
|
|
@@ -721,6 +846,29 @@ module Google
|
|
721
846
|
# @return [::Gapic::Operation]
|
722
847
|
#
|
723
848
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
849
|
+
#
|
850
|
+
# @example Basic example
|
851
|
+
# require "google/cloud/resource_manager/v3"
|
852
|
+
#
|
853
|
+
# # Create a client object. The client can be reused for multiple calls.
|
854
|
+
# client = Google::Cloud::ResourceManager::V3::Projects::Rest::Client.new
|
855
|
+
#
|
856
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
857
|
+
# request = Google::Cloud::ResourceManager::V3::DeleteProjectRequest.new
|
858
|
+
#
|
859
|
+
# # Call the delete_project method.
|
860
|
+
# result = client.delete_project request
|
861
|
+
#
|
862
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
863
|
+
# # check the status of an operation, cancel it, or wait for results.
|
864
|
+
# # Here is how to wait for a response.
|
865
|
+
# result.wait_until_done! timeout: 60
|
866
|
+
# if result.response?
|
867
|
+
# p result.response
|
868
|
+
# else
|
869
|
+
# puts "No response received."
|
870
|
+
# end
|
871
|
+
#
|
724
872
|
def delete_project request, options = nil
|
725
873
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
726
874
|
|
@@ -794,6 +942,29 @@ module Google
|
|
794
942
|
# @return [::Gapic::Operation]
|
795
943
|
#
|
796
944
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
945
|
+
#
|
946
|
+
# @example Basic example
|
947
|
+
# require "google/cloud/resource_manager/v3"
|
948
|
+
#
|
949
|
+
# # Create a client object. The client can be reused for multiple calls.
|
950
|
+
# client = Google::Cloud::ResourceManager::V3::Projects::Rest::Client.new
|
951
|
+
#
|
952
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
953
|
+
# request = Google::Cloud::ResourceManager::V3::UndeleteProjectRequest.new
|
954
|
+
#
|
955
|
+
# # Call the undelete_project method.
|
956
|
+
# result = client.undelete_project request
|
957
|
+
#
|
958
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
959
|
+
# # check the status of an operation, cancel it, or wait for results.
|
960
|
+
# # Here is how to wait for a response.
|
961
|
+
# result.wait_until_done! timeout: 60
|
962
|
+
# if result.response?
|
963
|
+
# p result.response
|
964
|
+
# else
|
965
|
+
# puts "No response received."
|
966
|
+
# end
|
967
|
+
#
|
797
968
|
def undelete_project request, options = nil
|
798
969
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
799
970
|
|
@@ -863,6 +1034,22 @@ module Google
|
|
863
1034
|
# @return [::Google::Iam::V1::Policy]
|
864
1035
|
#
|
865
1036
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1037
|
+
#
|
1038
|
+
# @example Basic example
|
1039
|
+
# require "google/cloud/resource_manager/v3"
|
1040
|
+
#
|
1041
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1042
|
+
# client = Google::Cloud::ResourceManager::V3::Projects::Rest::Client.new
|
1043
|
+
#
|
1044
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1045
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
1046
|
+
#
|
1047
|
+
# # Call the get_iam_policy method.
|
1048
|
+
# result = client.get_iam_policy request
|
1049
|
+
#
|
1050
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
1051
|
+
# p result
|
1052
|
+
#
|
866
1053
|
def get_iam_policy request, options = nil
|
867
1054
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
868
1055
|
|
@@ -977,6 +1164,22 @@ module Google
|
|
977
1164
|
# @return [::Google::Iam::V1::Policy]
|
978
1165
|
#
|
979
1166
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1167
|
+
#
|
1168
|
+
# @example Basic example
|
1169
|
+
# require "google/cloud/resource_manager/v3"
|
1170
|
+
#
|
1171
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1172
|
+
# client = Google::Cloud::ResourceManager::V3::Projects::Rest::Client.new
|
1173
|
+
#
|
1174
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1175
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
1176
|
+
#
|
1177
|
+
# # Call the set_iam_policy method.
|
1178
|
+
# result = client.set_iam_policy request
|
1179
|
+
#
|
1180
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
1181
|
+
# p result
|
1182
|
+
#
|
980
1183
|
def set_iam_policy request, options = nil
|
981
1184
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
982
1185
|
|
@@ -1046,6 +1249,22 @@ module Google
|
|
1046
1249
|
# @return [::Google::Iam::V1::TestIamPermissionsResponse]
|
1047
1250
|
#
|
1048
1251
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1252
|
+
#
|
1253
|
+
# @example Basic example
|
1254
|
+
# require "google/cloud/resource_manager/v3"
|
1255
|
+
#
|
1256
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1257
|
+
# client = Google::Cloud::ResourceManager::V3::Projects::Rest::Client.new
|
1258
|
+
#
|
1259
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1260
|
+
# request = Google::Iam::V1::TestIamPermissionsRequest.new
|
1261
|
+
#
|
1262
|
+
# # Call the test_iam_permissions method.
|
1263
|
+
# result = client.test_iam_permissions request
|
1264
|
+
#
|
1265
|
+
# # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
|
1266
|
+
# p result
|
1267
|
+
#
|
1049
1268
|
def test_iam_permissions request, options = nil
|
1050
1269
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1051
1270
|
|
@@ -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
|
|
@@ -154,7 +154,8 @@ module Google
|
|
154
154
|
credentials: credentials,
|
155
155
|
endpoint: @config.endpoint,
|
156
156
|
channel_args: @config.channel_args,
|
157
|
-
interceptors: @config.interceptors
|
157
|
+
interceptors: @config.interceptors,
|
158
|
+
channel_pool_config: @config.channel_pool
|
158
159
|
)
|
159
160
|
end
|
160
161
|
|
@@ -656,6 +657,14 @@ module Google
|
|
656
657
|
end
|
657
658
|
end
|
658
659
|
|
660
|
+
##
|
661
|
+
# Configuration for the channel pool
|
662
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
663
|
+
#
|
664
|
+
def channel_pool
|
665
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
666
|
+
end
|
667
|
+
|
659
668
|
##
|
660
669
|
# Configuration RPC class for the TagBindings API.
|
661
670
|
#
|
@@ -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
|
#
|
@@ -198,6 +198,26 @@ module Google
|
|
198
198
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ResourceManager::V3::TagBinding>]
|
199
199
|
#
|
200
200
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
201
|
+
#
|
202
|
+
# @example Basic example
|
203
|
+
# require "google/cloud/resource_manager/v3"
|
204
|
+
#
|
205
|
+
# # Create a client object. The client can be reused for multiple calls.
|
206
|
+
# client = Google::Cloud::ResourceManager::V3::TagBindings::Rest::Client.new
|
207
|
+
#
|
208
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
209
|
+
# request = Google::Cloud::ResourceManager::V3::ListTagBindingsRequest.new
|
210
|
+
#
|
211
|
+
# # Call the list_tag_bindings method.
|
212
|
+
# result = client.list_tag_bindings request
|
213
|
+
#
|
214
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
215
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
216
|
+
# result.each do |item|
|
217
|
+
# # Each element is of type ::Google::Cloud::ResourceManager::V3::TagBinding.
|
218
|
+
# p item
|
219
|
+
# end
|
220
|
+
#
|
201
221
|
def list_tag_bindings request, options = nil
|
202
222
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
203
223
|
|
@@ -264,6 +284,29 @@ module Google
|
|
264
284
|
# @return [::Gapic::Operation]
|
265
285
|
#
|
266
286
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
287
|
+
#
|
288
|
+
# @example Basic example
|
289
|
+
# require "google/cloud/resource_manager/v3"
|
290
|
+
#
|
291
|
+
# # Create a client object. The client can be reused for multiple calls.
|
292
|
+
# client = Google::Cloud::ResourceManager::V3::TagBindings::Rest::Client.new
|
293
|
+
#
|
294
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
295
|
+
# request = Google::Cloud::ResourceManager::V3::CreateTagBindingRequest.new
|
296
|
+
#
|
297
|
+
# # Call the create_tag_binding method.
|
298
|
+
# result = client.create_tag_binding request
|
299
|
+
#
|
300
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
301
|
+
# # check the status of an operation, cancel it, or wait for results.
|
302
|
+
# # Here is how to wait for a response.
|
303
|
+
# result.wait_until_done! timeout: 60
|
304
|
+
# if result.response?
|
305
|
+
# p result.response
|
306
|
+
# else
|
307
|
+
# puts "No response received."
|
308
|
+
# end
|
309
|
+
#
|
267
310
|
def create_tag_binding request, options = nil
|
268
311
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
269
312
|
|
@@ -329,6 +372,29 @@ module Google
|
|
329
372
|
# @return [::Gapic::Operation]
|
330
373
|
#
|
331
374
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
375
|
+
#
|
376
|
+
# @example Basic example
|
377
|
+
# require "google/cloud/resource_manager/v3"
|
378
|
+
#
|
379
|
+
# # Create a client object. The client can be reused for multiple calls.
|
380
|
+
# client = Google::Cloud::ResourceManager::V3::TagBindings::Rest::Client.new
|
381
|
+
#
|
382
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
383
|
+
# request = Google::Cloud::ResourceManager::V3::DeleteTagBindingRequest.new
|
384
|
+
#
|
385
|
+
# # Call the delete_tag_binding method.
|
386
|
+
# result = client.delete_tag_binding request
|
387
|
+
#
|
388
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
389
|
+
# # check the status of an operation, cancel it, or wait for results.
|
390
|
+
# # Here is how to wait for a response.
|
391
|
+
# result.wait_until_done! timeout: 60
|
392
|
+
# if result.response?
|
393
|
+
# p result.response
|
394
|
+
# else
|
395
|
+
# puts "No response received."
|
396
|
+
# end
|
397
|
+
#
|
332
398
|
def delete_tag_binding request, options = nil
|
333
399
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
334
400
|
|
@@ -402,6 +468,26 @@ module Google
|
|
402
468
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ResourceManager::V3::EffectiveTag>]
|
403
469
|
#
|
404
470
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
471
|
+
#
|
472
|
+
# @example Basic example
|
473
|
+
# require "google/cloud/resource_manager/v3"
|
474
|
+
#
|
475
|
+
# # Create a client object. The client can be reused for multiple calls.
|
476
|
+
# client = Google::Cloud::ResourceManager::V3::TagBindings::Rest::Client.new
|
477
|
+
#
|
478
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
479
|
+
# request = Google::Cloud::ResourceManager::V3::ListEffectiveTagsRequest.new
|
480
|
+
#
|
481
|
+
# # Call the list_effective_tags method.
|
482
|
+
# result = client.list_effective_tags request
|
483
|
+
#
|
484
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
485
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
486
|
+
# result.each do |item|
|
487
|
+
# # Each element is of type ::Google::Cloud::ResourceManager::V3::EffectiveTag.
|
488
|
+
# p item
|
489
|
+
# end
|
490
|
+
#
|
405
491
|
def list_effective_tags request, options = nil
|
406
492
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
407
493
|
|
@@ -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
|
|