Skip to content

Commit

Permalink
chore: regenerate service (sdk)
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-schoonjans committed Apr 12, 2024
1 parent f16f6d6 commit 4b85c79
Show file tree
Hide file tree
Showing 164 changed files with 15,956 additions and 0 deletions.
136 changes: 136 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
name: Waylay Storage CI

on:
push:
branches: [ "main", "staging", "release/**" ]
tags:
- '**'
pull_request:
branches: [ "main", "staging", "release/**" ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Git with token to access other private repositories
run: git config --global url."https://${{ secrets.OTOMATOR_PAT }}@github".insteadOf https://github
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: '**/*requirements*.txt'
- name: install dependencies
run: make ci-install-types
- name: code qa
run: make ci-code-qa
- name: unit tests
run: make ci-test

test-minimal:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Git with token to access other private repositories
run: git config --global url."https://${{ secrets.OTOMATOR_PAT }}@github".insteadOf https://github
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: '**/*requirements*.txt'
- name: install dependencies
run: make ci-install-api
- name: unit tests
run: make ci-test

publish-api:
needs:
- test
- test-minimal
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')

defaults:
run:
working-directory: ./waylay-sdk-storage

name: Publish api package to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/waylay-sdk-storage

permissions:
actions: read
contents: read
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install pypa/build
run: pip install build
- name: check version
id: check-tag
uses: samuelcolvin/[email protected]
with:
version_file_path: waylay-sdk-storage/src/waylay/services/storage/service/__init__.py
- name: Build
run: python3 -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: waylay-sdk-storage/dist

publish-types:
needs:
- test
- test-minimal
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')

defaults:
run:
working-directory: ./waylay-sdk-storage-types

name: Publish types package to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/waylay-sdk-storage-types


permissions:
actions: read
contents: read
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install pypa/build
run: pip install build
- name: check version
id: check-tag
uses: samuelcolvin/[email protected]
with:
version_file_path: waylay-sdk-storage-types/src/waylay/services/storage/models/__init__.py
- name: Build
run: python3 -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: waylay-sdk-storage-types/dist
23 changes: 23 additions & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
97 changes: 97 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
.github/workflows/python.yml
.openapi-generator-ignore
LICENSE.txt
Makefile
README.md
docs/AUTH.md
docs/AboutApi.md
docs/AuthenticationConfig.md
docs/BUCKETCREATIONSTATUS.md
docs/BUCKETPOLICYSTATUS.md
docs/Bucket.md
docs/BucketApi.md
docs/BucketConfiguration.md
docs/BucketListing.md
docs/BucketObject.md
docs/BucketObjectListing.md
docs/CHANNELTYPE.md
docs/Channel.md
docs/EventFilter.md
docs/Expiry.md
docs/HALEntity.md
docs/HALLink.md
docs/HTTPMETHOD.md
docs/HTTPValidationError.md
docs/Links.md
docs/LocationInner.md
docs/NotificationQueueStatus.md
docs/NotificationQueueStatusReport.md
docs/ObjectApi.md
docs/Operation.md
docs/PayloadConfig.md
docs/QUEUESETUPSTATUS.md
docs/ResponseList.md
docs/SIGN.md
docs/STORETYPE.md
docs/Store.md
docs/SubscriptionApi.md
docs/SubscriptionConfig.md
docs/Subscriptions.md
docs/SubscriptionsListing.md
docs/SystemChannelConfig.md
docs/SystemChannelConfigType.md
docs/TenantStatusReport.md
docs/VENTTYPE.md
docs/ValidationError.md
docs/WebScriptChannelConfig.md
docs/WebScriptChannelConfigType.md
pyproject.toml
requirements.txt
test/__init__.py
test/api/__init__.py
test/api/about_api_test.py
test/api/bucket_api_test.py
test/api/object_api_test.py
test/api/subscription_api_test.py
test/conftest.py
test/openapi.py
test/types/__init__.py
test/types/auth_stub.py
test/types/authentication_config_stub.py
test/types/bucket_configuration_stub.py
test/types/bucket_listing_stub.py
test/types/bucket_object_listing_stub.py
test/types/bucket_object_stub.py
test/types/bucket_stub.py
test/types/bucketcreationstatus_stub.py
test/types/bucketpolicystatus_stub.py
test/types/channel_stub.py
test/types/channeltype_stub.py
test/types/event_filter_stub.py
test/types/expiry_stub.py
test/types/hal_entity_stub.py
test/types/hal_link_stub.py
test/types/http_validation_error_stub.py
test/types/httpmethod_stub.py
test/types/links_stub.py
test/types/location_inner_stub.py
test/types/notification_queue_status_report_stub.py
test/types/notification_queue_status_stub.py
test/types/payload_config_stub.py
test/types/queuesetupstatus_stub.py
test/types/response_list_stub.py
test/types/sign_stub.py
test/types/store_stub.py
test/types/storetype_stub.py
test/types/subscription_config_stub.py
test/types/subscriptions_listing_stub.py
test/types/subscriptions_stub.py
test/types/system_channel_config_stub.py
test/types/system_channel_config_type_stub.py
test/types/tenant_status_report_stub.py
test/types/validation_error_stub.py
test/types/venttype_stub.py
test/types/web_script_channel_config_stub.py
test/types/web_script_channel_config_type_stub.py
waylay-sdk-storage-types/README.md
waylay-sdk-storage/README.md
1 change: 1 addition & 0 deletions .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.2.0
13 changes: 13 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ISC License (ISC)
Copyright 2024, Waylay

Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT,
OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Loading

0 comments on commit 4b85c79

Please sign in to comment.