Skip to content

Commit dcf2bfa

Browse files
committed
ci: regenerated with OpenAPI Doc 0.1.0, Speakeasy CLI 1.291.0
1 parent 3a8e080 commit dcf2bfa

File tree

151 files changed

+2512
-1314
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+2512
-1314
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This allows generated code to be indexed correctly
2+
*.py linguist-generated=false

.speakeasy/gen.lock

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
lockVersion: 2.0.0
2+
id: 689fb6ec-3038-4d7c-a522-7b5708d2c2c4
3+
management:
4+
docChecksum: a08d8b55b00bfb4ba4828a322fd16614
5+
docVersion: 0.1.0
6+
speakeasyVersion: 1.291.0
7+
generationVersion: 2.332.4
8+
releaseVersion: 0.22.0
9+
configChecksum: 5084fe258dff39a930b76574b13b3a38
10+
repoURL: https://github.com/fabra-io/python-sdk.git
11+
repoSubDirectory: .
12+
installationURL: https://github.com/fabra-io/python-sdk.git
13+
published: true
14+
features:
15+
python:
16+
additionalDependencies: 0.1.0
17+
core: 4.6.7
18+
globalSecurity: 2.83.5
19+
globalSecurityCallbacks: 0.1.0
20+
globalSecurityFlattening: 0.1.0
21+
globalServerURLs: 2.82.2
22+
responseFormat: 0.1.0
23+
sdkHooks: 0.1.0
24+
generatedFiles:
25+
- src/fabra/sdkconfiguration.py
26+
- src/fabra/connection.py
27+
- src/fabra/customer_data.py
28+
- src/fabra/destination.py
29+
- src/fabra/link_token.py
30+
- src/fabra/object.py
31+
- src/fabra/source.py
32+
- src/fabra/sync.py
33+
- src/fabra/sdk.py
34+
- py.typed
35+
- pylintrc
36+
- setup.py
37+
- src/fabra/__init__.py
38+
- src/fabra/utils/__init__.py
39+
- src/fabra/utils/retries.py
40+
- src/fabra/utils/utils.py
41+
- src/fabra/models/errors/sdkerror.py
42+
- src/fabra/models/operations/get_namespaces.py
43+
- src/fabra/models/operations/get_schema.py
44+
- src/fabra/models/operations/get_tables.py
45+
- src/fabra/models/operations/query_object.py
46+
- src/fabra/models/operations/create_destination.py
47+
- src/fabra/models/operations/get_destinations.py
48+
- src/fabra/models/operations/create_link_token.py
49+
- src/fabra/models/operations/create_object.py
50+
- src/fabra/models/operations/get_objects.py
51+
- src/fabra/models/operations/create_source.py
52+
- src/fabra/models/operations/get_sources.py
53+
- src/fabra/models/operations/create_sync.py
54+
- src/fabra/models/operations/get_syncs.py
55+
- src/fabra/models/components/namespaces.py
56+
- src/fabra/models/components/httpmetadata.py
57+
- src/fabra/models/components/field.py
58+
- src/fabra/models/components/fieldtype.py
59+
- src/fabra/models/components/queryfilter.py
60+
- src/fabra/models/components/destination.py
61+
- src/fabra/models/components/connection.py
62+
- src/fabra/models/components/connectiontype.py
63+
- src/fabra/models/components/destinationinput.py
64+
- src/fabra/models/components/snowflakeconfig.py
65+
- src/fabra/models/components/redshiftconfig.py
66+
- src/fabra/models/components/mongodbconfig.py
67+
- src/fabra/models/components/bigqueryconfig.py
68+
- src/fabra/models/components/createlinktokenresponse.py
69+
- src/fabra/models/components/createlinktokenrequest.py
70+
- src/fabra/models/components/object.py
71+
- src/fabra/models/components/objectfield.py
72+
- src/fabra/models/components/objectinput.py
73+
- src/fabra/models/components/frequencyunits.py
74+
- src/fabra/models/components/source.py
75+
- src/fabra/models/components/sourceinput.py
76+
- src/fabra/models/components/sync.py
77+
- src/fabra/models/components/fieldmapping.py
78+
- src/fabra/models/components/syncinput.py
79+
- src/fabra/models/components/security.py
80+
- src/fabra/models/__init__.py
81+
- src/fabra/models/errors/__init__.py
82+
- src/fabra/models/operations/__init__.py
83+
- src/fabra/models/components/__init__.py
84+
- docs/models/operations/getnamespacesrequest.md
85+
- docs/models/operations/getnamespacesresponse.md
86+
- docs/models/operations/getschemarequest.md
87+
- docs/models/operations/getschemaresponsebody.md
88+
- docs/models/operations/getschemaresponse.md
89+
- docs/models/operations/gettablesrequest.md
90+
- docs/models/operations/gettablesresponsebody.md
91+
- docs/models/operations/gettablesresponse.md
92+
- docs/models/operations/queryobjectrequestbody.md
93+
- docs/models/operations/queryobjectrequest.md
94+
- docs/models/operations/examplefield3.md
95+
- docs/models/operations/queryobjectresponsebody.md
96+
- docs/models/operations/queryobjectresponse.md
97+
- docs/models/operations/createdestinationresponsebody.md
98+
- docs/models/operations/createdestinationresponse.md
99+
- docs/models/operations/getdestinationsresponsebody.md
100+
- docs/models/operations/getdestinationsresponse.md
101+
- docs/models/operations/createlinktokenresponse.md
102+
- docs/models/operations/createobjectresponsebody.md
103+
- docs/models/operations/createobjectresponse.md
104+
- docs/models/operations/getobjectsresponsebody.md
105+
- docs/models/operations/getobjectsresponse.md
106+
- docs/models/operations/createsourceresponsebody.md
107+
- docs/models/operations/createsourceresponse.md
108+
- docs/models/operations/getsourcesresponsebody.md
109+
- docs/models/operations/getsourcesresponse.md
110+
- docs/models/operations/createsyncresponsebody.md
111+
- docs/models/operations/createsyncresponse.md
112+
- docs/models/operations/getsyncsresponsebody.md
113+
- docs/models/operations/getsyncsresponse.md
114+
- docs/models/components/namespaces.md
115+
- docs/models/components/httpmetadata.md
116+
- docs/models/components/field.md
117+
- docs/models/components/fieldtype.md
118+
- docs/models/components/queryfilter.md
119+
- docs/models/components/destination.md
120+
- docs/models/components/connection.md
121+
- docs/models/components/connectiontype.md
122+
- docs/models/components/destinationinput.md
123+
- docs/models/components/snowflakeconfig.md
124+
- docs/models/components/redshiftconfig.md
125+
- docs/models/components/mongodbconfig.md
126+
- docs/models/components/bigqueryconfig.md
127+
- docs/models/components/createlinktokenresponse.md
128+
- docs/models/components/createlinktokenrequest.md
129+
- docs/models/components/object.md
130+
- docs/models/components/objectfield.md
131+
- docs/models/components/objectinput.md
132+
- docs/models/components/frequencyunits.md
133+
- docs/models/components/source.md
134+
- docs/models/components/sourceinput.md
135+
- docs/models/components/sync.md
136+
- docs/models/components/fieldmapping.md
137+
- docs/models/components/syncinput.md
138+
- docs/models/components/security.md
139+
- docs/sdks/fabra/README.md
140+
- docs/sdks/connection/README.md
141+
- docs/sdks/customerdata/README.md
142+
- docs/sdks/destination/README.md
143+
- docs/sdks/linktoken/README.md
144+
- docs/sdks/object/README.md
145+
- docs/sdks/source/README.md
146+
- docs/sdks/sync/README.md
147+
- USAGE.md
148+
- .gitattributes
149+
- src/fabra/_hooks/sdkhooks.py
150+
- src/fabra/_hooks/types.py
151+
- src/fabra/_hooks/__init__.py

