""" Options: Date: 2026-04-04 08:34:40 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: GetObjectConnections.* #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 ObjectConnectionModel: object_connection_id: Optional[str] = None object_id_from: Optional[str] = None object_from_reference: Optional[str] = None object_to_reference: Optional[str] = None object_id_to: Optional[str] = None connection_method_id: Optional[str] = None object_from_name: Optional[str] = None object_to_name: Optional[str] = None record_status: Optional[str] = None # @ApiResponse(Description="Returns the connections for the specified object.") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetObjectConnectionsResponse: object_connections: Optional[List[ObjectConnectionModel]] = None response_status: Optional[ResponseStatus] = None # @Route("/objects/{RmsTableCtxIdConnectionMethod}/connectionsFrom/{FromObjectId}", "GET") # @Route("/objects/{RmsTableCtxIdConnectionMethod}/connectionsTo/{ToObjectId}", "GET") # @Api(Description="Get object connections for the specified object and connection method.") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetObjectConnections(IReturn[GetObjectConnectionsResponse]): """ Get object connections for the specified object and connection method. """ # @ApiMember(DataType="Guid", Description="'From' object ID in the connection.", IsRequired=true, Name="FromObjectId", ParameterType="query") from_object_id: Optional[str] = None """ 'From' object ID in the connection. """ # @ApiMember(DataType="Guid", Description="'To' object ID in the connection.", IsRequired=true, Name="ToObjectId", ParameterType="query") to_object_id: Optional[str] = None """ 'To' object ID in the connection. """ # @ApiMember(DataType="Guid", Description="Guid representing the Connection Method to use to connect the objects with.", IsRequired=true, Name="RmsTableCtxIdConnectionMethod", ParameterType="query") rms_table_ctx_id_connection_method: Optional[str] = None """ Guid representing the Connection Method to use to connect the objects with. """ # @ApiMember(DataType="string", Description="Status of object Connections to retrieve, if not specified active connections are retrieved by default.", Name="RecordStatus", ParameterType="query") record_status: Optional[str] = None """ Status of object Connections to retrieve, if not specified active connections are retrieved by default. """