Class: Google::Apis::RedisV1beta1::MaintenancePolicy

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 for an instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MaintenancePolicy

Returns a new instance of MaintenancePolicy.



1711
1712
1713
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1711

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)


1691
1692
1693
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1691

def create_time
  @create_time
end

#descriptionString

Optional. 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)


1697
1698
1699
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1697

def description
  @description
end

#update_timeString

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

Returns:

  • (String)


1702
1703
1704
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1702

def update_time
  @update_time
end

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

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. Corresponds to the JSON property weeklyMaintenanceWindow



1709
1710
1711
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1709

def weekly_maintenance_window
  @weekly_maintenance_window
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1716
1717
1718
1719
1720
1721
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1716

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