# Google Cloud Memorystore for Redis V1 API - Class Google::Cloud::Redis::Cluster::V1::ClusterMaintenancePolicy (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.1 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.6.0 0.5.0 0.4.2 0.3.0 0.2.2 0.1.0 Reference documentation and code samples for the Google Cloud Memorystore for Redis V1 API class Google::Cloud::Redis::Cluster::V1::ClusterMaintenancePolicy.

Maintenance policy per cluster.

## 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-redis-cluster-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the policy was created i.e. Maintenance Window or Deny Period was assigned.

### #update_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the policy was updated i.e. Maintenance Window or Deny Period was updated.

### #weekly_maintenance_window

    def weekly_maintenance_window() -> ::Array<::Google::Cloud::Redis::Cluster::V1::ClusterWeeklyMaintenanceWindow>

**Returns**

- (::Array\<[::Google::Cloud::Redis::Cluster::V1::ClusterWeeklyMaintenanceWindow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1/latest/Google-Cloud-Redis-Cluster-V1-ClusterWeeklyMaintenanceWindow)\>) --- Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_window is expected to be one.

### #weekly_maintenance_window=

    def weekly_maintenance_window=(value) -> ::Array<::Google::Cloud::Redis::Cluster::V1::ClusterWeeklyMaintenanceWindow>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Redis::Cluster::V1::ClusterWeeklyMaintenanceWindow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1/latest/Google-Cloud-Redis-Cluster-V1-ClusterWeeklyMaintenanceWindow)\>) --- Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_window is expected to be one.
**Returns**

- (::Array\<[::Google::Cloud::Redis::Cluster::V1::ClusterWeeklyMaintenanceWindow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1/latest/Google-Cloud-Redis-Cluster-V1-ClusterWeeklyMaintenanceWindow)\>) --- Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_window is expected to be one.