Class: Google::Apis::BaremetalsolutionV2::OsImage
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::OsImage
- 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
-
#applicable_instance_types ⇒ Array<String>
Instance types this image is applicable to.
-
#code ⇒ String
OS Image code.
-
#description ⇒ String
OS Image description.
-
#name ⇒ String
Output only.
-
#supported_network_templates ⇒ Array<Google::Apis::BaremetalsolutionV2::ServerNetworkTemplate>
Network templates that can be used with this OS Image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OsImage
constructor
A new instance of OsImage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OsImage
Returns a new instance of OsImage.
1517 1518 1519 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1517 def initialize(**args) update!(**args) end |
Instance Attribute Details
#applicable_instance_types ⇒ Array<String>
Instance types this image is applicable to. Available types
Corresponds to the JSON property applicableInstanceTypes
1495 1496 1497 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1495 def applicable_instance_types @applicable_instance_types end |
#code ⇒ String
OS Image code.
Corresponds to the JSON property code
1500 1501 1502 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1500 def code @code end |
#description ⇒ String
OS Image description.
Corresponds to the JSON property description
1505 1506 1507 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1505 def description @description end |
#name ⇒ String
Output only. OS Image's unique name.
Corresponds to the JSON property name
1510 1511 1512 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1510 def name @name end |
#supported_network_templates ⇒ Array<Google::Apis::BaremetalsolutionV2::ServerNetworkTemplate>
Network templates that can be used with this OS Image.
Corresponds to the JSON property supportedNetworkTemplates
1515 1516 1517 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1515 def supported_network_templates @supported_network_templates end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1522 1523 1524 1525 1526 1527 1528 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1522 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 |