Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.207.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Mar 13, 2024
1 parent 75aee8d commit 212c050
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 69 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ id: 1cc01e85-de06-43c6-8eba-b42d8ac9f2f1
management:
docChecksum: 8a72152156319b55ebd9dd4cff488703
docVersion: 1.0.0
speakeasyVersion: 1.205.0
generationVersion: 2.279.1
releaseVersion: 5.2.1
configChecksum: 5d106addd37d2dd1ba534190538cdd30
speakeasyVersion: 1.207.1
generationVersion: 2.280.6
releaseVersion: 5.2.2
configChecksum: c71fe6a13a7e4c4c813f233071859d27
repoURL: https://github.com/speakeasy-sdks/hightouch-python-sdk.git
repoSubDirectory: .
installationURL: https://github.com/speakeasy-sdks/hightouch-python-sdk.git
Expand All @@ -15,7 +15,7 @@ features:
constsAndDefaults: 0.1.3
core: 4.5.1
globalSecurity: 2.83.4
globalServerURLs: 2.82.1
globalServerURLs: 2.82.2
responseFormat: 0.1.0
unions: 2.82.6
generatedFiles:
Expand Down
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -782,4 +782,12 @@ Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.205.0 (2.279.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v5.2.1] .
- [python v5.2.1] .

## 2024-03-13 00:49:15
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.207.1 (2.280.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v5.2.2] .
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
python:
version: 5.2.1
version: 5.2.2
additionalDependencies:
dependencies: {}
extraDependencies:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setuptools.setup(
name="hightouch",
version="5.2.1",
version="5.2.2",
author="Speakeasy",
description="Python SDK for Hightouch API",
long_description=long_description,
Expand Down
117 changes: 59 additions & 58 deletions src/hightouch/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ class Hightouch:

def __init__(self,
security: Union[shared.Security,Callable[[], shared.Security]] = None,
server_idx: int = None,
server_url: str = None,
url_params: Dict[str, str] = None,
client: requests_http.Session = None,
retry_config: utils.RetryConfig = None
server_idx: Optional[int] = None,
server_url: Optional[str] = None,
url_params: Optional[Dict[str, str]] = None,
client: Optional[requests_http.Session] = None,
retry_config: Optional[utils.RetryConfig] = None
) -> None:
"""Instantiates the SDK configuring it with the provided parameters.
:param security: The security details required for authentication
:type security: Union[shared.Security,Callable[[], shared.Security]]
:param server_idx: The index of the server to use for all operations
Expand All @@ -37,12 +37,18 @@ def __init__(self,
"""
if client is None:
client = requests_http.Session()

if server_url is not None:
if url_params is not None:
server_url = utils.template_url(server_url, url_params)

self.sdk_configuration = SDKConfiguration(client, security, server_url, server_idx, retry_config=retry_config)
self.sdk_configuration = SDKConfiguration(
client,
security,
server_url,
server_idx,
retry_config=retry_config
)

hooks = SDKHooks()

Expand All @@ -52,13 +58,9 @@ def __init__(self,
self.sdk_configuration.server_url = server_url

# pylint: disable=protected-access
self.sdk_configuration._hooks=hooks






self.sdk_configuration._hooks = hooks


def create_destination(self, request: shared.DestinationCreate) -> operations.CreateDestinationResponse:
r"""Create Destination
Create a new destination
Expand Down Expand Up @@ -126,8 +128,8 @@ def create_destination(self, request: shared.DestinationCreate) -> operations.Cr

return res



def create_model(self, request: operations.CreateModelRequest) -> operations.CreateModelResponse:
r"""Create Model
Create a new model
Expand Down Expand Up @@ -196,8 +198,8 @@ def create_model(self, request: operations.CreateModelRequest) -> operations.Cre

return res



def create_source(self, request: shared.SourceCreate) -> operations.CreateSourceResponse:
r"""Create Source
Create a new source
Expand Down Expand Up @@ -265,8 +267,8 @@ def create_source(self, request: shared.SourceCreate) -> operations.CreateSource

return res



def create_sync(self, request: shared.SyncCreate) -> operations.CreateSyncResponse:
r"""Create Sync
Create a new sync
Expand Down Expand Up @@ -334,8 +336,8 @@ def create_sync(self, request: shared.SyncCreate) -> operations.CreateSyncRespon

return res



def get_destination(self, request: operations.GetDestinationRequest) -> operations.GetDestinationResponse:
r"""Get Destination
Retrieve a destination based on its Hightouch ID
Expand Down Expand Up @@ -391,8 +393,8 @@ def get_destination(self, request: operations.GetDestinationRequest) -> operatio

return res



def get_model(self, request: operations.GetModelRequest) -> operations.GetModelResponse:
r"""Get Model
Retrieve models from model ID
Expand Down Expand Up @@ -448,8 +450,8 @@ def get_model(self, request: operations.GetModelRequest) -> operations.GetModelR

return res



def get_source(self, request: operations.GetSourceRequest) -> operations.GetSourceResponse:
r"""Get Source
Retrieve source from source ID
Expand Down Expand Up @@ -512,8 +514,8 @@ def get_source(self, request: operations.GetSourceRequest) -> operations.GetSour

return res



def get_sync(self, request: operations.GetSyncRequest) -> operations.GetSyncResponse:
r"""Get Sync
Retrieve sync from sync ID
Expand Down Expand Up @@ -569,8 +571,8 @@ def get_sync(self, request: operations.GetSyncRequest) -> operations.GetSyncResp

return res



def get_sync_sequence_run(self, request: operations.GetSyncSequenceRunRequest) -> operations.GetSyncSequenceRunResponse:
r"""Sync sequence status
Get the status of a sync sequence run.
Expand Down Expand Up @@ -633,8 +635,8 @@ def get_sync_sequence_run(self, request: operations.GetSyncSequenceRunRequest) -

return res



def list_destination(self, request: operations.ListDestinationRequest) -> operations.ListDestinationResponse:
r"""List Destinations
List the destinations in the user's workspace
Expand Down Expand Up @@ -698,8 +700,8 @@ def list_destination(self, request: operations.ListDestinationRequest) -> operat

return res



def list_model(self, request: operations.ListModelRequest) -> operations.ListModelResponse:
r"""List Models
List all the models in the current workspace including parent and related models
Expand Down Expand Up @@ -763,8 +765,8 @@ def list_model(self, request: operations.ListModelRequest) -> operations.ListMod

return res



def list_source(self, request: operations.ListSourceRequest) -> operations.ListSourceResponse:
r"""List Sources
List all the sources in the current workspace
Expand Down Expand Up @@ -821,8 +823,8 @@ def list_source(self, request: operations.ListSourceRequest) -> operations.ListS

return res



def list_sync(self, request: operations.ListSyncRequest) -> operations.ListSyncResponse:
r"""List Syncs
List all the syncs in the current workspace
Expand Down Expand Up @@ -886,8 +888,8 @@ def list_sync(self, request: operations.ListSyncRequest) -> operations.ListSyncR

return res



def list_sync_runs(self, request: operations.ListSyncRunsRequest) -> operations.ListSyncRunsResponse:
r"""List Sync Runs
List all sync runs under a sync
Expand Down Expand Up @@ -951,8 +953,8 @@ def list_sync_runs(self, request: operations.ListSyncRunsRequest) -> operations.

return res



def trigger_run(self, request: operations.TriggerRunRequest) -> operations.TriggerRunResponse:
r"""Trigger Sync
Trigger a new run for the given sync.
Expand Down Expand Up @@ -1021,8 +1023,8 @@ def trigger_run(self, request: operations.TriggerRunRequest) -> operations.Trigg

return res



def trigger_run_custom(self, request: shared.TriggerRunCustomInput) -> operations.TriggerRunCustomResponse:
r"""Trigger Sync From ID or Slug
Trigger a new run globally based on sync id or sync slug
Expand Down Expand Up @@ -1093,8 +1095,8 @@ def trigger_run_custom(self, request: shared.TriggerRunCustomInput) -> operation

return res



def trigger_run_id_graph(self, request: operations.TriggerRunIDGraphRequest) -> operations.TriggerRunIDGraphResponse:
hook_ctx = HookContext(operation_id='TriggerRunIdGraph', oauth2_scopes=[], security_source=self.sdk_configuration.security)
base_url = utils.template_url(*self.sdk_configuration.get_server_details())
Expand Down Expand Up @@ -1157,8 +1159,8 @@ def trigger_run_id_graph(self, request: operations.TriggerRunIDGraphRequest) ->

return res



def trigger_sequence_run(self, request: operations.TriggerSequenceRunRequest) -> operations.TriggerSequenceRunResponse:
r"""Trigger Sync sequence
Trigger a new run for the given sync sequence.
Expand Down Expand Up @@ -1224,8 +1226,8 @@ def trigger_sequence_run(self, request: operations.TriggerSequenceRunRequest) ->

return res



def update_destination(self, request: operations.UpdateDestinationRequest) -> operations.UpdateDestinationResponse:
r"""Update Destination
Update an existing destination
Expand Down Expand Up @@ -1295,8 +1297,8 @@ def update_destination(self, request: operations.UpdateDestinationRequest) -> op

return res



def update_model(self, request: operations.UpdateModelRequest) -> operations.UpdateModelResponse:
r"""Update Model
Update an existing model
Expand Down Expand Up @@ -1366,8 +1368,8 @@ def update_model(self, request: operations.UpdateModelRequest) -> operations.Upd

return res



def update_source(self, request: operations.UpdateSourceRequest) -> operations.UpdateSourceResponse:
r"""Update Source
Update an existing source
Expand Down Expand Up @@ -1437,8 +1439,8 @@ def update_source(self, request: operations.UpdateSourceRequest) -> operations.U

return res



def update_sync(self, request: operations.UpdateSyncRequest) -> operations.UpdateSyncResponse:
r"""Update Sync
Update an existing sync
Expand Down Expand Up @@ -1508,4 +1510,3 @@ def update_sync(self, request: operations.UpdateSyncRequest) -> operations.Updat

return res


6 changes: 3 additions & 3 deletions src/hightouch/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class SDKConfiguration:
server_idx: int = 0
language: str = 'python'
openapi_doc_version: str = '1.0.0'
sdk_version: str = '5.2.1'
gen_version: str = '2.279.1'
user_agent: str = 'speakeasy-sdk/python 5.2.1 2.279.1 1.0.0 hightouch'
sdk_version: str = '5.2.2'
gen_version: str = '2.280.6'
user_agent: str = 'speakeasy-sdk/python 5.2.2 2.280.6 1.0.0 hightouch'
retry_config: RetryConfig = None
_hooks: SDKHooks = None

Expand Down

0 comments on commit 212c050

Please sign in to comment.