Class: Google::Apis::VmmigrationV1alpha1::OsDescription

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OsDescription

Returns a new instance of OsDescription.



4021
4022
4023
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4021

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

Instance Attribute Details

#offerString

OS offer. Corresponds to the JSON property offer

Returns:

  • (String)


4004
4005
4006
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4004

def offer
  @offer
end

#planString

OS plan. Corresponds to the JSON property plan

Returns:

  • (String)


4009
4010
4011
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4009

def plan
  @plan
end

#publisherString

OS publisher. Corresponds to the JSON property publisher

Returns:

  • (String)


4014
4015
4016
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4014

def publisher
  @publisher
end

#typeString

OS type. Corresponds to the JSON property type

Returns:

  • (String)


4019
4020
4021
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4019

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4026
4027
4028
4029
4030
4031
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4026

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