Class: Google::Apis::VmmigrationV1::OsDescription

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OsDescription

Returns a new instance of OsDescription.



3967
3968
3969
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3967

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

Instance Attribute Details

#offerString

OS offer. Corresponds to the JSON property offer

Returns:

  • (String)


3950
3951
3952
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3950

def offer
  @offer
end

#planString

OS plan. Corresponds to the JSON property plan

Returns:

  • (String)


3955
3956
3957
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3955

def plan
  @plan
end

#publisherString

OS publisher. Corresponds to the JSON property publisher

Returns:

  • (String)


3960
3961
3962
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3960

def publisher
  @publisher
end

#typeString

OS type. Corresponds to the JSON property type

Returns:

  • (String)


3965
3966
3967
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3965

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3972
3973
3974
3975
3976
3977
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3972

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