-
Notifications
You must be signed in to change notification settings - Fork 4
/
models.py
103 lines (70 loc) · 2.49 KB
/
models.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import datetime
from typing import List, Optional
from pydantic import BaseModel
class AuthResponseAuthInfo(BaseModel):
sessionId: str
status: str
class AuthResponseProduct(BaseModel):
name: str
baseApiUrl: str
class AuthResponse(BaseModel):
"""
doc: https://docs.informatica.com/integration-cloud/b2b-gateway/current-version/rest-api-reference/platform_rest_api_version_3_resources/login_2.html
"""
userInfo: AuthResponseAuthInfo
products: List[AuthResponseProduct]
class ConnectorParams(BaseModel):
account: Optional[str] = None
class ConnectionDetail(BaseModel):
"""
doc: https://docs.informatica.com/integration-cloud/b2b-gateway/current-version/rest-api-reference/data_integration_rest_api/connection.html
"""
id: str
connParams: Optional[ConnectorParams] = None
type: str
connectorGuid: Optional[str] = None
host: Optional[str] = None
database: Optional[str] = None
class ObjectDetail(BaseModel):
id: str
tags: List[str]
path: str
class ObjectDetailResponse(BaseModel):
"""
doc: https://docs.informatica.com/integration-cloud/b2b-gateway/current-version/rest-api-reference/platform_rest_api_version_3_resources/objects/finding_an_asset.html
"""
count: int
objects: List[ObjectDetail]
class ReferenceObjectDetail(BaseModel):
id: str
appContextId: Optional[str] = None
documentType: str
class ObjectReferenceResponse(BaseModel):
"""
doc: https://docs.informatica.com/integration-cloud/b2b-gateway/current-version/rest-api-reference/platform_rest_api_version_3_resources/objects/finding_asset_dependencies.html
"""
count: int
references: List[ReferenceObjectDetail]
class ExtendedObjectDetail(BaseModel):
name: str
class ExtendedObject(BaseModel):
object: Optional[ExtendedObjectDetail] = None
singleMode: bool
class MappingParameter(BaseModel):
type: str
extendedObject: Optional[ExtendedObject] = None
sourceConnectionId: Optional[str] = None
targetConnectionId: Optional[str] = None
targetObject: Optional[str] = None
customQuery: Optional[str] = None
class MappingDetailResponse(BaseModel):
"""
doc: https://docs.informatica.com/integration-cloud/b2b-gateway/current-version/rest-api-reference/data_integration_rest_api/mapping.html
"""
name: str
description: str
createTime: datetime.datetime
updateTime: datetime.datetime
createdBy: str
updatedBy: str
parameters: List[MappingParameter]