# Google Cloud Managed Identities V1 Client - Class Domain (2.2.0)

2.2.0 (latest) 2.1.1 2.0.5 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Managed Identities V1 Client class Domain.

Represents a managed Microsoft Active Directory domain.

Generated from protobuf message `google.cloud.managedidentities.v1.Domain`

## Namespace

Google \\ Cloud \\ ManagedIdentities \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The unique name of the domain using the form: `projects/{project_id}/locations/global/domains/{domain_name}`. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. Resource labels that can contain user-provided metadata. |
| `↳ authorized_networks` | `string[]` Optional. The full names of the Google Compute Engine [networks](https://docs.cloud.google.com/compute/docs/networks-and-firewalls#networks) the domain instance is connected to. Networks can be added using UpdateDomain. The domain is only available on networks listed in `authorized_networks`. If CIDR subnets overlap between networks, domain creation will fail. |
| `↳ reserved_ip_range` | `string` Required. The CIDR range of internal addresses that are reserved for this domain. Reserved networks must be /24 or larger. Ranges must be unique and non-overlapping with existing subnets in \[Domain\].\[authorized_networks\]. |
| `↳ locations` | `string[]` Required. Locations where domain needs to be provisioned. \[regions\]\[compute/docs/regions-zones/\] e.g. us-west1 or us-east4 Service supports up to 4 locations at once. Each location will use a /26 block. |
| `↳ admin` | `string` Optional. The name of delegated administrator account used to perform Active Directory operations. If not specified, `setupadmin` will be used. |
| `↳ fqdn` | `string` Output only. The fully-qualified domain name of the exposed domain used by clients to connect to the service. Similar to what would be chosen for an Active Directory set up on an internal network. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time the instance was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The last update time. |
| `↳ state` | `int` Output only. The current state of this domain. |
| `↳ status_message` | `string` Output only. Additional information about the current status of this domain, if available. |
| `↳ trusts` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-managed-identities/latest/V1.Trust>` Output only. The current trusts associated with the domain. |

### getName

Required. The unique name of the domain using the form:
`projects/{project_id}/locations/global/domains/{domain_name}`.

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

### setName

Required. The unique name of the domain using the form:
`projects/{project_id}/locations/global/domains/{domain_name}`.

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

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

### getLabels

Optional. Resource labels that can contain user-provided metadata.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

Optional. Resource labels that can contain user-provided metadata.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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

### getAuthorizedNetworks

Optional. The full names of the Google Compute Engine
[networks](https://docs.cloud.google.com/compute/docs/networks-and-firewalls#networks) the domain
instance is connected to. Networks can be added using UpdateDomain.

The domain is only available on networks listed in `authorized_networks`.
If CIDR subnets overlap between networks, domain creation will fail.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setAuthorizedNetworks

Optional. The full names of the Google Compute Engine
[networks](https://docs.cloud.google.com/compute/docs/networks-and-firewalls#networks) the domain
instance is connected to. Networks can be added using UpdateDomain.

The domain is only available on networks listed in `authorized_networks`.
If CIDR subnets overlap between networks, domain creation will fail.

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

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

### getReservedIpRange

Required. The CIDR range of internal addresses that are reserved for this
domain. Reserved networks must be /24 or larger. Ranges must be
unique and non-overlapping with existing subnets in
\[Domain\].\[authorized_networks\].

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

### setReservedIpRange

Required. The CIDR range of internal addresses that are reserved for this
domain. Reserved networks must be /24 or larger. Ranges must be
unique and non-overlapping with existing subnets in
\[Domain\].\[authorized_networks\].

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

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

### getLocations

Required. Locations where domain needs to be provisioned.

\[regions\]\[compute/docs/regions-zones/\]
e.g. us-west1 or us-east4
Service supports up to 4 locations at once. Each location will use a /26
block.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setLocations

Required. Locations where domain needs to be provisioned.

\[regions\]\[compute/docs/regions-zones/\]
e.g. us-west1 or us-east4
Service supports up to 4 locations at once. Each location will use a /26
block.

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

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

### getAdmin

Optional. The name of delegated administrator account used to perform
Active Directory operations. If not specified, `setupadmin` will be used.

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

### setAdmin

Optional. The name of delegated administrator account used to perform
Active Directory operations. If not specified, `setupadmin` will be used.

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

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

### getFqdn

Output only. The fully-qualified domain name of the exposed domain used by
clients to connect to the service. Similar to what would be chosen for an
Active Directory set up on an internal network.

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

### setFqdn

Output only. The fully-qualified domain name of the exposed domain used by
clients to connect to the service. Similar to what would be chosen for an
Active Directory set up on an internal network.

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

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

### getCreateTime

Output only. The time the instance was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time the instance was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. The last update time.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The last update time.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getState

Output only. The current state of this domain.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-managed-identities/latest/V1.Domain.State). |

### setState

Output only. The current state of this domain.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-managed-identities/latest/V1.Domain.State). |

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

### getStatusMessage

Output only. Additional information about the current status of this
domain, if available.

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

### setStatusMessage

Output only. Additional information about the current status of this
domain, if available.

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

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

### getTrusts

Output only. The current trusts associated with the domain.

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

### setTrusts

Output only. The current trusts associated with the domain.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-managed-identities/latest/V1.Trust>` |

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