google-cloud-deploy-v1 0.1.1 → 0.1.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b00d6a99be2f38880a81b1ca19f72b7e5c2334a3a3db9fbabff274d2e5de5aed
|
|
4
|
+
data.tar.gz: a50d541681d314450ca291684ee93f3920cb4cf7265a962c5a48228bd9af8aec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c8b3789213630fff5af9db04848b564fffd00e0cf0b4a48da48d9f61ca17b33717cdd0f1004a56d28568643dd64400d3f4c0c7bf9c477c226487815a8f2c7130
|
|
7
|
+
data.tar.gz: d78d67241efe0ada28370e7ac05e38c90cb15d03ed27bca2f1e39418e5f00e90e7b63c26f07226867d993967e6789fbe17d3660694efdbaf851378e0cdfcdec4
|
|
@@ -266,6 +266,27 @@ module Google
|
|
|
266
266
|
#
|
|
267
267
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
268
268
|
#
|
|
269
|
+
# @example Basic example
|
|
270
|
+
# require "google/cloud/deploy/v1"
|
|
271
|
+
#
|
|
272
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
273
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Client.new
|
|
274
|
+
#
|
|
275
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
276
|
+
# request = Google::Cloud::Deploy::V1::ListDeliveryPipelinesRequest.new
|
|
277
|
+
#
|
|
278
|
+
# # Call the list_delivery_pipelines method.
|
|
279
|
+
# result = client.list_delivery_pipelines request
|
|
280
|
+
#
|
|
281
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
|
282
|
+
# # iterate over all elements by calling #each, and the enumerable
|
|
283
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
|
284
|
+
# # methods are also available for managing paging directly.
|
|
285
|
+
# result.each do |response|
|
|
286
|
+
# # Each element is of type ::Google::Cloud::Deploy::V1::DeliveryPipeline.
|
|
287
|
+
# p response
|
|
288
|
+
# end
|
|
289
|
+
#
|
|
269
290
|
def list_delivery_pipelines request, options = nil
|
|
270
291
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
271
292
|
|
|
@@ -283,9 +304,11 @@ module Google
|
|
|
283
304
|
gapic_version: ::Google::Cloud::Deploy::V1::VERSION
|
|
284
305
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
285
306
|
|
|
286
|
-
header_params = {
|
|
287
|
-
|
|
288
|
-
|
|
307
|
+
header_params = {}
|
|
308
|
+
if request.parent
|
|
309
|
+
header_params["parent"] = request.parent
|
|
310
|
+
end
|
|
311
|
+
|
|
289
312
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
290
313
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
291
314
|
|
|
@@ -336,6 +359,21 @@ module Google
|
|
|
336
359
|
#
|
|
337
360
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
338
361
|
#
|
|
362
|
+
# @example Basic example
|
|
363
|
+
# require "google/cloud/deploy/v1"
|
|
364
|
+
#
|
|
365
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
366
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Client.new
|
|
367
|
+
#
|
|
368
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
369
|
+
# request = Google::Cloud::Deploy::V1::GetDeliveryPipelineRequest.new
|
|
370
|
+
#
|
|
371
|
+
# # Call the get_delivery_pipeline method.
|
|
372
|
+
# result = client.get_delivery_pipeline request
|
|
373
|
+
#
|
|
374
|
+
# # The returned object is of type Google::Cloud::Deploy::V1::DeliveryPipeline.
|
|
375
|
+
# p result
|
|
376
|
+
#
|
|
339
377
|
def get_delivery_pipeline request, options = nil
|
|
340
378
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
341
379
|
|
|
@@ -353,9 +391,11 @@ module Google
|
|
|
353
391
|
gapic_version: ::Google::Cloud::Deploy::V1::VERSION
|
|
354
392
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
355
393
|
|
|
356
|
-
header_params = {
|
|
357
|
-
|
|
358
|
-
|
|
394
|
+
header_params = {}
|
|
395
|
+
if request.name
|
|
396
|
+
header_params["name"] = request.name
|
|
397
|
+
end
|
|
398
|
+
|
|
359
399
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
360
400
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
361
401
|
|
|
@@ -426,6 +466,28 @@ module Google
|
|
|
426
466
|
#
|
|
427
467
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
428
468
|
#
|
|
469
|
+
# @example Basic example
|
|
470
|
+
# require "google/cloud/deploy/v1"
|
|
471
|
+
#
|
|
472
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
473
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Client.new
|
|
474
|
+
#
|
|
475
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
476
|
+
# request = Google::Cloud::Deploy::V1::CreateDeliveryPipelineRequest.new
|
|
477
|
+
#
|
|
478
|
+
# # Call the create_delivery_pipeline method.
|
|
479
|
+
# result = client.create_delivery_pipeline request
|
|
480
|
+
#
|
|
481
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
482
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
483
|
+
# # for results. Here is how to block until completion:
|
|
484
|
+
# result.wait_until_done! timeout: 60
|
|
485
|
+
# if result.response?
|
|
486
|
+
# p result.response
|
|
487
|
+
# else
|
|
488
|
+
# puts "Error!"
|
|
489
|
+
# end
|
|
490
|
+
#
|
|
429
491
|
def create_delivery_pipeline request, options = nil
|
|
430
492
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
431
493
|
|
|
@@ -443,9 +505,11 @@ module Google
|
|
|
443
505
|
gapic_version: ::Google::Cloud::Deploy::V1::VERSION
|
|
444
506
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
445
507
|
|
|
446
|
-
header_params = {
|
|
447
|
-
|
|
448
|
-
|
|
508
|
+
header_params = {}
|
|
509
|
+
if request.parent
|
|
510
|
+
header_params["parent"] = request.parent
|
|
511
|
+
end
|
|
512
|
+
|
|
449
513
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
450
514
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
451
515
|
|
|
@@ -521,6 +585,28 @@ module Google
|
|
|
521
585
|
#
|
|
522
586
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
523
587
|
#
|
|
588
|
+
# @example Basic example
|
|
589
|
+
# require "google/cloud/deploy/v1"
|
|
590
|
+
#
|
|
591
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
592
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Client.new
|
|
593
|
+
#
|
|
594
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
595
|
+
# request = Google::Cloud::Deploy::V1::UpdateDeliveryPipelineRequest.new
|
|
596
|
+
#
|
|
597
|
+
# # Call the update_delivery_pipeline method.
|
|
598
|
+
# result = client.update_delivery_pipeline request
|
|
599
|
+
#
|
|
600
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
601
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
602
|
+
# # for results. Here is how to block until completion:
|
|
603
|
+
# result.wait_until_done! timeout: 60
|
|
604
|
+
# if result.response?
|
|
605
|
+
# p result.response
|
|
606
|
+
# else
|
|
607
|
+
# puts "Error!"
|
|
608
|
+
# end
|
|
609
|
+
#
|
|
524
610
|
def update_delivery_pipeline request, options = nil
|
|
525
611
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
526
612
|
|
|
@@ -538,9 +624,11 @@ module Google
|
|
|
538
624
|
gapic_version: ::Google::Cloud::Deploy::V1::VERSION
|
|
539
625
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
540
626
|
|
|
541
|
-
header_params = {
|
|
542
|
-
|
|
543
|
-
|
|
627
|
+
header_params = {}
|
|
628
|
+
if request.delivery_pipeline&.name
|
|
629
|
+
header_params["delivery_pipeline.name"] = request.delivery_pipeline.name
|
|
630
|
+
end
|
|
631
|
+
|
|
544
632
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
545
633
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
546
634
|
|
|
@@ -619,6 +707,28 @@ module Google
|
|
|
619
707
|
#
|
|
620
708
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
621
709
|
#
|
|
710
|
+
# @example Basic example
|
|
711
|
+
# require "google/cloud/deploy/v1"
|
|
712
|
+
#
|
|
713
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
714
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Client.new
|
|
715
|
+
#
|
|
716
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
717
|
+
# request = Google::Cloud::Deploy::V1::DeleteDeliveryPipelineRequest.new
|
|
718
|
+
#
|
|
719
|
+
# # Call the delete_delivery_pipeline method.
|
|
720
|
+
# result = client.delete_delivery_pipeline request
|
|
721
|
+
#
|
|
722
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
723
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
724
|
+
# # for results. Here is how to block until completion:
|
|
725
|
+
# result.wait_until_done! timeout: 60
|
|
726
|
+
# if result.response?
|
|
727
|
+
# p result.response
|
|
728
|
+
# else
|
|
729
|
+
# puts "Error!"
|
|
730
|
+
# end
|
|
731
|
+
#
|
|
622
732
|
def delete_delivery_pipeline request, options = nil
|
|
623
733
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
624
734
|
|
|
@@ -636,9 +746,11 @@ module Google
|
|
|
636
746
|
gapic_version: ::Google::Cloud::Deploy::V1::VERSION
|
|
637
747
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
638
748
|
|
|
639
|
-
header_params = {
|
|
640
|
-
|
|
641
|
-
|
|
749
|
+
header_params = {}
|
|
750
|
+
if request.name
|
|
751
|
+
header_params["name"] = request.name
|
|
752
|
+
end
|
|
753
|
+
|
|
642
754
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
643
755
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
644
756
|
|
|
@@ -704,6 +816,27 @@ module Google
|
|
|
704
816
|
#
|
|
705
817
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
706
818
|
#
|
|
819
|
+
# @example Basic example
|
|
820
|
+
# require "google/cloud/deploy/v1"
|
|
821
|
+
#
|
|
822
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
823
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Client.new
|
|
824
|
+
#
|
|
825
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
826
|
+
# request = Google::Cloud::Deploy::V1::ListTargetsRequest.new
|
|
827
|
+
#
|
|
828
|
+
# # Call the list_targets method.
|
|
829
|
+
# result = client.list_targets request
|
|
830
|
+
#
|
|
831
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
|
832
|
+
# # iterate over all elements by calling #each, and the enumerable
|
|
833
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
|
834
|
+
# # methods are also available for managing paging directly.
|
|
835
|
+
# result.each do |response|
|
|
836
|
+
# # Each element is of type ::Google::Cloud::Deploy::V1::Target.
|
|
837
|
+
# p response
|
|
838
|
+
# end
|
|
839
|
+
#
|
|
707
840
|
def list_targets request, options = nil
|
|
708
841
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
709
842
|
|
|
@@ -721,9 +854,11 @@ module Google
|
|
|
721
854
|
gapic_version: ::Google::Cloud::Deploy::V1::VERSION
|
|
722
855
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
723
856
|
|
|
724
|
-
header_params = {
|
|
725
|
-
|
|
726
|
-
|
|
857
|
+
header_params = {}
|
|
858
|
+
if request.parent
|
|
859
|
+
header_params["parent"] = request.parent
|
|
860
|
+
end
|
|
861
|
+
|
|
727
862
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
728
863
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
729
864
|
|
|
@@ -774,6 +909,21 @@ module Google
|
|
|
774
909
|
#
|
|
775
910
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
776
911
|
#
|
|
912
|
+
# @example Basic example
|
|
913
|
+
# require "google/cloud/deploy/v1"
|
|
914
|
+
#
|
|
915
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
916
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Client.new
|
|
917
|
+
#
|
|
918
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
919
|
+
# request = Google::Cloud::Deploy::V1::GetTargetRequest.new
|
|
920
|
+
#
|
|
921
|
+
# # Call the get_target method.
|
|
922
|
+
# result = client.get_target request
|
|
923
|
+
#
|
|
924
|
+
# # The returned object is of type Google::Cloud::Deploy::V1::Target.
|
|
925
|
+
# p result
|
|
926
|
+
#
|
|
777
927
|
def get_target request, options = nil
|
|
778
928
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
779
929
|
|
|
@@ -791,9 +941,11 @@ module Google
|
|
|
791
941
|
gapic_version: ::Google::Cloud::Deploy::V1::VERSION
|
|
792
942
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
793
943
|
|
|
794
|
-
header_params = {
|
|
795
|
-
|
|
796
|
-
|
|
944
|
+
header_params = {}
|
|
945
|
+
if request.name
|
|
946
|
+
header_params["name"] = request.name
|
|
947
|
+
end
|
|
948
|
+
|
|
797
949
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
798
950
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
799
951
|
|
|
@@ -865,6 +1017,28 @@ module Google
|
|
|
865
1017
|
#
|
|
866
1018
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
867
1019
|
#
|
|
1020
|
+
# @example Basic example
|
|
1021
|
+
# require "google/cloud/deploy/v1"
|
|
1022
|
+
#
|
|
1023
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1024
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Client.new
|
|
1025
|
+
#
|
|
1026
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1027
|
+
# request = Google::Cloud::Deploy::V1::CreateTargetRequest.new
|
|
1028
|
+
#
|
|
1029
|
+
# # Call the create_target method.
|
|
1030
|
+
# result = client.create_target request
|
|
1031
|
+
#
|
|
1032
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
1033
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
1034
|
+
# # for results. Here is how to block until completion:
|
|
1035
|
+
# result.wait_until_done! timeout: 60
|
|
1036
|
+
# if result.response?
|
|
1037
|
+
# p result.response
|
|
1038
|
+
# else
|
|
1039
|
+
# puts "Error!"
|
|
1040
|
+
# end
|
|
1041
|
+
#
|
|
868
1042
|
def create_target request, options = nil
|
|
869
1043
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
870
1044
|
|
|
@@ -882,9 +1056,11 @@ module Google
|
|
|
882
1056
|
gapic_version: ::Google::Cloud::Deploy::V1::VERSION
|
|
883
1057
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
884
1058
|
|
|
885
|
-
header_params = {
|
|
886
|
-
|
|
887
|
-
|
|
1059
|
+
header_params = {}
|
|
1060
|
+
if request.parent
|
|
1061
|
+
header_params["parent"] = request.parent
|
|
1062
|
+
end
|
|
1063
|
+
|
|
888
1064
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
889
1065
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
890
1066
|
|
|
@@ -960,6 +1136,28 @@ module Google
|
|
|
960
1136
|
#
|
|
961
1137
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
962
1138
|
#
|
|
1139
|
+
# @example Basic example
|
|
1140
|
+
# require "google/cloud/deploy/v1"
|
|
1141
|
+
#
|
|
1142
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1143
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Client.new
|
|
1144
|
+
#
|
|
1145
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1146
|
+
# request = Google::Cloud::Deploy::V1::UpdateTargetRequest.new
|
|
1147
|
+
#
|
|
1148
|
+
# # Call the update_target method.
|
|
1149
|
+
# result = client.update_target request
|
|
1150
|
+
#
|
|
1151
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
1152
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
1153
|
+
# # for results. Here is how to block until completion:
|
|
1154
|
+
# result.wait_until_done! timeout: 60
|
|
1155
|
+
# if result.response?
|
|
1156
|
+
# p result.response
|
|
1157
|
+
# else
|
|
1158
|
+
# puts "Error!"
|
|
1159
|
+
# end
|
|
1160
|
+
#
|
|
963
1161
|
def update_target request, options = nil
|
|
964
1162
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
965
1163
|
|
|
@@ -977,9 +1175,11 @@ module Google
|
|
|
977
1175
|
gapic_version: ::Google::Cloud::Deploy::V1::VERSION
|
|
978
1176
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
979
1177
|
|
|
980
|
-
header_params = {
|
|
981
|
-
|
|
982
|
-
|
|
1178
|
+
header_params = {}
|
|
1179
|
+
if request.target&.name
|
|
1180
|
+
header_params["target.name"] = request.target.name
|
|
1181
|
+
end
|
|
1182
|
+
|
|
983
1183
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
984
1184
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
985
1185
|
|
|
@@ -1054,6 +1254,28 @@ module Google
|
|
|
1054
1254
|
#
|
|
1055
1255
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1056
1256
|
#
|
|
1257
|
+
# @example Basic example
|
|
1258
|
+
# require "google/cloud/deploy/v1"
|
|
1259
|
+
#
|
|
1260
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1261
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Client.new
|
|
1262
|
+
#
|
|
1263
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1264
|
+
# request = Google::Cloud::Deploy::V1::DeleteTargetRequest.new
|
|
1265
|
+
#
|
|
1266
|
+
# # Call the delete_target method.
|
|
1267
|
+
# result = client.delete_target request
|
|
1268
|
+
#
|
|
1269
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
1270
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
1271
|
+
# # for results. Here is how to block until completion:
|
|
1272
|
+
# result.wait_until_done! timeout: 60
|
|
1273
|
+
# if result.response?
|
|
1274
|
+
# p result.response
|
|
1275
|
+
# else
|
|
1276
|
+
# puts "Error!"
|
|
1277
|
+
# end
|
|
1278
|
+
#
|
|
1057
1279
|
def delete_target request, options = nil
|
|
1058
1280
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1059
1281
|
|
|
@@ -1071,9 +1293,11 @@ module Google
|
|
|
1071
1293
|
gapic_version: ::Google::Cloud::Deploy::V1::VERSION
|
|
1072
1294
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1073
1295
|
|
|
1074
|
-
header_params = {
|
|
1075
|
-
|
|
1076
|
-
|
|
1296
|
+
header_params = {}
|
|
1297
|
+
if request.name
|
|
1298
|
+
header_params["name"] = request.name
|
|
1299
|
+
end
|
|
1300
|
+
|
|
1077
1301
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1078
1302
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1079
1303
|
|
|
@@ -1138,6 +1362,27 @@ module Google
|
|
|
1138
1362
|
#
|
|
1139
1363
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1140
1364
|
#
|
|
1365
|
+
# @example Basic example
|
|
1366
|
+
# require "google/cloud/deploy/v1"
|
|
1367
|
+
#
|
|
1368
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1369
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Client.new
|
|
1370
|
+
#
|
|
1371
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1372
|
+
# request = Google::Cloud::Deploy::V1::ListReleasesRequest.new
|
|
1373
|
+
#
|
|
1374
|
+
# # Call the list_releases method.
|
|
1375
|
+
# result = client.list_releases request
|
|
1376
|
+
#
|
|
1377
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
|
1378
|
+
# # iterate over all elements by calling #each, and the enumerable
|
|
1379
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
|
1380
|
+
# # methods are also available for managing paging directly.
|
|
1381
|
+
# result.each do |response|
|
|
1382
|
+
# # Each element is of type ::Google::Cloud::Deploy::V1::Release.
|
|
1383
|
+
# p response
|
|
1384
|
+
# end
|
|
1385
|
+
#
|
|
1141
1386
|
def list_releases request, options = nil
|
|
1142
1387
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1143
1388
|
|
|
@@ -1155,9 +1400,11 @@ module Google
|
|
|
1155
1400
|
gapic_version: ::Google::Cloud::Deploy::V1::VERSION
|
|
1156
1401
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1157
1402
|
|
|
1158
|
-
header_params = {
|
|
1159
|
-
|
|
1160
|
-
|
|
1403
|
+
header_params = {}
|
|
1404
|
+
if request.parent
|
|
1405
|
+
header_params["parent"] = request.parent
|
|
1406
|
+
end
|
|
1407
|
+
|
|
1161
1408
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1162
1409
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1163
1410
|
|
|
@@ -1208,6 +1455,21 @@ module Google
|
|
|
1208
1455
|
#
|
|
1209
1456
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1210
1457
|
#
|
|
1458
|
+
# @example Basic example
|
|
1459
|
+
# require "google/cloud/deploy/v1"
|
|
1460
|
+
#
|
|
1461
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1462
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Client.new
|
|
1463
|
+
#
|
|
1464
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1465
|
+
# request = Google::Cloud::Deploy::V1::GetReleaseRequest.new
|
|
1466
|
+
#
|
|
1467
|
+
# # Call the get_release method.
|
|
1468
|
+
# result = client.get_release request
|
|
1469
|
+
#
|
|
1470
|
+
# # The returned object is of type Google::Cloud::Deploy::V1::Release.
|
|
1471
|
+
# p result
|
|
1472
|
+
#
|
|
1211
1473
|
def get_release request, options = nil
|
|
1212
1474
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1213
1475
|
|
|
@@ -1225,9 +1487,11 @@ module Google
|
|
|
1225
1487
|
gapic_version: ::Google::Cloud::Deploy::V1::VERSION
|
|
1226
1488
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1227
1489
|
|
|
1228
|
-
header_params = {
|
|
1229
|
-
|
|
1230
|
-
|
|
1490
|
+
header_params = {}
|
|
1491
|
+
if request.name
|
|
1492
|
+
header_params["name"] = request.name
|
|
1493
|
+
end
|
|
1494
|
+
|
|
1231
1495
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1232
1496
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1233
1497
|
|
|
@@ -1299,6 +1563,28 @@ module Google
|
|
|
1299
1563
|
#
|
|
1300
1564
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1301
1565
|
#
|
|
1566
|
+
# @example Basic example
|
|
1567
|
+
# require "google/cloud/deploy/v1"
|
|
1568
|
+
#
|
|
1569
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1570
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Client.new
|
|
1571
|
+
#
|
|
1572
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1573
|
+
# request = Google::Cloud::Deploy::V1::CreateReleaseRequest.new
|
|
1574
|
+
#
|
|
1575
|
+
# # Call the create_release method.
|
|
1576
|
+
# result = client.create_release request
|
|
1577
|
+
#
|
|
1578
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
1579
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
1580
|
+
# # for results. Here is how to block until completion:
|
|
1581
|
+
# result.wait_until_done! timeout: 60
|
|
1582
|
+
# if result.response?
|
|
1583
|
+
# p result.response
|
|
1584
|
+
# else
|
|
1585
|
+
# puts "Error!"
|
|
1586
|
+
# end
|
|
1587
|
+
#
|
|
1302
1588
|
def create_release request, options = nil
|
|
1303
1589
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1304
1590
|
|
|
@@ -1316,9 +1602,11 @@ module Google
|
|
|
1316
1602
|
gapic_version: ::Google::Cloud::Deploy::V1::VERSION
|
|
1317
1603
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1318
1604
|
|
|
1319
|
-
header_params = {
|
|
1320
|
-
|
|
1321
|
-
|
|
1605
|
+
header_params = {}
|
|
1606
|
+
if request.parent
|
|
1607
|
+
header_params["parent"] = request.parent
|
|
1608
|
+
end
|
|
1609
|
+
|
|
1322
1610
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1323
1611
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1324
1612
|
|
|
@@ -1372,6 +1660,21 @@ module Google
|
|
|
1372
1660
|
#
|
|
1373
1661
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1374
1662
|
#
|
|
1663
|
+
# @example Basic example
|
|
1664
|
+
# require "google/cloud/deploy/v1"
|
|
1665
|
+
#
|
|
1666
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1667
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Client.new
|
|
1668
|
+
#
|
|
1669
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1670
|
+
# request = Google::Cloud::Deploy::V1::ApproveRolloutRequest.new
|
|
1671
|
+
#
|
|
1672
|
+
# # Call the approve_rollout method.
|
|
1673
|
+
# result = client.approve_rollout request
|
|
1674
|
+
#
|
|
1675
|
+
# # The returned object is of type Google::Cloud::Deploy::V1::ApproveRolloutResponse.
|
|
1676
|
+
# p result
|
|
1677
|
+
#
|
|
1375
1678
|
def approve_rollout request, options = nil
|
|
1376
1679
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1377
1680
|
|
|
@@ -1389,9 +1692,11 @@ module Google
|
|
|
1389
1692
|
gapic_version: ::Google::Cloud::Deploy::V1::VERSION
|
|
1390
1693
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1391
1694
|
|
|
1392
|
-
header_params = {
|
|
1393
|
-
|
|
1394
|
-
|
|
1695
|
+
header_params = {}
|
|
1696
|
+
if request.name
|
|
1697
|
+
header_params["name"] = request.name
|
|
1698
|
+
end
|
|
1699
|
+
|
|
1395
1700
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1396
1701
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1397
1702
|
|
|
@@ -1455,6 +1760,27 @@ module Google
|
|
|
1455
1760
|
#
|
|
1456
1761
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1457
1762
|
#
|
|
1763
|
+
# @example Basic example
|
|
1764
|
+
# require "google/cloud/deploy/v1"
|
|
1765
|
+
#
|
|
1766
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1767
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Client.new
|
|
1768
|
+
#
|
|
1769
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1770
|
+
# request = Google::Cloud::Deploy::V1::ListRolloutsRequest.new
|
|
1771
|
+
#
|
|
1772
|
+
# # Call the list_rollouts method.
|
|
1773
|
+
# result = client.list_rollouts request
|
|
1774
|
+
#
|
|
1775
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
|
1776
|
+
# # iterate over all elements by calling #each, and the enumerable
|
|
1777
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
|
1778
|
+
# # methods are also available for managing paging directly.
|
|
1779
|
+
# result.each do |response|
|
|
1780
|
+
# # Each element is of type ::Google::Cloud::Deploy::V1::Rollout.
|
|
1781
|
+
# p response
|
|
1782
|
+
# end
|
|
1783
|
+
#
|
|
1458
1784
|
def list_rollouts request, options = nil
|
|
1459
1785
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1460
1786
|
|
|
@@ -1472,9 +1798,11 @@ module Google
|
|
|
1472
1798
|
gapic_version: ::Google::Cloud::Deploy::V1::VERSION
|
|
1473
1799
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1474
1800
|
|
|
1475
|
-
header_params = {
|
|
1476
|
-
|
|
1477
|
-
|
|
1801
|
+
header_params = {}
|
|
1802
|
+
if request.parent
|
|
1803
|
+
header_params["parent"] = request.parent
|
|
1804
|
+
end
|
|
1805
|
+
|
|
1478
1806
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1479
1807
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1480
1808
|
|
|
@@ -1525,6 +1853,21 @@ module Google
|
|
|
1525
1853
|
#
|
|
1526
1854
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1527
1855
|
#
|
|
1856
|
+
# @example Basic example
|
|
1857
|
+
# require "google/cloud/deploy/v1"
|
|
1858
|
+
#
|
|
1859
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1860
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Client.new
|
|
1861
|
+
#
|
|
1862
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1863
|
+
# request = Google::Cloud::Deploy::V1::GetRolloutRequest.new
|
|
1864
|
+
#
|
|
1865
|
+
# # Call the get_rollout method.
|
|
1866
|
+
# result = client.get_rollout request
|
|
1867
|
+
#
|
|
1868
|
+
# # The returned object is of type Google::Cloud::Deploy::V1::Rollout.
|
|
1869
|
+
# p result
|
|
1870
|
+
#
|
|
1528
1871
|
def get_rollout request, options = nil
|
|
1529
1872
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1530
1873
|
|
|
@@ -1542,9 +1885,11 @@ module Google
|
|
|
1542
1885
|
gapic_version: ::Google::Cloud::Deploy::V1::VERSION
|
|
1543
1886
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1544
1887
|
|
|
1545
|
-
header_params = {
|
|
1546
|
-
|
|
1547
|
-
|
|
1888
|
+
header_params = {}
|
|
1889
|
+
if request.name
|
|
1890
|
+
header_params["name"] = request.name
|
|
1891
|
+
end
|
|
1892
|
+
|
|
1548
1893
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1549
1894
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1550
1895
|
|
|
@@ -1616,6 +1961,28 @@ module Google
|
|
|
1616
1961
|
#
|
|
1617
1962
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1618
1963
|
#
|
|
1964
|
+
# @example Basic example
|
|
1965
|
+
# require "google/cloud/deploy/v1"
|
|
1966
|
+
#
|
|
1967
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1968
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Client.new
|
|
1969
|
+
#
|
|
1970
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1971
|
+
# request = Google::Cloud::Deploy::V1::CreateRolloutRequest.new
|
|
1972
|
+
#
|
|
1973
|
+
# # Call the create_rollout method.
|
|
1974
|
+
# result = client.create_rollout request
|
|
1975
|
+
#
|
|
1976
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
1977
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
1978
|
+
# # for results. Here is how to block until completion:
|
|
1979
|
+
# result.wait_until_done! timeout: 60
|
|
1980
|
+
# if result.response?
|
|
1981
|
+
# p result.response
|
|
1982
|
+
# else
|
|
1983
|
+
# puts "Error!"
|
|
1984
|
+
# end
|
|
1985
|
+
#
|
|
1619
1986
|
def create_rollout request, options = nil
|
|
1620
1987
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1621
1988
|
|
|
@@ -1633,9 +2000,11 @@ module Google
|
|
|
1633
2000
|
gapic_version: ::Google::Cloud::Deploy::V1::VERSION
|
|
1634
2001
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1635
2002
|
|
|
1636
|
-
header_params = {
|
|
1637
|
-
|
|
1638
|
-
|
|
2003
|
+
header_params = {}
|
|
2004
|
+
if request.parent
|
|
2005
|
+
header_params["parent"] = request.parent
|
|
2006
|
+
end
|
|
2007
|
+
|
|
1639
2008
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1640
2009
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1641
2010
|
|
|
@@ -1685,6 +2054,21 @@ module Google
|
|
|
1685
2054
|
#
|
|
1686
2055
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1687
2056
|
#
|
|
2057
|
+
# @example Basic example
|
|
2058
|
+
# require "google/cloud/deploy/v1"
|
|
2059
|
+
#
|
|
2060
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
2061
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Client.new
|
|
2062
|
+
#
|
|
2063
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
2064
|
+
# request = Google::Cloud::Deploy::V1::GetConfigRequest.new
|
|
2065
|
+
#
|
|
2066
|
+
# # Call the get_config method.
|
|
2067
|
+
# result = client.get_config request
|
|
2068
|
+
#
|
|
2069
|
+
# # The returned object is of type Google::Cloud::Deploy::V1::Config.
|
|
2070
|
+
# p result
|
|
2071
|
+
#
|
|
1688
2072
|
def get_config request, options = nil
|
|
1689
2073
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1690
2074
|
|
|
@@ -1702,9 +2086,11 @@ module Google
|
|
|
1702
2086
|
gapic_version: ::Google::Cloud::Deploy::V1::VERSION
|
|
1703
2087
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1704
2088
|
|
|
1705
|
-
header_params = {
|
|
1706
|
-
|
|
1707
|
-
|
|
2089
|
+
header_params = {}
|
|
2090
|
+
if request.name
|
|
2091
|
+
header_params["name"] = request.name
|
|
2092
|
+
end
|
|
2093
|
+
|
|
1708
2094
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1709
2095
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1710
2096
|
|
|
@@ -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::Deploy::V1::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::Deploy::V1::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::Deploy::V1::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::Deploy::V1::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
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-deploy-v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|