Class: MicrosoftGraph::Models::ManagedAppStatus
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/managed_app_status.rb
Overview
Represents app protection and configuration status for the organization.
Direct Known Subclasses
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
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new managedAppStatus and sets the default values.
-
#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 managedAppStatus and sets the default values.
21 22 23 |
# File 'lib/models/managed_app_status.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 33 34 35 36 37 38 39 40 |
# File 'lib/models/managed_app_status.rb', line 29 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? mapping_value_node = parse_node.get_child_node("@odata.type") unless mapping_value_node.nil? then mapping_value = mapping_value_node.get_string_value case mapping_value when "#microsoft.graph.managedAppStatusRaw" return ManagedAppStatusRaw.new end end return ManagedAppStatus.new end |
Instance Method Details
#display_name ⇒ Object
Gets the displayName property value. Friendly name of the status report.
45 46 47 |
# File 'lib/models/managed_app_status.rb', line 45 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Friendly name of the status report.
53 54 55 |
# File 'lib/models/managed_app_status.rb', line 53 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
60 61 62 63 64 65 |
# File 'lib/models/managed_app_status.rb', line 60 def get_field_deserializers() return super.merge({ "displayName" => lambda {|n| @display_name = n.get_string_value() }, "version" => lambda {|n| @version = n.get_string_value() }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
71 72 73 74 75 76 |
# File 'lib/models/managed_app_status.rb', line 71 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("displayName", @display_name) writer.write_string_value("version", @version) end |
#version ⇒ Object
Gets the version property value. Version of the entity.
81 82 83 |
# File 'lib/models/managed_app_status.rb', line 81 def version return @version end |
#version=(value) ⇒ Object
Sets the version property value. Version of the entity.
89 90 91 |
# File 'lib/models/managed_app_status.rb', line 89 def version=(value) @version = value end |