Class: Google::Apis::BatchV1::NetworkInterface

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkInterface

Returns a new instance of NetworkInterface.



1813
1814
1815
# File 'lib/google/apis/batch_v1/classes.rb', line 1813

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

Instance Attribute Details

#networkString

The URL of an existing network resource. You can specify the network as a full or partial URL. For example, the following are all valid URLs: * https://www. googleapis.com/compute/v1/projects/project/global/networks/network * projects/project/global/networks/network * global/networks/network Corresponds to the JSON property network

Returns:

  • (String)


1792
1793
1794
# File 'lib/google/apis/batch_v1/classes.rb', line 1792

def network
  @network
end

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

Returns:

  • (Boolean)


1801
1802
1803
# File 'lib/google/apis/batch_v1/classes.rb', line 1801

def no_external_ip_address
  @no_external_ip_address
end

#subnetworkString

The URL of an existing subnetwork resource in the network. You can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: * https://www.googleapis.com/compute/v1/projects/`project`/regions/` region/subnetworks/subnetwork* projects/project/regions/region/ subnetworks/subnetwork* regions/region/subnetworks/subnetwork Corresponds to the JSON propertysubnetwork`

Returns:

  • (String)


1811
1812
1813
# File 'lib/google/apis/batch_v1/classes.rb', line 1811

def subnetwork
  @subnetwork
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1818
1819
1820
1821
1822
# File 'lib/google/apis/batch_v1/classes.rb', line 1818

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