Class: Google::Apis::VmmigrationV1::OsDescription
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1::OsDescription
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vmmigration_v1/classes.rb,
lib/google/apis/vmmigration_v1/representations.rb,
lib/google/apis/vmmigration_v1/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.
3443 3444 3445 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3443 def initialize(**args) update!(**args) end |
Instance Attribute Details
#offer ⇒ String
OS offer.
Corresponds to the JSON property offer
3426 3427 3428 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3426 def offer @offer end |
#plan ⇒ String
OS plan.
Corresponds to the JSON property plan
3431 3432 3433 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3431 def plan @plan end |
#publisher ⇒ String
OS publisher.
Corresponds to the JSON property publisher
3436 3437 3438 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3436 def publisher @publisher end |
#type ⇒ String
OS type.
Corresponds to the JSON property type
3441 3442 3443 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3441 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3448 3449 3450 3451 3452 3453 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3448 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 |