Class: Google::Apis::ContainerV1beta1::HostMaintenancePolicy
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::HostMaintenancePolicy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/representations.rb
Overview
HostMaintenancePolicy contains the maintenance policy for the hosts on which the GKE VMs run on.
Instance Attribute Summary collapse
-
#maintenance_interval ⇒ String
Specifies the frequency of planned maintenance events.
-
#opportunistic_maintenance_strategy ⇒ Google::Apis::ContainerV1beta1::OpportunisticMaintenanceStrategy
Strategy that will trigger maintenance on behalf of the customer.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HostMaintenancePolicy
constructor
A new instance of HostMaintenancePolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HostMaintenancePolicy
Returns a new instance of HostMaintenancePolicy.
3162 3163 3164 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3162 def initialize(**args) update!(**args) end |
Instance Attribute Details
#maintenance_interval ⇒ String
Specifies the frequency of planned maintenance events.
Corresponds to the JSON property maintenanceInterval
3155 3156 3157 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3155 def maintenance_interval @maintenance_interval end |
#opportunistic_maintenance_strategy ⇒ Google::Apis::ContainerV1beta1::OpportunisticMaintenanceStrategy
Strategy that will trigger maintenance on behalf of the customer.
Corresponds to the JSON property opportunisticMaintenanceStrategy
3160 3161 3162 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3160 def opportunistic_maintenance_strategy @opportunistic_maintenance_strategy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3167 3168 3169 3170 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3167 def update!(**args) @maintenance_interval = args[:maintenance_interval] if args.key?(:maintenance_interval) @opportunistic_maintenance_strategy = args[:opportunistic_maintenance_strategy] if args.key?(:opportunistic_maintenance_strategy) end |