Represents a snapshot of a job.
JSON representation |
---|
{ "id": string, "projectId": string, "sourceJobId": string, "creationTime": string, "ttl": string, "state": enum ( |
Fields | |
---|---|
id |
The unique ID of this snapshot. |
project |
The project this snapshot belongs to. |
source |
The job this snapshot was created from. |
creation |
The time this snapshot was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
ttl |
The time after which this snapshot will be automatically deleted. A duration in seconds with up to nine fractional digits, ending with ' |
state |
State of the snapshot. |
pubsub |
Pub/Sub snapshot metadata. |
description |
User specified description of the snapshot. Maybe empty. |
disk |
The disk byte size of the snapshot. Only available for snapshots in READY state. |
region |
Cloud region where this snapshot lives in, e.g., "us-central1". |
SnapshotState
Snapshot state.
Enums | |
---|---|
UNKNOWN_SNAPSHOT_STATE |
Unknown state. |
PENDING |
Snapshot intent to create has been persisted, snapshotting of state has not yet started. |
RUNNING |
Snapshotting is being performed. |
READY |
Snapshot has been created and is ready to be used. |
FAILED |
Snapshot failed to be created. |
DELETED |
Snapshot has been deleted. |
PubsubSnapshotMetadata
Represents a Pubsub snapshot.
JSON representation |
---|
{ "topicName": string, "snapshotName": string, "expireTime": string } |
Fields | |
---|---|
topic |
The name of the Pubsub topic. |
snapshot |
The name of the Pubsub snapshot. |
expire |
The expire time of the Pubsub snapshot. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |