Class: MicrosoftGraph::Models::ManagedAppStatus

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/managed_app_status.rb

Overview

Represents app protection and configuration status for the organization.

Direct Known Subclasses

ManagedAppStatusRaw

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a managed_app_status

Raises:

  • (StandardError)


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_nameObject

Gets the displayName property value. Friendly name of the status report.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



53
54
55
# File 'lib/models/managed_app_status.rb', line 53

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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

#versionObject

Gets the version property value. Version of the entity.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the version property.

Returns:

  • a void



89
90
91
# File 'lib/models/managed_app_status.rb', line 89

def version=(value)
    @version = value
end