Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.178.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Feb 13, 2024
1 parent 307d89e commit af2e8d2
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 84 deletions.
2 changes: 1 addition & 1 deletion .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ management:
docChecksum: 0dd32241bcd639c7e99747c1a7b3780d
docVersion: 1.0.0
speakeasyVersion: internal
generationVersion: 2.250.12
generationVersion: 2.253.0
releaseVersion: 5.0.0
configChecksum: cc5dfab1a86747abb7e95c436cd3642d
repoURL: https://github.com/speakeasy-sdks/hightouch-python-sdk.git
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Handling errors in this SDK should largely match your expectations. All operati

```python
import hightouch
from hightouch.models import shared
from hightouch.models import errors, shared

s = hightouch.Hightouch(
security=shared.Security(
Expand All @@ -126,10 +126,10 @@ res = None
try:
res = s.create_destination(req)
except errors.ValidateErrorJSON as e:
print(e) # handle exception
# handle exception
raise(e)
except errors.SDKError as e:
print(e) # handle exception
# handle exception
raise(e)

if res.one_of is not None:
Expand Down
8 changes: 8 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -742,4 +742,12 @@ Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.170.1 (2.250.12) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v5.0.0] .

## 2024-02-13 00:36:35
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.178.0 (2.253.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v5.0.0] .
80 changes: 8 additions & 72 deletions docs/sdks/hightouch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,24 +102,6 @@ req = shared.ModelCreate(
query_type='string',
slug='string',
source_id=8761.56,
custom=shared.ModelCreateCustom(
query='string',
),
dbt=shared.ModelCreateDbt(
model_id=9991.44,
),
raw=shared.ModelCreateRaw(
sql='string',
),
table=shared.ModelCreateTable(
name='string',
),
visual=shared.ModelCreateVisual(
filter_='string',
parent_id=5748.68,
primary_label='string',
secondary_label='string',
),
)

res = s.create_model(req)
Expand Down Expand Up @@ -220,8 +202,8 @@ req = shared.SyncCreate(
model_id=2438.5,
schedule=shared.SyncCreateSchedule(
schedule=shared.CronSchedule(
expression='string',
),
expression='string',
),
type='string',
),
slug='string',
Expand Down Expand Up @@ -600,7 +582,6 @@ List all the syncs in the current workspace
### Example Usage

```python
import dateutil.parser
import hightouch
from hightouch.models import operations, shared

Expand Down Expand Up @@ -643,7 +624,6 @@ List all sync runs under a sync
### Example Usage

```python
import dateutil.parser
import hightouch
from hightouch.models import operations, shared

Expand Down Expand Up @@ -702,7 +682,6 @@ s = hightouch.Hightouch(

req = operations.TriggerRunRequest(
sync_id='string',
trigger_run_input=shared.TriggerRunInput(),
)

res = s.trigger_run(req)
Expand Down Expand Up @@ -790,7 +769,6 @@ s = hightouch.Hightouch(

req = operations.TriggerRunIDGraphRequest(
graph_id='string',
trigger_run_id_graph_input=shared.TriggerRunIDGraphInput(),
)

res = s.trigger_run_id_graph(req)
Expand Down Expand Up @@ -883,11 +861,7 @@ s = hightouch.Hightouch(
)

req = operations.UpdateDestinationRequest(
destination_update=shared.DestinationUpdate(
configuration={
'key': 'string',
},
),
destination_update=shared.DestinationUpdate(),
destination_id=8928.88,
)

Expand Down Expand Up @@ -934,27 +908,8 @@ s = hightouch.Hightouch(
)

req = operations.UpdateModelRequest(
model_update=shared.ModelUpdate(
custom=shared.ModelUpdateCustom(
query='string',
),
dbt=shared.ModelUpdateDbt(
model_id=1027.03,
),
raw=shared.ModelUpdateRaw(
sql='string',
),
table=shared.ModelUpdateTable(
name='string',
),
visual=shared.ModelUpdateVisual(
filter_='string',
parent_id=4048.47,
primary_label='string',
secondary_label='string',
),
),
model_id=7828.84,
model_update=shared.ModelUpdate(),
model_id=1027.03,
)

res = s.update_model(req)
Expand Down Expand Up @@ -1000,11 +955,7 @@ s = hightouch.Hightouch(
)

req = operations.UpdateSourceRequest(
source_update=shared.SourceUpdate(
configuration={
'key': 'string',
},
),
source_update=shared.SourceUpdate(),
source_id=6585.68,
)

Expand Down Expand Up @@ -1051,23 +1002,8 @@ s = hightouch.Hightouch(
)

req = operations.UpdateSyncRequest(
sync_update=shared.SyncUpdate(
configuration={
'key': 'string',
},
schedule=shared.SyncUpdateSchedule(
schedule=shared.VisualCronSchedule(
expressions=[
shared.Expressions(
days=shared.RecordDayBooleanOrUndefined(),
time='string',
),
],
),
type='string',
),
),
sync_id=1402.89,
sync_update=shared.SyncUpdate(),
sync_id=5066.51,
)

res = s.update_sync(req)
Expand Down
3 changes: 2 additions & 1 deletion src/hightouch/models/shared/syncupdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class SyncUpdateSchedule:
@dataclasses.dataclass
class SyncUpdate:
r"""The input for updating a Sync"""
UNSET='__SPEAKEASY_UNSET__'
configuration: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('configuration'), 'exclude': lambda f: f is None }})
r"""The sync's configuration. This specifies how data is mapped, among other
configuration.
Expand All @@ -45,7 +46,7 @@ class SyncUpdate:
"""
disabled: Optional[bool] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('disabled'), 'exclude': lambda f: f is None }})
r"""Whether the sync has been disabled by the user."""
schedule: Optional[SyncUpdateSchedule] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('schedule') }})
schedule: Optional[SyncUpdateSchedule] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('schedule'), 'exclude': lambda f: f is SyncUpdate.UNSET }})
r"""The scheduling configuration. It can be triggerd based on several ways:
Interval: the sync will be trigged based on certain interval(minutes/hours/days/weeks)
Expand Down
15 changes: 8 additions & 7 deletions src/hightouch/sdkconfiguration.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""

import requests
from dataclasses import dataclass
from typing import Dict, Tuple, Callable, Union
from .utils.retries import RetryConfig

import requests as requests_http
from .utils import utils
from .utils.retries import RetryConfig
from dataclasses import dataclass
from hightouch.models import shared
from typing import Callable, Dict, Tuple, Union


SERVERS = [
Expand All @@ -15,15 +16,15 @@

@dataclass
class SDKConfiguration:
client: requests.Session
client: requests_http.Session
security: Union[shared.Security,Callable[[], shared.Security]] = None
server_url: str = ''
server_idx: int = 0
language: str = 'python'
openapi_doc_version: str = '1.0.0'
sdk_version: str = '5.0.0'
gen_version: str = '2.250.12'
user_agent: str = 'speakeasy-sdk/python 5.0.0 2.250.12 1.0.0 hightouch'
gen_version: str = '2.253.0'
user_agent: str = 'speakeasy-sdk/python 5.0.0 2.253.0 1.0.0 hightouch'
retry_config: RetryConfig = None

def get_server_details(self) -> Tuple[str, Dict[str, str]]:
Expand Down

0 comments on commit af2e8d2

Please sign in to comment.