Class: MicrosoftGraph::Models::LicenseAssignmentState
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::LicenseAssignmentState
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/license_assignment_state.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#assigned_by_group ⇒ Object
Gets the assignedByGroup property value.
-
#assigned_by_group=(value) ⇒ Object
Sets the assignedByGroup property value.
-
#disabled_plans ⇒ Object
Gets the disabledPlans property value.
-
#disabled_plans=(value) ⇒ Object
Sets the disabledPlans property value.
-
#error ⇒ Object
Gets the error property value.
-
#error=(value) ⇒ Object
Sets the error property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new licenseAssignmentState and sets the default values.
-
#last_updated_date_time ⇒ Object
Gets the lastUpdatedDateTime property value.
-
#last_updated_date_time=(value) ⇒ Object
Sets the lastUpdatedDateTime property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#sku_id ⇒ Object
Gets the skuId property value.
-
#sku_id=(value) ⇒ Object
Sets the skuId property value.
-
#state ⇒ Object
Gets the state property value.
-
#state=(value) ⇒ Object
Sets the state property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new licenseAssignmentState and sets the default values.
68 69 70 |
# File 'lib/models/license_assignment_state.rb', line 68 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
76 77 78 79 |
# File 'lib/models/license_assignment_state.rb', line 76 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return LicenseAssignmentState.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
38 39 40 |
# File 'lib/models/license_assignment_state.rb', line 38 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
46 47 48 |
# File 'lib/models/license_assignment_state.rb', line 46 def additional_data=(value) @additional_data = value end |
#assigned_by_group ⇒ Object
Gets the assignedByGroup property value. The assignedByGroup property
53 54 55 |
# File 'lib/models/license_assignment_state.rb', line 53 def assigned_by_group return @assigned_by_group end |
#assigned_by_group=(value) ⇒ Object
Sets the assignedByGroup property value. The assignedByGroup property
61 62 63 |
# File 'lib/models/license_assignment_state.rb', line 61 def assigned_by_group=(value) @assigned_by_group = value end |
#disabled_plans ⇒ Object
Gets the disabledPlans property value. The disabledPlans property
84 85 86 |
# File 'lib/models/license_assignment_state.rb', line 84 def disabled_plans return @disabled_plans end |
#disabled_plans=(value) ⇒ Object
Sets the disabledPlans property value. The disabledPlans property
92 93 94 |
# File 'lib/models/license_assignment_state.rb', line 92 def disabled_plans=(value) @disabled_plans = value end |
#error ⇒ Object
Gets the error property value. The error property
99 100 101 |
# File 'lib/models/license_assignment_state.rb', line 99 def error return @error end |
#error=(value) ⇒ Object
Sets the error property value. The error property
107 108 109 |
# File 'lib/models/license_assignment_state.rb', line 107 def error=(value) @error = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/models/license_assignment_state.rb', line 114 def get_field_deserializers() return { "assignedByGroup" => lambda {|n| @assigned_by_group = n.get_string_value() }, "disabledPlans" => lambda {|n| @disabled_plans = n.get_collection_of_primitive_values(UUIDTools::UUID) }, "error" => lambda {|n| @error = n.get_string_value() }, "lastUpdatedDateTime" => lambda {|n| @last_updated_date_time = n.get_date_time_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "skuId" => lambda {|n| @sku_id = n.get_guid_value() }, "state" => lambda {|n| @state = n.get_string_value() }, } end |
#last_updated_date_time ⇒ Object
Gets the lastUpdatedDateTime property value. The lastUpdatedDateTime property
129 130 131 |
# File 'lib/models/license_assignment_state.rb', line 129 def last_updated_date_time return @last_updated_date_time end |
#last_updated_date_time=(value) ⇒ Object
Sets the lastUpdatedDateTime property value. The lastUpdatedDateTime property
137 138 139 |
# File 'lib/models/license_assignment_state.rb', line 137 def last_updated_date_time=(value) @last_updated_date_time = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
144 145 146 |
# File 'lib/models/license_assignment_state.rb', line 144 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
152 153 154 |
# File 'lib/models/license_assignment_state.rb', line 152 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
160 161 162 163 164 165 166 167 168 169 170 |
# File 'lib/models/license_assignment_state.rb', line 160 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("assignedByGroup", @assigned_by_group) writer.write_collection_of_primitive_values("disabledPlans", @disabled_plans) writer.write_string_value("error", @error) writer.write_date_time_value("lastUpdatedDateTime", @last_updated_date_time) writer.write_string_value("@odata.type", @odata_type) writer.write_guid_value("skuId", @sku_id) writer.write_string_value("state", @state) writer.write_additional_data(@additional_data) end |
#sku_id ⇒ Object
Gets the skuId property value. The skuId property
175 176 177 |
# File 'lib/models/license_assignment_state.rb', line 175 def sku_id return @sku_id end |
#sku_id=(value) ⇒ Object
Sets the skuId property value. The skuId property
183 184 185 |
# File 'lib/models/license_assignment_state.rb', line 183 def sku_id=(value) @sku_id = value end |
#state ⇒ Object
Gets the state property value. The state property
190 191 192 |
# File 'lib/models/license_assignment_state.rb', line 190 def state return @state end |
#state=(value) ⇒ Object
Sets the state property value. The state property
198 199 200 |
# File 'lib/models/license_assignment_state.rb', line 198 def state=(value) @state = value end |