Class: MicrosoftGraph::Models::IosVppApp

Inherits:
MobileApp show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/ios_vpp_app.rb

Overview

Contains properties and inherited properties for iOS Volume-Purchased Program (VPP) Apps.

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 iosVppApp and sets the default values.



91
92
93
94
# File 'lib/models/ios_vpp_app.rb', line 91

def initialize()
    super
    @odata_type = "#microsoft.graph.iosVppApp"
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 ios_vpp_app

Raises:

  • (StandardError)


100
101
102
103
# File 'lib/models/ios_vpp_app.rb', line 100

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

Instance Method Details

#app_store_urlObject

Gets the appStoreUrl property value. The store URL.

Returns:

  • a string



46
47
48
# File 'lib/models/ios_vpp_app.rb', line 46

def app_store_url
    return @app_store_url
end

#app_store_url=(value) ⇒ Object

Sets the appStoreUrl property value. The store URL.

Parameters:

  • value

    Value to set for the appStoreUrl property.

Returns:

  • a void



54
55
56
# File 'lib/models/ios_vpp_app.rb', line 54

def app_store_url=(value)
    @app_store_url = value
end

#applicable_device_typeObject

Gets the applicableDeviceType property value. The applicable iOS Device Type.

Returns:

  • a ios_device_type



61
62
63
# File 'lib/models/ios_vpp_app.rb', line 61

def applicable_device_type
    return @applicable_device_type
end

#applicable_device_type=(value) ⇒ Object

Sets the applicableDeviceType property value. The applicable iOS Device Type.

Parameters:

  • value

    Value to set for the applicableDeviceType property.

Returns:

  • a void



69
70
71
# File 'lib/models/ios_vpp_app.rb', line 69

def applicable_device_type=(value)
    @applicable_device_type = value
end

#bundle_idObject

Gets the bundleId property value. The Identity Name.

Returns:

  • a string



76
77
78
# File 'lib/models/ios_vpp_app.rb', line 76

def bundle_id
    return @bundle_id
end

#bundle_id=(value) ⇒ Object

Sets the bundleId property value. The Identity Name.

Parameters:

  • value

    Value to set for the bundleId property.

Returns:

  • a void



84
85
86
# File 'lib/models/ios_vpp_app.rb', line 84

def bundle_id=(value)
    @bundle_id = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



108
109
110
111
112
113
114
115
116
117
118
119
120
121
# File 'lib/models/ios_vpp_app.rb', line 108

def get_field_deserializers()
    return super.merge({
        "appStoreUrl" => lambda {|n| @app_store_url = n.get_string_value() },
        "applicableDeviceType" => lambda {|n| @applicable_device_type = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IosDeviceType.create_from_discriminator_value(pn) }) },
        "bundleId" => lambda {|n| @bundle_id = n.get_string_value() },
        "licensingType" => lambda {|n| @licensing_type = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::VppLicensingType.create_from_discriminator_value(pn) }) },
        "releaseDateTime" => lambda {|n| @release_date_time = n.get_date_time_value() },
        "totalLicenseCount" => lambda {|n| @total_license_count = n.get_number_value() },
        "usedLicenseCount" => lambda {|n| @used_license_count = n.get_number_value() },
        "vppTokenAccountType" => lambda {|n|  = n.get_enum_value(MicrosoftGraph::Models::VppTokenAccountType) },
        "vppTokenAppleId" => lambda {|n| @vpp_token_apple_id = n.get_string_value() },
        "vppTokenOrganizationName" => lambda {|n| @vpp_token_organization_name = n.get_string_value() },
    })
end

#licensing_typeObject

Gets the licensingType property value. The supported License Type.

Returns:

  • a vpp_licensing_type



126
127
128
# File 'lib/models/ios_vpp_app.rb', line 126

def licensing_type
    return @licensing_type
end

#licensing_type=(value) ⇒ Object

Sets the licensingType property value. The supported License Type.

Parameters:

  • value

    Value to set for the licensingType property.

Returns:

  • a void



134
135
136
# File 'lib/models/ios_vpp_app.rb', line 134

def licensing_type=(value)
    @licensing_type = value
end

#release_date_timeObject

Gets the releaseDateTime property value. The VPP application release date and time.

Returns:

  • a date_time



141
142
143
# File 'lib/models/ios_vpp_app.rb', line 141

def release_date_time
    return @release_date_time
end

#release_date_time=(value) ⇒ Object

