class ProjectsLocationsVmwareAdminClusters extends Resource (View source)

The "vmwareAdminClusters" collection of methods.

Typical usage is:

 $gkeonpremService = new Google\Service\GKEOnPrem(...);
 $vmwareAdminClusters = $gkeonpremService->projects_locations_vmwareAdminClusters;

Methods

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

Enrolls an existing VMware admin cluster to the Anthos On-Prem API within a given project and location. Through enrollment, an existing admin cluster will become Anthos On-Prem API managed. The corresponding GCP resources will be created and all future modifications to the cluster will be expected to be performed through the API. (vmwareAdminClusters.enroll)

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

Gets details of a single VMware admin cluster. (vmwareAdminClusters.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.

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

Lists VMware admin clusters in a given project and location.

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

Updates the parameters of a single VMware admin cluster.

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. (vmwareAdminClusters.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 admin cluster 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 will continue to run; however, they will no longer be accessible through the Anthos On-Prem API or its clients. (vmwareAdminClusters.unenroll)

Details

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

Enrolls an existing VMware admin cluster to the Anthos On-Prem API within a given project and location. Through enrollment, an existing admin cluster will become Anthos On-Prem API managed. The corresponding GCP resources will be created and all future modifications to the cluster will be expected to be performed through the API. (vmwareAdminClusters.enroll)

Parameters

string $parent

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

EnrollVmwareAdminClusterRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets details of a single VMware admin cluster. (vmwareAdminClusters.get)

Parameters

string $name

Required. Name of the VMware admin cluster to be returned. Format: "projects/{project}/locations/{location}/vmwareAdminCluster s/{vmware_admin_cluster}"

array $optParams

Optional parameters.

Return Value

VmwareAdminCluster

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.

(vmwareAdminClusters.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

ListVmwareAdminClustersResponse listProjectsLocationsVmwareAdminClusters(string $parent, array $optParams = [])

Lists VMware admin clusters in a given project and location.

(vmwareAdminClusters.listProjectsLocationsVmwareAdminClusters)

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

ListVmwareAdminClustersResponse

Exceptions

Exception

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

Updates the parameters of a single VMware admin cluster.

(vmwareAdminClusters.patch)

Parameters

string $name

Immutable. The VMware admin cluster resource name.

VmwareAdminCluster $postBody
array $optParams

Optional parameters.

Return Value

Operation

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. (vmwareAdminClusters.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. (vmwareAdminClusters.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 admin cluster 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 will continue to run; however, they will no longer be accessible through the Anthos On-Prem API or its clients. (vmwareAdminClusters.unenroll)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception