# Network Services V1 API - Class Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig (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.

NetworkConfig contains network configurations for the AgentGateway.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #dns_peering_config

    def dns_peering_config() -> ::Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig::DnsPeeringConfig

**Returns**

- ([::Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig::DnsPeeringConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway-NetworkConfig-DnsPeeringConfig)) --- Optional. Optional DNS peering configuration for connectivity to your private VPC network.

### #dns_peering_config=

    def dns_peering_config=(value) -> ::Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig::DnsPeeringConfig

**Parameter**

- **value** ([::Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig::DnsPeeringConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway-NetworkConfig-DnsPeeringConfig)) --- Optional. Optional DNS peering configuration for connectivity to your private VPC network.
**Returns**

- ([::Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig::DnsPeeringConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway-NetworkConfig-DnsPeeringConfig)) --- Optional. Optional DNS peering configuration for connectivity to your private VPC network.

### #egress

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

**Returns**

- ([::Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig::Egress](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway-NetworkConfig-Egress)) --- Optional. Optional PSC-Interface network attachment for connectivity to your private VPCs network.

### #egress=

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

**Parameter**

- **value** ([::Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig::Egress](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway-NetworkConfig-Egress)) --- Optional. Optional PSC-Interface network attachment for connectivity to your private VPCs network.
**Returns**

- ([::Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig::Egress](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway-NetworkConfig-Egress)) --- Optional. Optional PSC-Interface network attachment for connectivity to your private VPCs network.