Skip to content

Commit

Permalink
Release v0.0.4 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
giograno authored Nov 29, 2024
1 parent f19e2f9 commit c62d61e
Show file tree
Hide file tree
Showing 21 changed files with 1,697 additions and 451 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.3
0.0.4
2 changes: 1 addition & 1 deletion bin/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

version=$(cat VERSION)

docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli:v7.9.0 generate \
docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli:v7.10.0 generate \
-i https://raw.githubusercontent.com/localstack/openapi/refs/heads/main/openapi/emulators/localstack-spec-latest.yml \
--skip-validate-spec \
-g python \
Expand Down
12 changes: 6 additions & 6 deletions localstack-sdk-python/localstack/sdk/chaos/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,37 +18,37 @@ def set_fault_rules(self, fault_rules: list[FaultRule]) -> list[FaultRule]:
:param fault_rules: the list of FaultRule we want to set
:return: the list of FaultRule currently in place
"""
return self._client.set_fault_rules_0(fault_rule=fault_rules)
return self._client.set_fault_rules(fault_rule=fault_rules)

def add_fault_rules(self, fault_rules: list[FaultRule]) -> list[FaultRule]:
"""
Adds a new set of rules to the current fault configuration.
:param fault_rules: the FaultRule rules to add
:return: the list of FaultRule currently in place
"""
return self._client.add_fault_rules_0(fault_rule=fault_rules)
return self._client.add_fault_rules(fault_rule=fault_rules)

def delete_fault_rules(self, fault_rules: list[FaultRule]) -> list[FaultRule]:
"""
Deletes a set of rules from the fault configuration.
:param fault_rules: the FaultRule to delete
:return: the list of FaultRule currently in place
"""
return self._client.delete_fault_rules_0(fault_rule=fault_rules)
return self._client.delete_fault_rules(fault_rule=fault_rules)

def get_fault_rules(self) -> list[FaultRule]:
"""
Gets the current fault configuration.
:return: the list of FaultRule of the current configuration
"""
return self._client.get_fault_rules_0()
return self._client.get_fault_rules()

def get_network_effects(self) -> NetworkEffectsConfig:
"""
Gets the current network effect configuration.
:return: the current NetworkEffectsConfig
"""
return self._client.get_network_effects_0()
return self._client.get_network_effects()

def set_network_effects(
self, network_effects_config: NetworkEffectsConfig
Expand All @@ -58,7 +58,7 @@ def set_network_effects(
:param network_effects_config: the network config to be set
:return: the current configuration of network effects
"""
return self._client.set_network_effects_0(network_effects_config=network_effects_config)
return self._client.set_network_effects(network_effects_config=network_effects_config)


def get_default(**args) -> ChaosClient:
Expand Down
8 changes: 4 additions & 4 deletions localstack-sdk-python/localstack/sdk/pods/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def save_pod(self, pod_name: str) -> None:
:return: None
:raises PodSaveException: if the save operation returns an error
"""
response = self._client.save_pod_0_with_http_info(
response = self._client.save_pod_with_http_info(
name=pod_name, pod_save_request=PodSaveRequest()
)
if response.status_code != 200:
Expand All @@ -77,7 +77,7 @@ def load_pod(self, pod_name: str) -> None:
:return: None
:raises PodLoadException: if the load operation returns an error
"""
response = self._client.load_pod_0_with_http_info(
response = self._client.load_pod_with_http_info(
name=pod_name, remote_config=_empty_remote_config()
)
if response.status_code != 200:
Expand All @@ -93,14 +93,14 @@ def delete_pod(self, pod_name: str) -> None:
:param pod_name: the name of the Cloud Pod to be deleted.
:return: None
"""
return self._client.delete_pod_0(name=pod_name, remote_config=_empty_remote_config())
return self._client.delete_pod(name=pod_name, remote_config=_empty_remote_config())

def list_pods(self) -> PodList:
"""
Returns the list of the Cloud Pods visible in the organization.
:return: a PodList object
"""
pods = self._client.list_pods_0(remote_config=_empty_remote_config())
pods = self._client.list_pods(remote_config=_empty_remote_config())
return pods


Expand Down
2 changes: 1 addition & 1 deletion localstack-sdk-python/localstack/sdk/state/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ def reset_state(self) -> None:
Resets the state of LocalStack for all running services.
:return: None
"""
self._client.localstack_state_reset_post_0()
self._client.localstack_state_reset_post()
1 change: 1 addition & 0 deletions packages/localstack-sdk-generated/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ localstack/sdk/models/get_features_and_services200_response.py
localstack/sdk/models/get_lambda_runtimes200_response.py
localstack/sdk/models/get_ses_messages200_response.py
localstack/sdk/models/get_sns_subscription_token200_response.py
localstack/sdk/models/iam_config.py
localstack/sdk/models/init_scripts.py
localstack/sdk/models/init_scripts_completed.py
localstack/sdk/models/init_scripts_scripts_inner.py
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.9.0
7.10.0
Loading

0 comments on commit c62d61e

Please sign in to comment.