Class: MicrosoftGraph::Models::IosVppEBook
- Inherits:
-
ManagedEBook
- Object
- Entity
- ManagedEBook
- MicrosoftGraph::Models::IosVppEBook
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/ios_vpp_e_book.rb
Overview
A class containing the properties for iOS Vpp eBook.
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.
-
#genres ⇒ Object
Gets the genres property value.
-
#genres=(value) ⇒ Object
Sets the genres property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new iosVppEBook and sets the default values.
-
#language ⇒ Object
Gets the language property value.
-
#language=(value) ⇒ Object
Sets the language property value.
-
#seller ⇒ Object
Gets the seller property value.
-
#seller=(value) ⇒ Object
Sets the seller property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#total_license_count ⇒ Object
Gets the totalLicenseCount property value.
-
#total_license_count=(value) ⇒ Object
Sets the totalLicenseCount property value.
-
#used_license_count ⇒ Object
Gets the usedLicenseCount property value.
-
#used_license_count=(value) ⇒ Object
Sets the usedLicenseCount property value.
-
#vpp_organization_name ⇒ Object
Gets the vppOrganizationName property value.
-
#vpp_organization_name=(value) ⇒ Object
Sets the vppOrganizationName property value.
-
#vpp_token_id ⇒ Object
Gets the vppTokenId property value.
-
#vpp_token_id=(value) ⇒ Object
Sets the vppTokenId property value.
Methods inherited from ManagedEBook
#assignments, #assignments=, #created_date_time, #created_date_time=, #description, #description=, #device_states, #device_states=, #display_name, #display_name=, #information_url, #information_url=, #install_summary, #install_summary=, #large_cover, #large_cover=, #last_modified_date_time, #last_modified_date_time=, #privacy_information_url, #privacy_information_url=, #published_date_time, #published_date_time=, #publisher, #publisher=, #user_state_summary, #user_state_summary=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new iosVppEBook and sets the default values.
54 55 56 57 |
# File 'lib/models/ios_vpp_e_book.rb', line 54 def initialize() super @odata_type = "#microsoft.graph.iosVppEBook" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
63 64 65 66 |
# File 'lib/models/ios_vpp_e_book.rb', line 63 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return IosVppEBook.new end |
Instance Method Details
#apple_id ⇒ Object
Gets the appleId property value. The Apple ID associated with Vpp token.
39 40 41 |
# File 'lib/models/ios_vpp_e_book.rb', line 39 def apple_id return @apple_id end |
#apple_id=(value) ⇒ Object
Sets the appleId property value. The Apple ID associated with Vpp token.
47 48 49 |
# File 'lib/models/ios_vpp_e_book.rb', line 47 def apple_id=(value) @apple_id = value end |
#genres ⇒ Object
Gets the genres property value. Genres.
71 72 73 |
# File 'lib/models/ios_vpp_e_book.rb', line 71 def genres return @genres end |
#genres=(value) ⇒ Object
Sets the genres property value. Genres.
79 80 81 |
# File 'lib/models/ios_vpp_e_book.rb', line 79 def genres=(value) @genres = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/models/ios_vpp_e_book.rb', line 86 def get_field_deserializers() return super.merge({ "appleId" => lambda {|n| @apple_id = n.get_string_value() }, "genres" => lambda {|n| @genres = n.get_collection_of_primitive_values(String) }, "language" => lambda {|n| @language = n.get_string_value() }, "seller" => lambda {|n| @seller = n.get_string_value() }, "totalLicenseCount" => lambda {|n| @total_license_count = n.get_number_value() }, "usedLicenseCount" => lambda {|n| @used_license_count = n.get_number_value() }, "vppOrganizationName" => lambda {|n| @vpp_organization_name = n.get_string_value() }, "vppTokenId" => lambda {|n| @vpp_token_id = n.get_guid_value() }, }) end |
#language ⇒ Object
Gets the language property value. Language.
102 103 104 |
# File 'lib/models/ios_vpp_e_book.rb', line 102 def language return @language end |
#language=(value) ⇒ Object
Sets the language property value. Language.
110 111 112 |
# File 'lib/models/ios_vpp_e_book.rb', line 110 def language=(value) @language = value end |
#seller ⇒ Object
Gets the seller property value. Seller.
117 118 119 |
# File 'lib/models/ios_vpp_e_book.rb', line 117 def seller return @seller end |
#seller=(value) ⇒ Object
Sets the seller property value. Seller.
125 126 127 |
# File 'lib/models/ios_vpp_e_book.rb', line 125 def seller=(value) @seller = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/models/ios_vpp_e_book.rb', line 133 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("appleId", @apple_id) writer.write_collection_of_primitive_values("genres", @genres) writer.write_string_value("language", @language) writer.write_string_value("seller", @seller) writer.write_number_value("totalLicenseCount", @total_license_count) writer.write_number_value("usedLicenseCount", @used_license_count) writer.write_string_value("vppOrganizationName", @vpp_organization_name) writer.write_guid_value("vppTokenId", @vpp_token_id) end |
#total_license_count ⇒ Object
Gets the totalLicenseCount property value. Total license count.
149 150 151 |
# File 'lib/models/ios_vpp_e_book.rb', line 149 def total_license_count return @total_license_count end |
#total_license_count=(value) ⇒ Object
Sets the totalLicenseCount property value. Total license count.
157 158 159 |
# File 'lib/models/ios_vpp_e_book.rb', line 157 def total_license_count=(value) @total_license_count = value end |
#used_license_count ⇒ Object
Gets the usedLicenseCount property value. Used license count.
164 165 166 |
# File 'lib/models/ios_vpp_e_book.rb', line 164 def used_license_count return @used_license_count end |
#used_license_count=(value) ⇒ Object
Sets the usedLicenseCount property value. Used license count.
172 173 174 |
# File 'lib/models/ios_vpp_e_book.rb', line 172 def used_license_count=(value) @used_license_count = value end |
#vpp_organization_name ⇒ Object
Gets the vppOrganizationName property value. The Vpp token’s organization name.
179 180 181 |
# File 'lib/models/ios_vpp_e_book.rb', line 179 def vpp_organization_name return @vpp_organization_name end |
#vpp_organization_name=(value) ⇒ Object
Sets the vppOrganizationName property value. The Vpp token’s organization name.
187 188 189 |
# File 'lib/models/ios_vpp_e_book.rb', line 187 def vpp_organization_name=(value) @vpp_organization_name = value end |
#vpp_token_id ⇒ Object
Gets the vppTokenId property value. The Vpp token ID.
194 195 196 |
# File 'lib/models/ios_vpp_e_book.rb', line 194 def vpp_token_id return @vpp_token_id end |
#vpp_token_id=(value) ⇒ Object
Sets the vppTokenId property value. The Vpp token ID.
202 203 204 |
# File 'lib/models/ios_vpp_e_book.rb', line 202 def vpp_token_id=(value) @vpp_token_id = value end |