All Verbs | /Utilidades/Consultas/Cubos/OperacionesRemotas |
---|
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 EjecutaCuboOpRemotasRS:
data: Optional[List[Dict[str, Object]]] = None
total_count: int = 0
error: Optional[str] = None
sql: Optional[str] = None
class Lenguajes(str, Enum):
ES = 'ES'
PT = 'PT'
EN = 'EN'
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class gridSortOptions:
selector: Optional[str] = None
desc: bool = False
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class EjecutaCuboOpRemotasRQ:
id_vista: int = 0
id_pivot: int = 0
parametros: Optional[Dict[str, Object]] = None
lenguaje: Optional[Lenguajes] = None
skip: int = 0
take: int = 0
filter: Optional[List[Object]] = None
sort: Optional[gridSortOptions] = None
group: Optional[List[gridGroupOptions]] = None
group_summary: Optional[List[gridSummaryOptions]] = None
total_summary: Optional[List[gridSummaryOptions]] = None
require_total_count: bool = False
require_group_count: bool = False
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class gridGroupOptions:
selector: Optional[str] = None
desc: bool = False
is_expanded: bool = False
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class gridSummaryOptions:
selector: Optional[str] = None
summary_type: Optional[str] = None
Python EjecutaCuboOpRemotasRQ DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Utilidades/Consultas/Cubos/OperacionesRemotas HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"IDVista":0,"IDPivot":0,"Parametros":{"String":{}},"Lenguaje":"ES","skip":0,"take":0,"filter":[{}],"sort":{"selector":"String","desc":false},"group":[{"selector":"String","desc":false,"isExpanded":false}],"groupSummary":[{"selector":"String","summaryType":"String"}],"totalSummary":[{"selector":"String","summaryType":"String"}],"requireTotalCount":false,"requireGroupCount":false}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"data":[{"String":{}}],"totalCount":0,"Error":"String","SQL":"String"}