# Oracle Database@Google Cloud V1 API - Class Google::Cloud::OracleDatabase::V1::MaintenanceWindow (v0.15.0)

0.15.0 (latest) 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Oracle Database@Google Cloud V1 API class Google::Cloud::OracleDatabase::V1::MaintenanceWindow.

Maintenance window as defined by Oracle.
<https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/MaintenanceWindow>

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #custom_action_timeout_mins

    def custom_action_timeout_mins() -> ::Integer

**Returns**

- (::Integer) --- Optional. Determines the amount of time the system will wait before the start of each database server patching operation. Custom action timeout is in minutes and valid value is between 15 to 120 (inclusive).

### #custom_action_timeout_mins=

    def custom_action_timeout_mins=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Optional. Determines the amount of time the system will wait before the start of each database server patching operation. Custom action timeout is in minutes and valid value is between 15 to 120 (inclusive).
**Returns**

- (::Integer) --- Optional. Determines the amount of time the system will wait before the start of each database server patching operation. Custom action timeout is in minutes and valid value is between 15 to 120 (inclusive).

### #days_of_week

    def days_of_week() -> ::Array<::Google::Type::DayOfWeek>

**Returns**

- (::Array\<[::Google::Type::DayOfWeek](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest/Google-Type-DayOfWeek)\>) --- Optional. Days during the week when maintenance should be performed.

### #days_of_week=

    def days_of_week=(value) -> ::Array<::Google::Type::DayOfWeek>

**Parameter**

- **value** (::Array\<[::Google::Type::DayOfWeek](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest/Google-Type-DayOfWeek)\>) --- Optional. Days during the week when maintenance should be performed.
**Returns**

- (::Array\<[::Google::Type::DayOfWeek](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest/Google-Type-DayOfWeek)\>) --- Optional. Days during the week when maintenance should be performed.

### #hours_of_day

    def hours_of_day() -> ::Array<::Integer>

**Returns**

- (::Array\<::Integer\>) --- Optional. The window of hours during the day when maintenance should be performed. The window is a 4 hour slot. Valid values are: 0 - represents time slot 0:00 - 3:59 UTC 4 - represents time slot 4:00 - 7:59 UTC 8 - represents time slot 8:00 - 11:59 UTC 12 - represents time slot 12:00 - 15:59 UTC 16 - represents time slot 16:00 - 19:59 UTC 20 - represents time slot 20:00 - 23:59 UTC

### #hours_of_day=

    def hours_of_day=(value) -> ::Array<::Integer>

**Parameter**

- **value** (::Array\<::Integer\>) --- Optional. The window of hours during the day when maintenance should be performed. The window is a 4 hour slot. Valid values are: 0 - represents time slot 0:00 - 3:59 UTC 4 - represents time slot 4:00 - 7:59 UTC 8 - represents time slot 8:00 - 11:59 UTC 12 - represents time slot 12:00 - 15:59 UTC 16 - represents time slot 16:00 - 19:59 UTC 20 - represents time slot 20:00 - 23:59 UTC
**Returns**

- (::Array\<::Integer\>) --- Optional. The window of hours during the day when maintenance should be performed. The window is a 4 hour slot. Valid values are: 0 - represents time slot 0:00 - 3:59 UTC 4 - represents time slot 4:00 - 7:59 UTC 8 - represents time slot 8:00 - 11:59 UTC 12 - represents time slot 12:00 - 15:59 UTC 16 - represents time slot 16:00 - 19:59 UTC 20 - represents time slot 20:00 - 23:59 UTC

### #is_custom_action_timeout_enabled

    def is_custom_action_timeout_enabled() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. If true, enables the configuration of a custom action timeout (waiting period) between database server patching operations.

### #is_custom_action_timeout_enabled=

    def is_custom_action_timeout_enabled=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. If true, enables the configuration of a custom action timeout (waiting period) between database server patching operations.
**Returns**

- (::Boolean) --- Optional. If true, enables the configuration of a custom action timeout (waiting period) between database server patching operations.

### #lead_time_week

    def lead_time_week() -> ::Integer

**Returns**

