Google Cloud Notebooks V1 Client - Class Schedule (0.6.2)

Reference documentation and code samples for the Google Cloud Notebooks V1 Client class Schedule.

The definition of a schedule.

Generated from protobuf message google.cloud.notebooks.v1.Schedule

Namespace

Google \ Cloud \ Notebooks \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The name of this schedule. Format: projects/{project_id}/locations/{location}/schedules/{schedule_id}

↳ display_name string

Output only. Display name used for UI purposes. Name can only contain alphanumeric characters, hyphens -, and underscores _.

↳ description string

A brief description of this environment.

↳ state int
↳ cron_schedule string

Cron-tab formatted schedule by which the job will execute. Format: minute, hour, day of month, month, day of week, e.g. 0 0 * * WED = every Wednesday More examples: https://crontab.guru/examples.html

↳ time_zone string

Timezone on which the cron_schedule. The value of this field must be a time zone name from the tz database. TZ Database: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones Note that some time zones include a provision for daylight savings time. The rules for daylight saving time are determined by the chosen tz. For UTC use the string "utc". If a time zone is not specified, the default will be in UTC (also known as GMT).

↳ create_time Google\Protobuf\Timestamp

Output only. Time the schedule was created.

↳ update_time Google\Protobuf\Timestamp

Output only. Time the schedule was last updated.

↳ execution_template Google\Cloud\Notebooks\V1\ExecutionTemplate

Notebook Execution Template corresponding to this schedule.

↳ recent_executions array<Google\Cloud\Notebooks\V1\Execution>

Output only. The most recent execution names triggered from this schedule and their corresponding states.

getName

Output only. The name of this schedule. Format: projects/{project_id}/locations/{location}/schedules/{schedule_id}

Returns
TypeDescription
string

setName

Output only. The name of this schedule. Format: projects/{project_id}/locations/{location}/schedules/{schedule_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

Output only. Display name used for UI purposes.

Name can only contain alphanumeric characters, hyphens -, and underscores _.

Returns
TypeDescription
string

setDisplayName

Output only. Display name used for UI purposes.

Name can only contain alphanumeric characters, hyphens -, and underscores _.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

A brief description of this environment.

Returns
TypeDescription
string

setDescription

A brief description of this environment.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

Generated from protobuf field .google.cloud.notebooks.v1.Schedule.State state = 4;

Returns
TypeDescription
int

setState

Generated from protobuf field .google.cloud.notebooks.v1.Schedule.State state = 4;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCronSchedule

Cron-tab formatted schedule by which the job will execute.

Format: minute, hour, day of month, month, day of week, e.g. 0 0 * * WED = every Wednesday More examples: https://crontab.guru/examples.html

Returns
TypeDescription
string

setCronSchedule

Cron-tab formatted schedule by which the job will execute.

Format: minute, hour, day of month, month, day of week, e.g. 0 0 * * WED = every Wednesday More examples: https://crontab.guru/examples.html

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTimeZone

Timezone on which the cron_schedule.

The value of this field must be a time zone name from the tz database. TZ Database: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones Note that some time zones include a provision for daylight savings time. The rules for daylight saving time are determined by the chosen tz. For UTC use the string "utc". If a time zone is not specified, the default will be in UTC (also known as GMT).

Returns
TypeDescription
string

setTimeZone

Timezone on which the cron_schedule.

The value of this field must be a time zone name from the tz database. TZ Database: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones Note that some time zones include a provision for daylight savings time. The rules for daylight saving time are determined by the chosen tz. For UTC use the string "utc". If a time zone is not specified, the default will be in UTC (also known as GMT).

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. Time the schedule was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Time the schedule was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. Time the schedule was last updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Time the schedule was last updated.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getExecutionTemplate

Notebook Execution Template corresponding to this schedule.

Returns
TypeDescription
Google\Cloud\Notebooks\V1\ExecutionTemplate|null

hasExecutionTemplate

clearExecutionTemplate

setExecutionTemplate

Notebook Execution Template corresponding to this schedule.

Parameter
NameDescription
var Google\Cloud\Notebooks\V1\ExecutionTemplate
Returns
TypeDescription
$this

getRecentExecutions

Output only. The most recent execution names triggered from this schedule and their corresponding states.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setRecentExecutions

Output only. The most recent execution names triggered from this schedule and their corresponding states.

Parameter
NameDescription
var array<Google\Cloud\Notebooks\V1\Execution>
Returns
TypeDescription
$this