Class: MicrosoftGraph::Models::MicrosoftStoreForBusinessApp

Inherits:
MobileApp
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/microsoft_store_for_business_app.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from MobileApp

#assignments, #assignments=, #categories, #categories=, #created_date_time, #created_date_time=, #description, #description=, #developer, #developer=, #display_name, #display_name=, #information_url, #information_url=, #is_featured, #is_featured=, #large_icon, #large_icon=, #last_modified_date_time, #last_modified_date_time=, #notes, #notes=, #owner, #owner=, #privacy_information_url, #privacy_information_url=, #publisher, #publisher=, #publishing_state, #publishing_state=

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new MicrosoftStoreForBusinessApp and sets the default values.



28
29
30
31
# File 'lib/models/microsoft_store_for_business_app.rb', line 28

def initialize()
    super
    @odata_type = "#microsoft.graph.microsoftStoreForBusinessApp"
end

Class Method Details

.create_from_discriminator_value(parse_node) ⇒ Object

Creates a new instance of the appropriate class based on discriminator value

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a microsoft_store_for_business_app

Raises:

  • (StandardError)


37
38
39
40
# File 'lib/models/microsoft_store_for_business_app.rb', line 37

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return MicrosoftStoreForBusinessApp.new
end

Instance Method Details

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



45
46
47
48
49
50
51
52
53
# File 'lib/models/microsoft_store_for_business_app.rb', line 45

def get_field_deserializers()
    return super.merge({
        "licenseType" => lambda {|n| @license_type = n.get_enum_value(MicrosoftGraph::Models::MicrosoftStoreForBusinessLicenseType) },
        "packageIdentityName" => lambda {|n| @package_identity_name = n.get_string_value() },
        "productKey" => lambda {|n| @product_key = n.get_string_value() },
        "totalLicenseCount" => lambda {|n| @total_license_count = n.get_number_value() },
        "usedLicenseCount" => lambda {|n| @used_license_count = n.get_number_value() },
    })
end

#license_typeObject

Gets the licenseType property value. The licenseType property

Returns:

  • a microsoft_store_for_business_license_type



58
59
60
# File 'lib/models/microsoft_store_for_business_app.rb', line 58

def license_type
    return @license_type
end

#license_type=(value) ⇒ Object

Sets the licenseType property value. The licenseType property

Parameters:

  • value

    Value to set for the license_type property.

Returns:

  • a void



66
67
68
# File 'lib/models/microsoft_store_for_business_app.rb', line 66

def license_type=(value)
    @license_type = value
end

#package_identity_nameObject

Gets the packageIdentityName property value. The app package identifier

Returns:

  • a string



73
74
75
# File 'lib/models/microsoft_store_for_business_app.rb', line 73

def package_identity_name
    return @package_identity_name
end

#package_identity_name=(value) ⇒ Object

Sets the packageIdentityName property value. The app package identifier

Parameters:

  • value

    Value to set for the package_identity_name property.

Returns:

  • a void



81
82
83
# File 'lib/models/microsoft_store_for_business_app.rb', line 81

def package_identity_name=(value)
    @package_identity_name = value
end

#product_keyObject

Gets the productKey property value. The app product key

Returns:

  • a string



88
89
90
# File 'lib/models/microsoft_store_for_business_app.rb', line 88

def product_key
    return @product_key
end

#product_key=(value) ⇒ Object

Sets the productKey property value. The app product key

Parameters:

  • value

    Value to set for the product_key property.

Returns:

  • a void



96
97
98
# File 'lib/models/microsoft_store_for_business_app.rb', line 96

def product_key=(value)
    @product_key = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


104
105
106
107
108
109
110
111
112
# File 'lib/models/microsoft_store_for_business_app.rb', line 104

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_enum_value("licenseType", @license_type)
    writer.write_string_value("packageIdentityName", @package_identity_name)
    writer.write_string_value("productKey", @product_key)
    writer.write_number_value("totalLicenseCount", @total_license_count)
    writer.write_number_value("usedLicenseCount", @used_license_count)
end

#total_license_countObject

Gets the totalLicenseCount property value. The total number of Microsoft Store for Business licenses.

Returns:

  • a integer



117
118
119
# File 'lib/models/microsoft_store_for_business_app.rb', line 117

def total_license_count
    return @total_license_count
end

#total_license_count=(value) ⇒ Object

Sets the totalLicenseCount property value. The total number of Microsoft Store for Business licenses.

Parameters:

  • value

    Value to set for the total_license_count property.

Returns:

  • a void



125
126
127
# File 'lib/models/microsoft_store_for_business_app.rb', line 125

def total_license_count=(value)
    @total_license_count = value
end

#used_license_countObject

Gets the usedLicenseCount property value. The number of Microsoft Store for Business licenses in use.

Returns:

  • a integer



132
133
134
# File 'lib/models/microsoft_store_for_business_app.rb', line 132

def used_license_count
    return @used_license_count
end

#used_license_count=(value) ⇒ Object

Sets the usedLicenseCount property value. The number of Microsoft Store for Business licenses in use.

Parameters:

  • value

    Value to set for the used_license_count property.

Returns:

  • a void



140
141
142
# File 'lib/models/microsoft_store_for_business_app.rb', line 140

def used_license_count=(value)
    @used_license_count = value
end