""" Options: Date: 2024-12-22 12:24:36 Version: 8.51 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://techstacks.io #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: GetOrganizationMembers.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class OrganizationMember: id: int = 0 organization_id: int = 0 user_id: int = 0 user_name: Optional[str] = None is_owner: bool = False is_moderator: bool = False deny_all: bool = False deny_posts: bool = False deny_comments: bool = False notes: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetOrganizationMembersResponse: organization_id: int = 0 results: Optional[List[OrganizationMember]] = None response_status: Optional[ResponseStatus] = None # @Route("/orgs/{Id}/members", "GET") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetOrganizationMembers(IReturn[GetOrganizationMembersResponse], IGet): id: int = 0