Reference documentation and code samples for the Memorystore for Memcached V1 Client class MaintenancePolicy.
Maintenance policy per instance.
Generated from protobuf message google.cloud.memcache.v1.MaintenancePolicy
Namespace
Google \ Cloud \ Memcache \ V1Methods
__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. |
↳ update_time |
Google\Protobuf\Timestamp
Output only. The time when the policy was updated. |
↳ description |
string
Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512. |
↳ weekly_maintenance_window |
array<Google\Cloud\Memcache\V1\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. |
getCreateTime
Output only. The time when the policy was created.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasCreateTime
clearCreateTime
setCreateTime
Output only. The time when the policy was created.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getUpdateTime
Output only. The time when the policy was updated.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The time when the policy was updated.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getDescription
Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.
Returns | |
---|---|
Type | Description |
string |
setDescription
Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getWeeklyMaintenanceWindow
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 | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setWeeklyMaintenanceWindow
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.
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\Memcache\V1\WeeklyMaintenanceWindow>
|
Returns | |
---|---|
Type | Description |
$this |