# Google Cloud Memorystore for Memcached API - Class Google::Cloud::Memcache::V1beta2::MaintenancePolicy (v0.17.0)

0.17.0 (latest) 0.16.1 0.15.1 0.14.0 0.13.0 0.12.1 0.11.0 0.10.0 0.9.2 0.8.2 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.5 Reference documentation and code samples for the Google Cloud Memorystore for Memcached API class Google::Cloud::Memcache::V1beta2::MaintenancePolicy.

Maintenance policy per instance.

## 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-memcache-v1beta2/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the policy was created.

### #description

    def description() -> ::String

**Returns**

- (::String) --- Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.
**Returns**

- (::String) --- Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.

### #update_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1beta2/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the policy was updated.

### #weekly_maintenance_window

    def weekly_maintenance_window() -> ::Array<::Google::Cloud::Memcache::V1beta2::WeeklyMaintenanceWindow>

**Returns**

- (::Array\<[::Google::Cloud::Memcache::V1beta2::WeeklyMaintenanceWindow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1beta2/latest/Google-Cloud-Memcache-V1beta2-WeeklyMaintenanceWindow)\>) --- Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.

### #weekly_maintenance_window=

    def weekly_maintenance_window=(value) -> ::Array<::Google::Cloud::Memcache::V1beta2::WeeklyMaintenanceWindow>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Memcache::V1beta2::WeeklyMaintenanceWindow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1beta2/latest/Google-Cloud-Memcache-V1beta2-WeeklyMaintenanceWindow)\>) --- Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.
**Returns**

- (::Array\<[::Google::Cloud::Memcache::V1beta2::WeeklyMaintenanceWindow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1beta2/latest/Google-Cloud-Memcache-V1beta2-WeeklyMaintenanceWindow)\>) --- Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.