google-cloud-deploy-v1 0.11.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/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d62b25b7f8a779a6275d78c6cc2708690191973abde9bfe6640fc7915119732f
|
4
|
+
data.tar.gz: 074c1747dc9c61a914069e8f5f4c927a7e3edebe61218ae3cc7d2fe912a037f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da3a8e428dc2ac4cd6692918b0ce00578c67715144bc86fde2c2a6a81a2d70ef01fb9361d042a75d4364009106f2f964919c1eb758b90da1d4b290dcd364fb51
|
7
|
+
data.tar.gz: a7d2388d351f70775009a8a650f3f65e1947b7106e006a9be0082267d10cedeb97e43aa1fb6458b7720237d7adfd90b1f55c8cb2da187666b2e26e1c22d0e06c
|
@@ -244,7 +244,8 @@ module Google
|
|
244
244
|
credentials: credentials,
|
245
245
|
endpoint: @config.endpoint,
|
246
246
|
channel_args: @config.channel_args,
|
247
|
-
interceptors: @config.interceptors
|
247
|
+
interceptors: @config.interceptors,
|
248
|
+
channel_pool_config: @config.channel_pool
|
248
249
|
)
|
249
250
|
end
|
250
251
|
|
@@ -3007,6 +3008,14 @@ module Google
|
|
3007
3008
|
end
|
3008
3009
|
end
|
3009
3010
|
|
3011
|
+
##
|
3012
|
+
# Configuration for the channel pool
|
3013
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
3014
|
+
#
|
3015
|
+
def channel_pool
|
3016
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
3017
|
+
end
|
3018
|
+
|
3010
3019
|
##
|
3011
3020
|
# Configuration RPC class for the CloudDeploy API.
|
3012
3021
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|
@@ -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
|
|
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-deploy-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.20.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -274,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
274
274
|
- !ruby/object:Gem::Version
|
275
275
|
version: '0'
|
276
276
|
requirements: []
|
277
|
-
rubygems_version: 3.4.
|
277
|
+
rubygems_version: 3.4.19
|
278
278
|
signing_key:
|
279
279
|
specification_version: 4
|
280
280
|
summary: API Client library for the Google Cloud Deploy V1 API
|