# AI Platform Notebooks V1 API - Class Google::Cloud::Notebooks::V1::Schedule (v1.6.0)

1.6.0 (latest) 1.5.0 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.11.0 0.10.0 0.9.1 0.8.2 0.7.0 0.6.1 0.5.0 0.4.2 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the AI Platform Notebooks V1 API class Google::Cloud::Notebooks::V1::Schedule.

The definition of a schedule.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-notebooks-v1/latest/Google-Protobuf-Timestamp)) --- Output only. Time the schedule was created.

### #cron_schedule

    def cron_schedule() -> ::String

**Returns**

- (::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

### #cron_schedule=

    def cron_schedule=(value) -> ::String

**Parameter**

- **value** (::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
**Returns**

- (::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

### #description

    def description() -> ::String

**Returns**

- (::String) --- A brief description of this environment.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- A brief description of this environment.
**Returns**

- (::String) --- A brief description of this environment.

### #display_name

    def display_name() -> ::String

**Returns**

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

### #execution_template

    def execution_template() -> ::Google::Cloud::Notebooks::V1::ExecutionTemplate

**Returns**

- ([::Google::Cloud::Notebooks::V1::ExecutionTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-notebooks-v1/latest/Google-Cloud-Notebooks-V1-ExecutionTemplate)) --- Notebook Execution Template corresponding to this schedule.

### #execution_template=

    def execution_template=(value) -> ::Google::Cloud::Notebooks::V1::ExecutionTemplate

**Parameter**

- **value** ([::Google::Cloud::Notebooks::V1::ExecutionTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-notebooks-v1/latest/Google-Cloud-Notebooks-V1-ExecutionTemplate)) --- Notebook Execution Template corresponding to this schedule.
**Returns**

- ([::Google::Cloud::Notebooks::V1::ExecutionTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-notebooks-v1/latest/Google-Cloud-Notebooks-V1-ExecutionTemplate)) --- Notebook Execution Template corresponding to this schedule.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. The name of this schedule. Format: `projects/{project_id}/locations/{location}/schedules/{schedule_id}`

### #recent_executions

    def recent_executions() -> ::Array<::Google::Cloud::Notebooks::V1::Execution>

**Returns**

- (::Array\<[::Google::Cloud::Notebooks::V1::Execution](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-notebooks-v1/latest/Google-Cloud-Notebooks-V1-Execution)\>) --- Output only. The most recent execution names triggered from this schedule and their corresponding states.

### #state

    def state() -> ::Google::Cloud::Notebooks::V1::Schedule::State

**Returns**

- ([::Google::Cloud::Notebooks::V1::Schedule::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-notebooks-v1/latest/Google-Cloud-Notebooks-V1-Schedule-State))

### #state=

    def state=(value) -> ::Google::Cloud::Notebooks::V1::Schedule::State

**Parameter**

- **value** ([::Google::Cloud::Notebooks::V1::Schedule::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-notebooks-v1/latest/Google-Cloud-Notebooks-V1-Schedule-State))
**Returns**

- ([::Google::Cloud::Notebooks::V1::Schedule::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-notebooks-v1/latest/Google-Cloud-Notebooks-V1-Schedule-State))

### #time_zone

    def time_zone() -> ::String

**Returns**

- (::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).

### #time_zone=

    def time_zone=(value) -> ::String

**Parameter**

- **value** (::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).
**Returns**

- (::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).

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-notebooks-v1/latest/Google-Protobuf-Timestamp)) --- Output only. Time the schedule was last updated.