Reference documentation and code samples for the Google Cloud Container V1 Client class SetMaintenancePolicyRequest.
SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
Generated from protobuf message google.container.v1.SetMaintenancePolicyRequest
Namespace
Google \ Cloud \ Container \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ project_id
↳ zone
↳ cluster_id
string
Required. The name of the cluster to update.
↳ maintenance_policy
Google\Cloud\Container\V1\MaintenancePolicy
Required. The maintenance policy to be set for the cluster. An empty field clears the existing maintenance policy.
↳ name
string
The name (project, location, cluster name) of the cluster to set maintenance policy. Specified in the format projects/*/locations/*/clusters/*
.
getProjectId
Required. The Google Developers Console project ID or project number .
string
setProjectId
Required. The Google Developers Console project ID or project number .
var
string
$this
getZone
Required. The name of the Google Compute Engine zone in which the cluster resides.
string
setZone
Required. The name of the Google Compute Engine zone in which the cluster resides.
var
string
$this
getClusterId
Required. The name of the cluster to update.
string
setClusterId
Required. The name of the cluster to update.
var
string
$this
getMaintenancePolicy
Required. The maintenance policy to be set for the cluster. An empty field clears the existing maintenance policy.
hasMaintenancePolicy
clearMaintenancePolicy
setMaintenancePolicy
Required. The maintenance policy to be set for the cluster. An empty field clears the existing maintenance policy.
$this
getName
The name (project, location, cluster name) of the cluster to set maintenance policy.
Specified in the format projects/*/locations/*/clusters/*
.
string
setName
The name (project, location, cluster name) of the cluster to set maintenance policy.
Specified in the format projects/*/locations/*/clusters/*
.
var
string
$this
static::build
projectId
zone
clusterId
string
Required. The name of the cluster to update.
maintenancePolicy
Google\Cloud\Container\V1\MaintenancePolicy
Required. The maintenance policy to be set for the cluster. An empty field clears the existing maintenance policy.
static::buildFromNameMaintenancePolicy
name
string
The name (project, location, cluster name) of the cluster to set
maintenance policy.
Specified in the format projects/*/locations/*/clusters/*
.
maintenancePolicy
Google\Cloud\Container\V1\MaintenancePolicy
Required. The maintenance policy to be set for the cluster. An empty field clears the existing maintenance policy.