google-cloud-deploy-v1 0.10.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/deploy/v1/cloud_deploy/client.rb +10 -1
- data/lib/google/cloud/deploy/v1/cloud_deploy/operations.rb +10 -1
- data/lib/google/cloud/deploy/v1/cloud_deploy/rest/client.rb +492 -0
- data/lib/google/cloud/deploy/v1/cloud_deploy/rest/operations.rb +75 -0
- data/lib/google/cloud/deploy/v1/cloud_deploy_pb.rb +9 -1
- data/lib/google/cloud/deploy/v1/log_enums_pb.rb +1 -1
- data/lib/google/cloud/deploy/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/deploy/v1/cloud_deploy.rb +206 -37
- data/proto_docs/google/cloud/deploy/v1/log_enums.rb +6 -0
- metadata +5 -5
@@ -308,6 +308,26 @@ module Google
|
|
308
308
|
# @return [::Google::Cloud::Deploy::V1::ListDeliveryPipelinesResponse]
|
309
309
|
#
|
310
310
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
311
|
+
#
|
312
|
+
# @example Basic example
|
313
|
+
# require "google/cloud/deploy/v1"
|
314
|
+
#
|
315
|
+
# # Create a client object. The client can be reused for multiple calls.
|
316
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
317
|
+
#
|
318
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
319
|
+
# request = Google::Cloud::Deploy::V1::ListDeliveryPipelinesRequest.new
|
320
|
+
#
|
321
|
+
# # Call the list_delivery_pipelines method.
|
322
|
+
# result = client.list_delivery_pipelines request
|
323
|
+
#
|
324
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
325
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
326
|
+
# result.each do |item|
|
327
|
+
# # Each element is of type ::Google::Cloud::Deploy::V1::DeliveryPipeline.
|
328
|
+
# p item
|
329
|
+
# end
|
330
|
+
#
|
311
331
|
def list_delivery_pipelines request, options = nil
|
312
332
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
313
333
|
|
@@ -371,6 +391,22 @@ module Google
|
|
371
391
|
# @return [::Google::Cloud::Deploy::V1::DeliveryPipeline]
|
372
392
|
#
|
373
393
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
394
|
+
#
|
395
|
+
# @example Basic example
|
396
|
+
# require "google/cloud/deploy/v1"
|
397
|
+
#
|
398
|
+
# # Create a client object. The client can be reused for multiple calls.
|
399
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
400
|
+
#
|
401
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
402
|
+
# request = Google::Cloud::Deploy::V1::GetDeliveryPipelineRequest.new
|
403
|
+
#
|
404
|
+
# # Call the get_delivery_pipeline method.
|
405
|
+
# result = client.get_delivery_pipeline request
|
406
|
+
#
|
407
|
+
# # The returned object is of type Google::Cloud::Deploy::V1::DeliveryPipeline.
|
408
|
+
# p result
|
409
|
+
#
|
374
410
|
def get_delivery_pipeline request, options = nil
|
375
411
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
376
412
|
|
@@ -455,6 +491,29 @@ module Google
|
|
455
491
|
# @return [::Gapic::Operation]
|
456
492
|
#
|
457
493
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
494
|
+
#
|
495
|
+
# @example Basic example
|
496
|
+
# require "google/cloud/deploy/v1"
|
497
|
+
#
|
498
|
+
# # Create a client object. The client can be reused for multiple calls.
|
499
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
500
|
+
#
|
501
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
502
|
+
# request = Google::Cloud::Deploy::V1::CreateDeliveryPipelineRequest.new
|
503
|
+
#
|
504
|
+
# # Call the create_delivery_pipeline method.
|
505
|
+
# result = client.create_delivery_pipeline request
|
506
|
+
#
|
507
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
508
|
+
# # check the status of an operation, cancel it, or wait for results.
|
509
|
+
# # Here is how to wait for a response.
|
510
|
+
# result.wait_until_done! timeout: 60
|
511
|
+
# if result.response?
|
512
|
+
# p result.response
|
513
|
+
# else
|
514
|
+
# puts "No response received."
|
515
|
+
# end
|
516
|
+
#
|
458
517
|
def create_delivery_pipeline request, options = nil
|
459
518
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
460
519
|
|
@@ -544,6 +603,29 @@ module Google
|
|
544
603
|
# @return [::Gapic::Operation]
|
545
604
|
#
|
546
605
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
606
|
+
#
|
607
|
+
# @example Basic example
|
608
|
+
# require "google/cloud/deploy/v1"
|
609
|
+
#
|
610
|
+
# # Create a client object. The client can be reused for multiple calls.
|
611
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
612
|
+
#
|
613
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
614
|
+
# request = Google::Cloud::Deploy::V1::UpdateDeliveryPipelineRequest.new
|
615
|
+
#
|
616
|
+
# # Call the update_delivery_pipeline method.
|
617
|
+
# result = client.update_delivery_pipeline request
|
618
|
+
#
|
619
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
620
|
+
# # check the status of an operation, cancel it, or wait for results.
|
621
|
+
# # Here is how to wait for a response.
|
622
|
+
# result.wait_until_done! timeout: 60
|
623
|
+
# if result.response?
|
624
|
+
# p result.response
|
625
|
+
# else
|
626
|
+
# puts "No response received."
|
627
|
+
# end
|
628
|
+
#
|
547
629
|
def update_delivery_pipeline request, options = nil
|
548
630
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
549
631
|
|
@@ -636,6 +718,29 @@ module Google
|
|
636
718
|
# @return [::Gapic::Operation]
|
637
719
|
#
|
638
720
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
721
|
+
#
|
722
|
+
# @example Basic example
|
723
|
+
# require "google/cloud/deploy/v1"
|
724
|
+
#
|
725
|
+
# # Create a client object. The client can be reused for multiple calls.
|
726
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
727
|
+
#
|
728
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
729
|
+
# request = Google::Cloud::Deploy::V1::DeleteDeliveryPipelineRequest.new
|
730
|
+
#
|
731
|
+
# # Call the delete_delivery_pipeline method.
|
732
|
+
# result = client.delete_delivery_pipeline request
|
733
|
+
#
|
734
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
735
|
+
# # check the status of an operation, cancel it, or wait for results.
|
736
|
+
# # Here is how to wait for a response.
|
737
|
+
# result.wait_until_done! timeout: 60
|
738
|
+
# if result.response?
|
739
|
+
# p result.response
|
740
|
+
# else
|
741
|
+
# puts "No response received."
|
742
|
+
# end
|
743
|
+
#
|
639
744
|
def delete_delivery_pipeline request, options = nil
|
640
745
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
641
746
|
|
@@ -717,6 +822,26 @@ module Google
|
|
717
822
|
# @return [::Google::Cloud::Deploy::V1::ListTargetsResponse]
|
718
823
|
#
|
719
824
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
825
|
+
#
|
826
|
+
# @example Basic example
|
827
|
+
# require "google/cloud/deploy/v1"
|
828
|
+
#
|
829
|
+
# # Create a client object. The client can be reused for multiple calls.
|
830
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
831
|
+
#
|
832
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
833
|
+
# request = Google::Cloud::Deploy::V1::ListTargetsRequest.new
|
834
|
+
#
|
835
|
+
# # Call the list_targets method.
|
836
|
+
# result = client.list_targets request
|
837
|
+
#
|
838
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
839
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
840
|
+
# result.each do |item|
|
841
|
+
# # Each element is of type ::Google::Cloud::Deploy::V1::Target.
|
842
|
+
# p item
|
843
|
+
# end
|
844
|
+
#
|
720
845
|
def list_targets request, options = nil
|
721
846
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
722
847
|
|
@@ -780,6 +905,22 @@ module Google
|
|
780
905
|
# @return [::Google::Cloud::Deploy::V1::Target]
|
781
906
|
#
|
782
907
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
908
|
+
#
|
909
|
+
# @example Basic example
|
910
|
+
# require "google/cloud/deploy/v1"
|
911
|
+
#
|
912
|
+
# # Create a client object. The client can be reused for multiple calls.
|
913
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
914
|
+
#
|
915
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
916
|
+
# request = Google::Cloud::Deploy::V1::GetTargetRequest.new
|
917
|
+
#
|
918
|
+
# # Call the get_target method.
|
919
|
+
# result = client.get_target request
|
920
|
+
#
|
921
|
+
# # The returned object is of type Google::Cloud::Deploy::V1::Target.
|
922
|
+
# p result
|
923
|
+
#
|
783
924
|
def get_target request, options = nil
|
784
925
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
785
926
|
|
@@ -865,6 +1006,29 @@ module Google
|
|
865
1006
|
# @return [::Gapic::Operation]
|
866
1007
|
#
|
867
1008
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1009
|
+
#
|
1010
|
+
# @example Basic example
|
1011
|
+
# require "google/cloud/deploy/v1"
|
1012
|
+
#
|
1013
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1014
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
1015
|
+
#
|
1016
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1017
|
+
# request = Google::Cloud::Deploy::V1::CreateTargetRequest.new
|
1018
|
+
#
|
1019
|
+
# # Call the create_target method.
|
1020
|
+
# result = client.create_target request
|
1021
|
+
#
|
1022
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1023
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1024
|
+
# # Here is how to wait for a response.
|
1025
|
+
# result.wait_until_done! timeout: 60
|
1026
|
+
# if result.response?
|
1027
|
+
# p result.response
|
1028
|
+
# else
|
1029
|
+
# puts "No response received."
|
1030
|
+
# end
|
1031
|
+
#
|
868
1032
|
def create_target request, options = nil
|
869
1033
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
870
1034
|
|
@@ -954,6 +1118,29 @@ module Google
|
|
954
1118
|
# @return [::Gapic::Operation]
|
955
1119
|
#
|
956
1120
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1121
|
+
#
|
1122
|
+
# @example Basic example
|
1123
|
+
# require "google/cloud/deploy/v1"
|
1124
|
+
#
|
1125
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1126
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
1127
|
+
#
|
1128
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1129
|
+
# request = Google::Cloud::Deploy::V1::UpdateTargetRequest.new
|
1130
|
+
#
|
1131
|
+
# # Call the update_target method.
|
1132
|
+
# result = client.update_target request
|
1133
|
+
#
|
1134
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1135
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1136
|
+
# # Here is how to wait for a response.
|
1137
|
+
# result.wait_until_done! timeout: 60
|
1138
|
+
# if result.response?
|
1139
|
+
# p result.response
|
1140
|
+
# else
|
1141
|
+
# puts "No response received."
|
1142
|
+
# end
|
1143
|
+
#
|
957
1144
|
def update_target request, options = nil
|
958
1145
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
959
1146
|
|
@@ -1042,6 +1229,29 @@ module Google
|
|
1042
1229
|
# @return [::Gapic::Operation]
|
1043
1230
|
#
|
1044
1231
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1232
|
+
#
|
1233
|
+
# @example Basic example
|
1234
|
+
# require "google/cloud/deploy/v1"
|
1235
|
+
#
|
1236
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1237
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
1238
|
+
#
|
1239
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1240
|
+
# request = Google::Cloud::Deploy::V1::DeleteTargetRequest.new
|
1241
|
+
#
|
1242
|
+
# # Call the delete_target method.
|
1243
|
+
# result = client.delete_target request
|
1244
|
+
#
|
1245
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1246
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1247
|
+
# # Here is how to wait for a response.
|
1248
|
+
# result.wait_until_done! timeout: 60
|
1249
|
+
# if result.response?
|
1250
|
+
# p result.response
|
1251
|
+
# else
|
1252
|
+
# puts "No response received."
|
1253
|
+
# end
|
1254
|
+
#
|
1045
1255
|
def delete_target request, options = nil
|
1046
1256
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1047
1257
|
|
@@ -1123,6 +1333,26 @@ module Google
|
|
1123
1333
|
# @return [::Google::Cloud::Deploy::V1::ListReleasesResponse]
|
1124
1334
|
#
|
1125
1335
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1336
|
+
#
|
1337
|
+
# @example Basic example
|
1338
|
+
# require "google/cloud/deploy/v1"
|
1339
|
+
#
|
1340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1341
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
1342
|
+
#
|
1343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1344
|
+
# request = Google::Cloud::Deploy::V1::ListReleasesRequest.new
|
1345
|
+
#
|
1346
|
+
# # Call the list_releases method.
|
1347
|
+
# result = client.list_releases request
|
1348
|
+
#
|
1349
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1350
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1351
|
+
# result.each do |item|
|
1352
|
+
# # Each element is of type ::Google::Cloud::Deploy::V1::Release.
|
1353
|
+
# p item
|
1354
|
+
# end
|
1355
|
+
#
|
1126
1356
|
def list_releases request, options = nil
|
1127
1357
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1128
1358
|
|
@@ -1186,6 +1416,22 @@ module Google
|
|
1186
1416
|
# @return [::Google::Cloud::Deploy::V1::Release]
|
1187
1417
|
#
|
1188
1418
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1419
|
+
#
|
1420
|
+
# @example Basic example
|
1421
|
+
# require "google/cloud/deploy/v1"
|
1422
|
+
#
|
1423
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1424
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
1425
|
+
#
|
1426
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1427
|
+
# request = Google::Cloud::Deploy::V1::GetReleaseRequest.new
|
1428
|
+
#
|
1429
|
+
# # Call the get_release method.
|
1430
|
+
# result = client.get_release request
|
1431
|
+
#
|
1432
|
+
# # The returned object is of type Google::Cloud::Deploy::V1::Release.
|
1433
|
+
# p result
|
1434
|
+
#
|
1189
1435
|
def get_release request, options = nil
|
1190
1436
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1191
1437
|
|
@@ -1271,6 +1517,29 @@ module Google
|
|
1271
1517
|
# @return [::Gapic::Operation]
|
1272
1518
|
#
|
1273
1519
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1520
|
+
#
|
1521
|
+
# @example Basic example
|
1522
|
+
# require "google/cloud/deploy/v1"
|
1523
|
+
#
|
1524
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1525
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
1526
|
+
#
|
1527
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1528
|
+
# request = Google::Cloud::Deploy::V1::CreateReleaseRequest.new
|
1529
|
+
#
|
1530
|
+
# # Call the create_release method.
|
1531
|
+
# result = client.create_release request
|
1532
|
+
#
|
1533
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1534
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1535
|
+
# # Here is how to wait for a response.
|
1536
|
+
# result.wait_until_done! timeout: 60
|
1537
|
+
# if result.response?
|
1538
|
+
# p result.response
|
1539
|
+
# else
|
1540
|
+
# puts "No response received."
|
1541
|
+
# end
|
1542
|
+
#
|
1274
1543
|
def create_release request, options = nil
|
1275
1544
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1276
1545
|
|
@@ -1336,6 +1605,22 @@ module Google
|
|
1336
1605
|
# @return [::Google::Cloud::Deploy::V1::AbandonReleaseResponse]
|
1337
1606
|
#
|
1338
1607
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1608
|
+
#
|
1609
|
+
# @example Basic example
|
1610
|
+
# require "google/cloud/deploy/v1"
|
1611
|
+
#
|
1612
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1613
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
1614
|
+
#
|
1615
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1616
|
+
# request = Google::Cloud::Deploy::V1::AbandonReleaseRequest.new
|
1617
|
+
#
|
1618
|
+
# # Call the abandon_release method.
|
1619
|
+
# result = client.abandon_release request
|
1620
|
+
#
|
1621
|
+
# # The returned object is of type Google::Cloud::Deploy::V1::AbandonReleaseResponse.
|
1622
|
+
# p result
|
1623
|
+
#
|
1339
1624
|
def abandon_release request, options = nil
|
1340
1625
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1341
1626
|
|
@@ -1402,6 +1687,22 @@ module Google
|
|
1402
1687
|
# @return [::Google::Cloud::Deploy::V1::ApproveRolloutResponse]
|
1403
1688
|
#
|
1404
1689
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1690
|
+
#
|
1691
|
+
# @example Basic example
|
1692
|
+
# require "google/cloud/deploy/v1"
|
1693
|
+
#
|
1694
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1695
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
1696
|
+
#
|
1697
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1698
|
+
# request = Google::Cloud::Deploy::V1::ApproveRolloutRequest.new
|
1699
|
+
#
|
1700
|
+
# # Call the approve_rollout method.
|
1701
|
+
# result = client.approve_rollout request
|
1702
|
+
#
|
1703
|
+
# # The returned object is of type Google::Cloud::Deploy::V1::ApproveRolloutResponse.
|
1704
|
+
# p result
|
1705
|
+
#
|
1405
1706
|
def approve_rollout request, options = nil
|
1406
1707
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1407
1708
|
|
@@ -1468,6 +1769,22 @@ module Google
|
|
1468
1769
|
# @return [::Google::Cloud::Deploy::V1::AdvanceRolloutResponse]
|
1469
1770
|
#
|
1470
1771
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1772
|
+
#
|
1773
|
+
# @example Basic example
|
1774
|
+
# require "google/cloud/deploy/v1"
|
1775
|
+
#
|
1776
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1777
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
1778
|
+
#
|
1779
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1780
|
+
# request = Google::Cloud::Deploy::V1::AdvanceRolloutRequest.new
|
1781
|
+
#
|
1782
|
+
# # Call the advance_rollout method.
|
1783
|
+
# result = client.advance_rollout request
|
1784
|
+
#
|
1785
|
+
# # The returned object is of type Google::Cloud::Deploy::V1::AdvanceRolloutResponse.
|
1786
|
+
# p result
|
1787
|
+
#
|
1471
1788
|
def advance_rollout request, options = nil
|
1472
1789
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1473
1790
|
|
@@ -1532,6 +1849,22 @@ module Google
|
|
1532
1849
|
# @return [::Google::Cloud::Deploy::V1::CancelRolloutResponse]
|
1533
1850
|
#
|
1534
1851
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1852
|
+
#
|
1853
|
+
# @example Basic example
|
1854
|
+
# require "google/cloud/deploy/v1"
|
1855
|
+
#
|
1856
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1857
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
1858
|
+
#
|
1859
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1860
|
+
# request = Google::Cloud::Deploy::V1::CancelRolloutRequest.new
|
1861
|
+
#
|
1862
|
+
# # Call the cancel_rollout method.
|
1863
|
+
# result = client.cancel_rollout request
|
1864
|
+
#
|
1865
|
+
# # The returned object is of type Google::Cloud::Deploy::V1::CancelRolloutResponse.
|
1866
|
+
# p result
|
1867
|
+
#
|
1535
1868
|
def cancel_rollout request, options = nil
|
1536
1869
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1537
1870
|
|
@@ -1611,6 +1944,26 @@ module Google
|
|
1611
1944
|
# @return [::Google::Cloud::Deploy::V1::ListRolloutsResponse]
|
1612
1945
|
#
|
1613
1946
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1947
|
+
#
|
1948
|
+
# @example Basic example
|
1949
|
+
# require "google/cloud/deploy/v1"
|
1950
|
+
#
|
1951
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1952
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
1953
|
+
#
|
1954
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1955
|
+
# request = Google::Cloud::Deploy::V1::ListRolloutsRequest.new
|
1956
|
+
#
|
1957
|
+
# # Call the list_rollouts method.
|
1958
|
+
# result = client.list_rollouts request
|
1959
|
+
#
|
1960
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1961
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1962
|
+
# result.each do |item|
|
1963
|
+
# # Each element is of type ::Google::Cloud::Deploy::V1::Rollout.
|
1964
|
+
# p item
|
1965
|
+
# end
|
1966
|
+
#
|
1614
1967
|
def list_rollouts request, options = nil
|
1615
1968
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1616
1969
|
|
@@ -1674,6 +2027,22 @@ module Google
|
|
1674
2027
|
# @return [::Google::Cloud::Deploy::V1::Rollout]
|
1675
2028
|
#
|
1676
2029
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2030
|
+
#
|
2031
|
+
# @example Basic example
|
2032
|
+
# require "google/cloud/deploy/v1"
|
2033
|
+
#
|
2034
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2035
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
2036
|
+
#
|
2037
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2038
|
+
# request = Google::Cloud::Deploy::V1::GetRolloutRequest.new
|
2039
|
+
#
|
2040
|
+
# # Call the get_rollout method.
|
2041
|
+
# result = client.get_rollout request
|
2042
|
+
#
|
2043
|
+
# # The returned object is of type Google::Cloud::Deploy::V1::Rollout.
|
2044
|
+
# p result
|
2045
|
+
#
|
1677
2046
|
def get_rollout request, options = nil
|
1678
2047
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1679
2048
|
|
@@ -1762,6 +2131,29 @@ module Google
|
|
1762
2131
|
# @return [::Gapic::Operation]
|
1763
2132
|
#
|
1764
2133
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2134
|
+
#
|
2135
|
+
# @example Basic example
|
2136
|
+
# require "google/cloud/deploy/v1"
|
2137
|
+
#
|
2138
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2139
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
2140
|
+
#
|
2141
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2142
|
+
# request = Google::Cloud::Deploy::V1::CreateRolloutRequest.new
|
2143
|
+
#
|
2144
|
+
# # Call the create_rollout method.
|
2145
|
+
# result = client.create_rollout request
|
2146
|
+
#
|
2147
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2148
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2149
|
+
# # Here is how to wait for a response.
|
2150
|
+
# result.wait_until_done! timeout: 60
|
2151
|
+
# if result.response?
|
2152
|
+
# p result.response
|
2153
|
+
# else
|
2154
|
+
# puts "No response received."
|
2155
|
+
# end
|
2156
|
+
#
|
1765
2157
|
def create_rollout request, options = nil
|
1766
2158
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1767
2159
|
|
@@ -1831,6 +2223,22 @@ module Google
|
|
1831
2223
|
# @return [::Google::Cloud::Deploy::V1::IgnoreJobResponse]
|
1832
2224
|
#
|
1833
2225
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2226
|
+
#
|
2227
|
+
# @example Basic example
|
2228
|
+
# require "google/cloud/deploy/v1"
|
2229
|
+
#
|
2230
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2231
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
2232
|
+
#
|
2233
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2234
|
+
# request = Google::Cloud::Deploy::V1::IgnoreJobRequest.new
|
2235
|
+
#
|
2236
|
+
# # Call the ignore_job method.
|
2237
|
+
# result = client.ignore_job request
|
2238
|
+
#
|
2239
|
+
# # The returned object is of type Google::Cloud::Deploy::V1::IgnoreJobResponse.
|
2240
|
+
# p result
|
2241
|
+
#
|
1834
2242
|
def ignore_job request, options = nil
|
1835
2243
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1836
2244
|
|
@@ -1899,6 +2307,22 @@ module Google
|
|
1899
2307
|
# @return [::Google::Cloud::Deploy::V1::RetryJobResponse]
|
1900
2308
|
#
|
1901
2309
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2310
|
+
#
|
2311
|
+
# @example Basic example
|
2312
|
+
# require "google/cloud/deploy/v1"
|
2313
|
+
#
|
2314
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2315
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
2316
|
+
#
|
2317
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2318
|
+
# request = Google::Cloud::Deploy::V1::RetryJobRequest.new
|
2319
|
+
#
|
2320
|
+
# # Call the retry_job method.
|
2321
|
+
# result = client.retry_job request
|
2322
|
+
#
|
2323
|
+
# # The returned object is of type Google::Cloud::Deploy::V1::RetryJobResponse.
|
2324
|
+
# p result
|
2325
|
+
#
|
1902
2326
|
def retry_job request, options = nil
|
1903
2327
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1904
2328
|
|
@@ -1978,6 +2402,26 @@ module Google
|
|
1978
2402
|
# @return [::Google::Cloud::Deploy::V1::ListJobRunsResponse]
|
1979
2403
|
#
|
1980
2404
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2405
|
+
#
|
2406
|
+
# @example Basic example
|
2407
|
+
# require "google/cloud/deploy/v1"
|
2408
|
+
#
|
2409
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2410
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
2411
|
+
#
|
2412
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2413
|
+
# request = Google::Cloud::Deploy::V1::ListJobRunsRequest.new
|
2414
|
+
#
|
2415
|
+
# # Call the list_job_runs method.
|
2416
|
+
# result = client.list_job_runs request
|
2417
|
+
#
|
2418
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2419
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2420
|
+
# result.each do |item|
|
2421
|
+
# # Each element is of type ::Google::Cloud::Deploy::V1::JobRun.
|
2422
|
+
# p item
|
2423
|
+
# end
|
2424
|
+
#
|
1981
2425
|
def list_job_runs request, options = nil
|
1982
2426
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1983
2427
|
|
@@ -2041,6 +2485,22 @@ module Google
|
|
2041
2485
|
# @return [::Google::Cloud::Deploy::V1::JobRun]
|
2042
2486
|
#
|
2043
2487
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2488
|
+
#
|
2489
|
+
# @example Basic example
|
2490
|
+
# require "google/cloud/deploy/v1"
|
2491
|
+
#
|
2492
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2493
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
2494
|
+
#
|
2495
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2496
|
+
# request = Google::Cloud::Deploy::V1::GetJobRunRequest.new
|
2497
|
+
#
|
2498
|
+
# # Call the get_job_run method.
|
2499
|
+
# result = client.get_job_run request
|
2500
|
+
#
|
2501
|
+
# # The returned object is of type Google::Cloud::Deploy::V1::JobRun.
|
2502
|
+
# p result
|
2503
|
+
#
|
2044
2504
|
def get_job_run request, options = nil
|
2045
2505
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2046
2506
|
|
@@ -2105,6 +2565,22 @@ module Google
|
|
2105
2565
|
# @return [::Google::Cloud::Deploy::V1::TerminateJobRunResponse]
|
2106
2566
|
#
|
2107
2567
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2568
|
+
#
|
2569
|
+
# @example Basic example
|
2570
|
+
# require "google/cloud/deploy/v1"
|
2571
|
+
#
|
2572
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2573
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
2574
|
+
#
|
2575
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2576
|
+
# request = Google::Cloud::Deploy::V1::TerminateJobRunRequest.new
|
2577
|
+
#
|
2578
|
+
# # Call the terminate_job_run method.
|
2579
|
+
# result = client.terminate_job_run request
|
2580
|
+
#
|
2581
|
+
# # The returned object is of type Google::Cloud::Deploy::V1::TerminateJobRunResponse.
|
2582
|
+
# p result
|
2583
|
+
#
|
2108
2584
|
def terminate_job_run request, options = nil
|
2109
2585
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2110
2586
|
|
@@ -2167,6 +2643,22 @@ module Google
|
|
2167
2643
|
# @return [::Google::Cloud::Deploy::V1::Config]
|
2168
2644
|
#
|
2169
2645
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2646
|
+
#
|
2647
|
+
# @example Basic example
|
2648
|
+
# require "google/cloud/deploy/v1"
|
2649
|
+
#
|
2650
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2651
|
+
# client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
2652
|
+
#
|
2653
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2654
|
+
# request = Google::Cloud::Deploy::V1::GetConfigRequest.new
|
2655
|
+
#
|
2656
|
+
# # Call the get_config method.
|
2657
|
+
# result = client.get_config request
|
2658
|
+
#
|
2659
|
+
# # The returned object is of type Google::Cloud::Deploy::V1::Config.
|
2660
|
+
# p result
|
2661
|
+
#
|
2170
2662
|
def get_config request, options = nil
|
2171
2663
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2172
2664
|
|