- (::Integer) --- Optional. Lead time window allows user to set a lead time to prepare for a down time. The lead time is in weeks and valid value is between 1 to 4.

### #lead_time_week=

    def lead_time_week=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Optional. Lead time window allows user to set a lead time to prepare for a down time. The lead time is in weeks and valid value is between 1 to 4.
**Returns**

- (::Integer) --- Optional. Lead time window allows user to set a lead time to prepare for a down time. The lead time is in weeks and valid value is between 1 to 4.

### #months

    def months() -> ::Array<::Google::Type::Month>

**Returns**

- (::Array\<[::Google::Type::Month](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest/Google-Type-Month)\>) --- Optional. Months during the year when maintenance should be performed.

### #months=

    def months=(value) -> ::Array<::Google::Type::Month>

**Parameter**

- **value** (::Array\<[::Google::Type::Month](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest/Google-Type-Month)\>) --- Optional. Months during the year when maintenance should be performed.
**Returns**

- (::Array\<[::Google::Type::Month](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest/Google-Type-Month)\>) --- Optional. Months during the year when maintenance should be performed.

### #patching_mode

    def patching_mode() -> ::Google::Cloud::OracleDatabase::V1::MaintenanceWindow::PatchingMode

**Returns**

- ([::Google::Cloud::OracleDatabase::V1::MaintenanceWindow::PatchingMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest/Google-Cloud-OracleDatabase-V1-MaintenanceWindow-PatchingMode)) --- Optional. Cloud CloudExadataInfrastructure node patching method, either "ROLLING" or "NONROLLING". Default value is ROLLING.

### #patching_mode=

    def patching_mode=(value) -> ::Google::Cloud::OracleDatabase::V1::MaintenanceWindow::PatchingMode

**Parameter**

- **value** ([::Google::Cloud::OracleDatabase::V1::MaintenanceWindow::PatchingMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest/Google-Cloud-OracleDatabase-V1-MaintenanceWindow-PatchingMode)) --- Optional. Cloud CloudExadataInfrastructure node patching method, either "ROLLING" or "NONROLLING". Default value is ROLLING.
**Returns**

- ([::Google::Cloud::OracleDatabase::V1::MaintenanceWindow::PatchingMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest/Google-Cloud-OracleDatabase-V1-MaintenanceWindow-PatchingMode)) --- Optional. Cloud CloudExadataInfrastructure node patching method, either "ROLLING" or "NONROLLING". Default value is ROLLING.

### #preference

    def preference() -> ::Google::Cloud::OracleDatabase::V1::MaintenanceWindow::MaintenanceWindowPreference

**Returns**

- ([::Google::Cloud::OracleDatabase::V1::MaintenanceWindow::MaintenanceWindowPreference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest/Google-Cloud-OracleDatabase-V1-MaintenanceWindow-MaintenanceWindowPreference)) --- Optional. The maintenance window scheduling preference.

### #preference=

    def preference=(value) -> ::Google::Cloud::OracleDatabase::V1::MaintenanceWindow::MaintenanceWindowPreference

**Parameter**

- **value** ([::Google::Cloud::OracleDatabase::V1::MaintenanceWindow::MaintenanceWindowPreference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest/Google-Cloud-OracleDatabase-V1-MaintenanceWindow-MaintenanceWindowPreference)) --- Optional. The maintenance window scheduling preference.
**Returns**

- ([::Google::Cloud::OracleDatabase::V1::MaintenanceWindow::MaintenanceWindowPreference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest/Google-Cloud-OracleDatabase-V1-MaintenanceWindow-MaintenanceWindowPreference)) --- Optional. The maintenance window scheduling preference.

### #weeks_of_month

    def weeks_of_month() -> ::Array<::Integer>

**Returns**

- (::Array\<::Integer\>) --- Optional. Weeks during the month when maintenance should be performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week.

### #weeks_of_month=

    def weeks_of_month=(value) -> ::Array<::Integer>

**Parameter**

- **value** (::Array\<::Integer\>) --- Optional. Weeks during the month when maintenance should be performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week.
**Returns**

- (::Array\<::Integer\>) --- Optional. Weeks during the month when maintenance should be performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week.