Skip to content

Commit 990dd7f

Browse files
Merge pull request #20 from codatio/speakeasy-sdk-regen-1677684857
chore: speakeasy sdk regeneration - Generate Common SDK
2 parents 70eed37 + a63db8f commit 990dd7f

Some content is hidden

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

60 files changed

+5404
-1
lines changed

common/README.md

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# codat-common
2+
3+
<!-- Start SDK Installation -->
4+
## SDK Installation
5+
6+
```bash
7+
pip install codat-common
8+
```
9+
<!-- End SDK Installation -->
10+
11+
## SDK Example Usage
12+
<!-- Start SDK Example Usage -->
13+
```python
14+
import codat
15+
from codat.models import operations, shared
16+
17+
s = codat.Codat()
18+
s.config_security(
19+
security=shared.Security(
20+
api_key="YOUR_API_KEY_HERE",
21+
)
22+
)
23+
24+
req = operations.CreateCompanyRequest(
25+
request=operations.CreateCompanyRequestBody(
26+
description="unde",
27+
name="deserunt",
28+
),
29+
)
30+
31+
res = s.companies.create_company(req)
32+
33+
if res.create_company_200_application_json_object is not None:
34+
# handle response
35+
```
36+
<!-- End SDK Example Usage -->
37+
38+
<!-- Start SDK Available Operations -->
39+
## SDK Available Operations
40+
41+
42+
### companies
43+
44+
* `create_company` - Create a company
45+
* `delete_companies_company_id` - Delete a company
46+
* `get_companies_company_id` - Get company
47+
* `list_companies` - List companies
48+
* `put_companies_company_id` - Update a company
49+
50+
### connections
51+
52+
* `create_data_connection` - Create a data connection
53+
* `delete_company_connection` - Delete connection
54+
* `get_companies_company_id_connections_connection_id_authorization` - Update authorization
55+
* `get_company_connection` - Get connection
56+
* `list_company_connections` - List connections
57+
* `patch_company_connection` - Unlink connection
58+
59+
### data_status
60+
61+
* `get_companies_company_id_data_status` - Get data status
62+
* `get_company_data_history` - Get pull operations
63+
* `get_pull_operation` - Get pull operation
64+
65+
### integrations
66+
67+
* `get_integrations_platform_key` - Get integration
68+
* `get_integrations_platform_key_branding` - Get branding
69+
* `list_integrations` - List integrations
70+
71+
### push_data
72+
73+
* `get_companies_company_id_connections_connection_id_push` - List push options
74+
* `get_companies_company_id_push` - List push operations
75+
* `get_companies_company_id_push_push_operation_key` - Get push operation
76+
77+
### refresh_data
78+
79+
* `create_many_pull_operations` - Queue pull operations
80+
* `create_pull_operation` - Queue pull operation
81+
82+
### settings
83+
84+
* `get_profile_sync_settings` - Get sync settings
85+
* `get_settings_profile` - Get profile
86+
* `post_profile_sync_settings` - Update all sync settings
87+
* `put_profile` - Update profile
88+
89+
### webhooks
90+
91+
* `get_webhook` - Get webhook
92+
* `list_rules` - List webhooks
93+
* `post_rules` - Create webhook
94+
<!-- End SDK Available Operations -->
95+
96+
### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)

common/RELEASES.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
3+
## 2023-03-01 15:34:16
4+
### Changes
5+
Based on:
6+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Common.yaml
7+
- Speakeasy CLI 1.7.0 https://github.com/speakeasy-api/speakeasy
8+
### Releases
9+
- [PyPI v0.1.0] https://pypi.org/project/codat-common/0.1.0 - common
10+
11+
## 2023-03-02 00:20:06
12+
### Changes
13+
Based on:
14+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Common.yaml
15+
- Speakeasy CLI 1.7.1 https://github.com/speakeasy-api/speakeasy
16+
### Releases
17+
- [PyPI v0.1.1] https://pypi.org/project/codat-common/0.1.1 - common

common/USAGE.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!-- Start SDK Example Usage -->
2+
```python
3+
import codat
4+
from codat.models import operations, shared
5+
6+
s = codat.Codat()
7+
s.config_security(
8+
security=shared.Security(
9+
api_key="YOUR_API_KEY_HERE",
10+
)
11+
)
12+
13+
req = operations.CreateCompanyRequest(
14+
request=operations.CreateCompanyRequestBody(
15+
description="unde",
16+
name="deserunt",
17+
),
18+
)
19+
20+
res = s.companies.create_company(req)
21+
22+
if res.create_company_200_application_json_object is not None:
23+
# handle response
24+
```
25+
<!-- End SDK Example Usage -->

