Class: MicrosoftGraph::Models::AppListItem
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::AppListItem
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/app_list_item.rb
Overview
Represents an app in the list of managed applications
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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#app_id ⇒ Object
Gets the appId property value.
-
#app_id=(value) ⇒ Object
Sets the appId property value.
-
#app_store_url ⇒ Object
Gets the appStoreUrl property value.
-
#app_store_url=(value) ⇒ Object
Sets the appStoreUrl property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new appListItem and sets the default values.
-
#name ⇒ Object
Gets the name property value.
-
#name=(value) ⇒ Object
Sets the name property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#publisher ⇒ Object
Gets the publisher property value.
-
#publisher=(value) ⇒ Object
Sets the publisher property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
Instantiates a new appListItem and sets the default values.
78 79 80 |
# File 'lib/models/app_list_item.rb', line 78 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
86 87 88 89 |
# File 'lib/models/app_list_item.rb', line 86 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return AppListItem.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
33 34 35 |
# File 'lib/models/app_list_item.rb', line 33 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
41 42 43 |
# File 'lib/models/app_list_item.rb', line 41 def additional_data=(value) @additional_data = value end |
#app_id ⇒ Object
Gets the appId property value. The application or bundle identifier of the application
48 49 50 |
# File 'lib/models/app_list_item.rb', line 48 def app_id return @app_id end |
#app_id=(value) ⇒ Object
Sets the appId property value. The application or bundle identifier of the application
56 57 58 |
# File 'lib/models/app_list_item.rb', line 56 def app_id=(value) @app_id = value end |
#app_store_url ⇒ Object
Gets the appStoreUrl property value. The Store URL of the application
63 64 65 |
# File 'lib/models/app_list_item.rb', line 63 def app_store_url return @app_store_url end |
#app_store_url=(value) ⇒ Object
Sets the appStoreUrl property value. The Store URL of the application
71 72 73 |
# File 'lib/models/app_list_item.rb', line 71 def app_store_url=(value) @app_store_url = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
94 95 96 97 98 99 100 101 102 |
# File 'lib/models/app_list_item.rb', line 94 def get_field_deserializers() return { "appId" => lambda {|n| @app_id = n.get_string_value() }, "appStoreUrl" => lambda {|n| @app_store_url = n.get_string_value() }, "name" => lambda {|n| @name = n.get_string_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "publisher" => lambda {|n| @publisher = n.get_string_value() }, } end |
#name ⇒ Object
Gets the name property value. The application name
107 108 109 |
# File 'lib/models/app_list_item.rb', line 107 def name return @name end |
#name=(value) ⇒ Object
Sets the name property value. The application name
115 116 117 |
# File 'lib/models/app_list_item.rb', line 115 def name=(value) @name = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
122 123 124 |
# File 'lib/models/app_list_item.rb', line 122 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
130 131 132 |
# File 'lib/models/app_list_item.rb', line 130 def odata_type=(value) @odata_type = value end |
#publisher ⇒ Object
Gets the publisher property value. The publisher of the application
137 138 139 |
# File 'lib/models/app_list_item.rb', line 137 def publisher return @publisher end |
#publisher=(value) ⇒ Object
Sets the publisher property value. The publisher of the application
145 146 147 |
# File 'lib/models/app_list_item.rb', line 145 def publisher=(value) @publisher = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
153 154 155 156 157 158 159 160 161 |
# File 'lib/models/app_list_item.rb', line 153 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("appId", @app_id) writer.write_string_value("appStoreUrl", @app_store_url) writer.write_string_value("name", @name) writer.write_string_value("@odata.type", @odata_type) writer.write_string_value("publisher", @publisher) writer.write_additional_data(@additional_data) end |