lib/google/apis/run_v2/service.rb in google-apis-run_v2-0.60.0 vs lib/google/apis/run_v2/service.rb in google-apis-run_v2-0.61.0

- old
+ new

@@ -52,10 +52,114 @@ client_name: 'google-apis-run_v2', client_version: Google::Apis::RunV2::GEM_VERSION) @batch_path = 'batch' end + # Export image for a given resource. + # @param [String] name + # Required. The name of the resource of which image metadata should be exported. + # Format: `projects/`project_id_or_number`/locations/`location`/services/` + # service`/revisions/`revision`` for Revision `projects/`project_id_or_number`/ + # locations/`location`/jobs/`job`/executions/`execution`` for Execution + # @param [Google::Apis::RunV2::GoogleCloudRunV2ExportImageRequest] google_cloud_run_v2_export_image_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::GoogleCloudRunV2ExportImageResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV2::GoogleCloudRunV2ExportImageResponse] + # + # @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 export_project_location_image(name, google_cloud_run_v2_export_image_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+name}:exportImage', options) + command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2ExportImageRequest::Representation + command.request_object = google_cloud_run_v2_export_image_request_object + command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ExportImageResponse::Representation + command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ExportImageResponse + 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 + + # Export image metadata for a given resource. + # @param [String] name + # Required. The name of the resource of which image metadata should be exported. + # Format: `projects/`project_id_or_number`/locations/`location`/services/` + # service`/revisions/`revision`` for Revision `projects/`project_id_or_number`/ + # locations/`location`/jobs/`job`/executions/`execution`` for 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::GoogleCloudRunV2Metadata] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV2::GoogleCloudRunV2Metadata] + # + # @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 export_project_location_image_metadata(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}:exportImageMetadata', options) + command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Metadata::Representation + command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Metadata + 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 + + # Export generated customer metadata for a given resource. + # @param [String] name + # Required. The name of the resource of which metadata should be exported. + # Format: `projects/`project_id_or_number`/locations/`location`/services/` + # service`` for Service `projects/`project_id_or_number`/locations/`location`/ + # services/`service`/revisions/`revision`` for Revision `projects/` + # project_id_or_number`/locations/`location`/jobs/`job`/executions/`execution`` + # for 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::GoogleCloudRunV2Metadata] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV2::GoogleCloudRunV2Metadata] + # + # @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 export_project_location_metadata(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}:exportMetadata', options) + command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Metadata::Representation + command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Metadata + 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 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. @@ -475,10 +579,47 @@ command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + # Read the status of an image export operation. + # @param [String] name + # Required. The name of the resource of which image export operation status has + # to be fetched. Format: `projects/`project_id_or_number`/locations/`location`/ + # services/`service`/revisions/`revision`` for Revision `projects/` + # project_id_or_number`/locations/`location`/jobs/`job`/executions/`execution`` + # for Execution + # @param [String] operation_id + # Required. The operation id returned from ExportImage. + # @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::GoogleCloudRunV2ExportStatusResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse] + # + # @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 export_project_location_job_execution_status(name, operation_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}/{+operationId}:exportStatus', options) + command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse::Representation + command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse + command.params['name'] = name unless name.nil? + command.params['operationId'] = operation_id unless operation_id.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 an Execution. # @param [String] name # Required. The full name of the Execution. Format: `projects/`project`/ # locations/`location`/jobs/`job`/executions/`execution``, where ``project`` can # be project id or number. @@ -1130,9 +1271,46 @@ 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 + + # Read the status of an image export operation. + # @param [String] name + # Required. The name of the resource of which image export operation status has + # to be fetched. Format: `projects/`project_id_or_number`/locations/`location`/ + # services/`service`/revisions/`revision`` for Revision `projects/` + # project_id_or_number`/locations/`location`/jobs/`job`/executions/`execution`` + # for Execution + # @param [String] operation_id + # Required. The operation id returned from ExportImage. + # @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::GoogleCloudRunV2ExportStatusResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse] + # + # @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 export_project_location_service_revision_status(name, operation_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}/{+operationId}:exportStatus', options) + command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse::Representation + command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse + command.params['name'] = name unless name.nil? + command.params['operationId'] = operation_id unless operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end