common/files.gen

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
src/codat/companies.py
2+
src/codat/connections.py
3+
src/codat/data_status.py
4+
src/codat/integrations.py
5+
src/codat/push_data.py
6+
src/codat/refresh_data.py
7+
src/codat/settings.py
8+
src/codat/webhooks.py
9+
src/codat/sdk.py
10+
setup.py
11+
src/codat/__init__.py
12+
src/codat/models/__init__.py
13+
src/codat/utils/__init__.py
14+
src/codat/utils/retries.py
15+
src/codat/utils/utils.py
16+
src/codat/models/operations/create_company.py
17+
src/codat/models/operations/delete_companies_companyid.py
18+
src/codat/models/operations/get_companies_companyid.py
19+
src/codat/models/operations/list_companies.py
20+
src/codat/models/operations/put_companies_companyid.py
21+
src/codat/models/operations/create_data_connection.py
22+
src/codat/models/operations/delete_company_connection.py
23+
src/codat/models/operations/get_companies_companyid_connections_connectionid_authorization.py
24+
src/codat/models/operations/get_company_connection.py
25+
src/codat/models/operations/list_company_connections.py
26+
src/codat/models/operations/patch_company_connection.py
27+
src/codat/models/operations/get_companies_companyid_datastatus.py
28+
src/codat/models/operations/get_company_data_history.py
29+
src/codat/models/operations/get_pull_operation.py
30+
src/codat/models/operations/get_integrations_platformkey.py
31+
src/codat/models/operations/get_integrations_platformkey_branding.py
32+
src/codat/models/operations/list_integrations.py
33+
src/codat/models/operations/get_companies_companyid_connections_connectionid_push.py
34+
src/codat/models/operations/get_companies_companyid_push.py
35+
src/codat/models/operations/get_companies_companyid_push_pushoperationkey.py
36+
src/codat/models/operations/create_many_pull_operations.py
37+
src/codat/models/operations/create_pull_operation.py
38+
src/codat/models/operations/get_profile_syncsettings.py
39+
src/codat/models/operations/get_settings_profile.py
40+
src/codat/models/operations/post_profile_syncsettings.py
41+
src/codat/models/operations/put_profile.py
42+
src/codat/models/operations/get_webhook.py
43+
src/codat/models/operations/list_rules.py
44+
src/codat/models/operations/post_rules.py
45+
src/codat/models/operations/__init__.py
46+
src/codat/models/shared/security.py
47+
src/codat/models/shared/__init__.py
48+
src/codat/models/webhooks/company_data_connection_status_changed.py
49+
src/codat/models/webhooks/data_sync_completed.py
50+
src/codat/models/webhooks/dataset_data_changed.py
51+
src/codat/models/webhooks/dataset_status_has_changed_to_an_error_state.py
52+
src/codat/models/webhooks/new_company_synchronized.py
53+
src/codat/models/webhooks/push_operation_has_timed_out.py
54+
src/codat/models/webhooks/push_operation_status_has_changed.py
55+
src/codat/models/webhooks/__init__.py
56+
USAGE.md

common/gen.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
configVersion: 1.0.0
2+
management:
3+
docChecksum: 348d07051fb0294d6887f4c766560fc5
4+
docVersion: 2.1.0
5+
speakeasyVersion: 1.7.1
26
generation:
7+
telemetryEnabled: false
38
sdkClassName: codat
49
sdkFlattening: true
510
python:
6-
version: 0.0.1
11+
version: 0.1.1
12+
author: Speakeasy
13+
description: Python Client SDK Generated by Speakeasy
714
packageName: codat-common

common/setup.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import setuptools
2+
3+
try:
4+
with open("README.md", "r") as fh:
5+
long_description = fh.read()
6+
except FileNotFoundError:
7+
long_description = ""
8+
9+
setuptools.setup(
10+
name="codat-common",
11+
version="0.1.1",
12+
author="Speakeasy",
13+
description="Python Client SDK Generated by Speakeasy",
14+
long_description=long_description,
15+
long_description_content_type="text/markdown",
16+
packages=setuptools.find_packages(where="src"),
17+
install_requires=[
18+
"certifi==2022.12.07",
19+
"charset-normalizer==2.1.1",
20+
"dataclasses-json-speakeasy==0.5.8",
21+
"idna==3.3",
22+
"marshmallow==3.17.1",
23+
"marshmallow-enum==1.5.1",
24+
"mypy-extensions==0.4.3",
25+
"packaging==21.3",
26+
"pyparsing==3.0.9",
27+
"python-dateutil==2.8.2",
28+
"requests==2.28.1",
29+
"six==1.16.0",
30+
"typing-inspect==0.8.0",
31+
"typing_extensions==4.3.0",
32+
"urllib3==1.26.12",
33+
],
34+
package_dir={'': 'src'},
35+
python_requires='>=3.9'
36+
)

common/src/codat/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .sdk import *

0 commit comments

Comments
 (0)