Repository: microsoft/botbuilder-python

Issue:
[PORT] Add new fields and remove auto-generated text.
> Port this change from botbuilder-dotnet/master branch:
https://github.com/microsoft/botbuilder-dotnet/pull/3499

fixes: #3497 

Changes:
- Add ChannelCount and MemberCount to TeamDetails object
- Remove auto-generated documentation
- Move file out of the generated folder to make clear this is no longer auto-generated


# Changed projects
* Microsoft.Bot.Schema

[parity with python]





Discussion:

Resolving patch:
diff --git a/libraries/botbuilder-schema/botbuilder/schema/teams/_models.py b/libraries/botbuilder-schema/botbuilder/schema/teams/_models.py
--- a/libraries/botbuilder-schema/botbuilder/schema/teams/_models.py
+++ b/libraries/botbuilder-schema/botbuilder/schema/teams/_models.py
@@ -1478,12 +1478,18 @@ class TeamDetails(Model):
     :type name: str
     :param aad_group_id: Azure Active Directory (AAD) Group Id for the team.
     :type aad_group_id: str
+    :param channel_count: The count of channels in the team.
+    :type chanel_count: int
+    :param member_count: The count of members in the team.
+    :type member_count: int
     """
 
     _attribute_map = {
         "id": {"key": "id", "type": "str"},
         "name": {"key": "name", "type": "str"},
         "aad_group_id": {"key": "aadGroupId", "type": "str"},
+        "channel_count": {"key": "channelCount", "type": "int"},
+        "member_count": {"key": "memberCount", "type": "int"},
     }
 
     def __init__(self, **kwargs):
@@ -1491,6 +1497,8 @@ def __init__(self, **kwargs):
         self.id = kwargs.get("id", None)
         self.name = kwargs.get("name", None)
         self.aad_group_id = kwargs.get("aad_group_id", None)
+        self.channel_count = kwargs.get("channel_count", None)
+        self.member_count = kwargs.get("member_count", None)
 
 
 class TeamInfo(Model):
diff --git a/libraries/botbuilder-schema/botbuilder/schema/teams/_models_py3.py b/libraries/botbuilder-schema/botbuilder/schema/teams/_models_py3.py
--- a/libraries/botbuilder-schema/botbuilder/schema/teams/_models_py3.py
+++ b/libraries/botbuilder-schema/botbuilder/schema/teams/_models_py3.py
@@ -1736,21 +1736,36 @@ class TeamDetails(Model):
     :type name: str
     :param aad_group_id: Azure Active Directory (AAD) Group Id for the team.
     :type aad_group_id: str
+    :param channel_count: The count of channels in the team.
+    :type channel_count: int
+    :param member_count: The count of members in the team.
+    :type member_count: int
     """
 
     _attribute_map = {
         "id": {"key": "id", "type": "str"},
         "name": {"key": "name", "type": "str"},
         "aad_group_id": {"key": "aadGroupId", "type": "str"},
+        "channel_count": {"key": "channelCount", "type": "int"},
+        "member_count": {"key": "memberCount", "type": "int"},
     }
 
     def __init__(
-        self, *, id: str = None, name: str = None, aad_group_id: str = None, **kwargs
+        self,
+        *,
+        id: str = None,
+        name: str = None,
+        aad_group_id: str = None,
+        member_count: int = None,
+        channel_count: int = None,
+        **kwargs
     ) -> None:
         super(TeamDetails, self).__init__(**kwargs)
         self.id = id
         self.name = name
         self.aad_group_id = aad_group_id
+        self.channel_count = channel_count
+        self.member_count = member_count
 
 
 class TeamInfo(Model):


Test patch: