Class: Google::Apis::ManagerV1beta2::NetworkInterface
- Inherits:
-
Object
- Object
- Google::Apis::ManagerV1beta2::NetworkInterface
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/manager_v1beta2/classes.rb,
generated/google/apis/manager_v1beta2/representations.rb,
generated/google/apis/manager_v1beta2/representations.rb
Overview
A Compute Engine NetworkInterface resource. Identical to the NetworkInterface on the corresponding Compute Engine resource.
Instance Attribute Summary collapse
-
#access_configs ⇒ Array<Google::Apis::ManagerV1beta2::AccessConfig>
An array of configurations for this interface.
-
#name ⇒ String
Name of the interface.
-
#network ⇒ String
The name of the NetworkModule to which this interface applies.
-
#network_ip ⇒ String
An optional IPV4 internal network address to assign to the instance for this network interface.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkInterface
constructor
A new instance of NetworkInterface.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ NetworkInterface
Returns a new instance of NetworkInterface
805 806 807 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 805 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_configs ⇒ Array<Google::Apis::ManagerV1beta2::AccessConfig>
An array of configurations for this interface. This specifies how this
interface is configured to interact with other network services
Corresponds to the JSON property accessConfigs
786 787 788 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 786 def access_configs @access_configs end |
#name ⇒ String
Name of the interface.
Corresponds to the JSON property name
791 792 793 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 791 def name @name end |
#network ⇒ String
The name of the NetworkModule to which this interface applies. If not
specified, or specified as 'default', this will use the 'default' network.
Corresponds to the JSON property network
797 798 799 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 797 def network @network end |
#network_ip ⇒ String
An optional IPV4 internal network address to assign to the instance for this
network interface.
Corresponds to the JSON property networkIp
803 804 805 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 803 def network_ip @network_ip end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
810 811 812 813 814 815 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 810 def update!(**args) @access_configs = args[:access_configs] if args.key?(:access_configs) @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) @network_ip = args[:network_ip] if args.key?(:network_ip) end |