lib/google/apis/run_v2/service.rb in google-apis-run_v2-0.69.0 vs lib/google/apis/run_v2/service.rb in google-apis-run_v2-0.70.0
- old
+ new
@@ -188,9 +188,44 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
+ # Submits a build in a given project.
+ # @param [String] parent
+ # Required. The project and location to build in. Location must be a region, e.g.
+ # , 'us-central1' or 'global' if the global builder is to be used. Format:
+ # projects/`project`/locations/`location`
+ # @param [Google::Apis::RunV2::GoogleCloudRunV2SubmitBuildRequest] google_cloud_run_v2_submit_build_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::RunV2::GoogleCloudRunV2SubmitBuildResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2SubmitBuildResponse]
+ #
+ # @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 submit_project_location_build(parent, google_cloud_run_v2_submit_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'v2/{+parent}/builds:submit', options)
+ command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2SubmitBuildRequest::Representation
+ command.request_object = google_cloud_run_v2_submit_build_request_object
+ command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2SubmitBuildResponse::Representation
+ command.response_class = Google::Apis::RunV2::GoogleCloudRunV2SubmitBuildResponse
+ command.params['parent'] = parent unless parent.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 Job.
# @param [String] parent
# Required. The location and project in which this Job should be created. Format:
# projects/`project`/locations/`location`, where `project` can be project id or
# number.