""" Options: Date: 2026-04-04 02:55:58 Version: 8.52 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://pfapi.pstpf.com.au/api #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: SaveObjectConnectionForRoles.* #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 # @ApiResponse(Description="Returns the object connection Id created/modified and success of the save.") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SaveObjectConnectionForRolesResponse: response_status: Optional[ResponseStatus] = None # @Route("/roles/{FromRoleId}/associatedroles/safetystaff/{ToRoleId}", "POST") # @Route("/roles/{FromRoleId}/associatedroles/organisation/{ToRoleId}", "POST") # @Api(Description="Creates or Updates a new connection between two objects with connection type as link to associated role.") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SaveObjectConnectionForRoles(IReturn[SaveObjectConnectionForRolesResponse]): """ Creates or Updates a new connection between two objects with connection type as link to associated role. """ # @ApiMember(DataType="Guid", Description="'From' object ID in the connection.", IsRequired=true, Name="FromRoleId", ParameterType="query") from_role_id: Optional[str] = None """ 'From' object ID in the connection. """ # @ApiMember(DataType="Guid", Description="'To' object ID in the connection.", IsRequired=true, Name="ToRoleId", ParameterType="query") to_role_id: Optional[str] = None """ 'To' object ID in the connection. """