Class: Google::Apis::MemcacheV1beta2::GoogleCloudMemcacheV1beta2MaintenancePolicy
- Inherits:
-
Object
- Object
- Google::Apis::MemcacheV1beta2::GoogleCloudMemcacheV1beta2MaintenancePolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/memcache_v1beta2/classes.rb,
lib/google/apis/memcache_v1beta2/representations.rb,
lib/google/apis/memcache_v1beta2/representations.rb
Overview
Maintenance policy per instance.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Description of what this policy is for.
-
#update_time ⇒ String
Output only.
-
#weekly_maintenance_window ⇒ Array<Google::Apis::MemcacheV1beta2::WeeklyMaintenanceWindow>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMemcacheV1beta2MaintenancePolicy
constructor
A new instance of GoogleCloudMemcacheV1beta2MaintenancePolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudMemcacheV1beta2MaintenancePolicy
Returns a new instance of GoogleCloudMemcacheV1beta2MaintenancePolicy.
275 276 277 |
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 275 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time when the policy was created.
Corresponds to the JSON property createTime
255 256 257 |
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 255 def create_time @create_time end |
#description ⇒ String
Description of what this policy is for. Create/Update methods return
INVALID_ARGUMENT if the length is greater than 512.
Corresponds to the JSON property description
261 262 263 |
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 261 def description @description end |
#update_time ⇒ String
Output only. The time when the policy was updated.
Corresponds to the JSON property updateTime
266 267 268 |
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 266 def update_time @update_time end |
#weekly_maintenance_window ⇒ Array<Google::Apis::MemcacheV1beta2::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.
Corresponds to the JSON property weeklyMaintenanceWindow
273 274 275 |
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 273 def weekly_maintenance_window @weekly_maintenance_window end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
280 281 282 283 284 285 |
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 280 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @update_time = args[:update_time] if args.key?(:update_time) @weekly_maintenance_window = args[:weekly_maintenance_window] if args.key?(:weekly_maintenance_window) end |