Google Cloud Redis Cluster V1 Client - Class ClusterMaintenancePolicy (0.6.4)

Reference documentation and code samples for the Google Cloud Redis Cluster V1 Client class ClusterMaintenancePolicy.

Maintenance policy per cluster.

Generated from protobuf message google.cloud.redis.cluster.v1.ClusterMaintenancePolicy

Namespace

Google \ Cloud \ Redis \ Cluster \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ create_time Google\Protobuf\Timestamp

Output only. The time when the policy was created i.e. Maintenance Window or Deny Period was assigned.

↳ update_time Google\Protobuf\Timestamp

Output only. The time when the policy was updated i.e. Maintenance Window or Deny Period was updated.

↳ weekly_maintenance_window array<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.

getCreateTime

Output only. The time when the policy was created i.e. Maintenance Window or Deny Period was assigned.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time when the policy was created i.e. Maintenance Window or Deny Period was assigned.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getUpdateTime

Output only. The time when the policy was updated i.e. Maintenance Window or Deny Period was updated.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The time when the policy was updated i.e. Maintenance Window or Deny Period was updated.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getWeeklyMaintenanceWindow

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
Type Description
Google\Protobuf\RepeatedField<ClusterWeeklyMaintenanceWindow>

setWeeklyMaintenanceWindow

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.

Parameter
Name Description
var array<ClusterWeeklyMaintenanceWindow>
Returns
Type Description
$this