Class: MicrosoftGraph::Models::ManagedMobileApp
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/managed_mobile_app.rb
Overview
The identifier for the deployment an app.
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
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new managedMobileApp and sets the default values.
-
#mobile_app_identifier ⇒ Object
Gets the mobileAppIdentifier property value.
-
#mobile_app_identifier=(value) ⇒ Object
Sets the mobileAppIdentifier property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#version ⇒ Object
Gets the version property value.
-
#version=(value) ⇒ Object
Sets the version property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new managedMobileApp and sets the default values.
21 22 23 |
# File 'lib/models/managed_mobile_app.rb', line 21 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
29 30 31 32 |
# File 'lib/models/managed_mobile_app.rb', line 29 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ManagedMobileApp.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
37 38 39 40 41 42 |
# File 'lib/models/managed_mobile_app.rb', line 37 def get_field_deserializers() return super.merge({ "mobileAppIdentifier" => lambda {|n| @mobile_app_identifier = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::MobileAppIdentifier.create_from_discriminator_value(pn) }) }, "version" => lambda {|n| @version = n.get_string_value() }, }) end |
#mobile_app_identifier ⇒ Object
Gets the mobileAppIdentifier property value. The identifier for an app with it’s operating system type.
47 48 49 |
# File 'lib/models/managed_mobile_app.rb', line 47 def mobile_app_identifier return @mobile_app_identifier end |
#mobile_app_identifier=(value) ⇒ Object
Sets the mobileAppIdentifier property value. The identifier for an app with it’s operating system type.
55 56 57 |
# File 'lib/models/managed_mobile_app.rb', line 55 def mobile_app_identifier=(value) @mobile_app_identifier = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
63 64 65 66 67 68 |
# File 'lib/models/managed_mobile_app.rb', line 63 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("mobileAppIdentifier", @mobile_app_identifier) writer.write_string_value("version", @version) end |
#version ⇒ Object
Gets the version property value. Version of the entity.
73 74 75 |
# File 'lib/models/managed_mobile_app.rb', line 73 def version return @version end |
#version=(value) ⇒ Object
Sets the version property value. Version of the entity.
81 82 83 |
# File 'lib/models/managed_mobile_app.rb', line 81 def version=(value) @version = value end |