lib/google/apis/clouddeploy_v1/service.rb in google-apis-clouddeploy_v1-0.22.0 vs lib/google/apis/clouddeploy_v1/service.rb in google-apis-clouddeploy_v1-0.23.0
- old
+ new
@@ -696,10 +696,45 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
+ # Advances a Rollout in a given project and location.
+ # @param [String] name
+ # Required. Name of the Rollout. Format is projects/`project`/locations/`
+ # location`/deliveryPipelines/`deliveryPipeline`/ releases/`release`/rollouts/`
+ # rollout`.
+ # @param [Google::Apis::ClouddeployV1::AdvanceRolloutRequest] advance_rollout_request_object
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::ClouddeployV1::AdvanceRolloutResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::ClouddeployV1::AdvanceRolloutResponse]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def advance_rollout(name, advance_rollout_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'v1/{+name}:advance', options)
+ command.request_representation = Google::Apis::ClouddeployV1::AdvanceRolloutRequest::Representation
+ command.request_object = advance_rollout_request_object
+ command.response_representation = Google::Apis::ClouddeployV1::AdvanceRolloutResponse::Representation
+ command.response_class = Google::Apis::ClouddeployV1::AdvanceRolloutResponse
+ command.params['name'] = name unless name.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
# Approves a Rollout.
# @param [String] name
# Required. Name of the Rollout. Format is projects/`project`/locations/`
# location`/deliveryPipelines/`deliveryPipeline`/ releases/`release`/rollouts/`
# rollout`.
@@ -731,10 +766,45 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
+ # Cancels a Rollout in a given project and location.
+ # @param [String] name
+ # Required. Name of the Rollout. Format is projects/`project`/locations/`
+ # location`/deliveryPipelines/`deliveryPipeline`/ releases/`release`/rollouts/`
+ # rollout`.
+ # @param [Google::Apis::ClouddeployV1::CancelRolloutRequest] cancel_rollout_request_object
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::ClouddeployV1::CancelRolloutResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::ClouddeployV1::CancelRolloutResponse]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def cancel_rollout(name, cancel_rollout_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
+ command.request_representation = Google::Apis::ClouddeployV1::CancelRolloutRequest::Representation
+ command.request_object = cancel_rollout_request_object
+ command.response_representation = Google::Apis::ClouddeployV1::CancelRolloutResponse::Representation
+ command.response_class = Google::Apis::ClouddeployV1::CancelRolloutResponse
+ command.params['name'] = name unless name.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
# Creates a new Rollout in a given project and location.
# @param [String] parent
# Required. The parent collection in which the `Rollout` should be created.
# Format should be projects/`project_id`/locations/`location_name`/
# deliveryPipelines/`pipeline_name`/releases/`release_name`.
@@ -821,10 +891,45 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
+ # Ignores the specified Job in a Rollout.
+ # @param [String] rollout
+ # Required. Name of the Rollout. Format is projects/`project`/locations/`
+ # location`/deliveryPipelines/`deliveryPipeline`/ releases/`release`/rollouts/`
+ # rollout`.
+ # @param [Google::Apis::ClouddeployV1::IgnoreJobRequest] ignore_job_request_object
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::ClouddeployV1::IgnoreJobResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::ClouddeployV1::IgnoreJobResponse]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def ignore_rollout_job(rollout, ignore_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'v1/{+rollout}:ignoreJob', options)
+ command.request_representation = Google::Apis::ClouddeployV1::IgnoreJobRequest::Representation
+ command.request_object = ignore_job_request_object
+ command.response_representation = Google::Apis::ClouddeployV1::IgnoreJobResponse::Representation
+ command.response_class = Google::Apis::ClouddeployV1::IgnoreJobResponse
+ command.params['rollout'] = rollout unless rollout.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
# Lists Rollouts in a given project and location.
# @param [String] parent
# Required. The `Release` which owns this collection of `Rollout` objects.
# @param [String] filter
# Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for
@@ -985,10 +1090,45 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
+ # Terminates a Job Run in a given project and location.
+ # @param [String] name
+ # Required. Name of the `JobRun`. Format must be projects/`project`/locations/`
+ # location`/deliveryPipelines/`deliveryPipeline`/ releases/`release`/rollouts/`
+ # rollout`/jobRuns/`jobRun`.
+ # @param [Google::Apis::ClouddeployV1::TerminateJobRunRequest] terminate_job_run_request_object
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::ClouddeployV1::TerminateJobRunResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::ClouddeployV1::TerminateJobRunResponse]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def terminate_job_run(name, terminate_job_run_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'v1/{+name}:terminate', options)
+ command.request_representation = Google::Apis::ClouddeployV1::TerminateJobRunRequest::Representation
+ command.request_object = terminate_job_run_request_object
+ command.response_representation = Google::Apis::ClouddeployV1::TerminateJobRunResponse::Representation
+ command.response_class = Google::Apis::ClouddeployV1::TerminateJobRunResponse
+ command.params['name'] = name unless name.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
# Starts asynchronous cancellation on a long-running operation. The server makes
# a best effort to cancel the operation, but success is not guaranteed. If the
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
# Clients can use Operations.GetOperation or other methods to check whether the
# cancellation succeeded or whether the operation completed despite cancellation.
@@ -1090,16 +1230,10 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the server
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
- # binding allows API services to override the binding to use different resource
- # name schemes, such as `users/*/operations`. To override the binding, API
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
- # service configuration. For backwards compatibility, the default name includes
- # the operations collection id, however overriding users must ensure the name
- # binding is the parent resource, without the operations collection id.
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
# The standard list filter.
# @param [Fixnum] page_size