Class: Google::Apis::ContainerV1::NetworkConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::NetworkConfig
- 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
-
#enable_intra_node_visibility ⇒ Boolean
(also: #enable_intra_node_visibility?)
Whether Intra-node visibility is enabled for this cluster.
-
#network ⇒ String
Output only.
-
#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.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ NetworkConfig
Returns a new instance of NetworkConfig.
1943 1944 1945 |
# File 'generated/google/apis/container_v1/classes.rb', line 1943 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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
1925 1926 1927 |
# File 'generated/google/apis/container_v1/classes.rb', line 1925 def enable_intra_node_visibility @enable_intra_node_visibility end |
#network ⇒ String
Output only. The relative name of the Google Compute Engine
network(/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
1934 1935 1936 |
# File 'generated/google/apis/container_v1/classes.rb', line 1934 def network @network 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
1941 1942 1943 |
# File 'generated/google/apis/container_v1/classes.rb', line 1941 def subnetwork @subnetwork end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1948 1949 1950 1951 1952 |
# File 'generated/google/apis/container_v1/classes.rb', line 1948 def update!(**args) @enable_intra_node_visibility = args[:enable_intra_node_visibility] if args.key?(:enable_intra_node_visibility) @network = args[:network] if args.key?(:network) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) end |