google-cloud-resource_manager-v3 0.1.0 → 0.1.1
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 +254 -24
- data/lib/google/cloud/resource_manager/v3/folders/operations.rb +115 -12
- data/lib/google/cloud/resource_manager/v3/organizations/client.rb +103 -13
- data/lib/google/cloud/resource_manager/v3/projects/client.rb +254 -24
- data/lib/google/cloud/resource_manager/v3/projects/operations.rb +115 -12
- data/lib/google/cloud/resource_manager/v3/tag_bindings/client.rb +70 -3
- data/lib/google/cloud/resource_manager/v3/tag_bindings/operations.rb +115 -12
- data/lib/google/cloud/resource_manager/v3/tag_keys/client.rb +177 -18
- data/lib/google/cloud/resource_manager/v3/tag_keys/operations.rb +115 -12
- data/lib/google/cloud/resource_manager/v3/tag_values/client.rb +177 -18
- data/lib/google/cloud/resource_manager/v3/tag_values/operations.rb +115 -12
- data/lib/google/cloud/resource_manager/v3/version.rb +1 -1
- data/lib/google/cloud/resourcemanager/v3/folders_pb.rb +2 -2
- data/lib/google/cloud/resourcemanager/v3/folders_services_pb.rb +1 -1
- data/lib/google/cloud/resourcemanager/v3/organizations_pb.rb +2 -2
- data/lib/google/cloud/resourcemanager/v3/organizations_services_pb.rb +1 -1
- data/lib/google/cloud/resourcemanager/v3/projects_pb.rb +2 -2
- data/lib/google/cloud/resourcemanager/v3/projects_services_pb.rb +1 -1
- data/lib/google/cloud/resourcemanager/v3/tag_bindings_pb.rb +2 -2
- data/lib/google/cloud/resourcemanager/v3/tag_bindings_services_pb.rb +1 -1
- data/lib/google/cloud/resourcemanager/v3/tag_keys_pb.rb +2 -2
- data/lib/google/cloud/resourcemanager/v3/tag_keys_services_pb.rb +1 -1
- data/lib/google/cloud/resourcemanager/v3/tag_values_pb.rb +2 -2
- data/lib/google/cloud/resourcemanager/v3/tag_values_services_pb.rb +1 -1
- data/proto_docs/google/cloud/resourcemanager/v3/folders.rb +2 -0
- data/proto_docs/google/cloud/resourcemanager/v3/organizations.rb +2 -1
- data/proto_docs/google/cloud/resourcemanager/v3/projects.rb +2 -0
- metadata +2 -2
@@ -216,6 +216,27 @@ module Google
|
|
216
216
|
#
|
217
217
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
218
218
|
#
|
219
|
+
# @example Basic example
|
220
|
+
# require "google/cloud/resource_manager/v3"
|
221
|
+
#
|
222
|
+
# # Create a client object. The client can be reused for multiple calls.
|
223
|
+
# client = Google::Cloud::ResourceManager::V3::TagValues::Client.new
|
224
|
+
#
|
225
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
226
|
+
# request = Google::Cloud::ResourceManager::V3::ListTagValuesRequest.new
|
227
|
+
#
|
228
|
+
# # Call the list_tag_values method.
|
229
|
+
# result = client.list_tag_values request
|
230
|
+
#
|
231
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
232
|
+
# # iterate over all elements by calling #each, and the enumerable
|
233
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
234
|
+
# # methods are also available for managing paging directly.
|
235
|
+
# result.each do |response|
|
236
|
+
# # Each element is of type ::Google::Cloud::ResourceManager::V3::TagValue.
|
237
|
+
# p response
|
238
|
+
# end
|
239
|
+
#
|
219
240
|
def list_tag_values request, options = nil
|
220
241
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
221
242
|
|
@@ -281,6 +302,21 @@ module Google
|
|
281
302
|
#
|
282
303
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
283
304
|
#
|
305
|
+
# @example Basic example
|
306
|
+
# require "google/cloud/resource_manager/v3"
|
307
|
+
#
|
308
|
+
# # Create a client object. The client can be reused for multiple calls.
|
309
|
+
# client = Google::Cloud::ResourceManager::V3::TagValues::Client.new
|
310
|
+
#
|
311
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
312
|
+
# request = Google::Cloud::ResourceManager::V3::GetTagValueRequest.new
|
313
|
+
#
|
314
|
+
# # Call the get_tag_value method.
|
315
|
+
# result = client.get_tag_value request
|
316
|
+
#
|
317
|
+
# # The returned object is of type Google::Cloud::ResourceManager::V3::TagValue.
|
318
|
+
# p result
|
319
|
+
#
|
284
320
|
def get_tag_value request, options = nil
|
285
321
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
286
322
|
|
@@ -298,9 +334,11 @@ module Google
|
|
298
334
|
gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
|
299
335
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
300
336
|
|
301
|
-
header_params = {
|
302
|
-
|
303
|
-
|
337
|
+
header_params = {}
|
338
|
+
if request.name
|
339
|
+
header_params["name"] = request.name
|
340
|
+
end
|
341
|
+
|
304
342
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
305
343
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
306
344
|
|
@@ -356,6 +394,28 @@ module Google
|
|
356
394
|
#
|
357
395
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
358
396
|
#
|
397
|
+
# @example Basic example
|
398
|
+
# require "google/cloud/resource_manager/v3"
|
399
|
+
#
|
400
|
+
# # Create a client object. The client can be reused for multiple calls.
|
401
|
+
# client = Google::Cloud::ResourceManager::V3::TagValues::Client.new
|
402
|
+
#
|
403
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
404
|
+
# request = Google::Cloud::ResourceManager::V3::CreateTagValueRequest.new
|
405
|
+
#
|
406
|
+
# # Call the create_tag_value method.
|
407
|
+
# result = client.create_tag_value request
|
408
|
+
#
|
409
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
410
|
+
# # object to check the status of an operation, cancel it, or wait
|
411
|
+
# # for results. Here is how to block until completion:
|
412
|
+
# result.wait_until_done! timeout: 60
|
413
|
+
# if result.response?
|
414
|
+
# p result.response
|
415
|
+
# else
|
416
|
+
# puts "Error!"
|
417
|
+
# end
|
418
|
+
#
|
359
419
|
def create_tag_value request, options = nil
|
360
420
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
361
421
|
|
@@ -427,6 +487,28 @@ module Google
|
|
427
487
|
#
|
428
488
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
429
489
|
#
|
490
|
+
# @example Basic example
|
491
|
+
# require "google/cloud/resource_manager/v3"
|
492
|
+
#
|
493
|
+
# # Create a client object. The client can be reused for multiple calls.
|
494
|
+
# client = Google::Cloud::ResourceManager::V3::TagValues::Client.new
|
495
|
+
#
|
496
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
497
|
+
# request = Google::Cloud::ResourceManager::V3::UpdateTagValueRequest.new
|
498
|
+
#
|
499
|
+
# # Call the update_tag_value method.
|
500
|
+
# result = client.update_tag_value request
|
501
|
+
#
|
502
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
503
|
+
# # object to check the status of an operation, cancel it, or wait
|
504
|
+
# # for results. Here is how to block until completion:
|
505
|
+
# result.wait_until_done! timeout: 60
|
506
|
+
# if result.response?
|
507
|
+
# p result.response
|
508
|
+
# else
|
509
|
+
# puts "Error!"
|
510
|
+
# end
|
511
|
+
#
|
430
512
|
def update_tag_value request, options = nil
|
431
513
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
432
514
|
|
@@ -444,9 +526,11 @@ module Google
|
|
444
526
|
gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
|
445
527
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
446
528
|
|
447
|
-
header_params = {
|
448
|
-
|
449
|
-
|
529
|
+
header_params = {}
|
530
|
+
if request.tag_value&.name
|
531
|
+
header_params["tag_value.name"] = request.tag_value.name
|
532
|
+
end
|
533
|
+
|
450
534
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
451
535
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
452
536
|
|
@@ -503,6 +587,28 @@ module Google
|
|
503
587
|
#
|
504
588
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
505
589
|
#
|
590
|
+
# @example Basic example
|
591
|
+
# require "google/cloud/resource_manager/v3"
|
592
|
+
#
|
593
|
+
# # Create a client object. The client can be reused for multiple calls.
|
594
|
+
# client = Google::Cloud::ResourceManager::V3::TagValues::Client.new
|
595
|
+
#
|
596
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
597
|
+
# request = Google::Cloud::ResourceManager::V3::DeleteTagValueRequest.new
|
598
|
+
#
|
599
|
+
# # Call the delete_tag_value method.
|
600
|
+
# result = client.delete_tag_value request
|
601
|
+
#
|
602
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
603
|
+
# # object to check the status of an operation, cancel it, or wait
|
604
|
+
# # for results. Here is how to block until completion:
|
605
|
+
# result.wait_until_done! timeout: 60
|
606
|
+
# if result.response?
|
607
|
+
# p result.response
|
608
|
+
# else
|
609
|
+
# puts "Error!"
|
610
|
+
# end
|
611
|
+
#
|
506
612
|
def delete_tag_value request, options = nil
|
507
613
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
508
614
|
|
@@ -520,9 +626,11 @@ module Google
|
|
520
626
|
gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
|
521
627
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
522
628
|
|
523
|
-
header_params = {
|
524
|
-
|
525
|
-
|
629
|
+
header_params = {}
|
630
|
+
if request.name
|
631
|
+
header_params["name"] = request.name
|
632
|
+
end
|
633
|
+
|
526
634
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
527
635
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
528
636
|
|
@@ -581,6 +689,21 @@ module Google
|
|
581
689
|
#
|
582
690
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
583
691
|
#
|
692
|
+
# @example Basic example
|
693
|
+
# require "google/cloud/resource_manager/v3"
|
694
|
+
#
|
695
|
+
# # Create a client object. The client can be reused for multiple calls.
|
696
|
+
# client = Google::Cloud::ResourceManager::V3::TagValues::Client.new
|
697
|
+
#
|
698
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
699
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
700
|
+
#
|
701
|
+
# # Call the get_iam_policy method.
|
702
|
+
# result = client.get_iam_policy request
|
703
|
+
#
|
704
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
705
|
+
# p result
|
706
|
+
#
|
584
707
|
def get_iam_policy request, options = nil
|
585
708
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
586
709
|
|
@@ -598,9 +721,11 @@ module Google
|
|
598
721
|
gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
|
599
722
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
600
723
|
|
601
|
-
header_params = {
|
602
|
-
|
603
|
-
|
724
|
+
header_params = {}
|
725
|
+
if request.resource
|
726
|
+
header_params["resource"] = request.resource
|
727
|
+
end
|
728
|
+
|
604
729
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
605
730
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
606
731
|
|
@@ -659,6 +784,21 @@ module Google
|
|
659
784
|
#
|
660
785
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
661
786
|
#
|
787
|
+
# @example Basic example
|
788
|
+
# require "google/cloud/resource_manager/v3"
|
789
|
+
#
|
790
|
+
# # Create a client object. The client can be reused for multiple calls.
|
791
|
+
# client = Google::Cloud::ResourceManager::V3::TagValues::Client.new
|
792
|
+
#
|
793
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
794
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
795
|
+
#
|
796
|
+
# # Call the set_iam_policy method.
|
797
|
+
# result = client.set_iam_policy request
|
798
|
+
#
|
799
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
800
|
+
# p result
|
801
|
+
#
|
662
802
|
def set_iam_policy request, options = nil
|
663
803
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
664
804
|
|
@@ -676,9 +816,11 @@ module Google
|
|
676
816
|
gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
|
677
817
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
678
818
|
|
679
|
-
header_params = {
|
680
|
-
|
681
|
-
|
819
|
+
header_params = {}
|
820
|
+
if request.resource
|
821
|
+
header_params["resource"] = request.resource
|
822
|
+
end
|
823
|
+
|
682
824
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
683
825
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
684
826
|
|
@@ -737,6 +879,21 @@ module Google
|
|
737
879
|
#
|
738
880
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
739
881
|
#
|
882
|
+
# @example Basic example
|
883
|
+
# require "google/cloud/resource_manager/v3"
|
884
|
+
#
|
885
|
+
# # Create a client object. The client can be reused for multiple calls.
|
886
|
+
# client = Google::Cloud::ResourceManager::V3::TagValues::Client.new
|
887
|
+
#
|
888
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
889
|
+
# request = Google::Iam::V1::TestIamPermissionsRequest.new
|
890
|
+
#
|
891
|
+
# # Call the test_iam_permissions method.
|
892
|
+
# result = client.test_iam_permissions request
|
893
|
+
#
|
894
|
+
# # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
|
895
|
+
# p result
|
896
|
+
#
|
740
897
|
def test_iam_permissions request, options = nil
|
741
898
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
742
899
|
|
@@ -754,9 +911,11 @@ module Google
|
|
754
911
|
gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
|
755
912
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
756
913
|
|
757
|
-
header_params = {
|
758
|
-
|
759
|
-
|
914
|
+
header_params = {}
|
915
|
+
if request.resource
|
916
|
+
header_params["resource"] = request.resource
|
917
|
+
end
|
918
|
+
|
760
919
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
761
920
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
762
921
|
|
@@ -143,6 +143,27 @@ module Google
|
|
143
143
|
#
|
144
144
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
145
145
|
#
|
146
|
+
# @example Basic example
|
147
|
+
# require "google/longrunning"
|
148
|
+
#
|
149
|
+
# # Create a client object. The client can be reused for multiple calls.
|
150
|
+
# client = Google::Longrunning::Operations::Client.new
|
151
|
+
#
|
152
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
153
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
154
|
+
#
|
155
|
+
# # Call the list_operations method.
|
156
|
+
# result = client.list_operations request
|
157
|
+
#
|
158
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
159
|
+
# # iterate over all elements by calling #each, and the enumerable
|
160
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
161
|
+
# # methods are also available for managing paging directly.
|
162
|
+
# result.each do |response|
|
163
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
164
|
+
# p response
|
165
|
+
# end
|
166
|
+
#
|
146
167
|
def list_operations request, options = nil
|
147
168
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
148
169
|
|
@@ -160,9 +181,11 @@ module Google
|
|
160
181
|
gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
|
161
182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
162
183
|
|
163
|
-
header_params = {
|
164
|
-
|
165
|
-
|
184
|
+
header_params = {}
|
185
|
+
if request.name
|
186
|
+
header_params["name"] = request.name
|
187
|
+
end
|
188
|
+
|
166
189
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
167
190
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
168
191
|
|
@@ -215,6 +238,28 @@ module Google
|
|
215
238
|
#
|
216
239
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
217
240
|
#
|
241
|
+
# @example Basic example
|
242
|
+
# require "google/longrunning"
|
243
|
+
#
|
244
|
+
# # Create a client object. The client can be reused for multiple calls.
|
245
|
+
# client = Google::Longrunning::Operations::Client.new
|
246
|
+
#
|
247
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
248
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
249
|
+
#
|
250
|
+
# # Call the get_operation method.
|
251
|
+
# result = client.get_operation request
|
252
|
+
#
|
253
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
254
|
+
# # object to check the status of an operation, cancel it, or wait
|
255
|
+
# # for results. Here is how to block until completion:
|
256
|
+
# result.wait_until_done! timeout: 60
|
257
|
+
# if result.response?
|
258
|
+
# p result.response
|
259
|
+
# else
|
260
|
+
# puts "Error!"
|
261
|
+
# end
|
262
|
+
#
|
218
263
|
def get_operation request, options = nil
|
219
264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
220
265
|
|
@@ -232,9 +277,11 @@ module Google
|
|
232
277
|
gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
|
233
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
279
|
|
235
|
-
header_params = {
|
236
|
-
|
237
|
-
|
280
|
+
header_params = {}
|
281
|
+
if request.name
|
282
|
+
header_params["name"] = request.name
|
283
|
+
end
|
284
|
+
|
238
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
239
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
240
287
|
|
@@ -287,6 +334,21 @@ module Google
|
|
287
334
|
#
|
288
335
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
289
336
|
#
|
337
|
+
# @example Basic example
|
338
|
+
# require "google/longrunning"
|
339
|
+
#
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
341
|
+
# client = Google::Longrunning::Operations::Client.new
|
342
|
+
#
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
344
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
345
|
+
#
|
346
|
+
# # Call the delete_operation method.
|
347
|
+
# result = client.delete_operation request
|
348
|
+
#
|
349
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
350
|
+
# p result
|
351
|
+
#
|
290
352
|
def delete_operation request, options = nil
|
291
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
292
354
|
|
@@ -304,9 +366,11 @@ module Google
|
|
304
366
|
gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
|
305
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
368
|
|
307
|
-
header_params = {
|
308
|
-
|
309
|
-
|
369
|
+
header_params = {}
|
370
|
+
if request.name
|
371
|
+
header_params["name"] = request.name
|
372
|
+
end
|
373
|
+
|
310
374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
311
375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
312
376
|
|
@@ -364,6 +428,21 @@ module Google
|
|
364
428
|
#
|
365
429
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
366
430
|
#
|
431
|
+
# @example Basic example
|
432
|
+
# require "google/longrunning"
|
433
|
+
#
|
434
|
+
# # Create a client object. The client can be reused for multiple calls.
|
435
|
+
# client = Google::Longrunning::Operations::Client.new
|
436
|
+
#
|
437
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
438
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
439
|
+
#
|
440
|
+
# # Call the cancel_operation method.
|
441
|
+
# result = client.cancel_operation request
|
442
|
+
#
|
443
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
444
|
+
# p result
|
445
|
+
#
|
367
446
|
def cancel_operation request, options = nil
|
368
447
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
369
448
|
|
@@ -381,9 +460,11 @@ module Google
|
|
381
460
|
gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
|
382
461
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
383
462
|
|
384
|
-
header_params = {
|
385
|
-
|
386
|
-
|
463
|
+
header_params = {}
|
464
|
+
if request.name
|
465
|
+
header_params["name"] = request.name
|
466
|
+
end
|
467
|
+
|
387
468
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
388
469
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
389
470
|
|
@@ -444,6 +525,28 @@ module Google
|
|
444
525
|
#
|
445
526
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
446
527
|
#
|
528
|
+
# @example Basic example
|
529
|
+
# require "google/longrunning"
|
530
|
+
#
|
531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
532
|
+
# client = Google::Longrunning::Operations::Client.new
|
533
|
+
#
|
534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
535
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
536
|
+
#
|
537
|
+
# # Call the wait_operation method.
|
538
|
+
# result = client.wait_operation request
|
539
|
+
#
|
540
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
541
|
+
# # object to check the status of an operation, cancel it, or wait
|
542
|
+
# # for results. Here is how to block until completion:
|
543
|
+
# result.wait_until_done! timeout: 60
|
544
|
+
# if result.response?
|
545
|
+
# p result.response
|
546
|
+
# else
|
547
|
+
# puts "Error!"
|
548
|
+
# end
|
549
|
+
#
|
447
550
|
def wait_operation request, options = nil
|
448
551
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
449
552
|
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/resourcemanager/v3/folders.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -12,6 +10,8 @@ require 'google/iam/v1/policy_pb'
|
|
12
10
|
require 'google/longrunning/operations_pb'
|
13
11
|
require 'google/protobuf/field_mask_pb'
|
14
12
|
require 'google/protobuf/timestamp_pb'
|
13
|
+
require 'google/protobuf'
|
14
|
+
|
15
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
16
|
add_file("google/cloud/resourcemanager/v3/folders.proto", :syntax => :proto3) do
|
17
17
|
add_message "google.cloud.resourcemanager.v3.Folder" do
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# organization and to control the policies applied to groups of resources.
|
30
30
|
class Service
|
31
31
|
|
32
|
-
include GRPC::GenericService
|
32
|
+
include ::GRPC::GenericService
|
33
33
|
|
34
34
|
self.marshal_class_method = :encode
|
35
35
|
self.unmarshal_class_method = :decode
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/resourcemanager/v3/organizations.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -11,6 +9,8 @@ require 'google/iam/v1/iam_policy_pb'
|
|
11
9
|
require 'google/iam/v1/policy_pb'
|
12
10
|
require 'google/longrunning/operations_pb'
|
13
11
|
require 'google/protobuf/timestamp_pb'
|
12
|
+
require 'google/protobuf'
|
13
|
+
|
14
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
15
|
add_file("google/cloud/resourcemanager/v3/organizations.proto", :syntax => :proto3) do
|
16
16
|
add_message "google.cloud.resourcemanager.v3.Organization" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/resourcemanager/v3/projects.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -12,6 +10,8 @@ require 'google/iam/v1/policy_pb'
|
|
12
10
|
require 'google/longrunning/operations_pb'
|
13
11
|
require 'google/protobuf/field_mask_pb'
|
14
12
|
require 'google/protobuf/timestamp_pb'
|
13
|
+
require 'google/protobuf'
|
14
|
+
|
15
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
16
|
add_file("google/cloud/resourcemanager/v3/projects.proto", :syntax => :proto3) do
|
17
17
|
add_message "google.cloud.resourcemanager.v3.Project" do
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/resourcemanager/v3/tag_bindings.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
9
7
|
require 'google/api/resource_pb'
|
10
8
|
require 'google/longrunning/operations_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/cloud/resourcemanager/v3/tag_bindings.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.cloud.resourcemanager.v3.TagBinding" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/resourcemanager/v3/tag_keys.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -12,6 +10,8 @@ require 'google/iam/v1/policy_pb'
|
|
12
10
|
require 'google/longrunning/operations_pb'
|
13
11
|
require 'google/protobuf/field_mask_pb'
|
14
12
|
require 'google/protobuf/timestamp_pb'
|
13
|
+
require 'google/protobuf'
|
14
|
+
|
15
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
16
|
add_file("google/cloud/resourcemanager/v3/tag_keys.proto", :syntax => :proto3) do
|
17
17
|
add_message "google.cloud.resourcemanager.v3.TagKey" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/resourcemanager/v3/tag_values.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -12,6 +10,8 @@ require 'google/iam/v1/policy_pb'
|
|
12
10
|
require 'google/longrunning/operations_pb'
|
13
11
|
require 'google/protobuf/field_mask_pb'
|
14
12
|
require 'google/protobuf/timestamp_pb'
|
13
|
+
require 'google/protobuf'
|
14
|
+
|
15
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
16
|
add_file("google/cloud/resourcemanager/v3/tag_values.proto", :syntax => :proto3) do
|
17
17
|
add_message "google.cloud.resourcemanager.v3.TagValue" do
|
@@ -150,11 +150,13 @@ module Google
|
|
150
150
|
# The `displayName` field in a query expression should use escaped quotes
|
151
151
|
# for values that include whitespace to prevent unexpected behavior.
|
152
152
|
#
|
153
|
+
# ```
|
153
154
|
# | Field | Description |
|
154
155
|
# |-------------------------|----------------------------------------|
|
155
156
|
# | displayName | Filters by displayName. |
|
156
157
|
# | parent | Filters by parent (for example: folders/123). |
|
157
158
|
# | state, lifecycleState | Filters by state. |
|
159
|
+
# ```
|
158
160
|
#
|
159
161
|
# Some example queries are:
|
160
162
|
#
|