README.md

Lines changed: 157 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,41 +6,41 @@
66
<a href="https://www.fabra.io/#Email-Hero"><img src="https://img.shields.io/static/v1?label=Docs&message=Sign Up&color=2ca47c&style=for-the-badge" /></a>
77
</div>
88

9-
<!-- Start SDK Installation -->
9+
<!-- Start SDK Installation [installation] -->
1010
## SDK Installation
1111

1212
```bash
1313
pip install fabra
1414
```
15-
<!-- End SDK Installation -->
15+
<!-- End SDK Installation [installation] -->
1616

17+
<!-- Start SDK Example Usage [usage] -->
1718
## SDK Example Usage
18-
<!-- Start SDK Example Usage -->
19+
20+
### Example
21+
1922
```python
2023
import fabra
2124
from fabra.models import operations
2225

2326
s = fabra.Fabra(
24-
security=shared.Security(
25-
api_key_auth="",
26-
),
27-
)
28-
29-
req = operations.GetNamespacesRequest(
30-
connection_id=548814,
27+
api_key_auth="<YOUR_API_KEY_HERE>",
3128
)
3229

33-
res = s.connection.get_namespaces(req)
30+
res = s.connection.get_namespaces(request=operations.GetNamespacesRequest(
31+
connection_id=995455,
32+
))
3433

3534
if res.namespaces is not None:
3635
# handle response
36+
pass
37+
3738
```
38-
<!-- End SDK Example Usage -->
39+
<!-- End SDK Example Usage [usage] -->
3940

40-
<!-- Start SDK Available Operations -->
41+
<!-- Start Available Resources and Operations [operations] -->
4142
## Available Resources and Operations
4243

43-
4444
### [connection](docs/sdks/connection/README.md)
4545

