class_docstr: NOTE: This class is auto generated by OpenAPI Generator
  Ref: https://openapi-generator.tech
  
  Do not edit the class manually.
class_docstr_tok: ["NOTE",":","This","class","is","auto","generated","by","OpenAPI","Generator","Ref",":","https",":","\/\/openapi-generator.tech","Do","not","edit","the","class","manually","."]
docstr: get_service_accounts_by_team_id  # noqa: E501
  
  Get the service accounts of a team. One needs to be part of the team to do so.  # noqa: E501
  This method makes a synchronous HTTP request by default. To make an
  asynchronous HTTP request, please pass async_req=True
  
  >>> thread = api.get_service_accounts_by_team_id(team_id, async_req=True)
  >>> result = thread.get()
  
  :param team_id: id of the team (required)
  :type team_id: str
  :param async_req: Whether to execute the request asynchronously.
  :type async_req: bool, optional
  :param _request_timeout: timeout setting for this request. If one
                           number provided, it will be total request
                           timeout. It can also be a pair (tuple) of
                           (connection, read) timeouts.
  :return: Returns the result object.
           If the method is called asynchronously,
           returns the request thread.
  :rtype: List[ServiceAccountBasicData]
docstr_tok: ["get_service_accounts_by_team_id","#","noqa",":","E501","Get","the","service","accounts","of","a","team",".","One","needs","to","be","part","of","the","team","to","do","so",".","#","noqa",":","E501","This","method","makes","a","synchronous","HTTP","request","by","default",".","To","make","an","asynchronous","HTTP","request",",","please","pass","async_req=True",">",">",">","thread","=","api.get_service_accounts_by_team_id","(","team_id",",","async_req=True",")",">",">",">","result","=","thread.get","(",")",":","param","team_id",":","id","of","the","team","(","required",")",":","type","team_id",":","str",":","param","async_req",":","Whether","to","execute","the","request","asynchronously",".",":","type","async_req",":","bool",",","optional",":","param","_request_timeout",":","timeout","setting","for","this","request",".","If","one","number","provided",",","it","will","be","total","request","timeout",".","It","can","also","be","a","pair","(","tuple",")","of","(","connection",",","read",")","timeouts",".",":","return",":","Returns","the","result","object",".","If","the","method","is","called","asynchronously",",","returns","the","request","thread",".",":","rtype",":","List","[","ServiceAccountBasicData","]"]
code: def get_service_accounts_by_team_id(
      self,
      team_id: Annotated[
          constr(strict=True), Field(..., description="id of the team")
      ],
      **kwargs,
  ) -> List[ServiceAccountBasicData]:  # noqa: E501
      """get_service_accounts_by_team_id  # noqa: E501
  
      Get the service accounts of a team. One needs to be part of the team to do so.  # noqa: E501
      This method makes a synchronous HTTP request by default. To make an
      asynchronous HTTP request, please pass async_req=True
  
      >>> thread = api.get_service_accounts_by_team_id(team_id, async_req=True)
      >>> result = thread.get()
  
      :param team_id: id of the team (required)
      :type team_id: str
      :param async_req: Whether to execute the request asynchronously.
      :type async_req: bool, optional
      :param _request_timeout: timeout setting for this request. If one
                               number provided, it will be total request
                               timeout. It can also be a pair (tuple) of
                               (connection, read) timeouts.
      :return: Returns the result object.
               If the method is called asynchronously,
               returns the request thread.
      :rtype: List[ServiceAccountBasicData]
      """
      kwargs["_return_http_data_only"] = True
      if "_preload_content" in kwargs:
          raise ValueError(
              "Error! Please call the get_service_accounts_by_team_id_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"
          )
      return self.get_service_accounts_by_team_id_with_http_info(
          team_id, **kwargs
      )
  
imports: import re
  import io
  import warnings
  from pydantic import validate_arguments, ValidationError
  from typing_extensions import Annotated
  from pydantic import Field, StrictStr, constr, validator
  from typing import List
  from lightly.openapi_generated.swagger_client.models.create_team_membership_request import CreateTeamMembershipRequest
  from lightly.openapi_generated.swagger_client.models.profile_basic_data import ProfileBasicData
  from lightly.openapi_generated.swagger_client.models.service_account_basic_data import ServiceAccountBasicData
  from lightly.openapi_generated.swagger_client.models.team_data import TeamData
  from lightly.openapi_generated.swagger_client.models.update_team_membership_request import UpdateTeamMembershipRequest
  from lightly.openapi_generated.swagger_client.api_client import ApiClient
  from lightly.openapi_generated.swagger_client.api_response import ApiResponse
  from lightly.openapi_generated.swagger_client.exceptions import ApiTypeError, ApiValueError
label_desc: Use image node_id 6 for calling the TeamsApi obj's underlying member method code with example usage: obj.get_service_accounts_by_team_id(team_id) and returns: self