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.
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.
2821 2822 2823 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2821 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
2819 2820 2821 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2819 def maintenance_interval @maintenance_interval end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2826 2827 2828 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2826 def update!(**args) @maintenance_interval = args[:maintenance_interval] if args.key?(:maintenance_interval) end |