Class: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/baremetalsolution_v2/classes.rb,
lib/google/apis/baremetalsolution_v2/representations.rb,
lib/google/apis/baremetalsolution_v2/representations.rb

Overview

Logical interface.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface

Returns a new instance of GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface.



298
299
300
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 298

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

Instance Attribute Details

#nameString

Interface name. This is not a globally unique identifier. Name is unique only inside the ServerNetworkTemplate. This is of syntax or and forms part of the network template name. Corresponds to the JSON property name

Returns:

  • (String)


285
286
287
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 285

def name
  @name
end

#requiredBoolean Also known as: required?

If true, interface must have network connected. Corresponds to the JSON property required

Returns:

  • (Boolean)


290
291
292
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 290

def required
  @required
end

#typeString

Interface type. Corresponds to the JSON property type

Returns:

  • (String)


296
297
298
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 296

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



303
304
305
306
307
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 303

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @required = args[:required] if args.key?(:required)
  @type = args[:type] if args.key?(:type)
end