lib/google/apis/clouddeploy_v1/service.rb in google-apis-clouddeploy_v1-0.30.0 vs lib/google/apis/clouddeploy_v1/service.rb in google-apis-clouddeploy_v1-0.31.0
- old
+ new
@@ -450,9 +450,44 @@
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 `Rollout` to roll back the specified target.
+ # @param [String] name
+ # Required. The `DeliveryPipeline` for which the rollback `Rollout` should be
+ # created. Format should be projects/`project_id`/locations/`location_name`/
+ # deliveryPipelines/`pipeline_name`.
+ # @param [Google::Apis::ClouddeployV1::RollbackTargetRequest] rollback_target_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::RollbackTargetResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::ClouddeployV1::RollbackTargetResponse]
+ #
+ # @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 rollback_delivery_pipeline_target(name, rollback_target_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'v1/{+name}:rollbackTarget', options)
+ command.request_representation = Google::Apis::ClouddeployV1::RollbackTargetRequest::Representation
+ command.request_object = rollback_target_request_object
+ command.response_representation = Google::Apis::ClouddeployV1::RollbackTargetResponse::Representation
+ command.response_class = Google::Apis::ClouddeployV1::RollbackTargetResponse
+ 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
+
# Sets the access control policy on the specified resource. Replaces any
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
# PERMISSION_DENIED` errors.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified. See [Resource