# Network Services V1 API - Class Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig::Egress (v2.10.1)

2.10.1 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.1 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.2.0 0.1.0 Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig::Egress.

Configuration for Egress

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #network_attachment

    def network_attachment() -> ::String

**Returns**

- (::String) --- Optional. The URI of the Network Attachment resource.

### #network_attachment=

    def network_attachment=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The URI of the Network Attachment resource.
**Returns**

- (::String) --- Optional. The URI of the Network Attachment resource.

### #trust_config

    def trust_config() -> ::Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig::Egress::TrustConfig

**Returns**

- ([::Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig::Egress::TrustConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway-NetworkConfig-Egress-TrustConfig)) --- Optional. TrustConfig defines the trust configuration for egress.

### #trust_config=

    def trust_config=(value) -> ::Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig::Egress::TrustConfig

**Parameter**

- **value** ([::Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig::Egress::TrustConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway-NetworkConfig-Egress-TrustConfig)) --- Optional. TrustConfig defines the trust configuration for egress.
**Returns**

- ([::Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig::Egress::TrustConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway-NetworkConfig-Egress-TrustConfig)) --- Optional. TrustConfig defines the trust configuration for egress.