Class: MicrosoftGraph::Models::Team
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/team.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
-
#all_channels ⇒ Object
Gets the allChannels property value.
-
#all_channels=(value) ⇒ Object
Sets the allChannels property value.
-
#channels ⇒ Object
Gets the channels property value.
-
#channels=(value) ⇒ Object
Sets the channels property value.
-
#classification ⇒ Object
Gets the classification property value.
-
#classification=(value) ⇒ Object
Sets the classification property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime 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.
-
#fun_settings ⇒ Object
Gets the funSettings property value.
-
#fun_settings=(value) ⇒ Object
Sets the funSettings property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#group ⇒ Object
Gets the group property value.
-
#group=(value) ⇒ Object
Sets the group property value.
-
#guest_settings ⇒ Object
Gets the guestSettings property value.
-
#guest_settings=(value) ⇒ Object
Sets the guestSettings property value.
-
#incoming_channels ⇒ Object
Gets the incomingChannels property value.
-
#incoming_channels=(value) ⇒ Object
Sets the incomingChannels property value.
-
#initialize ⇒ Object
constructor
Instantiates a new team and sets the default values.
-
#installed_apps ⇒ Object
Gets the installedApps property value.
-
#installed_apps=(value) ⇒ Object
Sets the installedApps property value.
-
#internal_id ⇒ Object
Gets the internalId property value.
-
#internal_id=(value) ⇒ Object
Sets the internalId property value.
-
#is_archived ⇒ Object
Gets the isArchived property value.
-
#is_archived=(value) ⇒ Object
Sets the isArchived property value.
-
#member_settings ⇒ Object
Gets the memberSettings property value.
-
#member_settings=(value) ⇒ Object
Sets the memberSettings property value.
-
#members ⇒ Object
Gets the members property value.
-
#members=(value) ⇒ Object
Sets the members property value.
-
#messaging_settings ⇒ Object
Gets the messagingSettings property value.
-
#messaging_settings=(value) ⇒ Object
Sets the messagingSettings property value.
-
#operations ⇒ Object
Gets the operations property value.
-
#operations=(value) ⇒ Object
Sets the operations property value.
-
#permission_grants ⇒ Object
Gets the permissionGrants property value.
-
#permission_grants=(value) ⇒ Object
Sets the permissionGrants property value.
-
#photo ⇒ Object
Gets the photo property value.
-
#photo=(value) ⇒ Object
Sets the photo property value.
-
#primary_channel ⇒ Object
Gets the primaryChannel property value.
-
#primary_channel=(value) ⇒ Object
Sets the primaryChannel property value.
-
#schedule ⇒ Object
Gets the schedule property value.
-
#schedule=(value) ⇒ Object
Sets the schedule property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#specialization ⇒ Object
Gets the specialization property value.
-
#specialization=(value) ⇒ Object
Sets the specialization property value.
-
#summary ⇒ Object
Gets the summary property value.
-
#summary=(value) ⇒ Object
Sets the summary property value.
-
#tags ⇒ Object
Gets the tags property value.
-
#tags=(value) ⇒ Object
Sets the tags property value.
-
#template ⇒ Object
Gets the template property value.
-
#template=(value) ⇒ Object
Sets the template property value.
-
#tenant_id ⇒ Object
Gets the tenantId property value.
-
#tenant_id=(value) ⇒ Object
Sets the tenantId property value.
-
#visibility ⇒ Object
Gets the visibility property value.
-
#visibility=(value) ⇒ Object
Sets the visibility property value.
-
#web_url ⇒ Object
Gets the webUrl property value.
-
#web_url=(value) ⇒ Object
Sets the webUrl property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new team and sets the default values.
143 144 145 |
# File 'lib/models/team.rb', line 143 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
166 167 168 169 |
# File 'lib/models/team.rb', line 166 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return Team.new end |
Instance Method Details
#all_channels ⇒ Object
Gets the allChannels property value. List of channels either hosted in or shared with the team (incoming channels).
98 99 100 |
# File 'lib/models/team.rb', line 98 def all_channels return @all_channels end |
#all_channels=(value) ⇒ Object
Sets the allChannels property value. List of channels either hosted in or shared with the team (incoming channels).
106 107 108 |
# File 'lib/models/team.rb', line 106 def all_channels=(value) @all_channels = value end |
#channels ⇒ Object
Gets the channels property value. The collection of channels and messages associated with the team.
113 114 115 |
# File 'lib/models/team.rb', line 113 def channels return @channels end |
#channels=(value) ⇒ Object
Sets the channels property value. The collection of channels and messages associated with the team.
121 122 123 |
# File 'lib/models/team.rb', line 121 def channels=(value) @channels = value end |
#classification ⇒ Object
Gets the classification property value. An optional label. Typically describes the data or business sensitivity of the team. Must match one of a pre-configured set in the tenant’s directory.
128 129 130 |
# File 'lib/models/team.rb', line 128 def classification return @classification end |
#classification=(value) ⇒ Object
Sets the classification property value. An optional label. Typically describes the data or business sensitivity of the team. Must match one of a pre-configured set in the tenant’s directory.
136 137 138 |
# File 'lib/models/team.rb', line 136 def classification=(value) @classification = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. Timestamp at which the team was created.
150 151 152 |
# File 'lib/models/team.rb', line 150 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. Timestamp at which the team was created.
158 159 160 |
# File 'lib/models/team.rb', line 158 def created_date_time=(value) @created_date_time = value end |
#description ⇒ Object
Gets the description property value. An optional description for the team. Maximum length: 1024 characters.
174 175 176 |
# File 'lib/models/team.rb', line 174 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. An optional description for the team. Maximum length: 1024 characters.
182 183 184 |
# File 'lib/models/team.rb', line 182 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. The name of the team.
189 190 191 |
# File 'lib/models/team.rb', line 189 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The name of the team.
197 198 199 |
# File 'lib/models/team.rb', line 197 def display_name=(value) @display_name = value end |
#fun_settings ⇒ Object
Gets the funSettings property value. Settings to configure use of Giphy, memes, and stickers in the team.
204 205 206 |
# File 'lib/models/team.rb', line 204 def fun_settings return @fun_settings end |
#fun_settings=(value) ⇒ Object
Sets the funSettings property value. Settings to configure use of Giphy, memes, and stickers in the team.
212 213 214 |
# File 'lib/models/team.rb', line 212 def fun_settings=(value) @fun_settings = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 |
# File 'lib/models/team.rb', line 219 def get_field_deserializers() return super.merge({ "allChannels" => lambda {|n| @all_channels = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Channel.create_from_discriminator_value(pn) }) }, "channels" => lambda {|n| @channels = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Channel.create_from_discriminator_value(pn) }) }, "classification" => lambda {|n| @classification = n.get_string_value() }, "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, "description" => lambda {|n| @description = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "funSettings" => lambda {|n| @fun_settings = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TeamFunSettings.create_from_discriminator_value(pn) }) }, "group" => lambda {|n| @group = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }) }, "guestSettings" => lambda {|n| @guest_settings = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TeamGuestSettings.create_from_discriminator_value(pn) }) }, "incomingChannels" => lambda {|n| @incoming_channels = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Channel.create_from_discriminator_value(pn) }) }, "installedApps" => lambda {|n| @installed_apps = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::TeamsAppInstallation.create_from_discriminator_value(pn) }) }, "internalId" => lambda {|n| @internal_id = n.get_string_value() }, "isArchived" => lambda {|n| @is_archived = n.get_boolean_value() }, "memberSettings" => lambda {|n| @member_settings = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TeamMemberSettings.create_from_discriminator_value(pn) }) }, "members" => lambda {|n| @members = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }) }, "messagingSettings" => lambda {|n| @messaging_settings = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TeamMessagingSettings.create_from_discriminator_value(pn) }) }, "operations" => lambda {|n| @operations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::TeamsAsyncOperation.create_from_discriminator_value(pn) }) }, "permissionGrants" => lambda {|n| = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ResourceSpecificPermissionGrant.create_from_discriminator_value(pn) }) }, "photo" => lambda {|n| @photo = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ProfilePhoto.create_from_discriminator_value(pn) }) }, "primaryChannel" => lambda {|n| @primary_channel = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Channel.create_from_discriminator_value(pn) }) }, "schedule" => lambda {|n| @schedule = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Schedule.create_from_discriminator_value(pn) }) }, "specialization" => lambda {|n| @specialization = n.get_enum_value(MicrosoftGraph::Models::TeamSpecialization) }, "summary" => lambda {|n| @summary = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TeamSummary.create_from_discriminator_value(pn) }) }, "tags" => lambda {|n| = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::TeamworkTag.create_from_discriminator_value(pn) }) }, "template" => lambda {|n| @template = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TeamsTemplate.create_from_discriminator_value(pn) }) }, "tenantId" => lambda {|n| @tenant_id = n.get_string_value() }, "visibility" => lambda {|n| @visibility = n.get_enum_value(MicrosoftGraph::Models::TeamVisibilityType) }, "webUrl" => lambda {|n| @web_url = n.get_string_value() }, }) end |
#group ⇒ Object
Gets the group property value. The group property
255 256 257 |
# File 'lib/models/team.rb', line 255 def group return @group end |
#group=(value) ⇒ Object
Sets the group property value. The group property
263 264 265 |
# File 'lib/models/team.rb', line 263 def group=(value) @group = value end |
#guest_settings ⇒ Object
Gets the guestSettings property value. Settings to configure whether guests can create, update, or delete channels in the team.
270 271 272 |
# File 'lib/models/team.rb', line 270 def guest_settings return @guest_settings end |
#guest_settings=(value) ⇒ Object
Sets the guestSettings property value. Settings to configure whether guests can create, update, or delete channels in the team.
278 279 280 |
# File 'lib/models/team.rb', line 278 def guest_settings=(value) @guest_settings = value end |
#incoming_channels ⇒ Object
Gets the incomingChannels property value. List of channels shared with the team.
285 286 287 |
# File 'lib/models/team.rb', line 285 def incoming_channels return @incoming_channels end |
#incoming_channels=(value) ⇒ Object
Sets the incomingChannels property value. List of channels shared with the team.
293 294 295 |
# File 'lib/models/team.rb', line 293 def incoming_channels=(value) @incoming_channels = value end |
#installed_apps ⇒ Object
Gets the installedApps property value. The apps installed in this team.
300 301 302 |
# File 'lib/models/team.rb', line 300 def installed_apps return @installed_apps end |
#installed_apps=(value) ⇒ Object
Sets the installedApps property value. The apps installed in this team.
308 309 310 |
# File 'lib/models/team.rb', line 308 def installed_apps=(value) @installed_apps = value end |
#internal_id ⇒ Object
Gets the internalId property value. A unique ID for the team that has been used in a few places such as the audit log/Office 365 Management Activity API.
315 316 317 |
# File 'lib/models/team.rb', line 315 def internal_id return @internal_id end |
#internal_id=(value) ⇒ Object
Sets the internalId property value. A unique ID for the team that has been used in a few places such as the audit log/Office 365 Management Activity API.
323 324 325 |
# File 'lib/models/team.rb', line 323 def internal_id=(value) @internal_id = value end |
#is_archived ⇒ Object
Gets the isArchived property value. Whether this team is in read-only mode.
330 331 332 |
# File 'lib/models/team.rb', line 330 def is_archived return @is_archived end |
#is_archived=(value) ⇒ Object
Sets the isArchived property value. Whether this team is in read-only mode.
338 339 340 |
# File 'lib/models/team.rb', line 338 def is_archived=(value) @is_archived = value end |
#member_settings ⇒ Object
Gets the memberSettings property value. Settings to configure whether members can perform certain actions, for example, create channels and add bots, in the team.
345 346 347 |
# File 'lib/models/team.rb', line 345 def member_settings return @member_settings end |
#member_settings=(value) ⇒ Object
Sets the memberSettings property value. Settings to configure whether members can perform certain actions, for example, create channels and add bots, in the team.
353 354 355 |
# File 'lib/models/team.rb', line 353 def member_settings=(value) @member_settings = value end |
#members ⇒ Object
Gets the members property value. Members and owners of the team.
360 361 362 |
# File 'lib/models/team.rb', line 360 def members return @members end |
#members=(value) ⇒ Object
Sets the members property value. Members and owners of the team.
368 369 370 |
# File 'lib/models/team.rb', line 368 def members=(value) @members = value end |
#messaging_settings ⇒ Object
Gets the messagingSettings property value. Settings to configure messaging and mentions in the team.
375 376 377 |
# File 'lib/models/team.rb', line 375 def messaging_settings return @messaging_settings end |
#messaging_settings=(value) ⇒ Object
Sets the messagingSettings property value. Settings to configure messaging and mentions in the team.
383 384 385 |
# File 'lib/models/team.rb', line 383 def messaging_settings=(value) @messaging_settings = value end |
#operations ⇒ Object
Gets the operations property value. The async operations that ran or are running on this team.
390 391 392 |
# File 'lib/models/team.rb', line 390 def operations return @operations end |
#operations=(value) ⇒ Object
Sets the operations property value. The async operations that ran or are running on this team.
398 399 400 |
# File 'lib/models/team.rb', line 398 def operations=(value) @operations = value end |
#permission_grants ⇒ Object
Gets the permissionGrants property value. The permissionGrants property
405 406 407 |
# File 'lib/models/team.rb', line 405 def return end |
#permission_grants=(value) ⇒ Object
Sets the permissionGrants property value. The permissionGrants property
413 414 415 |
# File 'lib/models/team.rb', line 413 def (value) = value end |
#photo ⇒ Object
Gets the photo property value. The profile photo for the team.
420 421 422 |
# File 'lib/models/team.rb', line 420 def photo return @photo end |
#photo=(value) ⇒ Object
Sets the photo property value. The profile photo for the team.
428 429 430 |
# File 'lib/models/team.rb', line 428 def photo=(value) @photo = value end |
#primary_channel ⇒ Object
Gets the primaryChannel property value. The general channel for the team.
435 436 437 |
# File 'lib/models/team.rb', line 435 def primary_channel return @primary_channel end |
#primary_channel=(value) ⇒ Object
Sets the primaryChannel property value. The general channel for the team.
443 444 445 |
# File 'lib/models/team.rb', line 443 def primary_channel=(value) @primary_channel = value end |
#schedule ⇒ Object
Gets the schedule property value. The schedule of shifts for this team.
450 451 452 |
# File 'lib/models/team.rb', line 450 def schedule return @schedule end |
#schedule=(value) ⇒ Object
Sets the schedule property value. The schedule of shifts for this team.
458 459 460 |
# File 'lib/models/team.rb', line 458 def schedule=(value) @schedule = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 |
# File 'lib/models/team.rb', line 466 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("allChannels", @all_channels) writer.write_collection_of_object_values("channels", @channels) writer.write_string_value("classification", @classification) writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_string_value("description", @description) writer.write_string_value("displayName", @display_name) writer.write_object_value("funSettings", @fun_settings) writer.write_object_value("group", @group) writer.write_object_value("guestSettings", @guest_settings) writer.write_collection_of_object_values("incomingChannels", @incoming_channels) writer.write_collection_of_object_values("installedApps", @installed_apps) writer.write_string_value("internalId", @internal_id) writer.write_boolean_value("isArchived", @is_archived) writer.write_object_value("memberSettings", @member_settings) writer.write_collection_of_object_values("members", @members) writer.write_object_value("messagingSettings", @messaging_settings) writer.write_collection_of_object_values("operations", @operations) writer.write_collection_of_object_values("permissionGrants", ) writer.write_object_value("photo", @photo) writer.write_object_value("primaryChannel", @primary_channel) writer.write_object_value("schedule", @schedule) writer.write_enum_value("specialization", @specialization) writer.write_object_value("summary", @summary) writer.write_collection_of_object_values("tags", ) writer.write_object_value("template", @template) writer.write_string_value("tenantId", @tenant_id) writer.write_enum_value("visibility", @visibility) writer.write_string_value("webUrl", @web_url) end |
#specialization ⇒ Object
Gets the specialization property value. Optional. Indicates whether the team is intended for a particular use case. Each team specialization has access to unique behaviors and experiences targeted to its use case.
502 503 504 |
# File 'lib/models/team.rb', line 502 def specialization return @specialization end |
#specialization=(value) ⇒ Object
Sets the specialization property value. Optional. Indicates whether the team is intended for a particular use case. Each team specialization has access to unique behaviors and experiences targeted to its use case.
510 511 512 |
# File 'lib/models/team.rb', line 510 def specialization=(value) @specialization = value end |
#summary ⇒ Object
Gets the summary property value. Contains summary information about the team, including number of owners, members, and guests.
517 518 519 |
# File 'lib/models/team.rb', line 517 def summary return @summary end |
#summary=(value) ⇒ Object
Sets the summary property value. Contains summary information about the team, including number of owners, members, and guests.
525 526 527 |
# File 'lib/models/team.rb', line 525 def summary=(value) @summary = value end |
#tags ⇒ Object
Gets the tags property value. The tags associated with the team.
532 533 534 |
# File 'lib/models/team.rb', line 532 def return end |
#tags=(value) ⇒ Object
Sets the tags property value. The tags associated with the team.
540 541 542 |
# File 'lib/models/team.rb', line 540 def (value) = value end |
#template ⇒ Object
Gets the template property value. The template this team was created from. See available templates.
547 548 549 |
# File 'lib/models/team.rb', line 547 def template return @template end |
#template=(value) ⇒ Object
Sets the template property value. The template this team was created from. See available templates.
555 556 557 |
# File 'lib/models/team.rb', line 555 def template=(value) @template = value end |
#tenant_id ⇒ Object
Gets the tenantId property value. The ID of the Azure Active Directory tenant.
562 563 564 |
# File 'lib/models/team.rb', line 562 def tenant_id return @tenant_id end |
#tenant_id=(value) ⇒ Object
Sets the tenantId property value. The ID of the Azure Active Directory tenant.
570 571 572 |
# File 'lib/models/team.rb', line 570 def tenant_id=(value) @tenant_id = value end |
#visibility ⇒ Object
Gets the visibility property value. The visibility of the group and team. Defaults to Public.
577 578 579 |
# File 'lib/models/team.rb', line 577 def visibility return @visibility end |
#visibility=(value) ⇒ Object
Sets the visibility property value. The visibility of the group and team. Defaults to Public.
585 586 587 |
# File 'lib/models/team.rb', line 585 def visibility=(value) @visibility = value end |
#web_url ⇒ Object
Gets the webUrl property value. A hyperlink that will go to the team in the Microsoft Teams client. This is the URL that you get when you right-click a team in the Microsoft Teams client and select Get link to team. This URL should be treated as an opaque blob, and not parsed.
592 593 594 |
# File 'lib/models/team.rb', line 592 def web_url return @web_url end |
#web_url=(value) ⇒ Object
Sets the webUrl property value. A hyperlink that will go to the team in the Microsoft Teams client. This is the URL that you get when you right-click a team in the Microsoft Teams client and select Get link to team. This URL should be treated as an opaque blob, and not parsed.
600 601 602 |
# File 'lib/models/team.rb', line 600 def web_url=(value) @web_url = value end |