Class: MicrosoftGraph::Models::VppToken

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

Overview

You purchase multiple licenses for iOS apps through the Apple Volume Purchase Program for Business or Education. This involves setting up an Apple VPP account from the Apple website and uploading the Apple VPP Business or Education token to Intune. You can then synchronize your volume purchase information with Intune and track your volume-purchased app use. You can upload multiple Apple VPP Business or Education tokens.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

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

Constructor Details

#initializeObject

Instantiates a new vppToken and sets the default values.



79
80
81
# File 'lib/models/vpp_token.rb', line 79

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

Parameters:

  • parse_node

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

Returns:

  • a vpp_token

Raises:

  • (StandardError)


102
103
104
105
# File 'lib/models/vpp_token.rb', line 102

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

Instance Method Details

#apple_idObject

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

Returns:

  • a string



49
50
51
# File 'lib/models/vpp_token.rb', line 49

def apple_id
    return @apple_id
end

#apple_id=(value) ⇒ Object

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

Parameters:

  • value

    Value to set for the appleId property.

Returns:

  • a void



57
58
59
# File 'lib/models/vpp_token.rb', line 57

def apple_id=(value)
    @apple_id = value
end

#automatically_update_appsObject

Gets the automaticallyUpdateApps property value. Whether or not apps for the VPP token will be automatically updated.

Returns:

  • a boolean



64
65
66
# File 'lib/models/vpp_token.rb', line 64

def automatically_update_apps
    return @automatically_update_apps
end

#automatically_update_apps=(value) ⇒ Object

Sets the automaticallyUpdateApps property value. Whether or not apps for the VPP token will be automatically updated.

Parameters:

  • value

    Value to set for the automaticallyUpdateApps property.

Returns:

  • a void



72
73
74
# File 'lib/models/vpp_token.rb', line 72

def automatically_update_apps=(value)
    @automatically_update_apps = value
end

#country_or_regionObject

Gets the countryOrRegion property value. Whether or not apps for the VPP token will be automatically updated.

Returns:

  • a string



86
87
88
# File 'lib/models/vpp_token.rb', line 86

def country_or_region
    return @country_or_region
end

#country_or_region=(value) ⇒ Object

Sets the countryOrRegion property value. Whether or not apps for the VPP token will be automatically updated.

Parameters:

  • value

    Value to set for the countryOrRegion property.

Returns:

  • a void



94
95
96
# File 'lib/models/vpp_token.rb', line 94

def country_or_region=(value)
    @country_or_region = value
end

#expiration_date_timeObject

Gets the expirationDateTime property value. The expiration date time of the Apple Volume Purchase Program Token.

Returns:

  • a date_time



110
111
112
# File 'lib/models/vpp_token.rb', line 110

def expiration_date_time
    return @expiration_date_time
end

#expiration_date_time=(value) ⇒ Object

Sets the expirationDateTime property value. The expiration date time of the Apple Volume Purchase Program Token.

Parameters:

  • value

    Value to set for the expirationDateTime property.

Returns:

  • a void



118
119
120
# File 'lib/models/vpp_token.rb', line 118

def expiration_date_time=(value)
    @expiration_date_time = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# File 'lib/models/vpp_token.rb', line 125

def get_field_deserializers()
    return super.merge({
        "appleId" => lambda {|n| @apple_id = n.get_string_value() },
        "automaticallyUpdateApps" => lambda {|n| @automatically_update_apps = n.get_boolean_value() },
        "countryOrRegion" => lambda {|n| @country_or_region = n.get_string_value() },
        "expirationDateTime" => lambda {|n| @expiration_date_time = n.get_date_time_value() },
        "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() },
        "lastSyncDateTime" => lambda {|n| @last_sync_date_time = n.get_date_time_value() },
        "lastSyncStatus" => lambda {|n| @last_sync_status = n.get_enum_value(MicrosoftGraph::Models::VppTokenSyncStatus) },
        "organizationName" => lambda {|n| @organization_name = n.get_string_value() },
        "state" => lambda {|n| @state = n.get_enum_value(MicrosoftGraph::Models::VppTokenState) },
        "token" => lambda {|n| @token = n.get_string_value() },
        "vppTokenAccountType" => lambda {|n|  = n.get_enum_value(MicrosoftGraph::Models::VppTokenAccountType) },
    })
end

#last_modified_date_timeObject

