Class: MicrosoftGraph::Models::AppListItem

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

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

Returns:

  • a app_list_item

Raises:

  • (StandardError)


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_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



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.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



41
42
43
# File 'lib/models/app_list_item.rb', line 41

def additional_data=(value)
    @additional_data = value
end

#app_idObject

Gets the appId property value. The application or bundle identifier of the application

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the appId property.

Returns:

  • a void



56
57
58
# File 'lib/models/app_list_item.rb', line 56

def app_id=(value)
    @app_id = value
end

#app_store_urlObject

Gets the appStoreUrl property value. The Store URL of the application

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the appStoreUrl property.

Returns:

  • a void



71
72
73
# File 'lib/models/app_list_item.rb', line 71

def app_store_url=(value)
    @app_store_url = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#nameObject

Gets the name property value. The application name

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the name property.

Returns:

  • a void



115
116
117
# File 'lib/models/app_list_item.rb', line 115

def name=(value)
    @name = value
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



130
131
132
# File 'lib/models/app_list_item.rb', line 130

def odata_type=(value)
    @odata_type = value
end

#publisherObject

Gets the publisher property value. The publisher of the application

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the publisher property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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