# Managed Service for Microsoft Active Directory API V1 API - Class Google::Cloud::ManagedIdentities::V1::Trust (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.8.0 0.7.2 0.6.0 0.5.1 0.4.0 0.3.5 Reference documentation and code samples for the Managed Service for Microsoft Active Directory API V1 API class Google::Cloud::ManagedIdentities::V1::Trust.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_identities-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time the instance was created.

### #last_trust_heartbeat_time

    def last_trust_heartbeat_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_identities-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The last heartbeat time when the trust was known to be connected.

### #selective_authentication

    def selective_authentication() -> ::Boolean

**Returns**

- (::Boolean) --- 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.

### #selective_authentication=

    def selective_authentication=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- 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.
**Returns**

- (::Boolean) --- 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.

### #state

    def state() -> ::Google::Cloud::ManagedIdentities::V1::Trust::State

**Returns**

- ([::Google::Cloud::ManagedIdentities::V1::Trust::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_identities-v1/latest/Google-Cloud-ManagedIdentities-V1-Trust-State)) --- Output only. The current state of the trust.

### #state_description

    def state_description() -> ::String

**Returns**

- (::String) --- Output only. Additional information about the current state of the trust, if available.

### #target_dns_ip_addresses

    def target_dns_ip_addresses() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Required. The target DNS server IP addresses which can resolve the remote domain involved in the trust.

### #target_dns_ip_addresses=

    def target_dns_ip_addresses=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Required. The target DNS server IP addresses which can resolve the remote domain involved in the trust.
**Returns**

- (::Array\<::String\>) --- Required. The target DNS server IP addresses which can resolve the remote domain involved in the trust.

### #target_domain_name

    def target_domain_name() -> ::String

**Returns**

- (::String) --- Required. The fully qualified target domain name which will be in trust with the current domain.

### #target_domain_name=

    def target_domain_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The fully qualified target domain name which will be in trust with the current domain.
**Returns**

- (::String) --- Required. The fully qualified target domain name which will be in trust with the current domain.

### #trust_direction

    def trust_direction() -> ::Google::Cloud::ManagedIdentities::V1::Trust::TrustDirection

**Returns**

- ([::Google::Cloud::ManagedIdentities::V1::Trust::TrustDirection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_identities-v1/latest/Google-Cloud-ManagedIdentities-V1-Trust-TrustDirection)) --- Required. The trust direction, which decides if the current domain is trusted, trusting, or both.

### #trust_direction=

    def trust_direction=(value) -> ::Google::Cloud::ManagedIdentities::V1::Trust::TrustDirection

**Parameter**

- **value** ([::Google::Cloud::ManagedIdentities::V1::Trust::TrustDirection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_identities-v1/latest/Google-Cloud-ManagedIdentities-V1-Trust-TrustDirection)) --- Required. The trust direction, which decides if the current domain is trusted, trusting, or both.
**Returns**

- ([::Google::Cloud::ManagedIdentities::V1::Trust::TrustDirection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_identities-v1/latest/Google-Cloud-ManagedIdentities-V1-Trust-TrustDirection)) --- Required. The trust direction, which decides if the current domain is trusted, trusting, or both.

### #trust_handshake_secret

    def trust_handshake_secret() -> ::String

**Returns**

- (::String) --- Required. The trust secret used for the handshake with the target domain. This will not be stored.

### #trust_handshake_secret=

    def trust_handshake_secret=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The trust secret used for the handshake with the target domain. This will not be stored.
**Returns**

- (::String) --- Required. The trust secret used for the handshake with the target domain. This will not be stored.

### #trust_type

    def trust_type() -> ::Google::Cloud::ManagedIdentities::V1::Trust::TrustType

**Returns**

- ([::Google::Cloud::ManagedIdentities::V1::Trust::TrustType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_identities-v1/latest/Google-Cloud-ManagedIdentities-V1-Trust-TrustType)) --- Required. The type of trust represented by the trust resource.

### #trust_type=

    def trust_type=(value) -> ::Google::Cloud::ManagedIdentities::V1::Trust::TrustType

**Parameter**

- **value** ([::Google::Cloud::ManagedIdentities::V1::Trust::TrustType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_identities-v1/latest/Google-Cloud-ManagedIdentities-V1-Trust-TrustType)) --- Required. The type of trust represented by the trust resource.
**Returns**

- ([::Google::Cloud::ManagedIdentities::V1::Trust::TrustType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_identities-v1/latest/Google-Cloud-ManagedIdentities-V1-Trust-TrustType)) --- Required. The type of trust represented by the trust resource.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_identities-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The last update time.