Class: Google::Apis::BatchV1::NetworkInterface
- Inherits:
-
Object
- Object
- Google::Apis::BatchV1::NetworkInterface
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/batch_v1/classes.rb,
lib/google/apis/batch_v1/representations.rb,
lib/google/apis/batch_v1/representations.rb
Overview
A network interface.
Instance Attribute Summary collapse
-
#network ⇒ String
The URL of the network resource.
-
#no_external_ip_address ⇒ Boolean
(also: #no_external_ip_address?)
Default is false (with an external IP address).
-
#subnetwork ⇒ String
The URL of the Subnetwork resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkInterface
constructor
A new instance of NetworkInterface.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkInterface
Returns a new instance of NetworkInterface.
1372 1373 1374 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1372 def initialize(**args) update!(**args) end |
Instance Attribute Details
#network ⇒ String
The URL of the network resource.
Corresponds to the JSON property network
1355 1356 1357 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1355 def network @network end |
#no_external_ip_address ⇒ Boolean Also known as: no_external_ip_address?
Default is false (with an external IP address). Required if no external public
IP address is attached to the VM. If no external public IP address, additional
configuration is required to allow the VM to access Google Services. See https:
//cloud.google.com/vpc/docs/configure-private-google-access and https://cloud.
google.com/nat/docs/gce-example#create-nat for more information.
Corresponds to the JSON property noExternalIpAddress
1364 1365 1366 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1364 def no_external_ip_address @no_external_ip_address end |
#subnetwork ⇒ String
The URL of the Subnetwork resource.
Corresponds to the JSON property subnetwork
1370 1371 1372 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1370 def subnetwork @subnetwork end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1377 1378 1379 1380 1381 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1377 def update!(**args) @network = args[:network] if args.key?(:network) @no_external_ip_address = args[:no_external_ip_address] if args.key?(:no_external_ip_address) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) end |