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
-
#account_id ⇒ Object
Gets the accountId property value.
-
#account_id=(value) ⇒ Object
Sets the accountId property value.
-
#account_name ⇒ Object
Gets the accountName property value.
-
#account_name=(value) ⇒ Object
Sets the accountName property value.
-
#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.
-
#subscription_ids ⇒ Object
Gets the subscriptionIds property value.
-
#subscription_ids=(value) ⇒ Object
Sets the subscriptionIds 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.
103 104 105 |
# File 'lib/models/subscribed_sku.rb', line 103 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
126 127 128 129 |
# File 'lib/models/subscribed_sku.rb', line 126 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
#account_id ⇒ Object
Gets the accountId property value. The unique ID of the account this SKU belongs to.
43 44 45 |
# File 'lib/models/subscribed_sku.rb', line 43 def account_id return @account_id end |
#account_id=(value) ⇒ Object
Sets the accountId property value. The unique ID of the account this SKU belongs to.
51 52 53 |
# File 'lib/models/subscribed_sku.rb', line 51 def account_id=(value) @account_id = value end |
#account_name ⇒ Object
Gets the accountName property value. The name of the account this SKU belongs to.
58 59 60 |
# File 'lib/models/subscribed_sku.rb', line 58 def account_name return @account_name end |
#account_name=(value) ⇒ Object
Sets the accountName property value. The name of the account this SKU belongs to.
66 67 68 |
# File 'lib/models/subscribed_sku.rb', line 66 def account_name=(value) @account_name = value end |
#applies_to ⇒ Object
Gets the appliesTo property value. The target class for this SKU. Only SKUs with target class User are assignable. Possible values are: ‘User’, ‘Company’.
73 74 75 |
# File 'lib/models/subscribed_sku.rb', line 73 def applies_to return @applies_to end |
#applies_to=(value) ⇒ Object
Sets the appliesTo property value. The target class for this SKU. Only SKUs with target class User are assignable. Possible values are: ‘User’, ‘Company’.
81 82 83 |
# File 'lib/models/subscribed_sku.rb', line 81 def applies_to=(value) @applies_to = value end |
#capability_status ⇒ Object
Gets the capabilityStatus property value. Enabled indicates that the prepaidUnits property has at least one unit that is enabled. LockedOut indicates that the customer cancelled their subscription. Possible values are: Enabled, Warning, Suspended, Deleted, LockedOut.
88 89 90 |
# File 'lib/models/subscribed_sku.rb', line 88 def capability_status return @capability_status end |
#capability_status=(value) ⇒ Object
Sets the capabilityStatus property value. Enabled indicates that the prepaidUnits property has at least one unit that is enabled. LockedOut indicates that the customer cancelled their subscription. Possible values are: Enabled, Warning, Suspended, Deleted, LockedOut.
96 97 98 |
# File 'lib/models/subscribed_sku.rb', line 96 def capability_status=(value) @capability_status = value end |
#consumed_units ⇒ Object
Gets the consumedUnits property value. The number of licenses that have been assigned.
110 111 112 |
# File 'lib/models/subscribed_sku.rb', line 110 def consumed_units return @consumed_units end |
#consumed_units=(value) ⇒ Object
Sets the consumedUnits property value. The number of licenses that have been assigned.
118 119 120 |
# File 'lib/models/subscribed_sku.rb', line 118 def consumed_units=(value) @consumed_units = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'lib/models/subscribed_sku.rb', line 134 def get_field_deserializers() return super.merge({ "accountId" => lambda {|n| @account_id = n.get_string_value() }, "accountName" => lambda {|n| @account_name = n.get_string_value() }, "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() }, "subscriptionIds" => lambda {|n| @subscription_ids = n.get_collection_of_primitive_values(String) }, }) end |
#prepaid_units ⇒ Object
Gets the prepaidUnits property value. Information about the number and status of prepaid licenses.
152 153 154 |
# File 'lib/models/subscribed_sku.rb', line 152 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.
160 161 162 |
# File 'lib/models/subscribed_sku.rb', line 160 def prepaid_units=(value) @prepaid_units = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/models/subscribed_sku.rb', line 168 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("accountId", @account_id) writer.write_string_value("accountName", @account_name) 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) writer.write_collection_of_primitive_values("subscriptionIds", @subscription_ids) end |
#service_plans ⇒ Object
Gets the servicePlans property value. Information about the service plans that are available with the SKU. Not nullable.
186 187 188 |
# File 'lib/models/subscribed_sku.rb', line 186 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.
194 195 196 |
# File 'lib/models/subscribed_sku.rb', line 194 def service_plans=(value) @service_plans = value end |
#sku_id ⇒ Object
Gets the skuId property value. The unique identifier (GUID) for the service SKU.
201 202 203 |
# File 'lib/models/subscribed_sku.rb', line 201 def sku_id return @sku_id end |
#sku_id=(value) ⇒ Object
Sets the skuId property value. The unique identifier (GUID) for the service SKU.
209 210 211 |
# File 'lib/models/subscribed_sku.rb', line 209 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.
216 217 218 |
# File 'lib/models/subscribed_sku.rb', line 216 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.
224 225 226 |
# File 'lib/models/subscribed_sku.rb', line 224 def sku_part_number=(value) @sku_part_number = value end |
#subscription_ids ⇒ Object
Gets the subscriptionIds property value. The subscriptionIds property
231 232 233 |
# File 'lib/models/subscribed_sku.rb', line 231 def subscription_ids return @subscription_ids end |
#subscription_ids=(value) ⇒ Object
Sets the subscriptionIds property value. The subscriptionIds property
239 240 241 |
# File 'lib/models/subscribed_sku.rb', line 239 def subscription_ids=(value) @subscription_ids = value end |