Class: Google::Apis::ContainerV1::DnsEndpointConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::DnsEndpointConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/container_v1/classes.rb,
lib/google/apis/container_v1/representations.rb,
lib/google/apis/container_v1/representations.rb
Overview
Describes the configuration of a DNS endpoint.
Instance Attribute Summary collapse
-
#allow_external_traffic ⇒ Boolean
(also: #allow_external_traffic?)
Controls whether user traffic is allowed over this endpoint.
-
#endpoint ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DnsEndpointConfig
constructor
A new instance of DnsEndpointConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DnsEndpointConfig
Returns a new instance of DnsEndpointConfig.
2391 2392 2393 |
# File 'lib/google/apis/container_v1/classes.rb', line 2391 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_external_traffic ⇒ Boolean Also known as: allow_external_traffic?
Controls whether user traffic is allowed over this endpoint. Note that GCP-
managed services may still use the endpoint even if this is false.
Corresponds to the JSON property allowExternalTraffic
2380 2381 2382 |
# File 'lib/google/apis/container_v1/classes.rb', line 2380 def allow_external_traffic @allow_external_traffic end |
#endpoint ⇒ String
Output only. The cluster's DNS endpoint configuration. A DNS format address.
This is accessible from the public internet. Ex: uid.us-central1.gke.goog.
Always present, but the behavior may change according to the value of
DNSEndpointConfig.allow_external_traffic.
Corresponds to the JSON property endpoint
2389 2390 2391 |
# File 'lib/google/apis/container_v1/classes.rb', line 2389 def endpoint @endpoint end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2396 2397 2398 2399 |
# File 'lib/google/apis/container_v1/classes.rb', line 2396 def update!(**args) @allow_external_traffic = args[:allow_external_traffic] if args.key?(:allow_external_traffic) @endpoint = args[:endpoint] if args.key?(:endpoint) end |