4646
* [get_namespaces](docs/sdks/connection/README.md#get_namespaces) - Get all namespaces
@@ -74,6 +74,148 @@ if res.namespaces is not None:
7474

7575
* [create_sync](docs/sdks/sync/README.md#create_sync) - Create a new sync
7676
* [get_syncs](docs/sdks/sync/README.md#get_syncs) - Get all syncs
77-
<!-- End SDK Available Operations -->
77+
<!-- End Available Resources and Operations [operations] -->
78+
79+
<!-- Start Error Handling [errors] -->
80+
## Error Handling
81+
82+
Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an error. If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate Error type.
83+
84+
| Error Object | Status Code | Content Type |
85+
| --------------- | --------------- | --------------- |
86+
| errors.SDKError | 4xx-5xx | */* |
87+
88+
### Example
89+
90+
```python
91+
import fabra
92+
from fabra.models import errors, operations
93+
94+
s = fabra.Fabra(
95+
api_key_auth="<YOUR_API_KEY_HERE>",
96+
)
97+
98+
res = None
99+
try:
100+
res = s.connection.get_namespaces(request=operations.GetNamespacesRequest(
101+
connection_id=995455,
102+
))
103+
except errors.SDKError as e:
104+
# handle exception
105+
raise(e)
106+
107+
if res.namespaces is not None:
108+
# handle response
109+
pass
110+
111+
```
112+
<!-- End Error Handling [errors] -->
113+
114+
<!-- Start Server Selection [server] -->
115+
## Server Selection
116+
117+
### Select Server by Index
118+
119+
You can override the default server globally by passing a server index to the `server_idx: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
120+
121+
| # | Server | Variables |
122+
| - | ------ | --------- |
123+
| 0 | `https://api.fabra.io` | None |
124+
125+
#### Example
126+
127+
```python
128+
import fabra
129+
from fabra.models import operations
130+
131+
s = fabra.Fabra(
132+
server_idx=0,
133+
api_key_auth="<YOUR_API_KEY_HERE>",
134+
)
135+
136+
res = s.connection.get_namespaces(request=operations.GetNamespacesRequest(
137+
connection_id=995455,
138+
))
139+
140+
if res.namespaces is not None:
141+
# handle response
142+
pass
143+
144+
```
145+
146+
147+
### Override Server URL Per-Client
148+
149+
The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
150+
```python
151+
import fabra
152+
from fabra.models import operations
153+
154+
s = fabra.Fabra(
155+
server_url="https://api.fabra.io",
156+
api_key_auth="<YOUR_API_KEY_HERE>",
157+
)
158+
159+
res = s.connection.get_namespaces(request=operations.GetNamespacesRequest(
160+
connection_id=995455,
161+
))
162+
163+
if res.namespaces is not None:
164+
# handle response
165+
pass
166+
167+
```
168+
<!-- End Server Selection [server] -->
169+
170+
<!-- Start Custom HTTP Client [http-client] -->
171+
## Custom HTTP Client
172+
173+
The Python SDK makes API calls using the [requests](https://pypi.org/project/requests/) HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object.
174+
175+
For example, you could specify a header for every request that this sdk makes as follows:
176+
```python
177+
import fabra
178+
import requests
179+
180+
http_client = requests.Session()
181+
http_client.headers.update({'x-custom-header': 'someValue'})
182+
s = fabra.Fabra(client=http_client)
183+
```
184+
<!-- End Custom HTTP Client [http-client] -->
185+
186+
<!-- Start Authentication [security] -->
187+
## Authentication
188+
189+
### Per-Client Security Schemes
190+
191+
This SDK supports the following security scheme globally:
192+
193+
| Name | Type | Scheme |
194+
| -------------- | -------------- | -------------- |
195+
| `api_key_auth` | apiKey | API key |
196+
197+
To authenticate with the API the `api_key_auth` parameter must be set when initializing the SDK client instance. For example:
198+
```python
199+
import fabra
200+
from fabra.models import operations
201+
202+
s = fabra.Fabra(
203+
api_key_auth="<YOUR_API_KEY_HERE>",
204+
)
205+
206+
res = s.connection.get_namespaces(request=operations.GetNamespacesRequest(
207+
connection_id=995455,
208+
))
209+
210+
if res.namespaces is not None:
211+
# handle response
212+
pass
213+
214+
```
215+
<!-- End Authentication [security] -->
216+
217+
<!-- Placeholder for Future Speakeasy SDK Sections -->
218+
219+
78220

79221
### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,4 +354,14 @@ Based on:
354354
- OpenAPI Doc 0.1.0 https://fabra-io.github.io/docs/openapi.yaml
355355
- Speakeasy CLI 1.49.0 (2.41.4) https://github.com/speakeasy-api/speakeasy
356356
### Releases
357-
- [PyPI v0.21.0] https://pypi.org/project/fabra/0.21.0 - .
357+
- [PyPI v0.21.0] https://pypi.org/project/fabra/0.21.0 - .
358+
359+
## 2024-05-16 00:06:06
360+
### Changes
361+
Based on:
362+
- OpenAPI Doc 0.1.0 https://fabra-io.github.io/docs/openapi.yaml
363+
- Speakeasy CLI 1.291.0 (2.332.4) https://github.com/speakeasy-api/speakeasy
364+
### Generated
365+
- [python v0.22.0] .
366+
### Releases
367+
- [PyPI v0.22.0] https://pypi.org/project/fabra/0.22.0 - .

0 commit comments

Comments
 (0)