Sets the releaseDateTime property value. The VPP application release date and time.

Parameters:

  • value

    Value to set for the releaseDateTime property.

Returns:

  • a void



149
150
151
# File 'lib/models/ios_vpp_app.rb', line 149

def release_date_time=(value)
    @release_date_time = 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)


157
158
159
160
161
162
163
164
165
166
167
168
169
170
# File 'lib/models/ios_vpp_app.rb', line 157

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("appStoreUrl", @app_store_url)
    writer.write_object_value("applicableDeviceType", @applicable_device_type)
    writer.write_string_value("bundleId", @bundle_id)
    writer.write_object_value("licensingType", @licensing_type)
    writer.write_date_time_value("releaseDateTime", @release_date_time)
    writer.write_number_value("totalLicenseCount", @total_license_count)
    writer.write_number_value("usedLicenseCount", @used_license_count)
    writer.write_enum_value("vppTokenAccountType", )
    writer.write_string_value("vppTokenAppleId", @vpp_token_apple_id)
    writer.write_string_value("vppTokenOrganizationName", @vpp_token_organization_name)
end

#total_license_countObject

Gets the totalLicenseCount property value. The total number of VPP licenses.

Returns:

  • a integer



175
176
177
# File 'lib/models/ios_vpp_app.rb', line 175

def total_license_count
    return @total_license_count
end

#total_license_count=(value) ⇒ Object

Sets the totalLicenseCount property value. The total number of VPP licenses.

Parameters:

  • value

    Value to set for the totalLicenseCount property.

Returns:

  • a void



183
184
185
# File 'lib/models/ios_vpp_app.rb', line 183

def total_license_count=(value)
    @total_license_count = value
end

#used_license_countObject

Gets the usedLicenseCount property value. The number of VPP licenses in use.

Returns:

  • a integer



190
191
192
# File 'lib/models/ios_vpp_app.rb', line 190

def used_license_count
    return @used_license_count
end

#used_license_count=(value) ⇒ Object

Sets the usedLicenseCount property value. The number of VPP licenses in use.

Parameters:

  • value

    Value to set for the usedLicenseCount property.

Returns:

  • a void



198
199
200
# File 'lib/models/ios_vpp_app.rb', line 198

def used_license_count=(value)
    @used_license_count = value
end

#vpp_token_account_typeObject

Gets the vppTokenAccountType property value. Possible types of an Apple Volume Purchase Program token.

Returns:

  • a vpp_token_account_type



205
206
207
# File 'lib/models/ios_vpp_app.rb', line 205

def 
    return 
end

#vpp_token_account_type=(value) ⇒ Object

Sets the vppTokenAccountType property value. Possible types of an Apple Volume Purchase Program token.

Parameters:

  • value

    Value to set for the vppTokenAccountType property.

Returns:

  • a void



213
214
215
# File 'lib/models/ios_vpp_app.rb', line 213

def (value)
     = value
end

#vpp_token_apple_idObject

Gets the vppTokenAppleId property value. The Apple Id associated with the given Apple Volume Purchase Program Token.

Returns:

  • a string



220
221
222
# File 'lib/models/ios_vpp_app.rb', line 220

def vpp_token_apple_id
    return @vpp_token_apple_id
end

#vpp_token_apple_id=(value) ⇒ Object

Sets the vppTokenAppleId property value. The Apple Id associated with the given Apple Volume Purchase Program Token.

Parameters:

  • value

    Value to set for the vppTokenAppleId property.

Returns:

  • a void



228
229
230
# File 'lib/models/ios_vpp_app.rb', line 228

def vpp_token_apple_id=(value)
    @vpp_token_apple_id = value
end

#vpp_token_organization_nameObject

Gets the vppTokenOrganizationName property value. The organization associated with the Apple Volume Purchase Program Token

Returns:

  • a string



235
236
237
# File 'lib/models/ios_vpp_app.rb', line 235

def vpp_token_organization_name
    return @vpp_token_organization_name
end

#vpp_token_organization_name=(value) ⇒ Object

Sets the vppTokenOrganizationName property value. The organization associated with the Apple Volume Purchase Program Token

Parameters:

  • value

    Value to set for the vppTokenOrganizationName property.

Returns:

  • a void



243
244
245
# File 'lib/models/ios_vpp_app.rb', line 243

def vpp_token_organization_name=(value)
    @vpp_token_organization_name = value
end