ProjectsLocationsClusters
class ProjectsLocationsClusters extends Resource (View source)
The "clusters" collection of methods.
Typical usage is:
$containerService = new Google\Service\Container(...);
$clusters = $containerService->projects_locations_clusters;
Methods
Checks the cluster compatibility with Autopilot mode, and returns a list of compatibility issues. (clusters.checkAutopilotCompatibility)
Completes master IP rotation. (clusters.completeIpRotation)
Creates a cluster, consisting of the specified number and type of Google Compute Engine instances. By default, the cluster is created in the project's default network. One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster. Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using. (clusters.create)
Deletes the cluster, including the Kubernetes endpoint and all worker nodes.
Gets the details of a specific cluster. (clusters.get)
Gets the public component of the cluster signing keys in JSON Web Key format.
Lists all clusters owned by a project in either the specified zone or all zones. (clusters.listProjectsLocationsClusters)
Sets the addons for a specific cluster. (clusters.setAddons)
Enables or disables the ABAC authorization mechanism on a cluster.
Sets the locations for a specific cluster. Deprecated. Use projects.locations.clusters.update instead.
Sets the logging service for a specific cluster. (clusters.setLogging)
Sets the maintenance policy for a cluster. (clusters.setMaintenancePolicy)
Sets master auth materials. Currently supports changing the admin password or a specific cluster, either via password generation or explicitly setting the password. (clusters.setMasterAuth)
Sets the monitoring service for a specific cluster. (clusters.setMonitoring)
Enables or disables Network Policy for a cluster. (clusters.setNetworkPolicy)
Sets labels on a cluster. (clusters.setResourceLabels)
Starts master IP rotation. (clusters.startIpRotation)
Updates the settings of a specific cluster. (clusters.update)
Updates the master for a specific cluster. (clusters.updateMaster)
Details
CheckAutopilotCompatibilityResponse
checkAutopilotCompatibility(string $name, array $optParams = [])
Checks the cluster compatibility with Autopilot mode, and returns a list of compatibility issues. (clusters.checkAutopilotCompatibility)
Operation
completeIpRotation(string $name, CompleteIPRotationRequest $postBody, array $optParams = [])
Completes master IP rotation. (clusters.completeIpRotation)
Operation
create(string $parent, CreateClusterRequest $postBody, array $optParams = [])
Creates a cluster, consisting of the specified number and type of Google Compute Engine instances. By default, the cluster is created in the project's default network. One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster. Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using. (clusters.create)
Operation
delete(string $name, array $optParams = [])
Deletes the cluster, including the Kubernetes endpoint and all worker nodes.
Firewalls and routes that were configured during cluster creation are also deleted. Other Google Compute Engine resources that might be in use by the cluster, such as load balancer resources, are not deleted if they weren't present when the cluster was initially created. (clusters.delete)
Cluster
get(string $name, array $optParams = [])
Gets the details of a specific cluster. (clusters.get)
GetJSONWebKeysResponse
getJwks(string $parent, array $optParams = [])
Gets the public component of the cluster signing keys in JSON Web Key format.
(clusters.getJwks)
ListClustersResponse
listProjectsLocationsClusters(string $parent, array $optParams = [])
Lists all clusters owned by a project in either the specified zone or all zones. (clusters.listProjectsLocationsClusters)
Operation
setAddons(string $name, SetAddonsConfigRequest $postBody, array $optParams = [])
Sets the addons for a specific cluster. (clusters.setAddons)
Operation
setLegacyAbac(string $name, SetLegacyAbacRequest $postBody, array $optParams = [])
Enables or disables the ABAC authorization mechanism on a cluster.
(clusters.setLegacyAbac)
Operation
setLocations(string $name, SetLocationsRequest $postBody, array $optParams = [])
Sets the locations for a specific cluster. Deprecated. Use projects.locations.clusters.update instead.
(clusters.setLocations)
Operation
setLogging(string $name, SetLoggingServiceRequest $postBody, array $optParams = [])
Sets the logging service for a specific cluster. (clusters.setLogging)
Operation
setMaintenancePolicy(string $name, SetMaintenancePolicyRequest $postBody, array $optParams = [])
Sets the maintenance policy for a cluster. (clusters.setMaintenancePolicy)
Operation
setMasterAuth(string $name, SetMasterAuthRequest $postBody, array $optParams = [])
Sets master auth materials. Currently supports changing the admin password or a specific cluster, either via password generation or explicitly setting the password. (clusters.setMasterAuth)
Operation
setMonitoring(string $name, SetMonitoringServiceRequest $postBody, array $optParams = [])
Sets the monitoring service for a specific cluster. (clusters.setMonitoring)
Operation
setNetworkPolicy(string $name, SetNetworkPolicyRequest $postBody, array $optParams = [])
Enables or disables Network Policy for a cluster. (clusters.setNetworkPolicy)
Operation
setResourceLabels(string $name, SetLabelsRequest $postBody, array $optParams = [])
Sets labels on a cluster. (clusters.setResourceLabels)
Operation
startIpRotation(string $name, StartIPRotationRequest $postBody, array $optParams = [])
Starts master IP rotation. (clusters.startIpRotation)
Operation
update(string $name, UpdateClusterRequest $postBody, array $optParams = [])
Updates the settings of a specific cluster. (clusters.update)
Operation
updateMaster(string $name, UpdateMasterRequest $postBody, array $optParams = [])
Updates the master for a specific cluster. (clusters.updateMaster)