ProjectsLocationsMemberships
class ProjectsLocationsMemberships extends Resource (View source)
The "memberships" collection of methods.
Typical usage is:
$gkehubService = new Google\Service\GKEHub(...);
$memberships = $gkehubService->projects_locations_memberships;
Methods
Creates a new Membership. This is currently only supported for GKE clusters on Google Cloud. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering- a-cluster. (memberships.create)
Removes a Membership. This is currently only supported for GKE clusters on Google Cloud. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster- management/connect/unregistering-a-cluster. (memberships.delete)
Generates the manifest for deployment of the GKE connect agent. This method is used internally by Google-provided libraries. Most clients should not need to call this method directly. (memberships.generateConnectManifest)
Gets the details of a Membership. (memberships.get)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (memberships.getIamPolicy)
Lists Memberships in a given project and location.
Updates an existing Membership. (memberships.patch)
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors. (memberships.setIamPolicy)
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.
Details
Operation
create(string $parent, Membership $postBody, array $optParams = [])
Creates a new Membership. This is currently only supported for GKE clusters on Google Cloud. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering- a-cluster. (memberships.create)
Operation
delete(string $name, array $optParams = [])
Removes a Membership. This is currently only supported for GKE clusters on Google Cloud. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster- management/connect/unregistering-a-cluster. (memberships.delete)
GenerateConnectManifestResponse
generateConnectManifest(string $name, array $optParams = [])
Generates the manifest for deployment of the GKE connect agent. This method is used internally by Google-provided libraries. Most clients should not need to call this method directly. (memberships.generateConnectManifest)
Membership
get(string $name, array $optParams = [])
Gets the details of a Membership. (memberships.get)
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. (memberships.getIamPolicy)
ListMembershipsResponse
listProjectsLocationsMemberships(string $parent, array $optParams = [])
Lists Memberships in a given project and location.
(memberships.listProjectsLocationsMemberships)
Operation
patch(string $name, Membership $postBody, array $optParams = [])
Updates an existing Membership. (memberships.patch)
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. (memberships.setIamPolicy)
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. (memberships.testIamPermissions)