Class: Google::Apis::NetworkservicesV1::EgressNetworkConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networkservices_v1/classes.rb,
lib/google/apis/networkservices_v1/representations.rb,
lib/google/apis/networkservices_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EgressNetworkConfig

Returns a new instance of EgressNetworkConfig.



743
744
745
# File 'lib/google/apis/networkservices_v1/classes.rb', line 743

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#dns_peering_configGoogle::Apis::NetworkservicesV1::DnsPeeringConfig

DNS Peering configuration. Corresponds to the JSON property dnsPeeringConfig



724
725
726
# File 'lib/google/apis/networkservices_v1/classes.rb', line 724

def dns_peering_config
  @dns_peering_config
end

#network_attachmentString

Optional. The network attachment resource name. Format: projects/project/ regions/region/networkAttachments/network_attachment_id Corresponds to the JSON property networkAttachment

Returns:

  • (String)


730
731
732
# File 'lib/google/apis/networkservices_v1/classes.rb', line 730

def network_attachment
  @network_attachment
end

#trust_configString

Optional. Deprecated: Use tls_config instead. The trust config resource name. Format: projects/project/locations/location/trustConfigs/trust_config Corresponds to the JSON property trustConfig

Returns:

  • (String)


736
737
738
# File 'lib/google/apis/networkservices_v1/classes.rb', line 736

def trust_config
  @trust_config
end

#vpc_egressString

Optional. The VPC egress setting. Corresponds to the JSON property vpcEgress

Returns:

  • (String)


741
742
743
# File 'lib/google/apis/networkservices_v1/classes.rb', line 741

def vpc_egress
  @vpc_egress
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



748
749
750
751
752
753
# File 'lib/google/apis/networkservices_v1/classes.rb', line 748

def update!(**args)
  @dns_peering_config = args[:dns_peering_config] if args.key?(:dns_peering_config)
  @network_attachment = args[:network_attachment] if args.key?(:network_attachment)
  @trust_config = args[:trust_config] if args.key?(:trust_config)
  @vpc_egress = args[:vpc_egress] if args.key?(:vpc_egress)
end