Skip to content

Commit

Permalink
chore: regenerate service (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
simosho authored Mar 27, 2024
1 parent 862c58d commit 7f2e801
Show file tree
Hide file tree
Showing 393 changed files with 52,934 additions and 0 deletions.
137 changes: 137 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
name: Waylay Rules 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 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 test

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

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

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

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-rules/src/waylay/services/rules/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-rules/dist

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

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

name: Publish types package to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/waylay-sdk-rules-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-rules-types/src/waylay/services/rules/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-rules-types/dist
password: ${{ secrets.PYPI_TYPES_PKG_API_TOKEN }}
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
231 changes: 231 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,231 @@
.github/workflows/python.yml
.openapi-generator-ignore
LICENSE.txt
Makefile
README.md
docs/ATasksBatchOperationSpecification.md
docs/ActuatorExecutionResult.md
docs/ActuatorNode.md
docs/BatchIdQuery.md
docs/BatchOperation.md
docs/BatchOperationEnqueued.md
docs/BatchOperationOperation.md
docs/BatchOperationOperationAction.md
docs/BatchOperationResult.md
docs/BatchQuery.md
docs/BatchTask.md
docs/BatchTaskCommand.md
docs/BatchTaskCommandAllOfAction.md
docs/BatchTaskEntity.md
docs/BatchTaskQuery.md
docs/BatchUpdatePlugin.md
docs/BatchUpdateProperties.md
docs/BatchUpdatePropertiesAllOfAction.md
docs/BayesianGraph.md
docs/CreateTask201Response.md
docs/CreateTemplate201Response.md
docs/ErrorResponse.md
docs/ErrorWithDetailsResponse.md
docs/ExecutePlugsSpecification.md
docs/ExecutionTrigger.md
docs/FailureOperationResultValue.md
docs/GateType.md
docs/GenericTaskSettings.md
docs/GenericTrigger.md
docs/GetBatchOperation200Response.md
docs/GraphDefinition.md
docs/ListTasksFormatParameter.md
docs/ListTasksTagsKeyParameter.md
docs/LogLevel.md
docs/LogsInner.md
docs/LogsInnerLevel.md
docs/NodeStateSpecification.md
docs/NoteElement.md
docs/OneTimeTaskSetting.md
docs/OneTimeTaskSettingType.md
docs/Operation.md
docs/OperationResultObject.md
docs/OperationResultObjectResults.md
docs/PagingResult.md
docs/PeriodicTaskSetting.md
docs/PeriodicTaskSettingType.md
docs/PluginUpdateSpec.md
docs/PluginUpdateSpecFromVersion.md
docs/PluginUpdateSpecFromVersionOneOf.md
docs/PlugsExecutionApi.md
docs/PossibleValuesEnumDeclarationInner.md
docs/PropertyUpdatesSpec.md
docs/PushDataApi.md
docs/ReactiveTaskSetting.md
docs/ReactiveTaskSettingType.md
docs/RelationNode.md
docs/ReplaceTemplate200Response.md
docs/ResourceDataInjection.md
docs/RunTemplateLogLevelParameter.md
docs/ScheduledTaskSetting.md
docs/ScheduledTaskSettingAllOfType.md
docs/SensorExecutionResult.md
docs/SensorNode.md
docs/SimplifiedGraph.md
docs/SimplifiedGraphTriggersInner.md
docs/StateChangeTrigger.md
docs/StatesTrigger.md
docs/StreamData.md
docs/StreamDataData.md
docs/SuccessOperationResultValue.md
docs/TaskDefaultsElement.md
docs/TaskEntity.md
docs/TaskEntityPagingResult.md
docs/TaskFromTemplate.md
docs/TaskNodesApi.md
docs/TaskScenarioType.md
docs/TaskSettings.md
docs/TaskSpecification.md
docs/TaskStatus.md
docs/TaskTypeSettings.md
docs/TaskWithRule.md
docs/TaskWithRuleAllOfTask.md
docs/TasksApi.md
docs/TasksBatchOperationsApi.md
docs/TemplateDetails.md
docs/TemplateEntity.md
docs/TemplateEntityCommonAttributes.md
docs/TemplateEntityMetadata.md
docs/TemplateModification.md
docs/TemplateModificationOperation.md
docs/TemplateRunActuatorResult.md
docs/TemplateRunConfiguration.md
docs/TemplateRunInvocation.md
docs/TemplateRunSensorResult.md
docs/TemplateRunSpecification.md
docs/TemplateRunWithGraphSpecification.md
docs/TemplateRunsApi.md
docs/TemplatesApi.md
docs/TransformerExecutionResult.md
docs/TriggerStateChange.md
docs/UpgradePluginsTemplates200Response.md
docs/ValidationIssue.md
docs/ValidationIssueSeverity.md
docs/VariableDeclaration.md
docs/VariableDeclarationDefaultValue.md
docs/VariableFormat.md
docs/VariableType.md
docs/VersionApi.md
docs/VersionResponse.md
docs/VersionResponseStatus.md
pyproject.toml
requirements.txt
test/__init__.py
test/api/__init__.py
test/api/plugs_execution_api_test.py
test/api/push_data_api_test.py
test/api/task_nodes_api_test.py
test/api/tasks_api_test.py
test/api/tasks_batch_operations_api_test.py
test/api/template_runs_api_test.py
test/api/templates_api_test.py
test/api/version_api_test.py
test/conftest.py
test/openapi.py
test/types/__init__.py
test/types/a_tasks_batch_operation_specification_stub.py
test/types/actuator_execution_result_stub.py
test/types/actuator_node_stub.py
test/types/batch_id_query_stub.py
test/types/batch_operation_enqueued_stub.py
test/types/batch_operation_operation_action_stub.py
test/types/batch_operation_operation_stub.py
test/types/batch_operation_result_stub.py
test/types/batch_operation_stub.py
test/types/batch_query_stub.py
test/types/batch_task_command_all_of_action_stub.py
test/types/batch_task_command_stub.py
test/types/batch_task_entity_stub.py
test/types/batch_task_query_stub.py
test/types/batch_task_stub.py
test/types/batch_update_plugin_stub.py
test/types/batch_update_properties_all_of_action_stub.py
test/types/batch_update_properties_stub.py
test/types/bayesian_graph_stub.py
test/types/create_task201_response_stub.py
test/types/create_template201_response_stub.py
test/types/error_response_stub.py
test/types/error_with_details_response_stub.py
test/types/execute_plugs_specification_stub.py
test/types/execution_trigger_stub.py
test/types/failure_operation_result_value_stub.py
test/types/gate_type_stub.py
test/types/generic_task_settings_stub.py
test/types/generic_trigger_stub.py
test/types/get_batch_operation200_response_stub.py
test/types/graph_definition_stub.py
test/types/list_tasks_format_parameter_stub.py
test/types/list_tasks_tags_key_parameter_stub.py
test/types/log_level_stub.py
test/types/logs_inner_level_stub.py
test/types/logs_inner_stub.py
test/types/node_state_specification_stub.py
test/types/note_element_stub.py
test/types/one_time_task_setting_stub.py
test/types/one_time_task_setting_type_stub.py
test/types/operation_result_object_results_stub.py
test/types/operation_result_object_stub.py
test/types/paging_result_stub.py
test/types/periodic_task_setting_stub.py
test/types/periodic_task_setting_type_stub.py
test/types/plugin_update_spec_from_version_one_of_stub.py
test/types/plugin_update_spec_from_version_stub.py
test/types/plugin_update_spec_stub.py
test/types/possible_values_enum_declaration_inner_stub.py
test/types/property_updates_spec_stub.py
test/types/reactive_task_setting_stub.py
test/types/reactive_task_setting_type_stub.py
test/types/relation_node_stub.py
test/types/replace_template200_response_stub.py
test/types/resource_data_injection_stub.py
test/types/run_template_log_level_parameter_stub.py
test/types/scheduled_task_setting_all_of_type_stub.py
test/types/scheduled_task_setting_stub.py
test/types/sensor_execution_result_stub.py
test/types/sensor_node_stub.py
test/types/simplified_graph_stub.py
test/types/simplified_graph_triggers_inner_stub.py
test/types/state_change_trigger_stub.py
test/types/states_trigger_stub.py
test/types/stream_data_data_stub.py
test/types/stream_data_stub.py
test/types/success_operation_result_value_stub.py
test/types/task_defaults_element_stub.py
test/types/task_entity_paging_result_stub.py
test/types/task_entity_stub.py
test/types/task_from_template_stub.py
test/types/task_scenario_type_stub.py
test/types/task_settings_stub.py
test/types/task_specification_stub.py
test/types/task_status_stub.py
test/types/task_type_settings_stub.py
test/types/task_with_rule_all_of_task_stub.py
test/types/task_with_rule_stub.py
test/types/template_details_stub.py
test/types/template_entity_common_attributes_stub.py
test/types/template_entity_metadata_stub.py
test/types/template_entity_stub.py
test/types/template_modification_operation_stub.py
test/types/template_modification_stub.py
test/types/template_run_actuator_result_stub.py
test/types/template_run_configuration_stub.py
test/types/template_run_invocation_stub.py
test/types/template_run_sensor_result_stub.py
test/types/template_run_specification_stub.py
test/types/template_run_with_graph_specification_stub.py
test/types/transformer_execution_result_stub.py
test/types/trigger_state_change_stub.py
test/types/upgrade_plugins_templates200_response_stub.py
test/types/validation_issue_severity_stub.py
test/types/validation_issue_stub.py
test/types/variable_declaration_default_value_stub.py
test/types/variable_declaration_stub.py
test/types/variable_format_stub.py
test/types/variable_type_stub.py
test/types/version_response_status_stub.py
test/types/version_response_stub.py
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
Loading

0 comments on commit 7f2e801

Please sign in to comment.