Reference documentation and code samples for the Google Cloud Deploy V1 API class Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.
REST client for the CloudDeploy service.
CloudDeploy service creates and manages Continuous Delivery operations on Google Cloud Platform via Skaffold (https://skaffold.dev).
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the CloudDeploy Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all CloudDeploy clients ::Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.configure do |config| config.timeout = 10.0 end
#abandon_release
def abandon_release(request, options = nil) -> ::Google::Cloud::Deploy::V1::AbandonReleaseResponse def abandon_release(name: nil) -> ::Google::Cloud::Deploy::V1::AbandonReleaseResponseAbandons a Release in the Delivery Pipeline.
def abandon_release(request, options = nil) -> ::Google::Cloud::Deploy::V1::AbandonReleaseResponseabandon_release via a request object, either of type AbandonReleaseRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::AbandonReleaseRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def abandon_release(name: nil) -> ::Google::Cloud::Deploy::V1::AbandonReleaseResponseabandon_release via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - name (::String) — Required. Name of the Release. Format is
projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::AbandonReleaseResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::AbandonReleaseRequest.new # Call the abandon_release method. result = client.abandon_release request # The returned object is of type Google::Cloud::Deploy::V1::AbandonReleaseResponse. p result
#advance_rollout
def advance_rollout(request, options = nil) -> ::Google::Cloud::Deploy::V1::AdvanceRolloutResponse def advance_rollout(name: nil, phase_id: nil) -> ::Google::Cloud::Deploy::V1::AdvanceRolloutResponseAdvances a Rollout in a given project and location.
def advance_rollout(request, options = nil) -> ::Google::Cloud::Deploy::V1::AdvanceRolloutResponseadvance_rollout via a request object, either of type AdvanceRolloutRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::AdvanceRolloutRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def advance_rollout(name: nil, phase_id: nil) -> ::Google::Cloud::Deploy::V1::AdvanceRolloutResponseadvance_rollout via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - name (::String) — Required. Name of the Rollout. Format is
projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}. - phase_id (::String) — Required. The phase ID to advance the
Rolloutto.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::AdvanceRolloutResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::AdvanceRolloutRequest.new # Call the advance_rollout method. result = client.advance_rollout request # The returned object is of type Google::Cloud::Deploy::V1::AdvanceRolloutResponse. p result
#approve_rollout
def approve_rollout(request, options = nil) -> ::Google::Cloud::Deploy::V1::ApproveRolloutResponse def approve_rollout(name: nil, approved: nil) -> ::Google::Cloud::Deploy::V1::ApproveRolloutResponseApproves a Rollout.
def approve_rollout(request, options = nil) -> ::Google::Cloud::Deploy::V1::ApproveRolloutResponseapprove_rollout via a request object, either of type ApproveRolloutRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::ApproveRolloutRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def approve_rollout(name: nil, approved: nil) -> ::Google::Cloud::Deploy::V1::ApproveRolloutResponseapprove_rollout via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - name (::String) — Required. Name of the Rollout. Format is
projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}. - approved (::Boolean) — Required. True = approve; false = reject
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::ApproveRolloutResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::ApproveRolloutRequest.new # Call the approve_rollout method. result = client.approve_rollout request # The returned object is of type Google::Cloud::Deploy::V1::ApproveRolloutResponse. p result
#cancel_automation_run
def cancel_automation_run(request, options = nil) -> ::Google::Cloud::Deploy::V1::CancelAutomationRunResponse def cancel_automation_run(name: nil) -> ::Google::Cloud::Deploy::V1::CancelAutomationRunResponseCancels an AutomationRun. The state of the AutomationRun after cancelling is CANCELLED. CancelAutomationRun can be called on AutomationRun in the state IN_PROGRESS and PENDING; AutomationRun in a different state returns an FAILED_PRECONDITION error.
def cancel_automation_run(request, options = nil) -> ::Google::Cloud::Deploy::V1::CancelAutomationRunResponsecancel_automation_run via a request object, either of type Google::Cloud::Deploy::V1::CancelAutomationRunRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::CancelAutomationRunRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def cancel_automation_run(name: nil) -> ::Google::Cloud::Deploy::V1::CancelAutomationRunResponsecancel_automation_run via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - name (::String) — Required. Name of the
AutomationRun. Format isprojects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::CancelAutomationRunResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::CancelAutomationRunRequest.new # Call the cancel_automation_run method. result = client.cancel_automation_run request # The returned object is of type Google::Cloud::Deploy::V1::CancelAutomationRunResponse. p result
#cancel_rollout
def cancel_rollout(request, options = nil) -> ::Google::Cloud::Deploy::V1::CancelRolloutResponse def cancel_rollout(name: nil) -> ::Google::Cloud::Deploy::V1::CancelRolloutResponseCancels a Rollout in a given project and location.
def cancel_rollout(request, options = nil) -> ::Google::Cloud::Deploy::V1::CancelRolloutResponsecancel_rollout via a request object, either of type Google::Cloud::Deploy::V1::CancelRolloutRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::CancelRolloutRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def cancel_rollout(name: nil) -> ::Google::Cloud::Deploy::V1::CancelRolloutResponsecancel_rollout via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - name (::String) — Required. Name of the Rollout. Format is
projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::CancelRolloutResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::CancelRolloutRequest.new # Call the cancel_rollout method. result = client.cancel_rollout request # The returned object is of type Google::Cloud::Deploy::V1::CancelRolloutResponse. p result
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the CloudDeploy Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#create_automation
def create_automation(request, options = nil) -> ::Gapic::Operation def create_automation(parent: nil, automation_id: nil, automation: nil, request_id: nil, validate_only: nil) -> ::Gapic::OperationCreates a new Automation in a given project and location.
def create_automation(request, options = nil) -> ::Gapic::Operationcreate_automation via a request object, either of type Google::Cloud::Deploy::V1::CreateAutomationRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::CreateAutomationRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_automation(parent: nil, automation_id: nil, automation: nil, request_id: nil, validate_only: nil) -> ::Gapic::Operationcreate_automation via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - parent (::String) — Required. The parent collection in which the
Automationshould be created. Format should beprojects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}. - automation_id (::String) — Required. ID of the
Automation. - automation (::Google::Cloud::Deploy::V1::Automation, ::Hash) — Required. The
Automationto create. - request_id (::String) — Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- validate_only (::Boolean) — Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::CreateAutomationRequest.new # Call the create_automation method. result = client.create_automation request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#create_custom_target_type
def create_custom_target_type(request, options = nil) -> ::Gapic::Operation def create_custom_target_type(parent: nil, custom_target_type_id: nil, custom_target_type: nil, request_id: nil, validate_only: nil) -> ::Gapic::OperationCreates a new CustomTargetType in a given project and location.
def create_custom_target_type(request, options = nil) -> ::Gapic::Operationcreate_custom_target_type via a request object, either of type Google::Cloud::Deploy::V1::CreateCustomTargetTypeRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::CreateCustomTargetTypeRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_custom_target_type(parent: nil, custom_target_type_id: nil, custom_target_type: nil, request_id: nil, validate_only: nil) -> ::Gapic::Operationcreate_custom_target_type via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - parent (::String) — Required. The parent collection in which the
CustomTargetTypeshould be created. Format should beprojects/{project_id}/locations/{location_name}. - custom_target_type_id (::String) — Required. ID of the
CustomTargetType. - custom_target_type (::Google::Cloud::Deploy::V1::CustomTargetType, ::Hash) — Required. The
CustomTargetTypeto create. - request_id (::String) — Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- validate_only (::Boolean) — Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::CreateCustomTargetTypeRequest.new # Call the create_custom_target_type method. result = client.create_custom_target_type request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#create_delivery_pipeline
def create_delivery_pipeline(request, options = nil) -> ::Gapic::Operation def create_delivery_pipeline(parent: nil, delivery_pipeline_id: nil, delivery_pipeline: nil, request_id: nil, validate_only: nil) -> ::Gapic::OperationCreates a new DeliveryPipeline in a given project and location.
def create_delivery_pipeline(request, options = nil) -> ::Gapic::Operationcreate_delivery_pipeline via a request object, either of type Google::Cloud::Deploy::V1::CreateDeliveryPipelineRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::CreateDeliveryPipelineRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_delivery_pipeline(parent: nil, delivery_pipeline_id: nil, delivery_pipeline: nil, request_id: nil, validate_only: nil) -> ::Gapic::Operationcreate_delivery_pipeline via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - parent (::String) — Required. The parent collection in which the
DeliveryPipelineshould be created. Format should beprojects/{project_id}/locations/{location_name}. - delivery_pipeline_id (::String) — Required. ID of the
DeliveryPipeline. - delivery_pipeline (::Google::Cloud::Deploy::V1::DeliveryPipeline, ::Hash) — Required. The
DeliveryPipelineto create. - request_id (::String) — Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- validate_only (::Boolean) — Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::CreateDeliveryPipelineRequest.new # Call the create_delivery_pipeline method. result = client.create_delivery_pipeline request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#create_release
def create_release(request, options = nil) -> ::Gapic::Operation def create_release(parent: nil, release_id: nil, release: nil, request_id: nil, validate_only: nil) -> ::Gapic::OperationCreates a new Release in a given project and location.
def create_release(request, options = nil) -> ::Gapic::Operationcreate_release via a request object, either of type Google::Cloud::Deploy::V1::CreateReleaseRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::CreateReleaseRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_release(parent: nil, release_id: nil, release: nil, request_id: nil, validate_only: nil) -> ::Gapic::Operationcreate_release via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - parent (::String) — Required. The parent collection in which the
Releaseshould be created. Format should beprojects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}. - release_id (::String) — Required. ID of the
Release. - release (::Google::Cloud::Deploy::V1::Release, ::Hash) — Required. The
Releaseto create. - request_id (::String) — Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- validate_only (::Boolean) — Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::CreateReleaseRequest.new # Call the create_release method. result = client.create_release request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#create_rollout
def create_rollout(request, options = nil) -> ::Gapic::Operation def create_rollout(parent: nil, rollout_id: nil, rollout: nil, request_id: nil, validate_only: nil, starting_phase_id: nil) -> ::Gapic::OperationCreates a new Rollout in a given project and location.
def create_rollout(request, options = nil) -> ::Gapic::Operationcreate_rollout via a request object, either of type Google::Cloud::Deploy::V1::CreateRolloutRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::CreateRolloutRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_rollout(parent: nil, rollout_id: nil, rollout: nil, request_id: nil, validate_only: nil, starting_phase_id: nil) -> ::Gapic::Operationcreate_rollout via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - parent (::String) — Required. The parent collection in which the
Rolloutshould be created. Format should beprojects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}. - rollout_id (::String) — Required. ID of the
Rollout. - rollout (::Google::Cloud::Deploy::V1::Rollout, ::Hash) — Required. The
Rolloutto create. - request_id (::String) — Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- validate_only (::Boolean) — Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.
- starting_phase_id (::String) — Optional. The starting phase ID for the
Rollout. If empty theRolloutwill start at the first phase.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::CreateRolloutRequest.new # Call the create_rollout method. result = client.create_rollout request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#create_target
def create_target(request, options = nil) -> ::Gapic::Operation def create_target(parent: nil, target_id: nil, target: nil, request_id: nil, validate_only: nil) -> ::Gapic::OperationCreates a new Target in a given project and location.
def create_target(request, options = nil) -> ::Gapic::Operationcreate_target via a request object, either of type Google::Cloud::Deploy::V1::CreateTargetRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::CreateTargetRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_target(parent: nil, target_id: nil, target: nil, request_id: nil, validate_only: nil) -> ::Gapic::Operationcreate_target via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - parent (::String) — Required. The parent collection in which the
Targetshould be created. Format should beprojects/{project_id}/locations/{location_name}. - target_id (::String) — Required. ID of the
Target. - target (::Google::Cloud::Deploy::V1::Target, ::Hash) — Required. The
Targetto create. - request_id (::String) — Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- validate_only (::Boolean) — Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::CreateTargetRequest.new # Call the create_target method. result = client.create_target request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_automation
def delete_automation(request, options = nil) -> ::Gapic::Operation def delete_automation(name: nil, request_id: nil, allow_missing: nil, validate_only: nil, etag: nil) -> ::Gapic::OperationDeletes a single Automation resource.
def delete_automation(request, options = nil) -> ::Gapic::Operationdelete_automation via a request object, either of type DeleteAutomationRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::DeleteAutomationRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_automation(name: nil, request_id: nil, allow_missing: nil, validate_only: nil, etag: nil) -> ::Gapic::Operationdelete_automation via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - name (::String) — Required. The name of the
Automationto delete. Format should beprojects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}. - request_id (::String) — Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- allow_missing (::Boolean) — Optional. If set to true, then deleting an already deleted or non-existing
Automationwill succeed. - validate_only (::Boolean) — Optional. If set, validate the request and verify whether the resource exists, but do not actually post it.
- etag (::String) — Optional. The weak etag of the request. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::DeleteAutomationRequest.new # Call the delete_automation method. result = client.delete_automation request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_custom_target_type
def delete_custom_target_type(request, options = nil) -> ::Gapic::Operation def delete_custom_target_type(name: nil, request_id: nil, allow_missing: nil, validate_only: nil, etag: nil) -> ::Gapic::OperationDeletes a single CustomTargetType.
def delete_custom_target_type(request, options = nil) -> ::Gapic::Operationdelete_custom_target_type via a request object, either of type DeleteCustomTargetTypeRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::DeleteCustomTargetTypeRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_custom_target_type(name: nil, request_id: nil, allow_missing: nil, validate_only: nil, etag: nil) -> ::Gapic::Operationdelete_custom_target_type via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - name (::String) — Required. The name of the
CustomTargetTypeto delete. Format must beprojects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}. - request_id (::String) — Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- allow_missing (::Boolean) — Optional. If set to true, then deleting an already deleted or non-existing
CustomTargetTypewill succeed. - validate_only (::Boolean) — Optional. If set to true, the request is validated but no actual change is made.
- etag (::String) — Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::DeleteCustomTargetTypeRequest.new # Call the delete_custom_target_type method. result = client.delete_custom_target_type request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_delivery_pipeline
def delete_delivery_pipeline(request, options = nil) -> ::Gapic::Operation def delete_delivery_pipeline(name: nil, request_id: nil, allow_missing: nil, validate_only: nil, force: nil, etag: nil) -> ::Gapic::OperationDeletes a single DeliveryPipeline.
def delete_delivery_pipeline(request, options = nil) -> ::Gapic::Operationdelete_delivery_pipeline via a request object, either of type DeleteDeliveryPipelineRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::DeleteDeliveryPipelineRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_delivery_pipeline(name: nil, request_id: nil, allow_missing: nil, validate_only: nil, force: nil, etag: nil) -> ::Gapic::Operationdelete_delivery_pipeline via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - name (::String) — Required. The name of the
DeliveryPipelineto delete. Format should beprojects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}. - request_id (::String) — Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- allow_missing (::Boolean) — Optional. If set to true, then deleting an already deleted or non-existing
DeliveryPipelinewill succeed. - validate_only (::Boolean) — Optional. If set, validate the request and preview the review, but do not actually post it.
- force (::Boolean) — Optional. If set to true, all child resources under this pipeline will also be deleted. Otherwise, the request will only work if the pipeline has no child resources.
- etag (::String) — Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::DeleteDeliveryPipelineRequest.new # Call the delete_delivery_pipeline method. result = client.delete_delivery_pipeline request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_target
def delete_target(request, options = nil) -> ::Gapic::Operation def delete_target(name: nil, request_id: nil, allow_missing: nil, validate_only: nil, etag: nil) -> ::Gapic::OperationDeletes a single Target.
def delete_target(request, options = nil) -> ::Gapic::Operationdelete_target via a request object, either of type DeleteTargetRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::DeleteTargetRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_target(name: nil, request_id: nil, allow_missing: nil, validate_only: nil, etag: nil) -> ::Gapic::Operationdelete_target via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - name (::String) — Required. The name of the
Targetto delete. Format should beprojects/{project_id}/locations/{location_name}/targets/{target_name}. - request_id (::String) — Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- allow_missing (::Boolean) — Optional. If set to true, then deleting an already deleted or non-existing
Targetwill succeed. - validate_only (::Boolean) — Optional. If set, validate the request and preview the review, but do not actually post it.
- etag (::String) — Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::DeleteTargetRequest.new # Call the delete_target method. result = client.delete_target request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#get_automation
def get_automation(request, options = nil) -> ::Google::Cloud::Deploy::V1::Automation def get_automation(name: nil) -> ::Google::Cloud::Deploy::V1::AutomationGets details of a single Automation.
def get_automation(request, options = nil) -> ::Google::Cloud::Deploy::V1::Automationget_automation via a request object, either of type GetAutomationRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::GetAutomationRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_automation(name: nil) -> ::Google::Cloud::Deploy::V1::Automationget_automation via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - name (::String) — Required. Name of the
Automation. Format must beprojects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::Automation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::GetAutomationRequest.new # Call the get_automation method. result = client.get_automation request # The returned object is of type Google::Cloud::Deploy::V1::Automation. p result
#get_automation_run
def get_automation_run(request, options = nil) -> ::Google::Cloud::Deploy::V1::AutomationRun def get_automation_run(name: nil) -> ::Google::Cloud::Deploy::V1::AutomationRunGets details of a single AutomationRun.
def get_automation_run(request, options = nil) -> ::Google::Cloud::Deploy::V1::AutomationRunget_automation_run via a request object, either of type GetAutomationRunRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::GetAutomationRunRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_automation_run(name: nil) -> ::Google::Cloud::Deploy::V1::AutomationRunget_automation_run via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - name (::String) — Required. Name of the
AutomationRun. Format must beprojects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::AutomationRun)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::GetAutomationRunRequest.new # Call the get_automation_run method. result = client.get_automation_run request # The returned object is of type Google::Cloud::Deploy::V1::AutomationRun. p result
#get_config
def get_config(request, options = nil) -> ::Google::Cloud::Deploy::V1::Config def get_config(name: nil) -> ::Google::Cloud::Deploy::V1::ConfigGets the configuration for a location.
def get_config(request, options = nil) -> ::Google::Cloud::Deploy::V1::Configget_config via a request object, either of type GetConfigRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::GetConfigRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_config(name: nil) -> ::Google::Cloud::Deploy::V1::Configget_config via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - name (::String) — Required. Name of requested configuration.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::Config)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::GetConfigRequest.new # Call the get_config method. result = client.get_config request # The returned object is of type Google::Cloud::Deploy::V1::Config. p result
#get_custom_target_type
def get_custom_target_type(request, options = nil) -> ::Google::Cloud::Deploy::V1::CustomTargetType def get_custom_target_type(name: nil) -> ::Google::Cloud::Deploy::V1::CustomTargetTypeGets details of a single CustomTargetType.
def get_custom_target_type(request, options = nil) -> ::Google::Cloud::Deploy::V1::CustomTargetTypeget_custom_target_type via a request object, either of type GetCustomTargetTypeRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::GetCustomTargetTypeRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_custom_target_type(name: nil) -> ::Google::Cloud::Deploy::V1::CustomTargetTypeget_custom_target_type via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - name (::String) — Required. Name of the
CustomTargetType. Format must beprojects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::CustomTargetType)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::GetCustomTargetTypeRequest.new # Call the get_custom_target_type method. result = client.get_custom_target_type request # The returned object is of type Google::Cloud::Deploy::V1::CustomTargetType. p result
#get_delivery_pipeline
def get_delivery_pipeline(request, options = nil) -> ::Google::Cloud::Deploy::V1::DeliveryPipeline def get_delivery_pipeline(name: nil) -> ::Google::Cloud::Deploy::V1::DeliveryPipelineGets details of a single DeliveryPipeline.
def get_delivery_pipeline(request, options = nil) -> ::Google::Cloud::Deploy::V1::DeliveryPipelineget_delivery_pipeline via a request object, either of type GetDeliveryPipelineRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::GetDeliveryPipelineRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_delivery_pipeline(name: nil) -> ::Google::Cloud::Deploy::V1::DeliveryPipelineget_delivery_pipeline via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - name (::String) — Required. Name of the
DeliveryPipeline. Format must beprojects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::DeliveryPipeline)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::GetDeliveryPipelineRequest.new # Call the get_delivery_pipeline method. result = client.get_delivery_pipeline request # The returned object is of type Google::Cloud::Deploy::V1::DeliveryPipeline. p result
#get_job_run
def get_job_run(request, options = nil) -> ::Google::Cloud::Deploy::V1::JobRun def get_job_run(name: nil) -> ::Google::Cloud::Deploy::V1::JobRunGets details of a single JobRun.
def get_job_run(request, options = nil) -> ::Google::Cloud::Deploy::V1::JobRunget_job_run via a request object, either of type GetJobRunRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::GetJobRunRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_job_run(name: nil) -> ::Google::Cloud::Deploy::V1::JobRunget_job_run via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - name (::String) — Required. Name of the
JobRun. Format must beprojects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::JobRun)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::GetJobRunRequest.new # Call the get_job_run method. result = client.get_job_run request # The returned object is of type Google::Cloud::Deploy::V1::JobRun. p result
#get_release
def get_release(request, options = nil) -> ::Google::Cloud::Deploy::V1::Release def get_release(name: nil) -> ::Google::Cloud::Deploy::V1::ReleaseGets details of a single Release.
def get_release(request, options = nil) -> ::Google::Cloud::Deploy::V1::Releaseget_release via a request object, either of type GetReleaseRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::GetReleaseRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_release(name: nil) -> ::Google::Cloud::Deploy::V1::Releaseget_release via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - name (::String) — Required. Name of the
Release. Format must beprojects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::Release)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::GetReleaseRequest.new # Call the get_release method. result = client.get_release request # The returned object is of type Google::Cloud::Deploy::V1::Release. p result
#get_rollout
def get_rollout(request, options = nil) -> ::Google::Cloud::Deploy::V1::Rollout def get_rollout(name: nil) -> ::Google::Cloud::Deploy::V1::RolloutGets details of a single Rollout.
def get_rollout(request, options = nil) -> ::Google::Cloud::Deploy::V1::Rolloutget_rollout via a request object, either of type GetRolloutRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::GetRolloutRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_rollout(name: nil) -> ::Google::Cloud::Deploy::V1::Rolloutget_rollout via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - name (::String) — Required. Name of the
Rollout. Format must beprojects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::Rollout)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::GetRolloutRequest.new # Call the get_rollout method. result = client.get_rollout request # The returned object is of type Google::Cloud::Deploy::V1::Rollout. p result
#get_target
def get_target(request, options = nil) -> ::Google::Cloud::Deploy::V1::Target def get_target(name: nil) -> ::Google::Cloud::Deploy::V1::TargetGets details of a single Target.
def get_target(request, options = nil) -> ::Google::Cloud::Deploy::V1::Targetget_target via a request object, either of type GetTargetRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::GetTargetRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_target(name: nil) -> ::Google::Cloud::Deploy::V1::Targetget_target via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - name (::String) — Required. Name of the
Target. Format must beprojects/{project_id}/locations/{location_name}/targets/{target_name}.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::Target)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::GetTargetRequest.new # Call the get_target method. result = client.get_target request # The returned object is of type Google::Cloud::Deploy::V1::Target. p result
#iam_policy_client
def iam_policy_client() -> Google::Iam::V1::IAMPolicy::Rest::ClientGet the associated client for mix-in of the IAMPolicy.
- (Google::Iam::V1::IAMPolicy::Rest::Client)
#ignore_job
def ignore_job(request, options = nil) -> ::Google::Cloud::Deploy::V1::IgnoreJobResponse def ignore_job(rollout: nil, phase_id: nil, job_id: nil) -> ::Google::Cloud::Deploy::V1::IgnoreJobResponseIgnores the specified Job in a Rollout.
def ignore_job(request, options = nil) -> ::Google::Cloud::Deploy::V1::IgnoreJobResponseignore_job via a request object, either of type IgnoreJobRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::IgnoreJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def ignore_job(rollout: nil, phase_id: nil, job_id: nil) -> ::Google::Cloud::Deploy::V1::IgnoreJobResponseignore_job via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - rollout (::String) — Required. Name of the Rollout. Format is
projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}. - phase_id (::String) — Required. The phase ID the Job to ignore belongs to.
- job_id (::String) — Required. The job ID for the Job to ignore.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::IgnoreJobResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::IgnoreJobRequest.new # Call the ignore_job method. result = client.ignore_job request # The returned object is of type Google::Cloud::Deploy::V1::IgnoreJobResponse. p result
#initialize
def initialize() { |config| ... } -> ClientCreate a new CloudDeploy REST client object.
- (config) — Configure the CloudDeploy client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new do |config| config.timeout = 10.0 end
#list_automation_runs
def list_automation_runs(request, options = nil) -> ::Google::Cloud::Deploy::V1::ListAutomationRunsResponse def list_automation_runs(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Deploy::V1::ListAutomationRunsResponseLists AutomationRuns in a given project and location.
def list_automation_runs(request, options = nil) -> ::Google::Cloud::Deploy::V1::ListAutomationRunsResponselist_automation_runs via a request object, either of type ListAutomationRunsRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::ListAutomationRunsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_automation_runs(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Deploy::V1::ListAutomationRunsResponselist_automation_runs via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - parent (::String) — Required. The parent
Delivery Pipeline, which owns this collection of automationRuns. Format must beprojects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}. - page_size (::Integer) — The maximum number of automationRuns to return. The service may return fewer than this value. If unspecified, at most 50 automationRuns will be returned. The maximum value is 1000; values above 1000 will be set to 1000.
- page_token (::String) — A page token, received from a previous
ListAutomationRunscall. Provide this to retrieve the subsequent page.When paginating, all other provided parameters match the call that provided the page token.
- filter (::String) — Filter automationRuns to be returned. All fields can be used in the filter.
- order_by (::String) — Field to sort by.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::ListAutomationRunsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::ListAutomationRunsRequest.new # Call the list_automation_runs method. result = client.list_automation_runs request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::Deploy::V1::AutomationRun. p item end
#list_automations
def list_automations(request, options = nil) -> ::Google::Cloud::Deploy::V1::ListAutomationsResponse def list_automations(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Deploy::V1::ListAutomationsResponseLists Automations in a given project and location.
def list_automations(request, options = nil) -> ::Google::Cloud::Deploy::V1::ListAutomationsResponselist_automations via a request object, either of type ListAutomationsRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::ListAutomationsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_automations(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Deploy::V1::ListAutomationsResponselist_automations via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - parent (::String) — Required. The parent
Delivery Pipeline, which owns this collection of automations. Format must beprojects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}. - page_size (::Integer) — The maximum number of automations to return. The service may return fewer than this value. If unspecified, at most 50 automations will be returned. The maximum value is 1000; values above 1000 will be set to 1000.
- page_token (::String) — A page token, received from a previous
ListAutomationscall. Provide this to retrieve the subsequent page.When paginating, all other provided parameters match the call that provided the page token.
- filter (::String) — Filter automations to be returned. All fields can be used in the filter.
- order_by (::String) — Field to sort by.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::ListAutomationsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::ListAutomationsRequest.new # Call the list_automations method. result = client.list_automations request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::Deploy::V1::Automation. p item end
#list_custom_target_types
def list_custom_target_types(request, options = nil) -> ::Google::Cloud::Deploy::V1::ListCustomTargetTypesResponse def list_custom_target_types(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Deploy::V1::ListCustomTargetTypesResponseLists CustomTargetTypes in a given project and location.
def list_custom_target_types(request, options = nil) -> ::Google::Cloud::Deploy::V1::ListCustomTargetTypesResponselist_custom_target_types via a request object, either of type ListCustomTargetTypesRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::ListCustomTargetTypesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_custom_target_types(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Deploy::V1::ListCustomTargetTypesResponselist_custom_target_types via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - parent (::String) — Required. The parent that owns this collection of custom target types. Format must be
projects/{project_id}/locations/{location_name}. - page_size (::Integer) — Optional. The maximum number of
CustomTargetTypeobjects to return. The service may return fewer than this value. If unspecified, at most 50CustomTargetTypeobjects will be returned. The maximum value is 1000; values above 1000 will be set to 1000. - page_token (::String) — Optional. A page token, received from a previous
ListCustomTargetTypescall. Provide this to retrieve the subsequent page.When paginating, all other provided parameters match the call that provided the page token.
- filter (::String) — Optional. Filter custom target types to be returned. See https://google.aip.dev/160 for more details.
- order_by (::String) — Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::ListCustomTargetTypesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::ListCustomTargetTypesRequest.new # Call the list_custom_target_types method. result = client.list_custom_target_types request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::Deploy::V1::CustomTargetType. p item end
#list_delivery_pipelines
def list_delivery_pipelines(request, options = nil) -> ::Google::Cloud::Deploy::V1::ListDeliveryPipelinesResponse def list_delivery_pipelines(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Deploy::V1::ListDeliveryPipelinesResponseLists DeliveryPipelines in a given project and location.
def list_delivery_pipelines(request, options = nil) -> ::Google::Cloud::Deploy::V1::ListDeliveryPipelinesResponselist_delivery_pipelines via a request object, either of type ListDeliveryPipelinesRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::ListDeliveryPipelinesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_delivery_pipelines(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Deploy::V1::ListDeliveryPipelinesResponselist_delivery_pipelines via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - parent (::String) — Required. The parent, which owns this collection of pipelines. Format must be
projects/{project_id}/locations/{location_name}. - page_size (::Integer) — The maximum number of pipelines to return. The service may return fewer than this value. If unspecified, at most 50 pipelines will be returned. The maximum value is 1000; values above 1000 will be set to 1000.
- page_token (::String) — A page token, received from a previous
ListDeliveryPipelinescall. Provide this to retrieve the subsequent page.When paginating, all other provided parameters match the call that provided the page token.
- filter (::String) — Filter pipelines to be returned. See https://google.aip.dev/160 for more details.
- order_by (::String) — Field to sort by. See https://google.aip.dev/132#ordering for more details.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::ListDeliveryPipelinesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::ListDeliveryPipelinesRequest.new # Call the list_delivery_pipelines method. result = client.list_delivery_pipelines request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::Deploy::V1::DeliveryPipeline. p item end
#list_job_runs
def list_job_runs(request, options = nil) -> ::Google::Cloud::Deploy::V1::ListJobRunsResponse def list_job_runs(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Deploy::V1::ListJobRunsResponseLists JobRuns in a given project and location.
def list_job_runs(request, options = nil) -> ::Google::Cloud::Deploy::V1::ListJobRunsResponselist_job_runs via a request object, either of type ListJobRunsRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::ListJobRunsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_job_runs(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Deploy::V1::ListJobRunsResponselist_job_runs via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - parent (::String) — Required. The
Rolloutwhich owns this collection ofJobRunobjects. - page_size (::Integer) — Optional. The maximum number of
JobRunobjects to return. The service may return fewer than this value. If unspecified, at most 50JobRunobjects will be returned. The maximum value is 1000; values above 1000 will be set to 1000. - page_token (::String) — Optional. A page token, received from a previous
ListJobRunscall. Provide this to retrieve the subsequent page.When paginating, all other provided parameters match the call that provided the page token.
- filter (::String) — Optional. Filter results to be returned. See https://google.aip.dev/160 for more details.
- order_by (::String) — Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::ListJobRunsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::ListJobRunsRequest.new # Call the list_job_runs method. result = client.list_job_runs request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::Deploy::V1::JobRun. p item end
#list_releases
def list_releases(request, options = nil) -> ::Google::Cloud::Deploy::V1::ListReleasesResponse def list_releases(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Deploy::V1::ListReleasesResponseLists Releases in a given project and location.
def list_releases(request, options = nil) -> ::Google::Cloud::Deploy::V1::ListReleasesResponselist_releases via a request object, either of type ListReleasesRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::ListReleasesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_releases(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Deploy::V1::ListReleasesResponselist_releases via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - parent (::String) — Required. The
DeliveryPipelinewhich owns this collection ofReleaseobjects. - page_size (::Integer) — Optional. The maximum number of
Releaseobjects to return. The service may return fewer than this value. If unspecified, at most 50Releaseobjects will be returned. The maximum value is 1000; values above 1000 will be set to 1000. - page_token (::String) — Optional. A page token, received from a previous
ListReleasescall. Provide this to retrieve the subsequent page.When paginating, all other provided parameters match the call that provided the page token.
- filter (::String) — Optional. Filter releases to be returned. See https://google.aip.dev/160 for more details.
- order_by (::String) — Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::ListReleasesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::ListReleasesRequest.new # Call the list_releases method. result = client.list_releases request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::Deploy::V1::Release. p item end
#list_rollouts
def list_rollouts(request, options = nil) -> ::Google::Cloud::Deploy::V1::ListRolloutsResponse def list_rollouts(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Deploy::V1::ListRolloutsResponseLists Rollouts in a given project and location.
def list_rollouts(request, options = nil) -> ::Google::Cloud::Deploy::V1::ListRolloutsResponselist_rollouts via a request object, either of type ListRolloutsRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::ListRolloutsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_rollouts(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Deploy::V1::ListRolloutsResponselist_rollouts via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - parent (::String) — Required. The
Releasewhich owns this collection ofRolloutobjects. - page_size (::Integer) — Optional. The maximum number of
Rolloutobjects to return. The service may return fewer than this value. If unspecified, at most 50Rolloutobjects will be returned. The maximum value is 1000; values above 1000 will be set to 1000. - page_token (::String) — Optional. A page token, received from a previous
ListRolloutscall. Provide this to retrieve the subsequent page.When paginating, all other provided parameters match the call that provided the page token.
- filter (::String) — Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more details.
- order_by (::String) — Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::ListRolloutsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::ListRolloutsRequest.new # Call the list_rollouts method. result = client.list_rollouts request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::Deploy::V1::Rollout. p item end
#list_targets
def list_targets(request, options = nil) -> ::Google::Cloud::Deploy::V1::ListTargetsResponse def list_targets(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Deploy::V1::ListTargetsResponseLists Targets in a given project and location.
def list_targets(request, options = nil) -> ::Google::Cloud::Deploy::V1::ListTargetsResponselist_targets via a request object, either of type ListTargetsRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::ListTargetsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_targets(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Deploy::V1::ListTargetsResponselist_targets via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - parent (::String) — Required. The parent, which owns this collection of targets. Format must be
projects/{project_id}/locations/{location_name}. - page_size (::Integer) — Optional. The maximum number of
Targetobjects to return. The service may return fewer than this value. If unspecified, at most 50Targetobjects will be returned. The maximum value is 1000; values above 1000 will be set to 1000. - page_token (::String) — Optional. A page token, received from a previous
ListTargetscall. Provide this to retrieve the subsequent page.When paginating, all other provided parameters match the call that provided the page token.
- filter (::String) — Optional. Filter targets to be returned. See https://google.aip.dev/160 for more details.
- order_by (::String) — Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::ListTargetsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::ListTargetsRequest.new # Call the list_targets method. result = client.list_targets request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::Deploy::V1::Target. p item end
#location_client
def location_client() -> Google::Cloud::Location::Locations::Rest::ClientGet the associated client for mix-in of the Locations.
- (Google::Cloud::Location::Locations::Rest::Client)
#operations_client
def operations_client() -> ::Google::Cloud::Deploy::V1::CloudDeploy::Rest::OperationsGet the associated client for long-running operations.
#retry_job
def retry_job(request, options = nil) -> ::Google::Cloud::Deploy::V1::RetryJobResponse def retry_job(rollout: nil, phase_id: nil, job_id: nil) -> ::Google::Cloud::Deploy::V1::RetryJobResponseRetries the specified Job in a Rollout.
def retry_job(request, options = nil) -> ::Google::Cloud::Deploy::V1::RetryJobResponseretry_job via a request object, either of type RetryJobRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::RetryJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def retry_job(rollout: nil, phase_id: nil, job_id: nil) -> ::Google::Cloud::Deploy::V1::RetryJobResponseretry_job via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - rollout (::String) — Required. Name of the Rollout. Format is
projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}. - phase_id (::String) — Required. The phase ID the Job to retry belongs to.
- job_id (::String) — Required. The job ID for the Job to retry.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::RetryJobResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::RetryJobRequest.new # Call the retry_job method. result = client.retry_job request # The returned object is of type Google::Cloud::Deploy::V1::RetryJobResponse. p result
#rollback_target
def rollback_target(request, options = nil) -> ::Google::Cloud::Deploy::V1::RollbackTargetResponse def rollback_target(name: nil, target_id: nil, rollout_id: nil, release_id: nil, rollout_to_roll_back: nil, rollback_config: nil, validate_only: nil) -> ::Google::Cloud::Deploy::V1::RollbackTargetResponseCreates a Rollout to roll back the specified target.
def rollback_target(request, options = nil) -> ::Google::Cloud::Deploy::V1::RollbackTargetResponserollback_target via a request object, either of type RollbackTargetRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::RollbackTargetRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def rollback_target(name: nil, target_id: nil, rollout_id: nil, release_id: nil, rollout_to_roll_back: nil, rollback_config: nil, validate_only: nil) -> ::Google::Cloud::Deploy::V1::RollbackTargetResponserollback_target via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - name (::String) — Required. The
DeliveryPipelinefor which the rollbackRolloutshould be created. Format should beprojects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}. - target_id (::String) — Required. ID of the
Targetthat is being rolled back. - rollout_id (::String) — Required. ID of the rollback
Rolloutto create. - release_id (::String) — Optional. ID of the
Releaseto roll back to. If this isn't specified, the previous successfulRolloutto the specified target will be used to determine theRelease. - rollout_to_roll_back (::String) — Optional. If provided, this must be the latest
Rolloutthat is on theTarget. - rollback_config (::Google::Cloud::Deploy::V1::RollbackTargetConfig, ::Hash) — Optional. Configs for the rollback
Rollout. - validate_only (::Boolean) — Optional. If set to true, the request is validated and the user is provided with a
RollbackTargetResponse.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::RollbackTargetResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::RollbackTargetRequest.new # Call the rollback_target method. result = client.rollback_target request # The returned object is of type Google::Cloud::Deploy::V1::RollbackTargetResponse. p result
#terminate_job_run
def terminate_job_run(request, options = nil) -> ::Google::Cloud::Deploy::V1::TerminateJobRunResponse def terminate_job_run(name: nil) -> ::Google::Cloud::Deploy::V1::TerminateJobRunResponseTerminates a Job Run in a given project and location.
def terminate_job_run(request, options = nil) -> ::Google::Cloud::Deploy::V1::TerminateJobRunResponseterminate_job_run via a request object, either of type TerminateJobRunRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::TerminateJobRunRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def terminate_job_run(name: nil) -> ::Google::Cloud::Deploy::V1::TerminateJobRunResponseterminate_job_run via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - name (::String) — Required. Name of the
JobRun. Format must beprojects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Deploy::V1::TerminateJobRunResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::TerminateJobRunRequest.new # Call the terminate_job_run method. result = client.terminate_job_run request # The returned object is of type Google::Cloud::Deploy::V1::TerminateJobRunResponse. p result
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_automation
def update_automation(request, options = nil) -> ::Gapic::Operation def update_automation(update_mask: nil, automation: nil, request_id: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::OperationUpdates the parameters of a single Automation resource.
def update_automation(request, options = nil) -> ::Gapic::Operationupdate_automation via a request object, either of type UpdateAutomationRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::UpdateAutomationRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_automation(update_mask: nil, automation: nil, request_id: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operationupdate_automation via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Field mask is used to specify the fields to be overwritten in the
Automationresource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it's in the mask. If the user doesn't provide a mask then all fields are overwritten. - automation (::Google::Cloud::Deploy::V1::Automation, ::Hash) — Required. The
Automationto update. - request_id (::String) — Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- allow_missing (::Boolean) — Optional. If set to true, updating a
Automationthat does not exist will result in the creation of a newAutomation. - validate_only (::Boolean) — Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::UpdateAutomationRequest.new # Call the update_automation method. result = client.update_automation request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#update_custom_target_type
def update_custom_target_type(request, options = nil) -> ::Gapic::Operation def update_custom_target_type(update_mask: nil, custom_target_type: nil, request_id: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::OperationUpdates a single CustomTargetType.
def update_custom_target_type(request, options = nil) -> ::Gapic::Operationupdate_custom_target_type via a request object, either of type UpdateCustomTargetTypeRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::UpdateCustomTargetTypeRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_custom_target_type(update_mask: nil, custom_target_type: nil, request_id: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operationupdate_custom_target_type via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Field mask is used to specify the fields to be overwritten in the
CustomTargetTyperesource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it's in the mask. If the user doesn't provide a mask then all fields are overwritten. - custom_target_type (::Google::Cloud::Deploy::V1::CustomTargetType, ::Hash) — Required. The
CustomTargetTypeto update. - request_id (::String) — Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- allow_missing (::Boolean) — Optional. If set to true, updating a
CustomTargetTypethat does not exist will result in the creation of a newCustomTargetType. - validate_only (::Boolean) — Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::UpdateCustomTargetTypeRequest.new # Call the update_custom_target_type method. result = client.update_custom_target_type request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#update_delivery_pipeline
def update_delivery_pipeline(request, options = nil) -> ::Gapic::Operation def update_delivery_pipeline(update_mask: nil, delivery_pipeline: nil, request_id: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::OperationUpdates the parameters of a single DeliveryPipeline.
def update_delivery_pipeline(request, options = nil) -> ::Gapic::Operationupdate_delivery_pipeline via a request object, either of type UpdateDeliveryPipelineRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::UpdateDeliveryPipelineRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_delivery_pipeline(update_mask: nil, delivery_pipeline: nil, request_id: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operationupdate_delivery_pipeline via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Field mask is used to specify the fields to be overwritten in the
DeliveryPipelineresource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it's in the mask. If the user doesn't provide a mask then all fields are overwritten. - delivery_pipeline (::Google::Cloud::Deploy::V1::DeliveryPipeline, ::Hash) — Required. The
DeliveryPipelineto update. - request_id (::String) — Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- allow_missing (::Boolean) — Optional. If set to true, updating a
DeliveryPipelinethat does not exist will result in the creation of a newDeliveryPipeline. - validate_only (::Boolean) — Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::UpdateDeliveryPipelineRequest.new # Call the update_delivery_pipeline method. result = client.update_delivery_pipeline request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#update_target
def update_target(request, options = nil) -> ::Gapic::Operation def update_target(update_mask: nil, target: nil, request_id: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::OperationUpdates the parameters of a single Target.
def update_target(request, options = nil) -> ::Gapic::Operationupdate_target via a request object, either of type UpdateTargetRequest or an equivalent Hash. - request (::Google::Cloud::Deploy::V1::UpdateTargetRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_target(update_mask: nil, target: nil, request_id: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operationupdate_target via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). - update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Field mask is used to specify the fields to be overwritten in the Target resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it's in the mask. If the user doesn't provide a mask then all fields are overwritten.
- target (::Google::Cloud::Deploy::V1::Target, ::Hash) — Required. The
Targetto update. - request_id (::String) — Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- allow_missing (::Boolean) — Optional. If set to true, updating a
Targetthat does not exist will result in the creation of a newTarget. - validate_only (::Boolean) — Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/deploy/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Deploy::V1::UpdateTargetRequest.new # Call the update_target method. result = client.update_target request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end