Gets the lastModifiedDateTime property value. Last modification date time associated with the Apple Volume Purchase Program Token.

Returns:

  • a date_time



144
145
146
# File 'lib/models/vpp_token.rb', line 144

def last_modified_date_time
    return @last_modified_date_time
end

#last_modified_date_time=(value) ⇒ Object

Sets the lastModifiedDateTime property value. Last modification date time associated with the Apple Volume Purchase Program Token.

Parameters:

  • value

    Value to set for the lastModifiedDateTime property.

Returns:

  • a void



152
153
154
# File 'lib/models/vpp_token.rb', line 152

def last_modified_date_time=(value)
    @last_modified_date_time = value
end

#last_sync_date_timeObject

Gets the lastSyncDateTime property value. The last time when an application sync was done with the Apple volume purchase program service using the the Apple Volume Purchase Program Token.

Returns:

  • a date_time



159
160
161
# File 'lib/models/vpp_token.rb', line 159

def last_sync_date_time
    return @last_sync_date_time
end

#last_sync_date_time=(value) ⇒ Object

Sets the lastSyncDateTime property value. The last time when an application sync was done with the Apple volume purchase program service using the the Apple Volume Purchase Program Token.

Parameters:

  • value

    Value to set for the lastSyncDateTime property.

Returns:

  • a void



167
168
169
# File 'lib/models/vpp_token.rb', line 167

def last_sync_date_time=(value)
    @last_sync_date_time = value
end

#last_sync_statusObject

Gets the lastSyncStatus property value. Possible sync statuses associated with an Apple Volume Purchase Program token.

Returns:

  • a vpp_token_sync_status



174
175
176
# File 'lib/models/vpp_token.rb', line 174

def last_sync_status
    return @last_sync_status
end

#last_sync_status=(value) ⇒ Object

Sets the lastSyncStatus property value. Possible sync statuses associated with an Apple Volume Purchase Program token.

Parameters:

  • value

    Value to set for the lastSyncStatus property.

Returns:

  • a void



182
183
184
# File 'lib/models/vpp_token.rb', line 182

def last_sync_status=(value)
    @last_sync_status = value
end

#organization_nameObject

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

Returns:

  • a string



189
190
191
# File 'lib/models/vpp_token.rb', line 189

def organization_name
    return @organization_name
end

#organization_name=(value) ⇒ Object

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

Parameters:

  • value

    Value to set for the organizationName property.

Returns:

  • a void



197
198
199
# File 'lib/models/vpp_token.rb', line 197

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


205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
# File 'lib/models/vpp_token.rb', line 205

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("appleId", @apple_id)
    writer.write_boolean_value("automaticallyUpdateApps", @automatically_update_apps)
    writer.write_string_value("countryOrRegion", @country_or_region)
    writer.write_date_time_value("expirationDateTime", @expiration_date_time)
    writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time)
    writer.write_date_time_value("lastSyncDateTime", @last_sync_date_time)
    writer.write_enum_value("lastSyncStatus", @last_sync_status)
    writer.write_string_value("organizationName", @organization_name)
    writer.write_enum_value("state", @state)
    writer.write_string_value("token", @token)
    writer.write_enum_value("vppTokenAccountType", )
end

#stateObject

Gets the state property value. Possible states associated with an Apple Volume Purchase Program token.

Returns:

  • a vpp_token_state



224
225
226
# File 'lib/models/vpp_token.rb', line 224

def state
    return @state
end

#state=(value) ⇒ Object

Sets the state property value. Possible states associated with an Apple Volume Purchase Program token.

Parameters:

  • value

    Value to set for the state property.

Returns:

  • a void



232
233
234
# File 'lib/models/vpp_token.rb', line 232

def state=(value)
    @state = value
end

#tokenObject

Gets the token property value. The Apple Volume Purchase Program Token string downloaded from the Apple Volume Purchase Program.

Returns:

  • a string



239
240
241
# File 'lib/models/vpp_token.rb', line 239

def token
    return @token
end

#token=(value) ⇒ Object

Sets the token property value. The Apple Volume Purchase Program Token string downloaded from the Apple Volume Purchase Program.

Parameters:

  • value

    Value to set for the token property.

Returns:

  • a void



247
248
249
# File 'lib/models/vpp_token.rb', line 247

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



254
255
256
# File 'lib/models/vpp_token.rb', line 254

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



262
263
264
# File 'lib/models/vpp_token.rb', line 262

def (value)
     = value
end