Class: Google::Apis::NotebooksV2::NetworkInterface
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV2::NetworkInterface
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/notebooks_v2/classes.rb,
lib/google/apis/notebooks_v2/representations.rb,
lib/google/apis/notebooks_v2/representations.rb
Overview
The definition of a network interface resource attached to a VM.
Instance Attribute Summary collapse
-
#network ⇒ String
Optional.
-
#nic_type ⇒ String
Optional.
-
#subnet ⇒ String
Optional.
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.
962 963 964 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 962 def initialize(**args) update!(**args) end |
Instance Attribute Details
#network ⇒ String
Optional. The name of the VPC that this VM instance is in. Format: projects/
project_id/global/networks/network_id`
Corresponds to the JSON propertynetwork`
948 949 950 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 948 def network @network end |
#nic_type ⇒ String
Optional. The type of vNIC to be used on this interface. This may be gVNIC or
VirtioNet.
Corresponds to the JSON property nicType
954 955 956 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 954 def nic_type @nic_type end |
#subnet ⇒ String
Optional. The name of the subnet that this VM instance is in. Format:
projects/project_id/regions/region/subnetworks/subnetwork_id`
Corresponds to the JSON propertysubnet`
960 961 962 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 960 def subnet @subnet end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
967 968 969 970 971 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 967 def update!(**args) @network = args[:network] if args.key?(:network) @nic_type = args[:nic_type] if args.key?(:nic_type) @subnet = args[:subnet] if args.key?(:subnet) end |