# Google Cloud Vmware Engine V1 Client - Class DnsBindPermission (1.3.0)

1.3.0 (latest) 1.2.2 1.1.4 1.0.0 0.5.6 0.4.0 0.3.3 0.2.1 0.1.4 Reference documentation and code samples for the Google Cloud Vmware Engine V1 Client class DnsBindPermission.

DnsBindPermission resource that contains the accounts having the consumer DNS
bind permission on the corresponding intranet VPC of the consumer project.

Generated from protobuf message `google.cloud.vmwareengine.v1.DnsBindPermission`

## Namespace

Google \\ Cloud \\ VmwareEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. Output only. The name of the resource which stores the users/service accounts having the permission to bind to the corresponding intranet VPC of the consumer project. DnsBindPermission is a global resource and location can only be global. Resource names are schemeless URIs that follow the conventions in <https://cloud.google.com/apis/design/resource_names>. For example: `projects/my-project/locations/global/dnsBindPermission` |
| `↳ principals` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.Principal>` Output only. Users/Service accounts which have access for binding on the intranet VPC project corresponding to the consumer project. |

### getName

Required. Output only. The name of the resource which stores the
users/service accounts having the permission to bind to the corresponding
intranet VPC of the consumer project. DnsBindPermission is a global
resource and location can only be global. Resource names are schemeless
URIs that follow the conventions in
<https://cloud.google.com/apis/design/resource_names>. For example:
`projects/my-project/locations/global/dnsBindPermission`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Required. Output only. The name of the resource which stores the
users/service accounts having the permission to bind to the corresponding
intranet VPC of the consumer project. DnsBindPermission is a global
resource and location can only be global. Resource names are schemeless
URIs that follow the conventions in
<https://cloud.google.com/apis/design/resource_names>. For example:
`projects/my-project/locations/global/dnsBindPermission`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getPrincipals

Output only. Users/Service accounts which have access for binding on the
intranet VPC project corresponding to the consumer project.

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

### setPrincipals

Output only. Users/Service accounts which have access for binding on the
intranet VPC project corresponding to the consumer project.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.Principal>` |

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