lib/google/apis/run_v2/service.rb in google-apis-run_v2-0.10.0 vs lib/google/apis/run_v2/service.rb in google-apis-run_v2-0.11.0
- old
+ new
@@ -50,9 +50,548 @@
client_name: 'google-apis-run_v2',
client_version: Google::Apis::RunV2::GEM_VERSION)
@batch_path = 'batch'
end
+ # Create a Job.
+ # @param [String] parent
+ # Required. The location and project in which this Job should be created. Format:
+ # projects/`projectnumber`/locations/`location`
+ # @param [Google::Apis::RunV2::GoogleCloudRunV2Job] google_cloud_run_v2_job_object
+ # @param [String] job_id
+ # Required. The unique identifier for the Job. The name of the job becomes `
+ # parent`/jobs/`job_id`.
+ # @param [Boolean] validate_only
+ # Indicates that the request should be validated and default values populated,
+ # without persisting the request or creating any resources.
+ # @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::GoogleLongrunningOperation] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::RunV2::GoogleLongrunningOperation]
+ #
+ # @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 create_project_location_job(parent, google_cloud_run_v2_job_object = nil, job_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'v2/{+parent}/jobs', options)
+ command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2Job::Representation
+ command.request_object = google_cloud_run_v2_job_object
+ command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
+ command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
+ command.params['parent'] = parent unless parent.nil?
+ command.query['jobId'] = job_id unless job_id.nil?
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
+ # Deletes a Job.
+ # @param [String] name
+ # Required. The full name of the Job. Format: projects/`projectnumber`/locations/
+ # `location`/jobs/`job`
+ # @param [String] etag
+ # A system-generated fingerprint for this version of the resource. May be used
+ # to detect modification conflict during updates.
+ # @param [Boolean] force
+ # If set to true, the Job and its Executions will be deleted no matter whether
+ # any Executions are still running or not. If set to false or unset, the Job and
+ # its Executions can only be deleted if there are no running Executions. Any
+ # running Execution will fail the deletion.
+ # @param [Boolean] validate_only
+ # Indicates that the request should be validated without actually deleting any
+ # resources.
+ # @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::GoogleLongrunningOperation] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::RunV2::GoogleLongrunningOperation]
+ #
+ # @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 delete_project_location_job(name, etag: nil, force: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:delete, 'v2/{+name}', options)
+ command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
+ command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
+ command.params['name'] = name unless name.nil?
+ command.query['etag'] = etag unless etag.nil?
+ command.query['force'] = force unless force.nil?
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
+ # Gets information about a Job.
+ # @param [String] name
+ # Required. The full name of the Job. Format: projects/`projectnumber`/locations/
+ # `location`/jobs/`job`
+ # @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::GoogleCloudRunV2Job] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2Job]
+ #
+ # @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 get_project_location_job(name, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v2/{+name}', options)
+ command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Job::Representation
+ command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Job
+ 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
+
+ # Get the IAM Access Control policy currently in effect for the given Job. This
+ # result does not include any inherited policies.
+ # @param [String] resource
+ # REQUIRED: The resource for which the policy is being requested. See the
+ # operation documentation for the appropriate value for this field.
+ # @param [Fixnum] options_requested_policy_version
+ # Optional. The maximum policy version that will be used to format the policy.
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
+ # rejected. Requests for policies with any conditional role bindings must
+ # specify version 3. Policies with no conditional role bindings may specify any
+ # valid value or leave the field unset. The policy in the response might use the
+ # policy version that you specified, or it might use a lower policy version. For
+ # example, if you specify version 3, but the policy has no conditional role
+ # bindings, the response uses version 1. To learn which resources support
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
+ # google.com/iam/help/conditions/resource-policies).
+ # @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::GoogleIamV1Policy] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::RunV2::GoogleIamV1Policy]
+ #
+ # @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 get_project_location_job_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v2/{+resource}:getIamPolicy', options)
+ command.response_representation = Google::Apis::RunV2::GoogleIamV1Policy::Representation
+ command.response_class = Google::Apis::RunV2::GoogleIamV1Policy
+ command.params['resource'] = resource unless resource.nil?
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
+ # List Jobs.
+ # @param [String] parent
+ # Required. The location and project to list resources on. Format: projects/`
+ # projectnumber`/locations/`location`
+ # @param [Fixnum] page_size
+ # Maximum number of Jobs to return in this call.
+ # @param [String] page_token
+ # A page token received from a previous call to ListJobs. All other parameters
+ # must match.
+ # @param [Boolean] show_deleted
+ # If true, returns deleted (but unexpired) resources along with active ones.
+ # @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::GoogleCloudRunV2ListJobsResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2ListJobsResponse]
+ #
+ # @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 list_project_location_jobs(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v2/{+parent}/jobs', options)
+ command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ListJobsResponse::Representation
+ command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ListJobsResponse
+ command.params['parent'] = parent unless parent.nil?
+ command.query['pageSize'] = page_size unless page_size.nil?
+ command.query['pageToken'] = page_token unless page_token.nil?
+ command.query['showDeleted'] = show_deleted unless show_deleted.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
+ # Updates a Job.
+ # @param [String] name
+ # The fully qualified name of this Job. Format: projects/`project`/locations/`
+ # location`/jobs/`job`
+ # @param [Google::Apis::RunV2::GoogleCloudRunV2Job] google_cloud_run_v2_job_object
+ # @param [Boolean] allow_missing
+ # If set to true, and if the Job does not exist, it will create a new one.
+ # Caller must have both create and update permissions for this call if this is
+ # set to true.
+ # @param [String] update_mask
+ # The list of fields to be updated.
+ # @param [Boolean] validate_only
+ # Indicates that the request should be validated and default values populated,
+ # without persisting the request or updating any resources.
+ # @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::GoogleLongrunningOperation] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::RunV2::GoogleLongrunningOperation]
+ #
+ # @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 patch_project_location_job(name, google_cloud_run_v2_job_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:patch, 'v2/{+name}', options)
+ command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2Job::Representation
+ command.request_object = google_cloud_run_v2_job_object
+ command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
+ command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
+ command.params['name'] = name unless name.nil?
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
+ command.query['updateMask'] = update_mask unless update_mask.nil?
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
+ # Triggers creation of a new Execution of this Job.
+ # @param [String] name
+ # Required. The full name of the Job. Format: projects/`projectnumber`/locations/
+ # `location`/jobs/`job`
+ # @param [Google::Apis::RunV2::GoogleCloudRunV2RunJobRequest] google_cloud_run_v2_run_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::RunV2::GoogleLongrunningOperation] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::RunV2::GoogleLongrunningOperation]
+ #
+ # @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 run_project_location_job(name, google_cloud_run_v2_run_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'v2/{+name}:run', options)
+ command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2RunJobRequest::Representation
+ command.request_object = google_cloud_run_v2_run_job_request_object
+ command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
+ command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
+ 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 IAM Access control policy for the specified Job. Overwrites any
+ # existing policy.
+ # @param [String] resource
+ # REQUIRED: The resource for which the policy is being specified. See the
+ # operation documentation for the appropriate value for this field.
+ # @param [Google::Apis::RunV2::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_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::GoogleIamV1Policy] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::RunV2::GoogleIamV1Policy]
+ #
+ # @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 set_project_location_job_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', options)
+ command.request_representation = Google::Apis::RunV2::GoogleIamV1SetIamPolicyRequest::Representation
+ command.request_object = google_iam_v1_set_iam_policy_request_object
+ command.response_representation = Google::Apis::RunV2::GoogleIamV1Policy::Representation
+ command.response_class = Google::Apis::RunV2::GoogleIamV1Policy
+ command.params['resource'] = resource unless resource.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
+ # Returns permissions that a caller has on the specified Project. There are no
+ # permissions required for making this API call.
+ # @param [String] resource
+ # REQUIRED: The resource for which the policy detail is being requested. See the
+ # operation documentation for the appropriate value for this field.
+ # @param [Google::Apis::RunV2::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_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::GoogleIamV1TestIamPermissionsResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse]
+ #
+ # @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 test_project_location_job_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', options)
+ command.request_representation = Google::Apis::RunV2::GoogleIamV1TestIamPermissionsRequest::Representation
+ command.request_object = google_iam_v1_test_iam_permissions_request_object
+ command.response_representation = Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse::Representation
+ command.response_class = Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse
+ command.params['resource'] = resource unless resource.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
+ # Delete an Execution.
+ # @param [String] name
+ # Required. The name of the Execution to delete. Format: projects/`project`/
+ # locations/`location`/jobs/`job`/executions/`execution`
+ # @param [String] etag
+ # A system-generated fingerprint for this version of the resource. This may be
+ # used to detect modification conflict during updates.
+ # @param [Boolean] validate_only
+ # Indicates that the request should be validated without actually deleting any
+ # resources.
+ # @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::GoogleLongrunningOperation] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::RunV2::GoogleLongrunningOperation]
+ #
+ # @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 delete_project_location_job_execution(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:delete, 'v2/{+name}', options)
+ command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
+ command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
+ command.params['name'] = name unless name.nil?
+ command.query['etag'] = etag unless etag.nil?
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
+ # Gets information about a Execution.
+ # @param [String] name
+ # Required. The full name of the Execution. Format: projects/`project`/locations/
+ # `location`/jobs/`job`/executions/`execution`
+ # @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::GoogleCloudRunV2Execution] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2Execution]
+ #
+ # @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 get_project_location_job_execution(name, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v2/{+name}', options)
+ command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Execution::Representation
+ command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Execution
+ 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
+
+ # List Executions from a Job.
+ # @param [String] parent
+ # Required. The Execution from which the Executions should be listed. To list
+ # all Executions across Jobs, use "-" instead of Job name. Format: projects/`
+ # project`/locations/`location`/jobs/`job`
+ # @param [Fixnum] page_size
+ # Maximum number of Executions to return in this call.
+ # @param [String] page_token
+ # A page token received from a previous call to ListExecutions. All other
+ # parameters must match.
+ # @param [Boolean] show_deleted
+ # If true, returns deleted (but unexpired) resources along with active ones.
+ # @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::GoogleCloudRunV2ListExecutionsResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2ListExecutionsResponse]
+ #
+ # @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 list_project_location_job_executions(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v2/{+parent}/executions', options)
+ command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ListExecutionsResponse::Representation
+ command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ListExecutionsResponse
+ command.params['parent'] = parent unless parent.nil?
+ command.query['pageSize'] = page_size unless page_size.nil?
+ command.query['pageToken'] = page_token unless page_token.nil?
+ command.query['showDeleted'] = show_deleted unless show_deleted.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
+ # Gets information about a Task.
+ # @param [String] name
+ # Required. The full name of the Task. Format: projects/`project`/locations/`
+ # location`/jobs/`job`/executions/`execution`/tasks/`task`
+ # @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::GoogleCloudRunV2Task] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2Task]
+ #
+ # @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 get_project_location_job_execution_task(name, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v2/{+name}', options)
+ command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Task::Representation
+ command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Task
+ 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
+
+ # List Tasks from an Execution of a Job.
+ # @param [String] parent
+ # Required. The Execution from which the Tasks should be listed. To list all
+ # Tasks across Executions of a Job, use "-" instead of Execution name. To list
+ # all Tasks across Jobs, use "-" instead of Job name. Format: projects/`project`/
+ # locations/`location`/jobs/`job`/executions/`execution`
+ # @param [Fixnum] page_size
+ # Maximum number of Tasks to return in this call.
+ # @param [String] page_token
+ # A page token received from a previous call to ListTasks. All other parameters
+ # must match.
+ # @param [Boolean] show_deleted
+ # If true, returns deleted (but unexpired) resources along with active ones.
+ # @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::GoogleCloudRunV2ListTasksResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2ListTasksResponse]
+ #
+ # @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 list_project_location_job_execution_tasks(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v2/{+parent}/tasks', options)
+ command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ListTasksResponse::Representation
+ command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ListTasksResponse
+ command.params['parent'] = parent unless parent.nil?
+ command.query['pageSize'] = page_size unless page_size.nil?
+ command.query['pageToken'] = page_token unless page_token.nil?
+ command.query['showDeleted'] = show_deleted unless show_deleted.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
# Deletes a long-running operation. This method indicates that the client is no
# longer interested in the operation result. It does not cancel the operation.
# If the server doesn't support this method, it returns `google.rpc.Code.
# UNIMPLEMENTED`.
# @param [String] name