Resource: TransferJob
This resource represents the configuration of a transfer job that runs periodically.
JSON representation | |
---|---|
{ "name": string, "description": string, "projectId": string, "transferSpec": { object ( |
Fields | |
---|---|
name |
A unique name (within the transfer project) assigned when the job is created. If this field is empty in a CreateTransferJobRequest, Storage Transfer Service will assign a unique name. Otherwise, the specified name is used as the unique name for this job. If the specified name is in use by a job, the creation request fails with an This name must start with Invalid job names will fail with an |
description |
A description provided by the user for the job. Its max length is 1024 bytes when Unicode-encoded. |
projectId |
The ID of the Google Cloud Platform Project that owns the job. |
transferSpec |
Transfer specification. |
notificationConfig |
Notification configuration. |
schedule |
Specifies schedule for the transfer job. This is an optional field. When the field is not set, the job will never execute a transfer, unless you invoke transferJobs.run or update the job to have a non-empty schedule. |
status |
Status of the job. This value MUST be specified for Note: The effect of the new job status takes place during a subsequent job run. For example, if you change the job status from |
creationTime |
Output only. The time that the transfer job was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
lastModificationTime |
Output only. The time that the transfer job was last modified. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
deletionTime |
Output only. The time that the transfer job was deleted. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
latestOperationName |
The name of the most recently started TransferOperation of this JobConfig. Present if and only if at least one TransferOperation has been created for this JobConfig. |
Schedule
Transfers can be scheduled to recur or to run just once.
JSON representation | |
---|---|
{ "scheduleStartDate": { object ( |
Fields | |
---|---|
scheduleStartDate |
Required. The start date of a transfer. Date boundaries are determined relative to UTC time. If Note: When starting jobs at or near midnight UTC it is possible that a job will start later than expected. For example, if you send an outbound request on June 1 one millisecond prior to midnight UTC and the Storage Transfer Service server receives the request on June 2, then it will create a TransferJob with |
scheduleEndDate |
The last day a transfer runs. Date boundaries are determined relative to UTC time. A job will run once per 24 hours within the following guidelines:
|
startTimeOfDay |
The time in UTC that a transfer job is scheduled to run. Transfers may start later than this time. If
If
|
endTimeOfDay |
The time in UTC that no further transfer operations are scheduled. Combined with
|
repeatInterval |
Interval between the start of each scheduled TransferOperation. If unspecified, the default value is 24 hours. This value may not be less than 1 hour. A duration in seconds with up to nine fractional digits, terminated by ' |
Date
Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following:
- A full date, with non-zero year, month, and day values
- A month and day value, with a zero year, such as an anniversary
- A year on its own, with zero month and day values
- A year and month value, with a zero day, such as a credit card expiration date
Related types are google.type.TimeOfDay
and google.protobuf.Timestamp
.
JSON representation | |
---|---|
{ "year": integer, "month": integer, "day": integer } |
Fields | |
---|---|
year |
Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. |
month |
Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. |
day |
Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. |
TimeOfDay
Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date
and google.protobuf.Timestamp
.
JSON representation | |
---|---|
{ "hours": integer, "minutes": integer, "seconds": integer, "nanos": integer } |
Fields | |
---|---|
hours |
Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time. |
minutes |
Minutes of hour of day. Must be from 0 to 59. |
seconds |
Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds. |
nanos |
Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. |
Status
The status of the transfer job.
Enums | |
---|---|
STATUS_UNSPECIFIED |
Zero is an illegal value. |
ENABLED |
New transfers will be performed based on the schedule. |
DISABLED |
New transfers will not be scheduled. |
DELETED |
This is a soft delete state. After a transfer job is set to this state, the job and all the transfer executions are subject to garbage collection. Transfer jobs become eligible for garbage collection 30 days after their status is set to DELETED . |
Methods |
|
---|---|
|
Creates a transfer job that runs periodically. |
|
Gets a transfer job. |
|
Lists transfer jobs. |
|
Updates a transfer job. |
|
Attempts to start a new TransferOperation for the current TransferJob. |