Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate storage sdk 🔁 #12

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.2.0
7.7.0
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Manage storage buckets and subscriptions.


This Python package is automatically generated based on the
Waylay Storage OpenAPI specification (API version: 0.4.2)
Waylay Storage OpenAPI specification (API version: 0.4.4)
For more information, please visit [the openapi specification](https://docs.waylay.io/openapi/public/redocly/storage.html).

It consists of two sub-packages that are both plugins for the waylay-sdk-core package.
Expand All @@ -15,13 +15,16 @@ It consists of two sub-packages that are both plugins for the waylay-sdk-core pa
This package requires Python 3.9+.

## Installation
Typically this package is installed when installing the [waylay-sdk-core](https://pypi.org/project/waylay-sdk/) package to enable the service's functionality.
When the service api methods are required, waylay-sdk-storage is included in:
- ```pip install waylay-sdk-core[storage]``` to install `waylay-sdk-core` along with only this service, or
- ```pip install waylay-sdk-core[services]``` to install `waylay-sdk-core` along with all services.
When the typed models are required, both waylay-sdk-storage and waylay-sdk-storage-types are included in:
- ```pip install waylay-sdk-core[storage,storage-types]``` to install `waylay-sdk-core` along with only this service including the typed models, or
- ```pip install waylay-sdk-core[services,services-types]``` to install `waylay-sdk-core` along with all services along with the typed models.

Normally this package is installed together with support for other services using the [waylay-sdk](https://pypi.org/project/waylay-sdk/) umbrella package:
* `pip install waylay-sdk` will install `waylay-sdk-storage` together with the SDK api packages for other services.
* `pip install waylay-sdk[types-storage]` will additionally install the types package `waylay-sdk-storage-types`.
* `pip install waylay-sdk[types]` will install the types packages for this and all other services.

Alternatively, you can install support for this _storage_ service only, installing or extending an existing [waylay-sdk-core](https://pypi.org/project/waylay-sdk-core/):

- `pip install waylay-sdk-storage` to only install api support for _storage_.
- `pip install waylay-sdk-storage[types]` to additionally install type support for _storage_.

## Usage

Expand Down
2 changes: 1 addition & 1 deletion docs/Channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**type** | [**SystemChannelConfigType**](SystemChannelConfigType.md) | | [optional]
**type** | [**SystemChannelConfigType**](SystemChannelConfigType.md) | | [optional] [default to SystemChannelConfigType.SYSTEM]
**description** | **str** | | [optional]
**payload** | [**PayloadConfig**](PayloadConfig.md) | | [optional]
**authentication** | [**AuthenticationConfig**](AuthenticationConfig.md) | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/SystemChannelConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Channel configuration for functionality that is fixed by the platform. This can

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**type** | [**SystemChannelConfigType**](SystemChannelConfigType.md) | | [optional]
**type** | [**SystemChannelConfigType**](SystemChannelConfigType.md) | | [optional] [default to SystemChannelConfigType.SYSTEM]
**description** | **str** | | [optional]
**payload** | [**PayloadConfig**](PayloadConfig.md) | | [optional]
**authentication** | [**AuthenticationConfig**](AuthenticationConfig.md) | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/WebScriptChannelConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Channel configuration for invoking a waylay webscript.

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**type** | [**WebScriptChannelConfigType**](WebScriptChannelConfigType.md) | | [optional]
**type** | [**WebScriptChannelConfigType**](WebScriptChannelConfigType.md) | | [optional] [default to WebScriptChannelConfigType.WEBSCRIPT]
**description** | **str** | | [optional]
**payload** | [**PayloadConfig**](PayloadConfig.md) | | [optional]
**authentication** | [**AuthenticationConfig**](AuthenticationConfig.md) | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion openapi/storage.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ info:
Manage storage buckets and subscriptions.

'
version: v0.4.2
version: v0.4.4
paths:
/storage/v1/bucket:
get:
Expand Down
2 changes: 1 addition & 1 deletion openapi/storage.transformed.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ info:
description: |

Manage storage buckets and subscriptions.
version: 0.4.2
version: 0.4.4
paths:
/storage/v1/bucket:
get:
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
include = ["pyproject.toml", "test/**/*.py"]

[tool.ruff.lint]
ignore-init-module-imports = true
# allow duplicate imports
ignore=["F811"]
# https://docs.astral.sh/ruff/rules
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pydantic ~= 2.6
typing-extensions ~= 4.9
waylay-sdk-core ~= 0.2.1
waylay-sdk-core ~= 0.2.3
2 changes: 1 addition & 1 deletion waylay-sdk-storage-types/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.2.0
7.7.0
19 changes: 11 additions & 8 deletions waylay-sdk-storage-types/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Manage storage buckets and subscriptions.


This Python package is automatically generated based on the
Waylay Storage OpenAPI specification (API version: 0.4.2)
Waylay Storage OpenAPI specification (API version: 0.4.4)
For more information, please visit [the openapi specification](https://docs.waylay.io/openapi/public/redocly/storage.html).

It is considered an extension of the waylay-sdk-storage package, and it consists of the typed model classes for all path params, query params, body params and responses for each of the api methods in `waylay-sdk-storage`.
Expand All @@ -13,13 +13,16 @@ It is considered an extension of the waylay-sdk-storage package, and it consists
This package requires Python 3.9+.

## Installation
Typically this package is installed when installing the [waylay-sdk-core](https://pypi.org/project/waylay-sdk/) package to enable the service's functionality.
When the service api methods are required, waylay-sdk-storage is included in:
- ```pip install waylay-sdk-core[storage]``` to install `waylay-sdk-core` along with only this service, or
- ```pip install waylay-sdk-core[services]``` to install `waylay-sdk-core` along with all services.
When the typed models are required, both waylay-sdk-storage and waylay-sdk-storage-types are included in:
- ```pip install waylay-sdk-core[storage,storage-types]``` to install `waylay-sdk-core` along with only this service including the typed models, or
- ```pip install waylay-sdk-core[services,services-types]``` to install `waylay-sdk-core` along with all services along with the typed models.

Normally this package is installed together with support for other services using the [waylay-sdk](https://pypi.org/project/waylay-sdk/) umbrella package:
* `pip install waylay-sdk` will install `waylay-sdk-storage` together with the SDK api packages for other services.
* `pip install waylay-sdk[types-storage]` will additionally install the types package `waylay-sdk-storage-types`.
* `pip install waylay-sdk[types]` will install the types packages for this and all other services.

Alternatively, you can install support for this _storage_ service only, installing or extending an existing [waylay-sdk-core](https://pypi.org/project/waylay-sdk-core/):

- `pip install waylay-sdk-storage` to only install api support for _storage_.
- `pip install waylay-sdk-storage[types]` to additionally install type support for _storage_.

## Usage

Expand Down
7 changes: 3 additions & 4 deletions waylay-sdk-storage-types/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ build-backend = "setuptools.build_meta"

[project]
name = "waylay-sdk-storage-types"
version = "0.4.2.20240430"
version = "0.4.4.20240802"
description = "Waylay Storage Types "
authors = [
{ name = "Waylay", email = "[email protected]"}
]
keywords = ["Waylay Storage" , "Types"]
requires-python = ">= 3.9"
dependencies = [
"waylay-sdk-core ~= 0.2.1",
"waylay-sdk-storage == 0.4.2.20240430",
"waylay-sdk-core ~= 0.2.3",
"waylay-sdk-storage == 0.4.4.20240802",
"pydantic ~= 2.6",
"typing-extensions ~= 4.10",
"eval-type-backport ~= 0.1.3; python_version < '3.10'",
Expand Down Expand Up @@ -54,7 +54,6 @@ namespaces = true
include = ["pyproject.toml", "src/**/*.py"]

[tool.ruff.lint]
ignore-init-module-imports = true
# allow duplicate imports
ignore=["F811"]
# https://docs.astral.sh/ruff/rules
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

This code was generated from the OpenAPI documentation of 'Waylay Storage'

version: 0.4.2
version: 0.4.4

Manage storage buckets and subscriptions.

Expand All @@ -12,7 +12,7 @@
Do not edit the class manually.
"""

__version__ = "0.4.2.20240430"
__version__ = "0.4.4.20240802"

# import models into model package
from .auth import AUTH
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
class SystemChannelConfig(WaylayBaseModel):
"""Channel configuration for functionality that is fixed by the platform. This cannot be selected by the end user.."""

type: SystemChannelConfigType | None = None
type: SystemChannelConfigType | None = SystemChannelConfigType.SYSTEM
description: StrictStr | None = None
payload: PayloadConfig | None = None
authentication: AuthenticationConfig | None = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
class WebScriptChannelConfig(WaylayBaseModel):
"""Channel configuration for invoking a waylay webscript.."""

type: WebScriptChannelConfigType | None = None
type: WebScriptChannelConfigType | None = WebScriptChannelConfigType.WEBSCRIPT
description: StrictStr | None = None
payload: PayloadConfig | None = None
authentication: AuthenticationConfig | None = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

This code was generated from the OpenAPI documentation of 'Waylay Storage'

version: 0.4.2
version: 0.4.4

Manage storage buckets and subscriptions.

Expand Down
2 changes: 1 addition & 1 deletion waylay-sdk-storage/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.2.0
7.7.0
19 changes: 11 additions & 8 deletions waylay-sdk-storage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Manage storage buckets and subscriptions.


This Python package is automatically generated based on the
Waylay Storage OpenAPI specification (API version: 0.4.2)
Waylay Storage OpenAPI specification (API version: 0.4.4)
For more information, please visit [the openapi specification](https://docs.waylay.io/openapi/public/redocly/storage.html).

It consists of a plugin for the waylay-sdk-core package, and contains the Storage api methods.
Expand All @@ -14,13 +14,16 @@ Note that the typed model classes for all path params, query params, body params
This package requires Python 3.9+.

## Installation
Typically this package is installed when installing the [waylay-sdk-core](https://pypi.org/project/waylay-sdk/) package to enable the service's functionality.
When the service api methods are required, waylay-sdk-storage is included in:
- ```pip install waylay-sdk-core[storage]``` to install `waylay-sdk-core` along with only this service, or
- ```pip install waylay-sdk-core[services]``` to install `waylay-sdk-core` along with all services.
When the typed models are required, both waylay-sdk-storage and waylay-sdk-storage-types are included in:
- ```pip install waylay-sdk-core[storage,storage-types]``` to install `waylay-sdk-core` along with only this service including the typed models, or
- ```pip install waylay-sdk-core[services,services-types]``` to install `waylay-sdk-core` along with all services along with the typed models.

Normally this package is installed together with support for other services using the [waylay-sdk](https://pypi.org/project/waylay-sdk/) umbrella package:
* `pip install waylay-sdk` will install `waylay-sdk-storage` together with the SDK api packages for other services.
* `pip install waylay-sdk[types-storage]` will additionally install the types package `waylay-sdk-storage-types`.
* `pip install waylay-sdk[types]` will install the types packages for this and all other services.

Alternatively, you can install support for this _storage_ service only, installing or extending an existing [waylay-sdk-core](https://pypi.org/project/waylay-sdk-core/):

- `pip install waylay-sdk-storage` to only install api support for _storage_.
- `pip install waylay-sdk-storage[types]` to additionally install type support for _storage_.

## Usage

Expand Down
5 changes: 2 additions & 3 deletions waylay-sdk-storage/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ build-backend = "setuptools.build_meta"

[project]
name = "waylay-sdk-storage"
version = "0.4.2.20240430"
version = "0.4.4.20240802"
description = "Waylay Storage"
authors = [
{ name = "Waylay", email = "[email protected]"}
]
keywords = ["Waylay Storage"]
requires-python = ">= 3.9"
dependencies = [
"waylay-sdk-core ~= 0.2.1",
"waylay-sdk-core ~= 0.2.3",
"pydantic ~= 2.6",
"typing-extensions ~= 4.10",
"eval-type-backport ~= 0.1.3; python_version < '3.10'",
Expand Down Expand Up @@ -57,7 +57,6 @@ namespaces = true
include = ["pyproject.toml", "src/**/*.py"]

[tool.ruff.lint]
ignore-init-module-imports = true
# allow duplicate imports
ignore=["F811"]
# https://docs.astral.sh/ruff/rules
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ async def create(
## named body parameters
body_args: Dict[str, Any] = {}
if json is not None and validate_request:
body_adapter = TypeAdapter(SubscriptionConfig)
body_adapter: Any = TypeAdapter(SubscriptionConfig)
json = body_adapter.validate_python(json) # type: ignore # https://github.com/pydantic/pydantic/discussions/7094
body_args["json"] = json

Expand Down Expand Up @@ -1237,7 +1237,7 @@ async def replace(
## named body parameters
body_args: Dict[str, Any] = {}
if json is not None and validate_request:
body_adapter = TypeAdapter(SubscriptionConfig)
body_adapter: Any = TypeAdapter(SubscriptionConfig)
json = body_adapter.validate_python(json) # type: ignore # https://github.com/pydantic/pydantic/discussions/7094
body_args["json"] = json

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

This code was generated from the OpenAPI documentation of 'Waylay Storage'

version: 0.4.2
version: 0.4.4

Manage storage buckets and subscriptions.

Expand All @@ -12,7 +12,7 @@
Do not edit the class manually.
"""

__version__ = "0.4.2.20240430"
__version__ = "0.4.4.20240802"

from .service import StorageService

Expand Down