Class: Google::Apis::VmmigrationV1::AppliedLicense

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

AppliedLicense holds the license data returned by adaptation module report.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppliedLicense

Returns a new instance of AppliedLicense.



141
142
143
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 141

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

Instance Attribute Details

#os_licenseString

The OS license returned from the adaptation module's report. Corresponds to the JSON property osLicense

Returns:

  • (String)


134
135
136
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 134

def os_license
  @os_license
end

#typeString

The license type that was used in OS adaptation. Corresponds to the JSON property type

Returns:

  • (String)


139
140
141
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 139

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



146
147
148
149
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 146

def update!(**args)
  @os_license = args[:os_license] if args.key?(:os_license)
  @type = args[:type] if args.key?(:type)
end