class ProjectsLocationsBareMetalClusters extends Resource (View source)

The "bareMetalClusters" collection of methods.

Typical usage is:

 $gkeonpremService = new Google\Service\GKEOnPrem(...);
 $bareMetalClusters = $gkeonpremService->projects_locations_bareMetalClusters;

Methods

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

Creates a new bare metal cluster in a given project and location.

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

Deletes a single bare metal Cluster. (bareMetalClusters.delete)

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

Enrolls an existing bare metal 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 bare metal Cluster. (bareMetalClusters.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.

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

Lists bare metal clusters in a given project and location.

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

Updates the parameters of a single bare metal Cluster.

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

Queries the bare metal 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. (bareMetalClusters.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 bare metal 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 its clients.

Details

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

Creates a new bare metal cluster in a given project and location.

(bareMetalClusters.create)

Parameters

string $parent

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

BareMetalCluster $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a single bare metal Cluster. (bareMetalClusters.delete)

Parameters

string $name

Required. Name of the bare metal user cluster to be deleted. Format: "projects/{project}/locations/{location}/bareMetalClusters/{ bare_metal_cluster}"

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Enrolls an existing bare metal 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.

(bareMetalClusters.enroll)

Parameters

string $parent

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

EnrollBareMetalClusterRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets details of a single bare metal Cluster. (bareMetalClusters.get)

Parameters

string $name

Required. Name of the bare metal user cluster to get. Format: "projects/{project}/locations/{location}/bareMetalClusters/{bare_meta l_cluster}"

array $optParams

Optional parameters.

Return Value

BareMetalCluster

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.

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

ListBareMetalClustersResponse listProjectsLocationsBareMetalClusters(string $parent, array $optParams = [])

Lists bare metal clusters in a given project and location.

(bareMetalClusters.listProjectsLocationsBareMetalClusters)

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

ListBareMetalClustersResponse

Exceptions

Exception

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

Updates the parameters of a single bare metal Cluster.

(bareMetalClusters.patch)

Parameters

string $name

Immutable. The bare metal user cluster resource name.

BareMetalCluster $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Queries the bare metal user cluster version config.

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

QueryBareMetalVersionConfigResponse

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. (bareMetalClusters.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. (bareMetalClusters.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 bare metal 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 its clients.

(bareMetalClusters.unenroll)

Parameters

string $name

Required. Name of the bare metal user cluster to be unenrolled. Format: "projects/{project}/locations/{location}/bareMetalClusters/{cluster}"

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception