Class: Google::Apis::ContainerV1beta1::HostMaintenancePolicy

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HostMaintenancePolicy

Returns a new instance of HostMaintenancePolicy.



2800
2801
2802
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2800

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

Instance Attribute Details

#maintenance_intervalString

Specifies the frequency of planned maintenance events. Corresponds to the JSON property maintenanceInterval

Returns:

  • (String)


2798
2799
2800
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2798

def maintenance_interval
  @maintenance_interval
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2805
2806
2807
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2805

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