Class: Google::Apis::RedisV1beta1::ClusterMaintenancePolicy

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

Overview

Maintenance policy per cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterMaintenancePolicy

Returns a new instance of ClusterMaintenancePolicy.



710
711
712
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 710

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

Instance Attribute Details

#create_timeString

Output only. The time when the policy was created i.e. Maintenance Window or Deny Period was assigned. Corresponds to the JSON property createTime

Returns:

  • (String)


695
696
697
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 695

def create_time
  @create_time
end

#update_timeString

Output only. The time when the policy was updated i.e. Maintenance Window or Deny Period was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


701
702
703
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 701

def update_time
  @update_time
end

#weekly_maintenance_windowArray<Google::Apis::RedisV1beta1::ClusterWeeklyMaintenanceWindow>

Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_window is expected to be one. Corresponds to the JSON property weeklyMaintenanceWindow



708
709
710
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 708

def weekly_maintenance_window
  @weekly_maintenance_window
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



715
716
717
718
719
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 715

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @update_time = args[:update_time] if args.key?(:update_time)
  @weekly_maintenance_window = args[:weekly_maintenance_window] if args.key?(:weekly_maintenance_window)
end