class ProjectsLocationsVmwareClusters extends Resource (View source)

The "vmwareClusters" collection of methods.

Typical usage is:

 $gkeonpremService = new Google\Service\GKEOnPrem(...);
 $vmwareClusters = $gkeonpremService->projects_locations_vmwareClusters;

Methods

create(string $parent, VmwareCluster $postBody, array $optParams = [])

Creates a new VMware user cluster in a given project and location.

delete(string $name, array $optParams = [])

Deletes a single VMware Cluster. (vmwareClusters.delete)

enroll(string $parent, EnrollVmwareClusterRequest $postBody, array $optParams = [])

Enrolls an existing VMware user cluster and its node pools to the Anthos On- Prem API within a given project and location. Through enrollment, an existing cluster will become Anthos On-Prem API managed. The corresponding GCP resources will be created and all future modifications to the cluster and/or its node pools will be expected to be performed through the API.

get(string $name, array $optParams = [])

Gets details of a single VMware Cluster. (vmwareClusters.get)

getIamPolicy(string $resource, array $optParams = [])

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (vmwareClusters.getIamPolicy)

listProjectsLocationsVmwareClusters(string $parent, array $optParams = [])

Lists VMware Clusters in a given project and location.

patch(string $name, VmwareCluster $postBody, array $optParams = [])

Updates the parameters of a single VMware cluster. (vmwareClusters.patch)

queryVersionConfig(string $parent, array $optParams = [])

Queries the VMware user cluster version config.

setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. (vmwareClusters.setIamPolicy)

testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking.

unenroll(string $name, array $optParams = [])

Unenrolls an existing VMware user cluster and its node pools from the Anthos On-Prem API within a given project and location. Unenrollment removes the Cloud reference to the cluster without modifying the underlying OnPrem Resources. Clusters and node pools will continue to run; however, they will no longer be accessible through the Anthos On-Prem API or UI.

Details

Operation create(string $parent, VmwareCluster $postBody, array $optParams = [])

Creates a new VMware user cluster in a given project and location.

(vmwareClusters.create)

Parameters

string $parent

Required. The parent of the project and location where this cluster is created in. Format: "projects/{project}/locations/{location}"

VmwareCluster $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation delete(string $name, array $optParams = [])

Deletes a single VMware Cluster. (vmwareClusters.delete)

Parameters

string $name

Required. Name of the VMware user cluster to be deleted. Format: "projects/{project}/locations/{location}/vmwareClusters/{vmware_cluster}"

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation enroll(string $parent, EnrollVmwareClusterRequest $postBody, array $optParams = [])

Enrolls an existing VMware user cluster and its node pools to the Anthos On- Prem API within a given project and location. Through enrollment, an existing cluster will become Anthos On-Prem API managed. The corresponding GCP resources will be created and all future modifications to the cluster and/or its node pools will be expected to be performed through the API.

(vmwareClusters.enroll)

Parameters

string $parent

Required. The parent of the project and location where the cluster is Enrolled in. Format: "projects/{project}/locations/{location}"

EnrollVmwareClusterRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

VmwareCluster get(string $name, array $optParams = [])

Gets details of a single VMware Cluster. (vmwareClusters.get)

Parameters

string $name

Required. Name of the VMware user cluster to be returned. Format: "projects/{project}/locations/{location}/vmwareClusters/{vmware_cluster}"

array $optParams

Optional parameters.

Return Value

VmwareCluster

Exceptions

Exception

Policy getIamPolicy(string $resource, array $optParams = [])

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (vmwareClusters.getIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

ListVmwareClustersResponse listProjectsLocationsVmwareClusters(string $parent, array $optParams = [])

Lists VMware Clusters in a given project and location.

(vmwareClusters.listProjectsLocationsVmwareClusters)

Parameters

string $parent

Required. The parent of the project and location where the clusters are listed in. Format: "projects/{project}/locations/{location}"

array $optParams

Optional parameters.

Return Value

ListVmwareClustersResponse

Exceptions

Exception

Operation patch(string $name, VmwareCluster $postBody, array $optParams = [])

Updates the parameters of a single VMware cluster. (vmwareClusters.patch)

Parameters

string $name

Immutable. The VMware user cluster resource name.

VmwareCluster $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

QueryVmwareVersionConfigResponse queryVersionConfig(string $parent, array $optParams = [])

Queries the VMware user cluster version config.

(vmwareClusters.queryVersionConfig)

Parameters

string $parent

Required. The parent of the project and location to query for version config. Format: "projects/{project}/locations/{location}"

array $optParams

Optional parameters.

Return Value

QueryVmwareVersionConfigResponse

Exceptions

Exception

Policy setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. (vmwareClusters.setIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

SetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

TestIamPermissionsResponse testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking.

This operation may "fail open" without warning. (vmwareClusters.testIamPermissions)

Parameters

string $resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

TestIamPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

TestIamPermissionsResponse

Exceptions

Exception

Operation unenroll(string $name, array $optParams = [])

Unenrolls an existing VMware user cluster and its node pools from the Anthos On-Prem API within a given project and location. Unenrollment removes the Cloud reference to the cluster without modifying the underlying OnPrem Resources. Clusters and node pools will continue to run; however, they will no longer be accessible through the Anthos On-Prem API or UI.

(vmwareClusters.unenroll)

Parameters

string $name

Required. Name of the VMware user cluster to be unenrolled. Format: "projects/{project}/locations/{location}/vmwareClusters/{vmware_cluster}"

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception