Class: Google::Apis::MigrationcenterV1::GuestOsDetails

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/migrationcenter_v1/classes.rb,
lib/google/apis/migrationcenter_v1/representations.rb,
lib/google/apis/migrationcenter_v1/representations.rb

Overview

Information from Guest-level collections.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GuestOsDetails

Returns a new instance of GuestOsDetails.



1907
1908
1909
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1907

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

Instance Attribute Details

#configGoogle::Apis::MigrationcenterV1::GuestConfigDetails

Guest OS config information. Corresponds to the JSON property config



1885
1886
1887
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1885

def config
  @config
end

#familyString

What family the OS belong to, if known. Corresponds to the JSON property family

Returns:

  • (String)


1890
1891
1892
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1890

def family
  @family
end

#os_nameString

The name of the operating system. Corresponds to the JSON property osName

Returns:

  • (String)


1895
1896
1897
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1895

def os_name
  @os_name
end

#runtimeGoogle::Apis::MigrationcenterV1::GuestRuntimeDetails

Guest OS runtime information. Corresponds to the JSON property runtime



1900
1901
1902
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1900

def runtime
  @runtime
end

#versionString

The version of the operating system. Corresponds to the JSON property version

Returns:

  • (String)


1905
1906
1907
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1905

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1912
1913
1914
1915
1916
1917
1918
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1912

def update!(**args)
  @config = args[:config] if args.key?(:config)
  @family = args[:family] if args.key?(:family)
  @os_name = args[:os_name] if args.key?(:os_name)
  @runtime = args[:runtime] if args.key?(:runtime)
  @version = args[:version] if args.key?(:version)
end