class ProjectsLocationsBareMetalAdminClusters extends Resource (View source)

The "bareMetalAdminClusters" collection of methods.

Typical usage is:

 $gkeonpremService = new Google\Service\GKEOnPrem(...);
 $bareMetalAdminClusters = $gkeonpremService->projects_locations_bareMetalAdminClusters;

Methods

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

Creates a new bare metal admin cluster in a given project and location. The API needs to be combined with creating a bootstrap cluster to work. See: https://cloud.google.com/anthos/clusters/docs/bare- metal/latest/installing/creating-clusters/create-admin-cluster- api#prepare_bootstrap_environment (bareMetalAdminClusters.create)

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

Enrolls an existing bare metal 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. (bareMetalAdminClusters.enroll)

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

Gets details of a single bare metal admin cluster.

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.

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

Lists bare metal admin clusters in a given project and location.

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

Updates the parameters of a single bare metal admin cluster.

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

Queries the bare metal admin 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. (bareMetalAdminClusters.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 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. (bareMetalAdminClusters.unenroll)

Details

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

Creates a new bare metal admin cluster in a given project and location. The API needs to be combined with creating a bootstrap cluster to work. See: https://cloud.google.com/anthos/clusters/docs/bare- metal/latest/installing/creating-clusters/create-admin-cluster- api#prepare_bootstrap_environment (bareMetalAdminClusters.create)

Parameters

string $parent

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

BareMetalAdminCluster $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Enrolls an existing bare metal 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. (bareMetalAdminClusters.enroll)

Parameters

string $parent

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

EnrollBareMetalAdminClusterRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets details of a single bare metal admin cluster.

(bareMetalAdminClusters.get)

Parameters

string $name

Required. Name of the bare metal admin cluster to get. Format: "projects/{project}/locations/{location}/bareMetalAdminClusters/{bare _metal_admin_cluster}"

array $optParams

Optional parameters.

Return Value

BareMetalAdminCluster

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.

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

ListBareMetalAdminClustersResponse listProjectsLocationsBareMetalAdminClusters(string $parent, array $optParams = [])

Lists bare metal admin clusters in a given project and location.

(bareMetalAdminClusters.listProjectsLocationsBareMetalAdminClusters)

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

ListBareMetalAdminClustersResponse

Exceptions

Exception

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

Updates the parameters of a single bare metal admin cluster.

(bareMetalAdminClusters.patch)

Parameters

string $name

Immutable. The bare metal admin cluster resource name.

BareMetalAdminCluster $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Queries the bare metal admin cluster version config.

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

QueryBareMetalAdminVersionConfigResponse

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. (bareMetalAdminClusters.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. (bareMetalAdminClusters.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 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. (bareMetalAdminClusters.unenroll)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception