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.



1711
1712
1713
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1711

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>)


1696
1697
1698
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1696

def applicable_instance_types
  @applicable_instance_types
end

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

Logical interfaces. Corresponds to the JSON property logicalInterfaces



1701
1702
1703
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1701

def logical_interfaces
  @logical_interfaces
end

#nameString

Output only. Template's unique name. The full resource name follows the pattern: projects/project/locations/location/serverNetworkTemplate/ server_network_template`Generally, theserver_network_templatefollows the syntax of "bond" or "nic". Corresponds to the JSON propertyname`

Returns:

  • (String)


1709
1710
1711
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1709

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1716
1717
1718
1719
1720
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1716

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