Class: Google::Apis::ContainerV1::SetMaintenancePolicyRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/container_v1/classes.rb,
generated/google/apis/container_v1/representations.rb,
generated/google/apis/container_v1/representations.rb

Overview

SetMaintenancePolicyRequest sets the maintenance policy for a cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SetMaintenancePolicyRequest

Returns a new instance of SetMaintenancePolicyRequest



1692
1693
1694
# File 'generated/google/apis/container_v1/classes.rb', line 1692

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

Instance Attribute Details

#maintenance_policyGoogle::Apis::ContainerV1::MaintenancePolicy

MaintenancePolicy defines the maintenance policy to be used for the cluster. Corresponds to the JSON property maintenancePolicy



1690
1691
1692
# File 'generated/google/apis/container_v1/classes.rb', line 1690

def maintenance_policy
  @maintenance_policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1697
1698
1699
# File 'generated/google/apis/container_v1/classes.rb', line 1697

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