Class: Google::Apis::ContainerV1::NetworkConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NetworkConfig

Returns a new instance of NetworkConfig.


2054
2055
2056
# File 'generated/google/apis/container_v1/classes.rb', line 2054

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

Instance Attribute Details

#default_snat_statusGoogle::Apis::ContainerV1::DefaultSnatStatus

DefaultSnatStatus contains the desired state of whether default sNAT should be disabled on the cluster. Corresponds to the JSON property defaultSnatStatus


2031
2032
2033
# File 'generated/google/apis/container_v1/classes.rb', line 2031

def default_snat_status
  @default_snat_status
end

#enable_intra_node_visibilityBoolean 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

Returns:

  • (Boolean)

2037
2038
2039
# File 'generated/google/apis/container_v1/classes.rb', line 2037

def enable_intra_node_visibility
  @enable_intra_node_visibility
end

#networkString

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

Returns:

  • (String)

2045
2046
2047
# File 'generated/google/apis/container_v1/classes.rb', line 2045

def network
  @network
end

#subnetworkString

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

Returns:

  • (String)

2052
2053
2054
# File 'generated/google/apis/container_v1/classes.rb', line 2052

def subnetwork
  @subnetwork
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2059
2060
2061
2062
2063
2064
# File 'generated/google/apis/container_v1/classes.rb', line 2059

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)
  @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
end