Kubernetes Engine V1beta1 API - Class Google::Cloud::Container::V1beta1::SetMaintenancePolicyRequest (v0.43.0)

Reference documentation and code samples for the Kubernetes Engine V1beta1 API class Google::Cloud::Container::V1beta1::SetMaintenancePolicyRequest.

SetMaintenancePolicyRequest sets the maintenance policy for a cluster.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#cluster_id

def cluster_id() -> ::String
Returns
  • (::String) — Required. The name of the cluster to update.

#cluster_id=

def cluster_id=(value) -> ::String
Parameter
  • value (::String) — Required. The name of the cluster to update.
Returns
  • (::String) — Required. The name of the cluster to update.

#maintenance_policy

def maintenance_policy() -> ::Google::Cloud::Container::V1beta1::MaintenancePolicy
Returns

#maintenance_policy=

def maintenance_policy=(value) -> ::Google::Cloud::Container::V1beta1::MaintenancePolicy
Parameter
Returns

#name

def name() -> ::String
Returns
  • (::String) — The name (project, location, cluster name) of the cluster to set maintenance policy. Specified in the format projects/*/locations/*/clusters/*.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — The name (project, location, cluster name) of the cluster to set maintenance policy. Specified in the format projects/*/locations/*/clusters/*.
Returns
  • (::String) — The name (project, location, cluster name) of the cluster to set maintenance policy. Specified in the format projects/*/locations/*/clusters/*.

#project_id

def project_id() -> ::String
Returns

#project_id=

def project_id=(value) -> ::String
Parameter
Returns

#zone

def zone() -> ::String
Returns
  • (::String) — Required. The name of the Google Compute Engine zone in which the cluster resides.

#zone=

def zone=(value) -> ::String
Parameter
  • value (::String) — Required. The name of the Google Compute Engine zone in which the cluster resides.
Returns
  • (::String) — Required. The name of the Google Compute Engine zone in which the cluster resides.