Class: MicrosoftGraph::Models::VppToken
- 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
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#apple_id ⇒ Object
Gets the appleId property value.
-
#apple_id=(value) ⇒ Object
Sets the appleId property value.
-
#automatically_update_apps ⇒ Object
Gets the automaticallyUpdateApps property value.
-
#automatically_update_apps=(value) ⇒ Object
Sets the automaticallyUpdateApps property value.
-
#country_or_region ⇒ Object
Gets the countryOrRegion property value.
-
#country_or_region=(value) ⇒ Object
Sets the countryOrRegion property value.
-
#expiration_date_time ⇒ Object
Gets the expirationDateTime property value.
-
#expiration_date_time=(value) ⇒ Object
Sets the expirationDateTime property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new vppToken and sets the default values.
-
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value.
-
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value.
-
#last_sync_date_time ⇒ Object
Gets the lastSyncDateTime property value.
-
#last_sync_date_time=(value) ⇒ Object
Sets the lastSyncDateTime property value.
-
#last_sync_status ⇒ Object
Gets the lastSyncStatus property value.
-
#last_sync_status=(value) ⇒ Object
Sets the lastSyncStatus property value.
-
#organization_name ⇒ Object
Gets the organizationName property value.
-
#organization_name=(value) ⇒ Object
Sets the organizationName property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#state ⇒ Object
Gets the state property value.
-
#state=(value) ⇒ Object
Sets the state property value.
-
#token ⇒ Object
Gets the token property value.
-
#token=(value) ⇒ Object
Sets the token property value.
-
#vpp_token_account_type ⇒ Object
Gets the vppTokenAccountType property value.
-
#vpp_token_account_type=(value) ⇒ Object
Sets the vppTokenAccountType property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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_id ⇒ Object
Gets the appleId property value. The apple Id associated with the given Apple Volume Purchase Program Token.
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.
57 58 59 |
# File 'lib/models/vpp_token.rb', line 57 def apple_id=(value) @apple_id = value end |
#automatically_update_apps ⇒ Object
Gets the automaticallyUpdateApps property value. Whether or not apps for the VPP token will be automatically updated.
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.
72 73 74 |
# File 'lib/models/vpp_token.rb', line 72 def automatically_update_apps=(value) @automatically_update_apps = value end |
#country_or_region ⇒ Object
Gets the countryOrRegion property value. Whether or not apps for the VPP token will be automatically updated.
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.
94 95 96 |
# File 'lib/models/vpp_token.rb', line 94 def country_or_region=(value) @country_or_region = value end |
#expiration_date_time ⇒ Object
Gets the expirationDateTime property value. The expiration date time of the Apple Volume Purchase Program Token.
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.
118 119 120 |
# File 'lib/models/vpp_token.rb', line 118 def expiration_date_time=(value) @expiration_date_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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| @vpp_token_account_type = n.get_enum_value(MicrosoftGraph::Models::VppTokenAccountType) }, }) end |
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value. Last modification date time associated with the Apple Volume Purchase Program Token.
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.
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_time ⇒ Object
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.
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.
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_status ⇒ Object
Gets the lastSyncStatus property value. Possible sync statuses associated with an Apple Volume Purchase Program token.
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.
182 183 184 |
# File 'lib/models/vpp_token.rb', line 182 def last_sync_status=(value) @last_sync_status = value end |
#organization_name ⇒ Object
Gets the organizationName property value. The organization associated with the Apple Volume Purchase Program Token
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
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
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", @vpp_token_account_type) end |
#state ⇒ Object
Gets the state property value. Possible states associated with an Apple Volume Purchase Program token.
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.
232 233 234 |
# File 'lib/models/vpp_token.rb', line 232 def state=(value) @state = value end |
#token ⇒ Object
Gets the token property value. The Apple Volume Purchase Program Token string downloaded from the Apple Volume Purchase Program.
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.
247 248 249 |
# File 'lib/models/vpp_token.rb', line 247 def token=(value) @token = value end |
#vpp_token_account_type ⇒ Object
Gets the vppTokenAccountType property value. Possible types of an Apple Volume Purchase Program token.
254 255 256 |
# File 'lib/models/vpp_token.rb', line 254 def vpp_token_account_type return @vpp_token_account_type end |
#vpp_token_account_type=(value) ⇒ Object
Sets the vppTokenAccountType property value. Possible types of an Apple Volume Purchase Program token.
262 263 264 |
# File 'lib/models/vpp_token.rb', line 262 def vpp_token_account_type=(value) @vpp_token_account_type = value end |