Class: Google::Apis::BaremetalsolutionV2::ServerNetworkTemplate

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

Network template.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ServerNetworkTemplate

Returns a new instance of ServerNetworkTemplate.



1488
1489
1490
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1488

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

Instance Attribute Details

#applicable_instance_typesArray<String>

Instance types this template is applicable to. Corresponds to the JSON property applicableInstanceTypes

Returns:

  • (Array<String>)


1476
1477
1478
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1476

def applicable_instance_types
  @applicable_instance_types
end

#logical_interfacesArray<Google::Apis::BaremetalsolutionV2::LogicalInterface>

Logical interfaces. Corresponds to the JSON property logicalInterfaces



1481
1482
1483
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1481

def logical_interfaces
  @logical_interfaces
end

#nameString

Output only. Template's unique name. Corresponds to the JSON property name

Returns:

  • (String)


1486
1487
1488
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1486

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1493
1494
1495
1496
1497
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1493

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