Class: Google::Apis::MemcacheV1::GoogleCloudMemcacheV1MaintenancePolicy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/memcache_v1/classes.rb,
lib/google/apis/memcache_v1/representations.rb,
lib/google/apis/memcache_v1/representations.rb

Overview

Maintenance policy per instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudMemcacheV1MaintenancePolicy

Returns a new instance of GoogleCloudMemcacheV1MaintenancePolicy.



396
397
398
# File 'lib/google/apis/memcache_v1/classes.rb', line 396

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. The time when the policy was created. Corresponds to the JSON property createTime

Returns:

  • (String)


376
377
378
# File 'lib/google/apis/memcache_v1/classes.rb', line 376

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


382
383
384
# File 'lib/google/apis/memcache_v1/classes.rb', line 382

def description
  @description
end

#update_timeString

Output only. The time when the policy was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


387
388
389
# File 'lib/google/apis/memcache_v1/classes.rb', line 387

def update_time
  @update_time
end

#weekly_maintenance_windowArray<Google::Apis::MemcacheV1::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



394
395
396
# File 'lib/google/apis/memcache_v1/classes.rb', line 394

def weekly_maintenance_window
  @weekly_maintenance_window
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



401
402
403
404
405
406
# File 'lib/google/apis/memcache_v1/classes.rb', line 401

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