Class: Google::Apis::MemcacheV1::UpdatePolicy
- Inherits:
-
Object
- Object
- Google::Apis::MemcacheV1::UpdatePolicy
- 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 applicable to instance updates.
Instance Attribute Summary collapse
-
#channel ⇒ String
Optional.
-
#deny_maintenance_periods ⇒ Array<Google::Apis::MemcacheV1::DenyMaintenancePeriod>
Deny Maintenance Period that is applied to resource to indicate when maintenance is forbidden.
-
#window ⇒ Google::Apis::MemcacheV1::MaintenanceWindow
MaintenanceWindow definition.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdatePolicy
constructor
A new instance of UpdatePolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UpdatePolicy
Returns a new instance of UpdatePolicy.
1454 1455 1456 |
# File 'lib/google/apis/memcache_v1/classes.rb', line 1454 def initialize(**args) update!(**args) end |
Instance Attribute Details
#channel ⇒ String
Optional. Relative scheduling channel applied to resource.
Corresponds to the JSON property channel
1440 1441 1442 |
# File 'lib/google/apis/memcache_v1/classes.rb', line 1440 def channel @channel end |
#deny_maintenance_periods ⇒ Array<Google::Apis::MemcacheV1::DenyMaintenancePeriod>
Deny Maintenance Period that is applied to resource to indicate when
maintenance is forbidden. User can specify zero or more non-overlapping deny
periods. Maximum number of deny_maintenance_periods expected is one.
Corresponds to the JSON property denyMaintenancePeriods
1447 1448 1449 |
# File 'lib/google/apis/memcache_v1/classes.rb', line 1447 def deny_maintenance_periods @deny_maintenance_periods end |
#window ⇒ Google::Apis::MemcacheV1::MaintenanceWindow
MaintenanceWindow definition.
Corresponds to the JSON property window
1452 1453 1454 |
# File 'lib/google/apis/memcache_v1/classes.rb', line 1452 def window @window end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1459 1460 1461 1462 1463 |
# File 'lib/google/apis/memcache_v1/classes.rb', line 1459 def update!(**args) @channel = args[:channel] if args.key?(:channel) @deny_maintenance_periods = args[:deny_maintenance_periods] if args.key?(:deny_maintenance_periods) @window = args[:window] if args.key?(:window) end |