Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_window is expected to be one.
getCreateTime
Output only. The time when the policy was created.
Optional. 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
Optional. 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
Optional. Maintenance window that is applied to resources covered by this
policy. Minimum 1. For the current version, the maximum number of
weekly_window is expected to be one.
Optional. Maintenance window that is applied to resources covered by this
policy. Minimum 1. For the current version, the maximum number of
weekly_window is expected to be one.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Cloud Redis V1 Client - Class MaintenancePolicy (2.1.6)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.6 (latest)](/php/docs/reference/cloud-redis/latest/V1.MaintenancePolicy)\n- [2.1.5](/php/docs/reference/cloud-redis/2.1.5/V1.MaintenancePolicy)\n- [2.0.0](/php/docs/reference/cloud-redis/2.0.0/V1.MaintenancePolicy)\n- [1.9.5](/php/docs/reference/cloud-redis/1.9.5/V1.MaintenancePolicy)\n- [1.8.4](/php/docs/reference/cloud-redis/1.8.4/V1.MaintenancePolicy)\n- [1.7.0](/php/docs/reference/cloud-redis/1.7.0/V1.MaintenancePolicy)\n- [1.6.12](/php/docs/reference/cloud-redis/1.6.12/V1.MaintenancePolicy) \nReference documentation and code samples for the Google Cloud Redis V1 Client class MaintenancePolicy.\n\nMaintenance policy for an instance.\n\nGenerated from protobuf message `google.cloud.redis.v1.MaintenancePolicy`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Redis \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCreateTime\n\nOutput only. The time when the policy was created.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. The time when the policy was created.\n\n### getUpdateTime\n\nOutput only. The time when the policy was last updated.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. The time when the policy was last updated.\n\n### getDescription\n\nOptional. Description of what this policy is for. Create/Update methods\nreturn INVALID_ARGUMENT if the length is greater than 512.\n\n### setDescription\n\nOptional. Description of what this policy is for. Create/Update methods\nreturn INVALID_ARGUMENT if the length is greater than 512.\n\n### getWeeklyMaintenanceWindow\n\nOptional. Maintenance window that is applied to resources covered by this\npolicy. Minimum 1. For the current version, the maximum number of\nweekly_window is expected to be one.\n\n### setWeeklyMaintenanceWindow\n\nOptional. Maintenance window that is applied to resources covered by this\npolicy. Minimum 1. For the current version, the maximum number of\nweekly_window is expected to be one."]]