Class: MicrosoftGraph::Models::TeamsAppDefinition

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

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 teamsAppDefinition and sets the default values.



74
75
76
# File 'lib/models/teams_app_definition.rb', line 74

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 teams_app_definition

Raises:

  • (StandardError)


97
98
99
100
# File 'lib/models/teams_app_definition.rb', line 97

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return TeamsAppDefinition.new
end

Instance Method Details

#authorizationObject

Gets the authorization property value. Authorization requirements specified in the Teams app manifest.

Returns:

  • a teams_app_authorization



44
45
46
# File 'lib/models/teams_app_definition.rb', line 44

def authorization
    return @authorization
end

#authorization=(value) ⇒ Object

Sets the authorization property value. Authorization requirements specified in the Teams app manifest.

Parameters:

  • value

    Value to set for the authorization property.

Returns:

  • a void



52
53
54
# File 'lib/models/teams_app_definition.rb', line 52

def authorization=(value)
    @authorization = value
end

#botObject

Gets the bot property value. The details of the bot specified in the Teams app manifest.

Returns:

  • a teamwork_bot



59
60
61
# File 'lib/models/teams_app_definition.rb', line 59

def bot
    return @bot
end

#bot=(value) ⇒ Object

Sets the bot property value. The details of the bot specified in the Teams app manifest.

Parameters:

  • value

    Value to set for the bot property.

Returns:

  • a void



67
68
69
# File 'lib/models/teams_app_definition.rb', line 67

def bot=(value)
    @bot = value
end

#created_byObject

Gets the createdBy property value. The createdBy property

Returns:

  • a identity_set



81
82
83
# File 'lib/models/teams_app_definition.rb', line 81

def created_by
    return @created_by
end

#created_by=(value) ⇒ Object

Sets the createdBy property value. The createdBy property

Parameters:

  • value

    Value to set for the createdBy property.

Returns:

  • a void



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

def created_by=(value)
    @created_by = value
end

#descriptionObject

Gets the description property value. Verbose description of the application.

Returns:

  • a string



105
106
107
# File 'lib/models/teams_app_definition.rb', line 105

def description
    return @description
end

#description=(value) ⇒ Object

Sets the description property value. Verbose description of the application.

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



113
114
115
# File 'lib/models/teams_app_definition.rb', line 113

def description=(value)
    @description = value
end

#display_nameObject

Gets the displayName property value. The name of the app provided by the app developer.

Returns:

  • a string



120
121
122
# File 'lib/models/teams_app_definition.rb', line 120

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The name of the app provided by the app developer.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



128
129
130
# File 'lib/models/teams_app_definition.rb', line 128

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



135
136
137
138
139
140
141
142
143
144
145
146
147
148
# File 'lib/models/teams_app_definition.rb', line 135

def get_field_deserializers()
    return super.merge({
        "authorization" => lambda {|n| @authorization = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TeamsAppAuthorization.create_from_discriminator_value(pn) }) },
        "bot" => lambda {|n| @bot = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TeamworkBot.create_from_discriminator_value(pn) }) },
        "createdBy" => lambda {|n| @created_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) },
        "description" => lambda {|n| @description = n.get_string_value() },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() },
        "publishingState" => lambda {|n| @publishing_state = n.get_enum_value(MicrosoftGraph::Models::TeamsAppPublishingState) },
        "shortDescription" => lambda {|n| @short_description = n.get_string_value() },
        "teamsAppId" => lambda {|n| @teams_app_id = n.get_string_value() },
        "version" => lambda {|n| @version = n.get_string_value() },
    })
end

#last_modified_date_timeObject

Gets the lastModifiedDateTime property value. The lastModifiedDateTime property

Returns:

  • a date_time



153
154
155
# File 'lib/models/teams_app_definition.rb', line 153

def last_modified_date_time
    return @last_modified_date_time
end

#last_modified_date_time=(value) ⇒ Object

Sets the lastModifiedDateTime property value. The lastModifiedDateTime property

Parameters:

  • value

    Value to set for the lastModifiedDateTime property.

Returns:

  • a void



161
162
163
# File 'lib/models/teams_app_definition.rb', line 161

def last_modified_date_time=(value)
    @last_modified_date_time = value
end

#publishing_stateObject

Gets the publishingState property value. The published status of a specific version of a Teams app. Possible values are:submitted — The specific version of the Teams app has been submitted and is under review. published — The request to publish the specific version of the Teams app has been approved by the admin and the app is published. rejected — The request to publish the specific version of the Teams app was rejected by the admin.

Returns:

  • a teams_app_publishing_state



168
169
170
# File 'lib/models/teams_app_definition.rb', line 168

def publishing_state
    return @publishing_state
end

#publishing_state=(value) ⇒ Object

Sets the publishingState property value. The published status of a specific version of a Teams app. Possible values are:submitted — The specific version of the Teams app has been submitted and is under review. published — The request to publish the specific version of the Teams app has been approved by the admin and the app is published. rejected — The request to publish the specific version of the Teams app was rejected by the admin.

Parameters:

  • value

    Value to set for the publishingState property.

Returns:

  • a void



176
177
178
# File 'lib/models/teams_app_definition.rb', line 176

def publishing_state=(value)
    @publishing_state = 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)


184
185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'lib/models/teams_app_definition.rb', line 184

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("authorization", @authorization)
    writer.write_object_value("bot", @bot)
    writer.write_object_value("createdBy", @created_by)
    writer.write_string_value("description", @description)
    writer.write_string_value("displayName", @display_name)
    writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time)
    writer.write_enum_value("publishingState", @publishing_state)
    writer.write_string_value("shortDescription", @short_description)
    writer.write_string_value("teamsAppId", @teams_app_id)
    writer.write_string_value("version", @version)
end

#short_descriptionObject

Gets the shortDescription property value. Short description of the application.

Returns:

  • a string



202
203
204
# File 'lib/models/teams_app_definition.rb', line 202

def short_description
    return @short_description
end

#short_description=(value) ⇒ Object

Sets the shortDescription property value. Short description of the application.

Parameters:

  • value

    Value to set for the shortDescription property.

Returns:

  • a void



210
211
212
# File 'lib/models/teams_app_definition.rb', line 210

def short_description=(value)
    @short_description = value
end

#teams_app_idObject

Gets the teamsAppId property value. The ID from the Teams app manifest.

Returns:

  • a string



217
218
219
# File 'lib/models/teams_app_definition.rb', line 217

def teams_app_id
    return @teams_app_id
end

#teams_app_id=(value) ⇒ Object

Sets the teamsAppId property value. The ID from the Teams app manifest.

Parameters:

  • value

    Value to set for the teamsAppId property.

Returns:

  • a void



225
226
227
# File 'lib/models/teams_app_definition.rb', line 225

def teams_app_id=(value)
    @teams_app_id = value
end

#versionObject

Gets the version property value. The version number of the application.

Returns:

  • a string



232
233
234
# File 'lib/models/teams_app_definition.rb', line 232

def version
    return @version
end

#version=(value) ⇒ Object

Sets the version property value. The version number of the application.

Parameters:

  • value

    Value to set for the version property.

Returns:

  • a void



240
241
242
# File 'lib/models/teams_app_definition.rb', line 240

def version=(value)
    @version = value
end