Class: Google::Apis::BaremetalsolutionV1alpha1::NetworkAddress
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV1alpha1::NetworkAddress
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/baremetalsolution_v1alpha1/classes.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb
Overview
A network.
Instance Attribute Summary collapse
-
#address ⇒ String
IP address to be assigned to the server.
-
#network_id ⇒ String
Id of the network to use, within the same ProvisioningConfig request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkAddress
constructor
A new instance of NetworkAddress.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkAddress
Returns a new instance of NetworkAddress.
186 187 188 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 186 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ String
IP address to be assigned to the server.
Corresponds to the JSON property address
179 180 181 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 179 def address @address end |
#network_id ⇒ String
Id of the network to use, within the same ProvisioningConfig request.
Corresponds to the JSON property networkId
184 185 186 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 184 def network_id @network_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
191 192 193 194 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 191 def update!(**args) @address = args[:address] if args.key?(:address) @network_id = args[:network_id] if args.key?(:network_id) end |