diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 28c8bc3..de71a23 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -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 @@ -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: diff --git a/RELEASES.md b/RELEASES.md index 3cd2722..4e68eee 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -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] . \ No newline at end of file +- [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] . \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index e836dc8..b00e7c6 100644 --- a/gen.yaml +++ b/gen.yaml @@ -10,7 +10,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false python: - version: 5.2.1 + version: 5.2.2 additionalDependencies: dependencies: {} extraDependencies: diff --git a/setup.py b/setup.py index 391351c..fe9e2a8 100644 --- a/setup.py +++ b/setup.py @@ -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, diff --git a/src/hightouch/sdk.py b/src/hightouch/sdk.py index bb6e9cb..fac4882 100644 --- a/src/hightouch/sdk.py +++ b/src/hightouch/sdk.py @@ -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 @@ -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() @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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. @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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. @@ -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 @@ -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()) @@ -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. @@ -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 @@ -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 @@ -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 @@ -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 @@ -1508,4 +1510,3 @@ def update_sync(self, request: operations.UpdateSyncRequest) -> operations.Updat return res - \ No newline at end of file diff --git a/src/hightouch/sdkconfiguration.py b/src/hightouch/sdkconfiguration.py index 9a0a534..4301624 100644 --- a/src/hightouch/sdkconfiguration.py +++ b/src/hightouch/sdkconfiguration.py @@ -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