Class: MicrosoftGraph::Models::SubscribedSku
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/subscribed_sku.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
-
#applies_to ⇒ Object
Gets the appliesTo property value.
-
#applies_to=(value) ⇒ Object
Sets the appliesTo property value.
-
#capability_status ⇒ Object
Gets the capabilityStatus property value.
-
#capability_status=(value) ⇒ Object
Sets the capabilityStatus property value.
-
#consumed_units ⇒ Object
Gets the consumedUnits property value.
-
#consumed_units=(value) ⇒ Object
Sets the consumedUnits property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new SubscribedSku and sets the default values.
-
#prepaid_units ⇒ Object
Gets the prepaidUnits property value.
-
#prepaid_units=(value) ⇒ Object
Sets the prepaidUnits property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#service_plans ⇒ Object
Gets the servicePlans property value.
-
#service_plans=(value) ⇒ Object
Sets the servicePlans property value.
-
#sku_id ⇒ Object
Gets the skuId property value.
-
#sku_id=(value) ⇒ Object
Sets the skuId property value.
-
#sku_part_number ⇒ Object
Gets the skuPartNumber property value.
-
#sku_part_number=(value) ⇒ Object
Sets the skuPartNumber property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new SubscribedSku and sets the default values.
64 65 66 |
# File 'lib/models/subscribed_sku.rb', line 64 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
87 88 89 90 |
# File 'lib/models/subscribed_sku.rb', line 87 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SubscribedSku.new end |
Instance Method Details
#applies_to ⇒ Object
Gets the appliesTo property value. For example, ‘User’ or ‘Company’.
34 35 36 |
# File 'lib/models/subscribed_sku.rb', line 34 def applies_to return @applies_to end |
#applies_to=(value) ⇒ Object
Sets the appliesTo property value. For example, ‘User’ or ‘Company’.
42 43 44 |
# File 'lib/models/subscribed_sku.rb', line 42 def applies_to=(value) @applies_to = value end |
#capability_status ⇒ Object
Gets the capabilityStatus property value. Possible values are: Enabled, Warning, Suspended, Deleted, LockedOut. The capabilityStatus is Enabled if the prepaidUnits property has at least 1 unit that is enabled, and LockedOut if the customer cancelled their subscription.
49 50 51 |
# File 'lib/models/subscribed_sku.rb', line 49 def capability_status return @capability_status end |
#capability_status=(value) ⇒ Object
Sets the capabilityStatus property value. Possible values are: Enabled, Warning, Suspended, Deleted, LockedOut. The capabilityStatus is Enabled if the prepaidUnits property has at least 1 unit that is enabled, and LockedOut if the customer cancelled their subscription.
57 58 59 |
# File 'lib/models/subscribed_sku.rb', line 57 def capability_status=(value) @capability_status = value end |
#consumed_units ⇒ Object
Gets the consumedUnits property value. The number of licenses that have been assigned.
71 72 73 |
# File 'lib/models/subscribed_sku.rb', line 71 def consumed_units return @consumed_units end |
#consumed_units=(value) ⇒ Object
Sets the consumedUnits property value. The number of licenses that have been assigned.
79 80 81 |
# File 'lib/models/subscribed_sku.rb', line 79 def consumed_units=(value) @consumed_units = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/models/subscribed_sku.rb', line 95 def get_field_deserializers() return super.merge({ "appliesTo" => lambda {|n| @applies_to = n.get_string_value() }, "capabilityStatus" => lambda {|n| @capability_status = n.get_string_value() }, "consumedUnits" => lambda {|n| @consumed_units = n.get_number_value() }, "prepaidUnits" => lambda {|n| @prepaid_units = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::LicenseUnitsDetail.create_from_discriminator_value(pn) }) }, "servicePlans" => lambda {|n| @service_plans = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ServicePlanInfo.create_from_discriminator_value(pn) }) }, "skuId" => lambda {|n| @sku_id = n.get_guid_value() }, "skuPartNumber" => lambda {|n| @sku_part_number = n.get_string_value() }, }) end |
#prepaid_units ⇒ Object
Gets the prepaidUnits property value. Information about the number and status of prepaid licenses.
110 111 112 |
# File 'lib/models/subscribed_sku.rb', line 110 def prepaid_units return @prepaid_units end |
#prepaid_units=(value) ⇒ Object
Sets the prepaidUnits property value. Information about the number and status of prepaid licenses.
118 119 120 |
# File 'lib/models/subscribed_sku.rb', line 118 def prepaid_units=(value) @prepaid_units = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/models/subscribed_sku.rb', line 126 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("appliesTo", @applies_to) writer.write_string_value("capabilityStatus", @capability_status) writer.write_number_value("consumedUnits", @consumed_units) writer.write_object_value("prepaidUnits", @prepaid_units) writer.write_collection_of_object_values("servicePlans", @service_plans) writer.write_guid_value("skuId", @sku_id) writer.write_string_value("skuPartNumber", @sku_part_number) end |
#service_plans ⇒ Object
Gets the servicePlans property value. Information about the service plans that are available with the SKU. Not nullable
141 142 143 |
# File 'lib/models/subscribed_sku.rb', line 141 def service_plans return @service_plans end |
#service_plans=(value) ⇒ Object
Sets the servicePlans property value. Information about the service plans that are available with the SKU. Not nullable
149 150 151 |
# File 'lib/models/subscribed_sku.rb', line 149 def service_plans=(value) @service_plans = value end |
#sku_id ⇒ Object
Gets the skuId property value. The unique identifier (GUID) for the service SKU.
156 157 158 |
# File 'lib/models/subscribed_sku.rb', line 156 def sku_id return @sku_id end |
#sku_id=(value) ⇒ Object
Sets the skuId property value. The unique identifier (GUID) for the service SKU.
164 165 166 |
# File 'lib/models/subscribed_sku.rb', line 164 def sku_id=(value) @sku_id = value end |
#sku_part_number ⇒ Object
Gets the skuPartNumber property value. The SKU part number; for example: ‘AAD_PREMIUM’ or ‘RMSBASIC’. To get a list of commercial subscriptions that an organization has acquired, see List subscribedSkus.
171 172 173 |
# File 'lib/models/subscribed_sku.rb', line 171 def sku_part_number return @sku_part_number end |
#sku_part_number=(value) ⇒ Object
Sets the skuPartNumber property value. The SKU part number; for example: ‘AAD_PREMIUM’ or ‘RMSBASIC’. To get a list of commercial subscriptions that an organization has acquired, see List subscribedSkus.
179 180 181 |
# File 'lib/models/subscribed_sku.rb', line 179 def sku_part_number=(value) @sku_part_number = value end |