Class: MicrosoftGraph::Models::TeamsAppDefinition
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/teams_app_definition.rb
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
-
#authorization ⇒ Object
Gets the authorization property value.
-
#authorization=(value) ⇒ Object
Sets the authorization property value.
-
#bot ⇒ Object
Gets the bot property value.
-
#bot=(value) ⇒ Object
Sets the bot property value.
-
#created_by ⇒ Object
Gets the createdBy property value.
-
#created_by=(value) ⇒ Object
Sets the createdBy property value.
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#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 teamsAppDefinition and sets the default values.
-
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value.
-
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value.
-
#publishing_state ⇒ Object
Gets the publishingState property value.
-
#publishing_state=(value) ⇒ Object
Sets the publishingState property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#short_description ⇒ Object
Gets the shortDescription property value.
-
#short_description=(value) ⇒ Object
Sets the shortDescription property value.
-
#teams_app_id ⇒ Object
Gets the teamsAppId property value.
-
#teams_app_id=(value) ⇒ Object
Sets the teamsAppId property value.
-
#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 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
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
#authorization ⇒ Object
Gets the authorization property value. Authorization requirements specified in the Teams app manifest.
44 45 46 |
# File 'lib/models/teams_app_definition.rb', line 44 def return end |
#authorization=(value) ⇒ Object
Sets the authorization property value. Authorization requirements specified in the Teams app manifest.
52 53 54 |
# File 'lib/models/teams_app_definition.rb', line 52 def (value) = value end |
#bot ⇒ Object
Gets the bot property value. The details of the bot specified in the Teams app manifest.
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.
67 68 69 |
# File 'lib/models/teams_app_definition.rb', line 67 def bot=(value) @bot = value end |
#created_by ⇒ Object
Gets the createdBy property value. The createdBy property
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
89 90 91 |
# File 'lib/models/teams_app_definition.rb', line 89 def created_by=(value) @created_by = value end |
#description ⇒ Object
Gets the description property value. Verbose description of the application.
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.
113 114 115 |
# File 'lib/models/teams_app_definition.rb', line 113 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. The name of the app provided by the app developer.
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.
128 129 130 |
# File 'lib/models/teams_app_definition.rb', line 128 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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| = 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_time ⇒ Object
Gets the lastModifiedDateTime property value. The lastModifiedDateTime property
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
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_state ⇒ Object
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.
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.
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
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", ) 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_description ⇒ Object
Gets the shortDescription property value. Short description of the application.
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.
210 211 212 |
# File 'lib/models/teams_app_definition.rb', line 210 def short_description=(value) @short_description = value end |
#teams_app_id ⇒ Object
Gets the teamsAppId property value. The ID from the Teams app manifest.
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.
225 226 227 |
# File 'lib/models/teams_app_definition.rb', line 225 def teams_app_id=(value) @teams_app_id = value end |
#version ⇒ Object
Gets the version property value. The version number of the application.
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.
240 241 242 |
# File 'lib/models/teams_app_definition.rb', line 240 def version=(value) @version = value end |