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.
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.
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.
[[["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-04 UTC."],[],[],null,["# Memorystore for Memcached V1 Client - Class MaintenancePolicy (2.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.4 (latest)](/php/docs/reference/cloud-memcache/latest/V1.MaintenancePolicy)\n- [2.0.3](/php/docs/reference/cloud-memcache/2.0.3/V1.MaintenancePolicy)\n- [1.3.5](/php/docs/reference/cloud-memcache/1.3.5/V1.MaintenancePolicy)\n- [1.2.2](/php/docs/reference/cloud-memcache/1.2.2/V1.MaintenancePolicy)\n- [1.1.1](/php/docs/reference/cloud-memcache/1.1.1/V1.MaintenancePolicy)\n- [1.0.5](/php/docs/reference/cloud-memcache/1.0.5/V1.MaintenancePolicy) \nReference documentation and code samples for the Memorystore for Memcached V1 Client class MaintenancePolicy.\n\nMaintenance policy per instance.\n\nGenerated from protobuf message `google.cloud.memcache.v1.MaintenancePolicy`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Memcache \\\\ 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 updated.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. The time when the policy was updated.\n\n### getDescription\n\nDescription of what this policy is for. Create/Update methods\nreturn INVALID_ARGUMENT if the length is greater than 512.\n\n### setDescription\n\nDescription of what this policy is for. Create/Update methods\nreturn INVALID_ARGUMENT if the length is greater than 512.\n\n### getWeeklyMaintenanceWindow\n\nRequired. Maintenance window that is applied to resources covered by this\npolicy. Minimum 1. For the current version, the maximum number of\nweekly_maintenance_windows is expected to be one.\n\n### setWeeklyMaintenanceWindow\n\nRequired. Maintenance window that is applied to resources covered by this\npolicy. Minimum 1. For the current version, the maximum number of\nweekly_maintenance_windows is expected to be one."]]