Collection: transferOperations

Resource: TransferOperation

A description of the execution of a transfer.

JSON representation
{
  "name": string,
  "projectId": string,
  "transferSpec": {
    object(TransferSpec)
  },
  "startTime": string,
  "endTime": string,
  "status": enum(Status),
  "counters": {
    object(TransferCounters)
  },
  "errorBreakdowns": [
    {
      object(ErrorSummary)
    }
  ],
  "transferJobName": string,
}
Field name Type Description
name string A globally unique ID assigned by the system.
projectId string The ID of the Google Cloud Platform Console project that owns the operation. Required.
transferSpec object(TransferSpec) Transfer specification. Required.
startTime string
(Timestamp format)

Start time of this transfer execution.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

endTime string
(Timestamp format)

End time of this transfer execution.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

status enum(Status) Status of the transfer operation.
counters object(TransferCounters) Information about the progress of the transfer operation.
errorBreakdowns[] object(ErrorSummary) Summarizes errors encountered with sample error log entries.
transferJobName string The name of the transfer job that triggers this transfer operation.

Status

The status of a TransferOperation.

Enum value Description
STATUS_UNSPECIFIED Zero is an illegal value.
IN_PROGRESS In progress.
PAUSED Paused.
SUCCESS Completed successfully.
FAILED Terminated due to an unrecoverable failure.
ABORTED Aborted by the user.

TransferCounters

A collection of counters that report the progress of a transfer operation.

JSON representation
{
  "objectsFoundFromSource": string,
  "bytesFoundFromSource": string,
  "objectsFoundOnlyFromSink": string,
  "bytesFoundOnlyFromSink": string,
  "objectsFromSourceSkippedBySync": string,
  "bytesFromSourceSkippedBySync": string,
  "objectsCopiedToSink": string,
  "bytesCopiedToSink": string,
  "objectsDeletedFromSource": string,
  "bytesDeletedFromSource": string,
  "objectsDeletedFromSink": string,
  "bytesDeletedFromSink": string,
  "objectsFromSourceFailed": string,
  "bytesFromSourceFailed": string,
  "objectsFailedToDeleteFromSink": string,
  "bytesFailedToDeleteFromSink": string,
}
Field name Type Description
objectsFoundFromSource string
(int64 format)
Objects found in the data source that are scheduled to be transferred, which will be copied, excluded based on conditions, or skipped due to failures.
bytesFoundFromSource string
(int64 format)
Bytes found in the data source that are scheduled to be transferred, which will be copied, excluded based on conditions, or skipped due to failures.
objectsFoundOnlyFromSink string
(int64 format)
Objects found only in the data sink that are scheduled to be deleted.
bytesFoundOnlyFromSink string
(int64 format)
Bytes found only in the data sink that are scheduled to be deleted.
objectsFromSourceSkippedBySync string
(int64 format)
Objects in the data source that are not transferred because they already exist in the data sink.
bytesFromSourceSkippedBySync string
(int64 format)
Bytes in the data source that are not transferred because they already exist in the data sink.
objectsCopiedToSink string
(int64 format)
Objects that are copied to the data sink.
bytesCopiedToSink string
(int64 format)
Bytes that are copied to the data sink.
objectsDeletedFromSource string
(int64 format)
Objects that are deleted from the data source.
bytesDeletedFromSource string
(int64 format)
Bytes that are deleted from the data source.
objectsDeletedFromSink string
(int64 format)
Objects that are deleted from the data sink.
bytesDeletedFromSink string
(int64 format)
Bytes that are deleted from the data sink.
objectsFromSourceFailed string
(int64 format)
Objects in the data source that failed during the transfer.
bytesFromSourceFailed string
(int64 format)
Bytes in the data source that failed during the transfer.
objectsFailedToDeleteFromSink string
(int64 format)
Objects that failed to be deleted from the data sink.
bytesFailedToDeleteFromSink string
(int64 format)
Bytes that failed to be deleted from the data sink.

ErrorSummary

A summary of errors by error code, plus a count and sample error log entries.

JSON representation
{
  "errorCode": enum(Code),
  "errorCount": string,
  "errorLogEntries": [
    {
      object(ErrorLogEntry)
    }
  ],
}
Field name Type Description
errorCode enum(Code) Required.
errorCount string
(int64 format)
Count of this type of error. Required.
errorLogEntries[] object(ErrorLogEntry) Error samples.

Code

The canonical error codes for Google APIs.

Enum value Description
OK

Not an error; returned on success

HTTP Mapping: 200 OK

CANCELLED

