# Google Anthos Multi Cloud V1 Client - Class AttachedClustersAuthorization (1.4.1)

1.4.1 (latest) 1.4.0 1.3.1 1.2.2 1.1.2 1.0.0 0.6.1 0.5.4 0.4.4 0.3.0 0.2.3 0.1.4 Reference documentation and code samples for the Google Anthos Multi Cloud V1 Client class AttachedClustersAuthorization.

Configuration related to the cluster RBAC settings.

Generated from protobuf message `google.cloud.gkemulticloud.v1.AttachedClustersAuthorization`

## Namespace

Google \\ Cloud \\ GkeMultiCloud \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ admin_users` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedClusterUser>` Optional. Users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see <https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles> |
| `↳ admin_groups` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedClusterGroup>` Optional. Groups of users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole to the groups. Up to ten admin groups can be provided. For more info on RBAC, see <https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles> |

### getAdminUsers

Optional. Users that can perform operations as a cluster admin. A managed
ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
to the users. Up to ten admin users can be provided.

For more info on RBAC, see
<https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles>

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedClusterUser>` |   |

### setAdminUsers

Optional. Users that can perform operations as a cluster admin. A managed
ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
to the users. Up to ten admin users can be provided.

For more info on RBAC, see
<https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles>

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedClusterUser>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAdminGroups

Optional. Groups of users that can perform operations as a cluster admin. A
managed ClusterRoleBinding will be created to grant the `cluster-admin`
ClusterRole to the groups. Up to ten admin groups can be provided.

For more info on RBAC, see
<https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles>

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedClusterGroup>` |   |

### setAdminGroups

Optional. Groups of users that can perform operations as a cluster admin. A
managed ClusterRoleBinding will be created to grant the `cluster-admin`
ClusterRole to the groups. Up to ten admin groups can be provided.

For more info on RBAC, see
<https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles>

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedClusterGroup>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |