Class: Google::Cloud::Deploy::V1::CloudDeploy::Rest::ServiceStub
- Inherits:
-
Object
- Object
- Google::Cloud::Deploy::V1::CloudDeploy::Rest::ServiceStub
- Defined in:
- lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb
Overview
REST service stub for the CloudDeploy service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Instance Method Summary collapse
-
#abandon_release(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::AbandonReleaseResponse
Baseline implementation for the abandon_release REST call.
-
#advance_rollout(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::AdvanceRolloutResponse
Baseline implementation for the advance_rollout REST call.
-
#approve_rollout(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::ApproveRolloutResponse
Baseline implementation for the approve_rollout REST call.
-
#cancel_automation_run(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::CancelAutomationRunResponse
Baseline implementation for the cancel_automation_run REST call.
-
#cancel_rollout(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::CancelRolloutResponse
Baseline implementation for the cancel_rollout REST call.
-
#create_automation(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the create_automation REST call.
-
#create_custom_target_type(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the create_custom_target_type REST call.
-
#create_delivery_pipeline(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the create_delivery_pipeline REST call.
-
#create_release(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the create_release REST call.
-
#create_rollout(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the create_rollout REST call.
-
#create_target(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the create_target REST call.
-
#delete_automation(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the delete_automation REST call.
-
#delete_custom_target_type(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the delete_custom_target_type REST call.
-
#delete_delivery_pipeline(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the delete_delivery_pipeline REST call.
-
#delete_target(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the delete_target REST call.
-
#get_automation(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::Automation
Baseline implementation for the get_automation REST call.
-
#get_automation_run(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::AutomationRun
Baseline implementation for the get_automation_run REST call.
-
#get_config(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::Config
Baseline implementation for the get_config REST call.
-
#get_custom_target_type(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::CustomTargetType
Baseline implementation for the get_custom_target_type REST call.
-
#get_delivery_pipeline(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::DeliveryPipeline
Baseline implementation for the get_delivery_pipeline REST call.
-
#get_job_run(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::JobRun
Baseline implementation for the get_job_run REST call.
-
#get_release(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::Release
Baseline implementation for the get_release REST call.
-
#get_rollout(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::Rollout
Baseline implementation for the get_rollout REST call.
-
#get_target(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::Target
Baseline implementation for the get_target REST call.
-
#ignore_job(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::IgnoreJobResponse
Baseline implementation for the ignore_job REST call.
-
#initialize(endpoint:, credentials:) ⇒ ServiceStub
constructor
A new instance of ServiceStub.
-
#list_automation_runs(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::ListAutomationRunsResponse
Baseline implementation for the list_automation_runs REST call.
-
#list_automations(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::ListAutomationsResponse
Baseline implementation for the list_automations REST call.
-
#list_custom_target_types(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::ListCustomTargetTypesResponse
Baseline implementation for the list_custom_target_types REST call.
-
#list_delivery_pipelines(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::ListDeliveryPipelinesResponse
Baseline implementation for the list_delivery_pipelines REST call.
-
#list_job_runs(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::ListJobRunsResponse
Baseline implementation for the list_job_runs REST call.
-
#list_releases(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::ListReleasesResponse
Baseline implementation for the list_releases REST call.
-
#list_rollouts(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::ListRolloutsResponse
Baseline implementation for the list_rollouts REST call.
-
#list_targets(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::ListTargetsResponse
Baseline implementation for the list_targets REST call.
-
#retry_job(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::RetryJobResponse
Baseline implementation for the retry_job REST call.
-
#rollback_target(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::RollbackTargetResponse
Baseline implementation for the rollback_target REST call.
-
#terminate_job_run(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::TerminateJobRunResponse
Baseline implementation for the terminate_job_run REST call.
-
#update_automation(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the update_automation REST call.
-
#update_custom_target_type(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the update_custom_target_type REST call.
-
#update_delivery_pipeline(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the update_delivery_pipeline REST call.
-
#update_target(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the update_target REST call.
Constructor Details
#initialize(endpoint:, credentials:) ⇒ ServiceStub
Returns a new instance of ServiceStub.
33 34 35 36 37 38 39 40 41 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 33 def initialize endpoint:, credentials: # These require statements are intentionally placed here to initialize # the REST modules only when it's required. require "gapic/rest" @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: true, raise_faraday_errors: false end |
Instance Method Details
#abandon_release(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::AbandonReleaseResponse
Baseline implementation for the abandon_release REST call
779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 779 def abandon_release request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_abandon_release_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::AbandonReleaseResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#advance_rollout(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::AdvanceRolloutResponse
Baseline implementation for the advance_rollout REST call
855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 855 def advance_rollout request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_advance_rollout_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::AdvanceRolloutResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#approve_rollout(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::ApproveRolloutResponse
Baseline implementation for the approve_rollout REST call
817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 817 def approve_rollout request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_approve_rollout_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::ApproveRolloutResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#cancel_automation_run(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::CancelAutomationRunResponse
Baseline implementation for the cancel_automation_run REST call
1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 1539 def cancel_automation_run request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_cancel_automation_run_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::CancelAutomationRunResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#cancel_rollout(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::CancelRolloutResponse
Baseline implementation for the cancel_rollout REST call
893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 893 def cancel_rollout request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_cancel_rollout_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::CancelRolloutResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#create_automation(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the create_automation REST call
1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 1273 def create_automation request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_automation_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#create_custom_target_type(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the create_custom_target_type REST call
551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 551 def create_custom_target_type request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_custom_target_type_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#create_delivery_pipeline(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the create_delivery_pipeline REST call
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 133 def create_delivery_pipeline request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_delivery_pipeline_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#create_release(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the create_release REST call
741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 741 def create_release request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_release_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#create_rollout(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the create_rollout REST call
1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 1007 def create_rollout request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_rollout_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#create_target(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the create_target REST call
361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 361 def create_target request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_target_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#delete_automation(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the delete_automation REST call
1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 1349 def delete_automation request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_delete_automation_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#delete_custom_target_type(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the delete_custom_target_type REST call
627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 627 def delete_custom_target_type request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_delete_custom_target_type_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#delete_delivery_pipeline(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the delete_delivery_pipeline REST call
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 209 def delete_delivery_pipeline request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_delete_delivery_pipeline_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#delete_target(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the delete_target REST call
437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 437 def delete_target request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_delete_target_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#get_automation(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::Automation
Baseline implementation for the get_automation REST call
1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 1387 def get_automation request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_automation_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::Automation.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#get_automation_run(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::AutomationRun
Baseline implementation for the get_automation_run REST call
1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 1463 def get_automation_run request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_automation_run_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::AutomationRun.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#get_config(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::Config
Baseline implementation for the get_config REST call
1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 1235 def get_config request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_config_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::Config.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#get_custom_target_type(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::CustomTargetType
Baseline implementation for the get_custom_target_type REST call
513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 513 def get_custom_target_type request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_custom_target_type_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::CustomTargetType.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#get_delivery_pipeline(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::DeliveryPipeline
Baseline implementation for the get_delivery_pipeline REST call
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 95 def get_delivery_pipeline request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_delivery_pipeline_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::DeliveryPipeline.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#get_job_run(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::JobRun
Baseline implementation for the get_job_run REST call
1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 1159 def get_job_run request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_job_run_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::JobRun.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#get_release(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::Release
Baseline implementation for the get_release REST call
703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 703 def get_release request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_release_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::Release.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#get_rollout(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::Rollout
Baseline implementation for the get_rollout REST call
969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 969 def get_rollout request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_rollout_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::Rollout.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#get_target(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::Target
Baseline implementation for the get_target REST call
323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 323 def get_target request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_target_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::Target.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#ignore_job(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::IgnoreJobResponse
Baseline implementation for the ignore_job REST call
1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 1045 def ignore_job request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_ignore_job_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::IgnoreJobResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#list_automation_runs(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::ListAutomationRunsResponse
Baseline implementation for the list_automation_runs REST call
1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 1501 def list_automation_runs request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_automation_runs_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::ListAutomationRunsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#list_automations(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::ListAutomationsResponse
Baseline implementation for the list_automations REST call
1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 1425 def list_automations request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_automations_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::ListAutomationsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#list_custom_target_types(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::ListCustomTargetTypesResponse
Baseline implementation for the list_custom_target_types REST call
475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 475 def list_custom_target_types request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_custom_target_types_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::ListCustomTargetTypesResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#list_delivery_pipelines(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::ListDeliveryPipelinesResponse
Baseline implementation for the list_delivery_pipelines REST call
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 57 def list_delivery_pipelines request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_delivery_pipelines_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::ListDeliveryPipelinesResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#list_job_runs(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::ListJobRunsResponse
Baseline implementation for the list_job_runs REST call
1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 1121 def list_job_runs request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_job_runs_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::ListJobRunsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#list_releases(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::ListReleasesResponse
Baseline implementation for the list_releases REST call
665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 665 def list_releases request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_releases_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::ListReleasesResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#list_rollouts(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::ListRolloutsResponse
Baseline implementation for the list_rollouts REST call
931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 931 def list_rollouts request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_rollouts_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::ListRolloutsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#list_targets(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::ListTargetsResponse
Baseline implementation for the list_targets REST call
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 247 def list_targets request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_targets_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::ListTargetsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#retry_job(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::RetryJobResponse
Baseline implementation for the retry_job REST call
1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 1083 def retry_job request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_retry_job_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::RetryJobResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#rollback_target(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::RollbackTargetResponse
Baseline implementation for the rollback_target REST call
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 285 def rollback_target request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_rollback_target_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::RollbackTargetResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#terminate_job_run(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Cloud::Deploy::V1::TerminateJobRunResponse
Baseline implementation for the terminate_job_run REST call
1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 1197 def terminate_job_run request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_terminate_job_run_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Cloud::Deploy::V1::TerminateJobRunResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#update_automation(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the update_automation REST call
1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 1311 def update_automation request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_automation_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#update_custom_target_type(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the update_custom_target_type REST call
589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 589 def update_custom_target_type request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_custom_target_type_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#update_delivery_pipeline(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the update_delivery_pipeline REST call
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 171 def update_delivery_pipeline request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_delivery_pipeline_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |
#update_target(request_pb, options = nil) {|result, operation| ... } ⇒ ::Google::Longrunning::Operation
Baseline implementation for the update_target REST call
399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb', line 399 def update_target request_pb, = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_target_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end |