The operation was cancelled, typically by the caller.

HTTP Mapping: 499 Client Closed Request

UNKNOWN

Unknown error. For example, this error may be returned when a Status value received from another address space belongs to an error space that is not known in this address space. Also errors raised by APIs that do not return enough error information may be converted to this error.

HTTP Mapping: 500 Internal Server Error

INVALID_ARGUMENT

The client specified an invalid argument. Note that this differs from FAILED_PRECONDITION. INVALID_ARGUMENT indicates arguments that are problematic regardless of the state of the system (e.g., a malformed file name).

HTTP Mapping: 400 Bad Request

DEADLINE_EXCEEDED

The deadline expired before the operation could complete. For operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire.

HTTP Mapping: 504 Gateway Timeout

NOT_FOUND

Some requested entity (e.g., file or directory) was not found. For privacy reasons, this code may be returned when the client does not have the access rights to the entity, though such usage is discouraged.

HTTP Mapping: 404 Not Found

ALREADY_EXISTS

The entity that a client attempted to create (e.g., file or directory) already exists.

HTTP Mapping: 409 Conflict

PERMISSION_DENIED

The caller does not have permission to execute the specified operation. PERMISSION_DENIED must not be used for rejections caused by exhausting some resource (use RESOURCE_EXHAUSTED instead for those errors). PERMISSION_DENIED must not be used if the caller can not be identified (use UNAUTHENTICATED instead for those errors).

HTTP Mapping: 403 Forbidden

UNAUTHENTICATED

The request does not have valid authentication credentials for the operation.

HTTP Mapping: 401 Unauthorized

RESOURCE_EXHAUSTED

Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space.

HTTP Mapping: 429 Too Many Requests

FAILED_PRECONDITION

The operation was rejected because the system is not in a state required for the operation's execution. For example, the directory to be deleted is non-empty, an rmdir operation is applied to a non-directory, etc.

Service implementors can use the following guidelines to decide between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE: (a) Use UNAVAILABLE if the client can retry just the failing call. (b) Use ABORTED if the client should retry at a higher level (e.g., restarting a read-modify-write sequence). (c) Use FAILED_PRECONDITION if the client should not retry until the system state has been explicitly fixed. E.g., if an "rmdir" fails because the directory is non-empty, FAILED_PRECONDITION should be returned since the client should not retry unless the files are deleted from the directory.

HTTP Mapping: 400 Bad Request

ABORTED

The operation was aborted, typically due to a concurrency issue such as a sequencer check failure or transaction abort.

See the guidelines above for deciding between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE.

HTTP Mapping: 409 Conflict

OUT_OF_RANGE

The operation was attempted past the valid range. E.g., seeking or reading past end-of-file.

Unlike INVALID_ARGUMENT, this error indicates a problem that may be fixed if the system state changes. For example, a 32-bit file system will generate INVALID_ARGUMENT if asked to read at an offset that is not in the range [0,2^32-1], but it will generate OUT_OF_RANGE if asked to read from an offset past the current file size.

There is a fair bit of overlap between FAILED_PRECONDITION and OUT_OF_RANGE. We recommend using OUT_OF_RANGE (the more specific error) when it applies so that callers who are iterating through a space can easily look for an OUT_OF_RANGE error to detect when they are done.

HTTP Mapping: 400 Bad Request

UNIMPLEMENTED

The operation is not implemented or is not supported/enabled in this service.

HTTP Mapping: 501 Not Implemented

INTERNAL

Internal errors. This means that some invariants expected by the underlying system have been broken. This error code is reserved for serious errors.

HTTP Mapping: 500 Internal Server Error

UNAVAILABLE

The service is currently unavailable. This is most likely a transient condition, which can be corrected by retrying with a backoff.

See the guidelines above for deciding between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE.

HTTP Mapping: 503 Service Unavailable

DATA_LOSS

Unrecoverable data loss or corruption.

HTTP Mapping: 500 Internal Server Error

ErrorLogEntry

An entry describing an error that has occurred.

JSON representation
{
  "url": string,
  "errorDetails": [
    string
  ],
}
Field name Type Description
url string A URL that refers to the target (a data source, a data sink, or an object) with which the error is associated. Required.
errorDetails[] string A list of messages that carry the error details.

Methods

Method Description
cancel Cancels a transfer.
delete This method is not supported and the server returns UNIMPLEMENTED.
get Gets the latest state of a long-running operation.
list Lists operations that match the specified filter in the request.
pause Pauses a transfer operation.
resume Resumes a transfer operation that is paused.

Send feedback about...

Cloud Storage Documentation