Class: Google::Apis::VmmigrationV1alpha1::OsDescription
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1alpha1::OsDescription
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vmmigration_v1alpha1/classes.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb
Overview
A message describing the VM's OS. Including OS, Publisher, Offer and Plan if applicable.
Instance Attribute Summary collapse
-
#offer ⇒ String
OS offer.
-
#plan ⇒ String
OS plan.
-
#publisher ⇒ String
OS publisher.
-
#type ⇒ String
OS type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OsDescription
constructor
A new instance of OsDescription.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OsDescription
Returns a new instance of OsDescription.
4022 4023 4024 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4022 def initialize(**args) update!(**args) end |
Instance Attribute Details
#offer ⇒ String
OS offer.
Corresponds to the JSON property offer
4005 4006 4007 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4005 def offer @offer end |
#plan ⇒ String
OS plan.
Corresponds to the JSON property plan
4010 4011 4012 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4010 def plan @plan end |
#publisher ⇒ String
OS publisher.
Corresponds to the JSON property publisher
4015 4016 4017 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4015 def publisher @publisher end |
#type ⇒ String
OS type.
Corresponds to the JSON property type
4020 4021 4022 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4020 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4027 4028 4029 4030 4031 4032 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4027 def update!(**args) @offer = args[:offer] if args.key?(:offer) @plan = args[:plan] if args.key?(:plan) @publisher = args[:publisher] if args.key?(:publisher) @type = args[:type] if args.key?(:type) end |