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.



2838
2839
2840
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2838

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)


2836
2837
2838
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2836

def maintenance_interval
  @maintenance_interval
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2843
2844
2845
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2843

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