Class: Google::Apis::BaremetalsolutionV2::OsImage

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

Operation System image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OsImage

Returns a new instance of OsImage.



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

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

Instance Attribute Details

#applicable_instance_typesArray<String>

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

Returns:

  • (Array<String>)


1458
1459
1460
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1458

def applicable_instance_types
  @applicable_instance_types
end

#codeString

OS Image code. Corresponds to the JSON property code

Returns:

  • (String)


1463
1464
1465
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1463

def code
  @code
end

#descriptionString

OS Image description. Corresponds to the JSON property description

Returns:

  • (String)


1468
1469
1470
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1468

def description
  @description
end

#nameString

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

Returns:

  • (String)


1473
1474
1475
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1473

def name
  @name
end

#supported_network_templatesArray<Google::Apis::BaremetalsolutionV2::ServerNetworkTemplate>

Network templates that can be used with this OS Image. Corresponds to the JSON property supportedNetworkTemplates



1478
1479
1480
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1478

def supported_network_templates
  @supported_network_templates
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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