# Class Trust (1.16.0)

1.16.0 (latest) 1.15.0 1.14.0 1.13.0 1.12.2 1.11.0 1.10.1 1.9.5 1.8.0 1.7.2 1.6.0 1.5.4 1.4.2 1.3.1 1.2.0 1.1.3 1.0.0 0.2.2 0.1.0

    Trust(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a relationship between two domains. This allows a
controller in one domain to authenticate a user in another
domain.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `target_domain_name` | `str` Required. The fully qualified target domain name which will be in trust with the current domain. |
| `trust_type` | `https://docs.cloud.google.com/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.Trust.TrustType` Required. The type of trust represented by the trust resource. |
| `trust_direction` | `https://docs.cloud.google.com/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.Trust.TrustDirection` Required. The trust direction, which decides if the current domain is trusted, trusting, or both. |
| `selective_authentication` | `bool` Optional. The trust authentication type, which decides whether the trusted side has forest/domain wide access or selective access to an approved set of resources. |
| `target_dns_ip_addresses` | `MutableSequence[str]` Required. The target DNS server IP addresses which can resolve the remote domain involved in the trust. |
| `trust_handshake_secret` | `str` Required. The trust secret used for the handshake with the target domain. This will not be stored. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The time the instance was created. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The last update time. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.Trust.State` Output only. The current state of the trust. |
| `state_description` | `str` Output only. Additional information about the current state of the trust, if available. |
| `last_trust_heartbeat_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The last heartbeat time when the trust was known to be connected. |

## Classes

### State

    State(value)

Represents the different states of a domain trust.

### TrustDirection

    TrustDirection(value)

Represents the direction of trust. See
`System.DirectoryServices.ActiveDirectory.TrustDirection <https://docs.microsoft.com/en-us/dotnet/api/system.directoryservices.activedirectory.trustdirection?view=netframework-4.7.2>`__
for more information.

### TrustType

    TrustType(value)

Represents the different inter-forest trust types.