# Backup for GKE V1 API - Class Google::Cloud::GkeBackup::V1::BackupPlan::Schedule (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.12.0 0.11.0 0.10.1 0.9.0 0.8.0 0.7.2 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Backup for GKE V1 API class Google::Cloud::GkeBackup::V1::BackupPlan::Schedule.

Defines scheduling parameters for automatically creating Backups
via this BackupPlan.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cron_schedule

    def cron_schedule() -> ::String

**Returns**

- (::String) --- Optional. A standard [cron](https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups via this BackupPlan. This is mutually exclusive with the [rpo_config](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-BackupPlan-Schedule#Google__Cloud__GkeBackup__V1__BackupPlan__Schedule_rpo_config_instance_ "Google::Cloud::GkeBackup::V1::BackupPlan::Schedule#rpo_config (method)") field since at most one schedule can be defined for a BackupPlan. If this is defined, then [backup_retain_days](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-BackupPlan-RetentionPolicy#Google__Cloud__GkeBackup__V1__BackupPlan__RetentionPolicy_backup_retain_days_instance_ "Google::Cloud::GkeBackup::V1::BackupPlan::RetentionPolicy#backup_retain_days (method)") must also be defined.


  Default (empty): no automatic backup creation will occur.

### #cron_schedule=

    def cron_schedule=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. A standard [cron](https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups via this BackupPlan. This is mutually exclusive with the [rpo_config](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-BackupPlan-Schedule#Google__Cloud__GkeBackup__V1__BackupPlan__Schedule_rpo_config_instance_ "Google::Cloud::GkeBackup::V1::BackupPlan::Schedule#rpo_config (method)") field since at most one schedule can be defined for a BackupPlan. If this is defined, then [backup_retain_days](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-BackupPlan-RetentionPolicy#Google__Cloud__GkeBackup__V1__BackupPlan__RetentionPolicy_backup_retain_days_instance_ "Google::Cloud::GkeBackup::V1::BackupPlan::RetentionPolicy#backup_retain_days (method)") must also be defined.


  Default (empty): no automatic backup creation will occur.
**Returns**

- (::String) --- Optional. A standard [cron](https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups via this BackupPlan. This is mutually exclusive with the [rpo_config](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-BackupPlan-Schedule#Google__Cloud__GkeBackup__V1__BackupPlan__Schedule_rpo_config_instance_ "Google::Cloud::GkeBackup::V1::BackupPlan::Schedule#rpo_config (method)") field since at most one schedule can be defined for a BackupPlan. If this is defined, then [backup_retain_days](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-BackupPlan-RetentionPolicy#Google__Cloud__GkeBackup__V1__BackupPlan__RetentionPolicy_backup_retain_days_instance_ "Google::Cloud::GkeBackup::V1::BackupPlan::RetentionPolicy#backup_retain_days (method)") must also be defined.


  Default (empty): no automatic backup creation will occur.

### #next_scheduled_backup_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Protobuf-Timestamp)) --- Output only. Start time of next scheduled backup under this BackupPlan by either cron_schedule or rpo config.

### #paused

    def paused() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. This flag denotes whether automatic Backup creation is paused for this BackupPlan.

  Default: False

### #paused=

    def paused=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. This flag denotes whether automatic Backup creation is paused for this BackupPlan.


  Default: False
**Returns**

- (::Boolean) --- Optional. This flag denotes whether automatic Backup creation is paused for this BackupPlan.

  Default: False

### #rpo_config

    def rpo_config() -> ::Google::Cloud::GkeBackup::V1::RpoConfig

**Returns**

- ([::Google::Cloud::GkeBackup::V1::RpoConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-RpoConfig)) --- Optional. Defines the RPO schedule configuration for this BackupPlan. This is mutually exclusive with the [cron_schedule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-BackupPlan-Schedule#Google__Cloud__GkeBackup__V1__BackupPlan__Schedule_cron_schedule_instance_ "Google::Cloud::GkeBackup::V1::BackupPlan::Schedule#cron_schedule (method)") field since at most one schedule can be defined for a BackupPLan. If this is defined, then [backup_retain_days](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-BackupPlan-RetentionPolicy#Google__Cloud__GkeBackup__V1__BackupPlan__RetentionPolicy_backup_retain_days_instance_ "Google::Cloud::GkeBackup::V1::BackupPlan::RetentionPolicy#backup_retain_days (method)") must also be defined.


  Default (empty): no automatic backup creation will occur.

### #rpo_config=

    def rpo_config=(value) -> ::Google::Cloud::GkeBackup::V1::RpoConfig

**Parameter**

- **value** ([::Google::Cloud::GkeBackup::V1::RpoConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-RpoConfig)) --- Optional. Defines the RPO schedule configuration for this BackupPlan. This is mutually exclusive with the [cron_schedule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-BackupPlan-Schedule#Google__Cloud__GkeBackup__V1__BackupPlan__Schedule_cron_schedule_instance_ "Google::Cloud::GkeBackup::V1::BackupPlan::Schedule#cron_schedule (method)") field since at most one schedule can be defined for a BackupPLan. If this is defined, then [backup_retain_days](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-BackupPlan-RetentionPolicy#Google__Cloud__GkeBackup__V1__BackupPlan__RetentionPolicy_backup_retain_days_instance_ "Google::Cloud::GkeBackup::V1::BackupPlan::RetentionPolicy#backup_retain_days (method)") must also be defined.


  Default (empty): no automatic backup creation will occur.
**Returns**

- ([::Google::Cloud::GkeBackup::V1::RpoConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-RpoConfig)) --- Optional. Defines the RPO schedule configuration for this BackupPlan. This is mutually exclusive with the [cron_schedule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-BackupPlan-Schedule#Google__Cloud__GkeBackup__V1__BackupPlan__Schedule_cron_schedule_instance_ "Google::Cloud::GkeBackup::V1::BackupPlan::Schedule#cron_schedule (method)") field since at most one schedule can be defined for a BackupPLan. If this is defined, then [backup_retain_days](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-BackupPlan-RetentionPolicy#Google__Cloud__GkeBackup__V1__BackupPlan__RetentionPolicy_backup_retain_days_instance_ "Google::Cloud::GkeBackup::V1::BackupPlan::RetentionPolicy#backup_retain_days (method)") must also be defined.


  Default (empty): no automatic backup creation will occur.