Class: Google::Apis::ContainerV1::NetworkConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::NetworkConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/container_v1/classes.rb,
generated/google/apis/container_v1/representations.rb,
generated/google/apis/container_v1/representations.rb
Overview
NetworkConfig reports the relative names of network & subnetwork.
Instance Attribute Summary collapse
-
#default_snat_status ⇒ Google::Apis::ContainerV1::DefaultSnatStatus
DefaultSnatStatus contains the desired state of whether default sNAT should be disabled on the cluster.
-
#enable_intra_node_visibility ⇒ Boolean
(also: #enable_intra_node_visibility?)
Whether Intra-node visibility is enabled for this cluster.
-
#network ⇒ String
Output only.
-
#private_ipv6_google_access ⇒ String
The desired state of IPv6 connectivity to Google Services.
-
#subnetwork ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkConfig
constructor
A new instance of NetworkConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkConfig
Returns a new instance of NetworkConfig.
2154 2155 2156 |
# File 'generated/google/apis/container_v1/classes.rb', line 2154 def initialize(**args) update!(**args) end |
Instance Attribute Details
#default_snat_status ⇒ Google::Apis::ContainerV1::DefaultSnatStatus
DefaultSnatStatus contains the desired state of whether default sNAT should be
disabled on the cluster.
Corresponds to the JSON property defaultSnatStatus
2125 2126 2127 |
# File 'generated/google/apis/container_v1/classes.rb', line 2125 def default_snat_status @default_snat_status end |
#enable_intra_node_visibility ⇒ Boolean Also known as: enable_intra_node_visibility?
Whether Intra-node visibility is enabled for this cluster. This makes same
node pod to pod traffic visible for VPC network.
Corresponds to the JSON property enableIntraNodeVisibility
2131 2132 2133 |
# File 'generated/google/apis/container_v1/classes.rb', line 2131 def enable_intra_node_visibility @enable_intra_node_visibility end |
#network ⇒ String
Output only. The relative name of the Google Compute Engine network(https://
cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the
cluster is connected. Example: projects/my-project/global/networks/my-network
Corresponds to the JSON property network
2139 2140 2141 |
# File 'generated/google/apis/container_v1/classes.rb', line 2139 def network @network end |
#private_ipv6_google_access ⇒ String
The desired state of IPv6 connectivity to Google Services. By default, no
private IPv6 access to or from Google Services (all access will be via IPv4)
Corresponds to the JSON property privateIpv6GoogleAccess
2145 2146 2147 |
# File 'generated/google/apis/container_v1/classes.rb', line 2145 def private_ipv6_google_access @private_ipv6_google_access end |
#subnetwork ⇒ String
Output only. The relative name of the Google Compute Engine subnetwork to which the cluster is connected.
Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
Corresponds to the JSON property subnetwork
2152 2153 2154 |
# File 'generated/google/apis/container_v1/classes.rb', line 2152 def subnetwork @subnetwork end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2159 2160 2161 2162 2163 2164 2165 |
# File 'generated/google/apis/container_v1/classes.rb', line 2159 def update!(**args) @default_snat_status = args[:default_snat_status] if args.key?(:default_snat_status) @enable_intra_node_visibility = args[:enable_intra_node_visibility] if args.key?(:enable_intra_node_visibility) @network = args[:network] if args.key?(:network) @private_ipv6_google_access = args[:private_ipv6_google_access] if args.key?(:private_ipv6_google_access) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) end |