# Backup for GKE V1 API - Class Google::Cloud::GkeBackup::V1::ExclusionWindow (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::ExclusionWindow.

Defines a time window during which no backup should
happen. All time and date are in UTC.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #daily

    def daily() -> ::Boolean

**Returns**

- (::Boolean) --- The exclusion window occurs every day if set to "True". Specifying this field to "False" is an error.

  Note: The following fields are mutually exclusive: `daily`, `single_occurrence_date`, `days_of_week`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #daily=

    def daily=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- The exclusion window occurs every day if set to "True". Specifying this field to "False" is an error.


  Note: The following fields are mutually exclusive: `daily`, `single_occurrence_date`, `days_of_week`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::Boolean) --- The exclusion window occurs every day if set to "True". Specifying this field to "False" is an error.

  Note: The following fields are mutually exclusive: `daily`, `single_occurrence_date`, `days_of_week`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #days_of_week

    def days_of_week() -> ::Google::Cloud::GkeBackup::V1::ExclusionWindow::DayOfWeekList

**Returns**

- ([::Google::Cloud::GkeBackup::V1::ExclusionWindow::DayOfWeekList](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-ExclusionWindow-DayOfWeekList)) --- The exclusion window occurs on these days of each week in UTC.


  Note: The following fields are mutually exclusive: `days_of_week`, `single_occurrence_date`, `daily`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #days_of_week=

    def days_of_week=(value) -> ::Google::Cloud::GkeBackup::V1::ExclusionWindow::DayOfWeekList

**Parameter**

- **value** ([::Google::Cloud::GkeBackup::V1::ExclusionWindow::DayOfWeekList](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-ExclusionWindow-DayOfWeekList)) --- The exclusion window occurs on these days of each week in UTC.


  Note: The following fields are mutually exclusive: `days_of_week`, `single_occurrence_date`, `daily`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::GkeBackup::V1::ExclusionWindow::DayOfWeekList](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-ExclusionWindow-DayOfWeekList)) --- The exclusion window occurs on these days of each week in UTC.


  Note: The following fields are mutually exclusive: `days_of_week`, `single_occurrence_date`, `daily`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #duration

    def duration() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Protobuf-Duration)) ---

  Required. Specifies duration of the window.
  Duration must be \>= 5 minutes and \< (target RPO - 20 minutes).
  Additional restrictions based on the recurrence type to allow some time for
  backup to happen:
  - single_occurrence_date: no restriction, but UI may warn about this when duration \>= target RPO
  - daily window: duration \< 24 hours
  - weekly window:
    - days of week includes all seven days of a week: duration \< 24 hours
    - all other weekly window: duration \< 168 hours (i.e., 24 \* 7 hours)

### #duration=

    def duration=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Protobuf-Duration)) ---

  Required. Specifies duration of the window.
  Duration must be \>= 5 minutes and \< (target RPO - 20 minutes).
  Additional restrictions based on the recurrence type to allow some time for
  backup to happen:
  - single_occurrence_date: no restriction, but UI may warn about this when duration \>= target RPO
  - daily window: duration \< 24 hours
  - weekly window:
    - days of week includes all seven days of a week: duration \< 24 hours
    - all other weekly window: duration \< 168 hours (i.e., 24 \* 7 hours)
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Protobuf-Duration)) ---

  Required. Specifies duration of the window.
  Duration must be \>= 5 minutes and \< (target RPO - 20 minutes).
  Additional restrictions based on the recurrence type to allow some time for
  backup to happen:
  - single_occurrence_date: no restriction, but UI may warn about this when duration \>= target RPO
  - daily window: duration \< 24 hours
  - weekly window:
    - days of week includes all seven days of a week: duration \< 24 hours
    - all other weekly window: duration \< 168 hours (i.e., 24 \* 7 hours)

### #single_occurrence_date

    def single_occurrence_date() -> ::Google::Type::Date

**Returns**

- ([::Google::Type::Date](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Type-Date)) --- No recurrence. The exclusion window occurs only once and on this date in UTC.


  Note: The following fields are mutually exclusive: `single_occurrence_date`, `daily`, `days_of_week`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #single_occurrence_date=

    def single_occurrence_date=(value) -> ::Google::Type::Date

**Parameter**

- **value** ([::Google::Type::Date](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Type-Date)) --- No recurrence. The exclusion window occurs only once and on this date in UTC.


  Note: The following fields are mutually exclusive: `single_occurrence_date`, `daily`, `days_of_week`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Type::Date](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Type-Date)) --- No recurrence. The exclusion window occurs only once and on this date in UTC.


  Note: The following fields are mutually exclusive: `single_occurrence_date`, `daily`, `days_of_week`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #start_time

    def start_time() -> ::Google::Type::TimeOfDay

**Returns**

- ([::Google::Type::TimeOfDay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Type-TimeOfDay)) --- Required. Specifies the start time of the window using time of the day in UTC.

### #start_time=

    def start_time=(value) -> ::Google::Type::TimeOfDay

**Parameter**

- **value** ([::Google::Type::TimeOfDay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Type-TimeOfDay)) --- Required. Specifies the start time of the window using time of the day in UTC.
**Returns**

- ([::Google::Type::TimeOfDay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Type-TimeOfDay)) --- Required. Specifies the start time of the window using time of the day in UTC.