diff --git a/.apigentools-info b/.apigentools-info index d87ff6cf8..659d2f9a6 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,7 +4,7 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-01-03 17:20:51.668010", + "regenerated": "2024-08-22 06:37:53.837099", "spec_repo_commit": null } } diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml new file mode 100644 index 000000000..531b82fc1 --- /dev/null +++ b/.github/workflows/python.yml @@ -0,0 +1,38 @@ +# NOTE: This file is auto generated by OpenAPI Generator. +# URL: https://openapi-generator.tech +# +# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: pollination_sdk Python package + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pytest diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 0d3eb9595..f1bfd45a8 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/python.yml .gitignore .gitlab-ci.yml .openapi-generator-ignore @@ -28,12 +29,12 @@ docs/ApplicationVersionList.md docs/ApplicationsApi.md docs/ArtifactsApi.md docs/BakedRecipe.md +docs/BakedRecipeTemplatesInner.md docs/BillingInfo.md docs/BillingOption.md -docs/BodyCythonFunctionOrMethodOwnerPluginsPost.md -docs/BodyPostRecipeOwnerRecipesPost.md docs/BuildStatus.md docs/BuildStatusEnum.md +docs/CADLicenseUsage.md docs/CardType.md docs/CloudJob.md docs/CloudJobList.md @@ -41,8 +42,10 @@ docs/CreatedContent.md docs/DAG.md docs/DAGArrayInput.md docs/DAGArrayInputAlias.md +docs/DAGArrayInputAliasInner.md docs/DAGArrayOutput.md docs/DAGArrayOutputAlias.md +docs/DAGArrayOutputAliasInner.md docs/DAGBooleanInput.md docs/DAGBooleanInputAlias.md docs/DAGBooleanOutput.md @@ -59,6 +62,7 @@ docs/DAGGenericInput.md docs/DAGGenericInputAlias.md docs/DAGGenericOutput.md docs/DAGGenericOutputAlias.md +docs/DAGInputsInner.md docs/DAGIntegerInput.md docs/DAGIntegerInputAlias.md docs/DAGIntegerOutput.md @@ -73,6 +77,7 @@ docs/DAGNumberInput.md docs/DAGNumberInputAlias.md docs/DAGNumberOutput.md docs/DAGNumberOutputAlias.md +docs/DAGOutputsInner.md docs/DAGPathInput.md docs/DAGPathInputAlias.md docs/DAGPathOutput.md @@ -82,16 +87,25 @@ docs/DAGStringInputAlias.md docs/DAGStringOutput.md docs/DAGStringOutputAlias.md docs/DAGTask.md +docs/DAGTaskArgumentsInner.md docs/DAGTaskLoop.md +docs/DAGTaskReturnsInner.md docs/DailyUsage.md +docs/Default.md docs/Dependency.md docs/DependencyKind.md docs/DeploymentConfig.md +docs/DeploymentConfigUpdate.md docs/DockerConfig.md docs/FileMeta.md docs/FileMetaList.md docs/FileReference.md docs/FolderReference.md +docs/From1.md +docs/From2.md +docs/From3.md +docs/From4.md +docs/From5.md docs/Function.md docs/FunctionArrayInput.md docs/FunctionArrayOutput.md @@ -101,12 +115,14 @@ docs/FunctionFileInput.md docs/FunctionFileOutput.md docs/FunctionFolderInput.md docs/FunctionFolderOutput.md +docs/FunctionInputsInner.md docs/FunctionIntegerInput.md docs/FunctionIntegerOutput.md docs/FunctionJSONObjectInput.md docs/FunctionJSONObjectOutput.md docs/FunctionNumberInput.md docs/FunctionNumberOutput.md +docs/FunctionOutputsInner.md docs/FunctionPathInput.md docs/FunctionPathOutput.md docs/FunctionStringInput.md @@ -122,6 +138,8 @@ docs/ItemReference.md docs/ItemType.md docs/Job.md docs/JobArgument.md +docs/JobArgumentsInnerInner.md +docs/JobComputeUsage.md docs/JobPathArgument.md docs/JobStatus.md docs/JobStatusEnum.md @@ -141,8 +159,10 @@ docs/LicensesApi.md docs/LocalConfig.md docs/Location.md docs/Maintainer.md +docs/Manifest.md docs/MetaData.md docs/Metadata.md +docs/ModelFrom.md docs/NewApplicationVersion.md docs/NewPluginPackage.md docs/NewRecipePackage.md @@ -151,6 +171,7 @@ docs/OrganizationCreate.md docs/OrganizationList.md docs/OrganizationMember.md docs/OrganizationMemberList.md +docs/OrganizationMemberUsage.md docs/OrganizationRoleEnum.md docs/OrganizationUpdate.md docs/OrgsApi.md @@ -193,6 +214,10 @@ docs/RecipePackage.md docs/RecipePackageList.md docs/RecipesApi.md docs/RegistriesApi.md +docs/ReportCADLicenseUsage.md +docs/ReportComputeUsage.md +docs/ReportOrganizationMemberUsage.md +docs/ReportsApi.md docs/Repository.md docs/RepositoryAccessPolicy.md docs/RepositoryAccessPolicyList.md @@ -205,6 +230,7 @@ docs/RepositorySortKey.md docs/RepositoryUpdate.md docs/RepositoryUserPermissions.md docs/ResourcesDuration.md +docs/ResponseGetPackageJson.md docs/RetryConfig.md docs/RoleEnum.md docs/Run.md @@ -212,14 +238,18 @@ docs/RunList.md docs/RunMeta.md docs/RunProgress.md docs/RunResultList.md +docs/RunResultListResourcesInnerInner.md docs/RunStatus.md docs/RunStatusEnum.md +docs/RunStatusInputsInner.md +docs/RunStatusOutputsInner.md docs/RunsApi.md docs/S3.md docs/S3UploadRequest.md docs/SDKEnum.md docs/ScriptingLanguages.md docs/SortEnum.md +docs/Source.md docs/StatusType.md docs/StepArrayInput.md docs/StepArrayOutput.md @@ -242,6 +272,7 @@ docs/StepStatus.md docs/StepStatusEnum.md docs/StepStringInput.md docs/StepStringOutput.md +docs/Subject.md docs/SubjectType.md docs/Subscription.md docs/SubscriptionCreate.md @@ -279,6 +310,7 @@ docs/UserPublicList.md docs/UserUpdate.md docs/UsersApi.md docs/ValidationError.md +docs/ValidationErrorLocInner.md docs/ValueFileReference.md docs/ValueFolderReference.md docs/ValueListReference.md @@ -297,6 +329,7 @@ pollination_sdk/api/plugins_api.py pollination_sdk/api/projects_api.py pollination_sdk/api/recipes_api.py pollination_sdk/api/registries_api.py +pollination_sdk/api/reports_api.py pollination_sdk/api/runs_api.py pollination_sdk/api/subscription_plans_api.py pollination_sdk/api/subscriptions_api.py @@ -304,6 +337,7 @@ pollination_sdk/api/teams_api.py pollination_sdk/api/user_api.py pollination_sdk/api/users_api.py pollination_sdk/api_client.py +pollination_sdk/api_response.py pollination_sdk/configuration.py pollination_sdk/exceptions.py pollination_sdk/models/__init__.py @@ -328,12 +362,12 @@ pollination_sdk/models/application_update.py pollination_sdk/models/application_version.py pollination_sdk/models/application_version_list.py pollination_sdk/models/baked_recipe.py +pollination_sdk/models/baked_recipe_templates_inner.py pollination_sdk/models/billing_info.py pollination_sdk/models/billing_option.py -pollination_sdk/models/body_cython_function_or_method_owner_plugins_post.py -pollination_sdk/models/body_post_recipe_owner_recipes_post.py pollination_sdk/models/build_status.py pollination_sdk/models/build_status_enum.py +pollination_sdk/models/cad_license_usage.py pollination_sdk/models/card_type.py pollination_sdk/models/cloud_job.py pollination_sdk/models/cloud_job_list.py @@ -341,8 +375,10 @@ pollination_sdk/models/created_content.py pollination_sdk/models/dag.py pollination_sdk/models/dag_array_input.py pollination_sdk/models/dag_array_input_alias.py +pollination_sdk/models/dag_array_input_alias_inner.py pollination_sdk/models/dag_array_output.py pollination_sdk/models/dag_array_output_alias.py +pollination_sdk/models/dag_array_output_alias_inner.py pollination_sdk/models/dag_boolean_input.py pollination_sdk/models/dag_boolean_input_alias.py pollination_sdk/models/dag_boolean_output.py @@ -359,6 +395,7 @@ pollination_sdk/models/dag_generic_input.py pollination_sdk/models/dag_generic_input_alias.py pollination_sdk/models/dag_generic_output.py pollination_sdk/models/dag_generic_output_alias.py +pollination_sdk/models/dag_inputs_inner.py pollination_sdk/models/dag_integer_input.py pollination_sdk/models/dag_integer_input_alias.py pollination_sdk/models/dag_integer_output.py @@ -369,6 +406,7 @@ pollination_sdk/models/dag_number_input.py pollination_sdk/models/dag_number_input_alias.py pollination_sdk/models/dag_number_output.py pollination_sdk/models/dag_number_output_alias.py +pollination_sdk/models/dag_outputs_inner.py pollination_sdk/models/dag_path_input.py pollination_sdk/models/dag_path_input_alias.py pollination_sdk/models/dag_path_output.py @@ -378,20 +416,29 @@ pollination_sdk/models/dag_string_input_alias.py pollination_sdk/models/dag_string_output.py pollination_sdk/models/dag_string_output_alias.py pollination_sdk/models/dag_task.py +pollination_sdk/models/dag_task_arguments_inner.py pollination_sdk/models/dag_task_loop.py +pollination_sdk/models/dag_task_returns_inner.py pollination_sdk/models/dagjson_object_input.py pollination_sdk/models/dagjson_object_input_alias.py pollination_sdk/models/dagjson_object_output.py pollination_sdk/models/dagjson_object_output_alias.py pollination_sdk/models/daily_usage.py +pollination_sdk/models/default.py pollination_sdk/models/dependency.py pollination_sdk/models/dependency_kind.py pollination_sdk/models/deployment_config.py +pollination_sdk/models/deployment_config_update.py pollination_sdk/models/docker_config.py pollination_sdk/models/file_meta.py pollination_sdk/models/file_meta_list.py pollination_sdk/models/file_reference.py pollination_sdk/models/folder_reference.py +pollination_sdk/models/from1.py +pollination_sdk/models/from2.py +pollination_sdk/models/from3.py +pollination_sdk/models/from4.py +pollination_sdk/models/from5.py pollination_sdk/models/function.py pollination_sdk/models/function_array_input.py pollination_sdk/models/function_array_output.py @@ -401,12 +448,14 @@ pollination_sdk/models/function_file_input.py pollination_sdk/models/function_file_output.py pollination_sdk/models/function_folder_input.py pollination_sdk/models/function_folder_output.py +pollination_sdk/models/function_inputs_inner.py pollination_sdk/models/function_integer_input.py pollination_sdk/models/function_integer_output.py pollination_sdk/models/function_json_object_input.py pollination_sdk/models/function_json_object_output.py pollination_sdk/models/function_number_input.py pollination_sdk/models/function_number_output.py +pollination_sdk/models/function_outputs_inner.py pollination_sdk/models/function_path_input.py pollination_sdk/models/function_path_output.py pollination_sdk/models/function_string_input.py @@ -422,6 +471,8 @@ pollination_sdk/models/item_reference.py pollination_sdk/models/item_type.py pollination_sdk/models/job.py pollination_sdk/models/job_argument.py +pollination_sdk/models/job_arguments_inner_inner.py +pollination_sdk/models/job_compute_usage.py pollination_sdk/models/job_path_argument.py pollination_sdk/models/job_status.py pollination_sdk/models/job_status_enum.py @@ -439,8 +490,10 @@ pollination_sdk/models/license_type.py pollination_sdk/models/local_config.py pollination_sdk/models/location.py pollination_sdk/models/maintainer.py +pollination_sdk/models/manifest.py pollination_sdk/models/meta_data.py pollination_sdk/models/metadata.py +pollination_sdk/models/model_from.py pollination_sdk/models/new_application_version.py pollination_sdk/models/new_plugin_package.py pollination_sdk/models/new_recipe_package.py @@ -449,6 +502,7 @@ pollination_sdk/models/organization_create.py pollination_sdk/models/organization_list.py pollination_sdk/models/organization_member.py pollination_sdk/models/organization_member_list.py +pollination_sdk/models/organization_member_usage.py pollination_sdk/models/organization_role_enum.py pollination_sdk/models/organization_update.py pollination_sdk/models/package_sort_key.py @@ -486,6 +540,9 @@ pollination_sdk/models/recipe_interface.py pollination_sdk/models/recipe_interface_list.py pollination_sdk/models/recipe_package.py pollination_sdk/models/recipe_package_list.py +pollination_sdk/models/report_cad_license_usage.py +pollination_sdk/models/report_compute_usage.py +pollination_sdk/models/report_organization_member_usage.py pollination_sdk/models/repository.py pollination_sdk/models/repository_access_policy.py pollination_sdk/models/repository_access_policy_list.py @@ -498,6 +555,7 @@ pollination_sdk/models/repository_sort_key.py pollination_sdk/models/repository_update.py pollination_sdk/models/repository_user_permissions.py pollination_sdk/models/resources_duration.py +pollination_sdk/models/response_get_package_json.py pollination_sdk/models/retry_config.py pollination_sdk/models/role_enum.py pollination_sdk/models/run.py @@ -505,13 +563,17 @@ pollination_sdk/models/run_list.py pollination_sdk/models/run_meta.py pollination_sdk/models/run_progress.py pollination_sdk/models/run_result_list.py +pollination_sdk/models/run_result_list_resources_inner_inner.py pollination_sdk/models/run_status.py pollination_sdk/models/run_status_enum.py +pollination_sdk/models/run_status_inputs_inner.py +pollination_sdk/models/run_status_outputs_inner.py pollination_sdk/models/s3.py pollination_sdk/models/s3_upload_request.py pollination_sdk/models/scripting_languages.py pollination_sdk/models/sdk_enum.py pollination_sdk/models/sort_enum.py +pollination_sdk/models/source.py pollination_sdk/models/status_type.py pollination_sdk/models/step_array_input.py pollination_sdk/models/step_array_output.py @@ -534,6 +596,7 @@ pollination_sdk/models/step_status.py pollination_sdk/models/step_status_enum.py pollination_sdk/models/step_string_input.py pollination_sdk/models/step_string_output.py +pollination_sdk/models/subject.py pollination_sdk/models/subject_type.py pollination_sdk/models/subscription.py pollination_sdk/models/subscription_create.py @@ -566,11 +629,14 @@ pollination_sdk/models/user_public.py pollination_sdk/models/user_public_list.py pollination_sdk/models/user_update.py pollination_sdk/models/validation_error.py +pollination_sdk/models/validation_error_loc_inner.py pollination_sdk/models/value_file_reference.py pollination_sdk/models/value_folder_reference.py pollination_sdk/models/value_list_reference.py pollination_sdk/models/value_reference.py +pollination_sdk/py.typed pollination_sdk/rest.py +pyproject.toml requirements.txt setup.cfg setup.py @@ -601,12 +667,12 @@ test/test_application_version_list.py test/test_applications_api.py test/test_artifacts_api.py test/test_baked_recipe.py +test/test_baked_recipe_templates_inner.py test/test_billing_info.py test/test_billing_option.py -test/test_body_cython_function_or_method_owner_plugins_post.py -test/test_body_post_recipe_owner_recipes_post.py test/test_build_status.py test/test_build_status_enum.py +test/test_cad_license_usage.py test/test_card_type.py test/test_cloud_job.py test/test_cloud_job_list.py @@ -614,8 +680,10 @@ test/test_created_content.py test/test_dag.py test/test_dag_array_input.py test/test_dag_array_input_alias.py +test/test_dag_array_input_alias_inner.py test/test_dag_array_output.py test/test_dag_array_output_alias.py +test/test_dag_array_output_alias_inner.py test/test_dag_boolean_input.py test/test_dag_boolean_input_alias.py test/test_dag_boolean_output.py @@ -632,6 +700,7 @@ test/test_dag_generic_input.py test/test_dag_generic_input_alias.py test/test_dag_generic_output.py test/test_dag_generic_output_alias.py +test/test_dag_inputs_inner.py test/test_dag_integer_input.py test/test_dag_integer_input_alias.py test/test_dag_integer_output.py @@ -642,6 +711,7 @@ test/test_dag_number_input.py test/test_dag_number_input_alias.py test/test_dag_number_output.py test/test_dag_number_output_alias.py +test/test_dag_outputs_inner.py test/test_dag_path_input.py test/test_dag_path_input_alias.py test/test_dag_path_output.py @@ -651,20 +721,29 @@ test/test_dag_string_input_alias.py test/test_dag_string_output.py test/test_dag_string_output_alias.py test/test_dag_task.py +test/test_dag_task_arguments_inner.py test/test_dag_task_loop.py +test/test_dag_task_returns_inner.py test/test_dagjson_object_input.py test/test_dagjson_object_input_alias.py test/test_dagjson_object_output.py test/test_dagjson_object_output_alias.py test/test_daily_usage.py +test/test_default.py test/test_dependency.py test/test_dependency_kind.py test/test_deployment_config.py +test/test_deployment_config_update.py test/test_docker_config.py test/test_file_meta.py test/test_file_meta_list.py test/test_file_reference.py test/test_folder_reference.py +test/test_from1.py +test/test_from2.py +test/test_from3.py +test/test_from4.py +test/test_from5.py test/test_function.py test/test_function_array_input.py test/test_function_array_output.py @@ -674,12 +753,14 @@ test/test_function_file_input.py test/test_function_file_output.py test/test_function_folder_input.py test/test_function_folder_output.py +test/test_function_inputs_inner.py test/test_function_integer_input.py test/test_function_integer_output.py test/test_function_json_object_input.py test/test_function_json_object_output.py test/test_function_number_input.py test/test_function_number_output.py +test/test_function_outputs_inner.py test/test_function_path_input.py test/test_function_path_output.py test/test_function_string_input.py @@ -695,6 +776,8 @@ test/test_item_reference.py test/test_item_type.py test/test_job.py test/test_job_argument.py +test/test_job_arguments_inner_inner.py +test/test_job_compute_usage.py test/test_job_path_argument.py test/test_job_status.py test/test_job_status_enum.py @@ -714,8 +797,10 @@ test/test_licenses_api.py test/test_local_config.py test/test_location.py test/test_maintainer.py +test/test_manifest.py test/test_meta_data.py test/test_metadata.py +test/test_model_from.py test/test_new_application_version.py test/test_new_plugin_package.py test/test_new_recipe_package.py @@ -724,6 +809,7 @@ test/test_organization_create.py test/test_organization_list.py test/test_organization_member.py test/test_organization_member_list.py +test/test_organization_member_usage.py test/test_organization_role_enum.py test/test_organization_update.py test/test_orgs_api.py @@ -766,6 +852,10 @@ test/test_recipe_package.py test/test_recipe_package_list.py test/test_recipes_api.py test/test_registries_api.py +test/test_report_cad_license_usage.py +test/test_report_compute_usage.py +test/test_report_organization_member_usage.py +test/test_reports_api.py test/test_repository.py test/test_repository_access_policy.py test/test_repository_access_policy_list.py @@ -778,6 +868,7 @@ test/test_repository_sort_key.py test/test_repository_update.py test/test_repository_user_permissions.py test/test_resources_duration.py +test/test_response_get_package_json.py test/test_retry_config.py test/test_role_enum.py test/test_run.py @@ -785,14 +876,18 @@ test/test_run_list.py test/test_run_meta.py test/test_run_progress.py test/test_run_result_list.py +test/test_run_result_list_resources_inner_inner.py test/test_run_status.py test/test_run_status_enum.py +test/test_run_status_inputs_inner.py +test/test_run_status_outputs_inner.py test/test_runs_api.py test/test_s3.py test/test_s3_upload_request.py test/test_scripting_languages.py test/test_sdk_enum.py test/test_sort_enum.py +test/test_source.py test/test_status_type.py test/test_step_array_input.py test/test_step_array_output.py @@ -815,6 +910,7 @@ test/test_step_status.py test/test_step_status_enum.py test/test_step_string_input.py test/test_step_string_output.py +test/test_subject.py test/test_subject_type.py test/test_subscription.py test/test_subscription_create.py @@ -852,6 +948,7 @@ test/test_user_public_list.py test/test_user_update.py test/test_users_api.py test/test_validation_error.py +test/test_validation_error_loc_inner.py test/test_value_file_reference.py test/test_value_folder_reference.py test/test_value_list_reference.py diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index d99e7162d..1985849fb 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -5.0.0-SNAPSHOT \ No newline at end of file +7.7.0 diff --git a/.travis.yml b/.travis.yml index f8b7aa2fc..2edc0c1af 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,17 @@ # ref: https://docs.travis-ci.com/user/languages/python language: python python: - - "2.7" - - "3.2" - - "3.3" - - "3.4" - - "3.5" - - "3.6" - "3.7" - "3.8" + - "3.9" + - "3.10" + - "3.11" + # uncomment the following if needed + #- "3.11-dev" # 3.11 development branch + #- "nightly" # nightly build # command to install dependencies install: - "pip install -r requirements.txt" - "pip install -r test-requirements.txt" # command to run tests -script: nosetests +script: pytest --cov=pollination_sdk diff --git a/README.md b/README.md index 056363cf2..b8954945a 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Pollination Server OpenAPI Definition This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.0.0 +- API version: 1.6.0 - Package version: 1.0.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://pollination.cloud](https://pollination.cloud) @@ -64,7 +64,7 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List Users - api_response = api_instance.list_users(search=search, page=page, per_page=per_page) + api_response = api_instance.list_users(search=searchpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling UsersApi->list_users: %s\n" % e) @@ -82,6 +82,7 @@ Class | Method | HTTP request | Description *APITokensApi* | [**list_tokens**](https://github.com/pollination/python-sdk/blob/master/docs/APITokensApi.md#list_tokens) | **GET** /tokens | List user API tokens *APITokensApi* | [**regenerate_token**](https://github.com/pollination/python-sdk/blob/master/docs/APITokensApi.md#regenerate_token) | **PUT** /tokens/{token_id} | Regenerate an API token *AccountsApi* | [**check_account_name**](https://github.com/pollination/python-sdk/blob/master/docs/AccountsApi.md#check_account_name) | **GET** /accounts/check/{name} | Check if an account with this name exists +*AccountsApi* | [**delete_account**](https://github.com/pollination/python-sdk/blob/master/docs/AccountsApi.md#delete_account) | **DELETE** /accounts/{name} | Delete an account *AccountsApi* | [**get_account**](https://github.com/pollination/python-sdk/blob/master/docs/AccountsApi.md#get_account) | **GET** /accounts/{name} | Get an account by name *AccountsApi* | [**list_accounts**](https://github.com/pollination/python-sdk/blob/master/docs/AccountsApi.md#list_accounts) | **GET** /accounts | List Accounts on the Pollination platform *AccountsApi* | [**list_quotas**](https://github.com/pollination/python-sdk/blob/master/docs/AccountsApi.md#list_quotas) | **GET** /accounts/{name}/quotas | List Quotas @@ -94,7 +95,9 @@ Class | Method | HTTP request | Description *ApplicationsApi* | [**get_application_deployment**](https://github.com/pollination/python-sdk/blob/master/docs/ApplicationsApi.md#get_application_deployment) | **GET** /applications/{owner}/{slug}/deployment | Get application deployment *ApplicationsApi* | [**get_application_versions**](https://github.com/pollination/python-sdk/blob/master/docs/ApplicationsApi.md#get_application_versions) | **GET** /applications/{owner}/{slug}/versions | Get application versions *ApplicationsApi* | [**list_applications**](https://github.com/pollination/python-sdk/blob/master/docs/ApplicationsApi.md#list_applications) | **GET** /applications | List Applications +*ApplicationsApi* | [**restart_application_deployment**](https://github.com/pollination/python-sdk/blob/master/docs/ApplicationsApi.md#restart_application_deployment) | **DELETE** /applications/{owner}/{slug}/deployment | Restart application deployment *ApplicationsApi* | [**update_application**](https://github.com/pollination/python-sdk/blob/master/docs/ApplicationsApi.md#update_application) | **PUT** /applications/{owner}/{slug} | Update a Application +*ApplicationsApi* | [**upload_version_package**](https://github.com/pollination/python-sdk/blob/master/docs/ApplicationsApi.md#upload_version_package) | **POST** /applications/{owner}/{slug}/versions/{tag} | Upload the build package for the application version *ApplicationsApi* | [**upsert_application_permission**](https://github.com/pollination/python-sdk/blob/master/docs/ApplicationsApi.md#upsert_application_permission) | **PATCH** /applications/{owner}/{slug}/permissions | Upsert a new permission to a application *ApplicationsApi* | [**upsert_application_version**](https://github.com/pollination/python-sdk/blob/master/docs/ApplicationsApi.md#upsert_application_version) | **PATCH** /applications/{owner}/{slug}/versions | Upsert a new version to a application *ArtifactsApi* | [**create_artifact**](https://github.com/pollination/python-sdk/blob/master/docs/ArtifactsApi.md#create_artifact) | **POST** /projects/{owner}/{name}/artifacts | Get an Artifact upload link. @@ -144,7 +147,8 @@ Class | Method | HTTP request | Description *ProjectsApi* | [**get_project**](https://github.com/pollination/python-sdk/blob/master/docs/ProjectsApi.md#get_project) | **GET** /projects/{owner}/{name} | Get a project *ProjectsApi* | [**get_project_access_permissions**](https://github.com/pollination/python-sdk/blob/master/docs/ProjectsApi.md#get_project_access_permissions) | **GET** /projects/{owner}/{name}/permissions | Get project access permissions *ProjectsApi* | [**get_project_recipe_filters**](https://github.com/pollination/python-sdk/blob/master/docs/ProjectsApi.md#get_project_recipe_filters) | **GET** /projects/{owner}/{name}/recipes/filters | Get project recipe filters -*ProjectsApi* | [**get_project_recipes**](https://github.com/pollination/python-sdk/blob/master/docs/ProjectsApi.md#get_project_recipes) | **GET** /projects/{owner}/{name}/recipes | Get project recipes +*ProjectsApi* | [**get_project_recipe_repositories**](https://github.com/pollination/python-sdk/blob/master/docs/ProjectsApi.md#get_project_recipe_repositories) | **GET** /projects/{owner}/{name}/recipes/repositories | Get project recipe repositories +*ProjectsApi* | [**get_project_recipes**](https://github.com/pollination/python-sdk/blob/master/docs/ProjectsApi.md#get_project_recipes) | **GET** /projects/{owner}/{name}/recipes | Get project recipe versions *ProjectsApi* | [**list_projects**](https://github.com/pollination/python-sdk/blob/master/docs/ProjectsApi.md#list_projects) | **GET** /projects | List Projects *ProjectsApi* | [**update**](https://github.com/pollination/python-sdk/blob/master/docs/ProjectsApi.md#update) | **PUT** /projects/{owner}/{name} | Update a Project *ProjectsApi* | [**upsert_project_permission**](https://github.com/pollination/python-sdk/blob/master/docs/ProjectsApi.md#upsert_project_permission) | **PATCH** /projects/{owner}/{name}/permissions | Upsert a new permission to a project @@ -164,6 +168,9 @@ Class | Method | HTTP request | Description *RegistriesApi* | [**get_registry_index**](https://github.com/pollination/python-sdk/blob/master/docs/RegistriesApi.md#get_registry_index) | **GET** /registries/{owner}/index.json | Get Registry Index *RegistriesApi* | [**post_plugin**](https://github.com/pollination/python-sdk/blob/master/docs/RegistriesApi.md#post_plugin) | **POST** /registries/{owner}/plugins | Push a plugin to the registry *RegistriesApi* | [**post_recipe**](https://github.com/pollination/python-sdk/blob/master/docs/RegistriesApi.md#post_recipe) | **POST** /registries/{owner}/recipes | Push an Recipe to the registry +*ReportsApi* | [**get_cad_license_usage_report**](https://github.com/pollination/python-sdk/blob/master/docs/ReportsApi.md#get_cad_license_usage_report) | **GET** /reports/{name}/cad-license-usage | Get CAD license usage report for an account +*ReportsApi* | [**get_compute_usage_report**](https://github.com/pollination/python-sdk/blob/master/docs/ReportsApi.md#get_compute_usage_report) | **GET** /reports/{name}/compute-usage | Get compute usage report for an account +*ReportsApi* | [**get_org_member_usage_report**](https://github.com/pollination/python-sdk/blob/master/docs/ReportsApi.md#get_org_member_usage_report) | **GET** /reports/{name}/organization-member-usage | Get organization member usage report for an organization account *RunsApi* | [**cancel_run**](https://github.com/pollination/python-sdk/blob/master/docs/RunsApi.md#cancel_run) | **PUT** /projects/{owner}/{name}/runs/{run_id}/cancel | Cancel a run *RunsApi* | [**download_run_artifact**](https://github.com/pollination/python-sdk/blob/master/docs/RunsApi.md#download_run_artifact) | **GET** /projects/{owner}/{name}/runs/{run_id}/artifacts/download | Download an artifact from the run folder *RunsApi* | [**get_all_run_steps**](https://github.com/pollination/python-sdk/blob/master/docs/RunsApi.md#get_all_run_steps) | **GET** /projects/{owner}/{name}/runs/{run_id}/all-steps | Query the steps of a run @@ -224,12 +231,12 @@ Class | Method | HTTP request | Description - [ApplicationVersion](https://github.com/pollination/python-sdk/blob/master/docs/ApplicationVersion.md) - [ApplicationVersionList](https://github.com/pollination/python-sdk/blob/master/docs/ApplicationVersionList.md) - [BakedRecipe](https://github.com/pollination/python-sdk/blob/master/docs/BakedRecipe.md) + - [BakedRecipeTemplatesInner](https://github.com/pollination/python-sdk/blob/master/docs/BakedRecipeTemplatesInner.md) - [BillingInfo](https://github.com/pollination/python-sdk/blob/master/docs/BillingInfo.md) - [BillingOption](https://github.com/pollination/python-sdk/blob/master/docs/BillingOption.md) - - [BodyCythonFunctionOrMethodOwnerPluginsPost](https://github.com/pollination/python-sdk/blob/master/docs/BodyCythonFunctionOrMethodOwnerPluginsPost.md) - - [BodyPostRecipeOwnerRecipesPost](https://github.com/pollination/python-sdk/blob/master/docs/BodyPostRecipeOwnerRecipesPost.md) - [BuildStatus](https://github.com/pollination/python-sdk/blob/master/docs/BuildStatus.md) - [BuildStatusEnum](https://github.com/pollination/python-sdk/blob/master/docs/BuildStatusEnum.md) + - [CADLicenseUsage](https://github.com/pollination/python-sdk/blob/master/docs/CADLicenseUsage.md) - [CardType](https://github.com/pollination/python-sdk/blob/master/docs/CardType.md) - [CloudJob](https://github.com/pollination/python-sdk/blob/master/docs/CloudJob.md) - [CloudJobList](https://github.com/pollination/python-sdk/blob/master/docs/CloudJobList.md) @@ -237,8 +244,10 @@ Class | Method | HTTP request | Description - [DAG](https://github.com/pollination/python-sdk/blob/master/docs/DAG.md) - [DAGArrayInput](https://github.com/pollination/python-sdk/blob/master/docs/DAGArrayInput.md) - [DAGArrayInputAlias](https://github.com/pollination/python-sdk/blob/master/docs/DAGArrayInputAlias.md) + - [DAGArrayInputAliasInner](https://github.com/pollination/python-sdk/blob/master/docs/DAGArrayInputAliasInner.md) - [DAGArrayOutput](https://github.com/pollination/python-sdk/blob/master/docs/DAGArrayOutput.md) - [DAGArrayOutputAlias](https://github.com/pollination/python-sdk/blob/master/docs/DAGArrayOutputAlias.md) + - [DAGArrayOutputAliasInner](https://github.com/pollination/python-sdk/blob/master/docs/DAGArrayOutputAliasInner.md) - [DAGBooleanInput](https://github.com/pollination/python-sdk/blob/master/docs/DAGBooleanInput.md) - [DAGBooleanInputAlias](https://github.com/pollination/python-sdk/blob/master/docs/DAGBooleanInputAlias.md) - [DAGBooleanOutput](https://github.com/pollination/python-sdk/blob/master/docs/DAGBooleanOutput.md) @@ -255,6 +264,7 @@ Class | Method | HTTP request | Description - [DAGGenericInputAlias](https://github.com/pollination/python-sdk/blob/master/docs/DAGGenericInputAlias.md) - [DAGGenericOutput](https://github.com/pollination/python-sdk/blob/master/docs/DAGGenericOutput.md) - [DAGGenericOutputAlias](https://github.com/pollination/python-sdk/blob/master/docs/DAGGenericOutputAlias.md) + - [DAGInputsInner](https://github.com/pollination/python-sdk/blob/master/docs/DAGInputsInner.md) - [DAGIntegerInput](https://github.com/pollination/python-sdk/blob/master/docs/DAGIntegerInput.md) - [DAGIntegerInputAlias](https://github.com/pollination/python-sdk/blob/master/docs/DAGIntegerInputAlias.md) - [DAGIntegerOutput](https://github.com/pollination/python-sdk/blob/master/docs/DAGIntegerOutput.md) @@ -269,6 +279,7 @@ Class | Method | HTTP request | Description - [DAGNumberInputAlias](https://github.com/pollination/python-sdk/blob/master/docs/DAGNumberInputAlias.md) - [DAGNumberOutput](https://github.com/pollination/python-sdk/blob/master/docs/DAGNumberOutput.md) - [DAGNumberOutputAlias](https://github.com/pollination/python-sdk/blob/master/docs/DAGNumberOutputAlias.md) + - [DAGOutputsInner](https://github.com/pollination/python-sdk/blob/master/docs/DAGOutputsInner.md) - [DAGPathInput](https://github.com/pollination/python-sdk/blob/master/docs/DAGPathInput.md) - [DAGPathInputAlias](https://github.com/pollination/python-sdk/blob/master/docs/DAGPathInputAlias.md) - [DAGPathOutput](https://github.com/pollination/python-sdk/blob/master/docs/DAGPathOutput.md) @@ -278,16 +289,25 @@ Class | Method | HTTP request | Description - [DAGStringOutput](https://github.com/pollination/python-sdk/blob/master/docs/DAGStringOutput.md) - [DAGStringOutputAlias](https://github.com/pollination/python-sdk/blob/master/docs/DAGStringOutputAlias.md) - [DAGTask](https://github.com/pollination/python-sdk/blob/master/docs/DAGTask.md) + - [DAGTaskArgumentsInner](https://github.com/pollination/python-sdk/blob/master/docs/DAGTaskArgumentsInner.md) - [DAGTaskLoop](https://github.com/pollination/python-sdk/blob/master/docs/DAGTaskLoop.md) + - [DAGTaskReturnsInner](https://github.com/pollination/python-sdk/blob/master/docs/DAGTaskReturnsInner.md) - [DailyUsage](https://github.com/pollination/python-sdk/blob/master/docs/DailyUsage.md) + - [Default](https://github.com/pollination/python-sdk/blob/master/docs/Default.md) - [Dependency](https://github.com/pollination/python-sdk/blob/master/docs/Dependency.md) - [DependencyKind](https://github.com/pollination/python-sdk/blob/master/docs/DependencyKind.md) - [DeploymentConfig](https://github.com/pollination/python-sdk/blob/master/docs/DeploymentConfig.md) + - [DeploymentConfigUpdate](https://github.com/pollination/python-sdk/blob/master/docs/DeploymentConfigUpdate.md) - [DockerConfig](https://github.com/pollination/python-sdk/blob/master/docs/DockerConfig.md) - [FileMeta](https://github.com/pollination/python-sdk/blob/master/docs/FileMeta.md) - [FileMetaList](https://github.com/pollination/python-sdk/blob/master/docs/FileMetaList.md) - [FileReference](https://github.com/pollination/python-sdk/blob/master/docs/FileReference.md) - [FolderReference](https://github.com/pollination/python-sdk/blob/master/docs/FolderReference.md) + - [From1](https://github.com/pollination/python-sdk/blob/master/docs/From1.md) + - [From2](https://github.com/pollination/python-sdk/blob/master/docs/From2.md) + - [From3](https://github.com/pollination/python-sdk/blob/master/docs/From3.md) + - [From4](https://github.com/pollination/python-sdk/blob/master/docs/From4.md) + - [From5](https://github.com/pollination/python-sdk/blob/master/docs/From5.md) - [Function](https://github.com/pollination/python-sdk/blob/master/docs/Function.md) - [FunctionArrayInput](https://github.com/pollination/python-sdk/blob/master/docs/FunctionArrayInput.md) - [FunctionArrayOutput](https://github.com/pollination/python-sdk/blob/master/docs/FunctionArrayOutput.md) @@ -297,12 +317,14 @@ Class | Method | HTTP request | Description - [FunctionFileOutput](https://github.com/pollination/python-sdk/blob/master/docs/FunctionFileOutput.md) - [FunctionFolderInput](https://github.com/pollination/python-sdk/blob/master/docs/FunctionFolderInput.md) - [FunctionFolderOutput](https://github.com/pollination/python-sdk/blob/master/docs/FunctionFolderOutput.md) + - [FunctionInputsInner](https://github.com/pollination/python-sdk/blob/master/docs/FunctionInputsInner.md) - [FunctionIntegerInput](https://github.com/pollination/python-sdk/blob/master/docs/FunctionIntegerInput.md) - [FunctionIntegerOutput](https://github.com/pollination/python-sdk/blob/master/docs/FunctionIntegerOutput.md) - [FunctionJSONObjectInput](https://github.com/pollination/python-sdk/blob/master/docs/FunctionJSONObjectInput.md) - [FunctionJSONObjectOutput](https://github.com/pollination/python-sdk/blob/master/docs/FunctionJSONObjectOutput.md) - [FunctionNumberInput](https://github.com/pollination/python-sdk/blob/master/docs/FunctionNumberInput.md) - [FunctionNumberOutput](https://github.com/pollination/python-sdk/blob/master/docs/FunctionNumberOutput.md) + - [FunctionOutputsInner](https://github.com/pollination/python-sdk/blob/master/docs/FunctionOutputsInner.md) - [FunctionPathInput](https://github.com/pollination/python-sdk/blob/master/docs/FunctionPathInput.md) - [FunctionPathOutput](https://github.com/pollination/python-sdk/blob/master/docs/FunctionPathOutput.md) - [FunctionStringInput](https://github.com/pollination/python-sdk/blob/master/docs/FunctionStringInput.md) @@ -318,6 +340,8 @@ Class | Method | HTTP request | Description - [ItemType](https://github.com/pollination/python-sdk/blob/master/docs/ItemType.md) - [Job](https://github.com/pollination/python-sdk/blob/master/docs/Job.md) - [JobArgument](https://github.com/pollination/python-sdk/blob/master/docs/JobArgument.md) + - [JobArgumentsInnerInner](https://github.com/pollination/python-sdk/blob/master/docs/JobArgumentsInnerInner.md) + - [JobComputeUsage](https://github.com/pollination/python-sdk/blob/master/docs/JobComputeUsage.md) - [JobPathArgument](https://github.com/pollination/python-sdk/blob/master/docs/JobPathArgument.md) - [JobStatus](https://github.com/pollination/python-sdk/blob/master/docs/JobStatus.md) - [JobStatusEnum](https://github.com/pollination/python-sdk/blob/master/docs/JobStatusEnum.md) @@ -335,8 +359,10 @@ Class | Method | HTTP request | Description - [LocalConfig](https://github.com/pollination/python-sdk/blob/master/docs/LocalConfig.md) - [Location](https://github.com/pollination/python-sdk/blob/master/docs/Location.md) - [Maintainer](https://github.com/pollination/python-sdk/blob/master/docs/Maintainer.md) + - [Manifest](https://github.com/pollination/python-sdk/blob/master/docs/Manifest.md) - [MetaData](https://github.com/pollination/python-sdk/blob/master/docs/MetaData.md) - [Metadata](https://github.com/pollination/python-sdk/blob/master/docs/Metadata.md) + - [ModelFrom](https://github.com/pollination/python-sdk/blob/master/docs/ModelFrom.md) - [NewApplicationVersion](https://github.com/pollination/python-sdk/blob/master/docs/NewApplicationVersion.md) - [NewPluginPackage](https://github.com/pollination/python-sdk/blob/master/docs/NewPluginPackage.md) - [NewRecipePackage](https://github.com/pollination/python-sdk/blob/master/docs/NewRecipePackage.md) @@ -345,6 +371,7 @@ Class | Method | HTTP request | Description - [OrganizationList](https://github.com/pollination/python-sdk/blob/master/docs/OrganizationList.md) - [OrganizationMember](https://github.com/pollination/python-sdk/blob/master/docs/OrganizationMember.md) - [OrganizationMemberList](https://github.com/pollination/python-sdk/blob/master/docs/OrganizationMemberList.md) + - [OrganizationMemberUsage](https://github.com/pollination/python-sdk/blob/master/docs/OrganizationMemberUsage.md) - [OrganizationRoleEnum](https://github.com/pollination/python-sdk/blob/master/docs/OrganizationRoleEnum.md) - [OrganizationUpdate](https://github.com/pollination/python-sdk/blob/master/docs/OrganizationUpdate.md) - [PackageSortKey](https://github.com/pollination/python-sdk/blob/master/docs/PackageSortKey.md) @@ -382,6 +409,9 @@ Class | Method | HTTP request | Description - [RecipeInterfaceList](https://github.com/pollination/python-sdk/blob/master/docs/RecipeInterfaceList.md) - [RecipePackage](https://github.com/pollination/python-sdk/blob/master/docs/RecipePackage.md) - [RecipePackageList](https://github.com/pollination/python-sdk/blob/master/docs/RecipePackageList.md) + - [ReportCADLicenseUsage](https://github.com/pollination/python-sdk/blob/master/docs/ReportCADLicenseUsage.md) + - [ReportComputeUsage](https://github.com/pollination/python-sdk/blob/master/docs/ReportComputeUsage.md) + - [ReportOrganizationMemberUsage](https://github.com/pollination/python-sdk/blob/master/docs/ReportOrganizationMemberUsage.md) - [Repository](https://github.com/pollination/python-sdk/blob/master/docs/Repository.md) - [RepositoryAccessPolicy](https://github.com/pollination/python-sdk/blob/master/docs/RepositoryAccessPolicy.md) - [RepositoryAccessPolicyList](https://github.com/pollination/python-sdk/blob/master/docs/RepositoryAccessPolicyList.md) @@ -394,6 +424,7 @@ Class | Method | HTTP request | Description - [RepositoryUpdate](https://github.com/pollination/python-sdk/blob/master/docs/RepositoryUpdate.md) - [RepositoryUserPermissions](https://github.com/pollination/python-sdk/blob/master/docs/RepositoryUserPermissions.md) - [ResourcesDuration](https://github.com/pollination/python-sdk/blob/master/docs/ResourcesDuration.md) + - [ResponseGetPackageJson](https://github.com/pollination/python-sdk/blob/master/docs/ResponseGetPackageJson.md) - [RetryConfig](https://github.com/pollination/python-sdk/blob/master/docs/RetryConfig.md) - [RoleEnum](https://github.com/pollination/python-sdk/blob/master/docs/RoleEnum.md) - [Run](https://github.com/pollination/python-sdk/blob/master/docs/Run.md) @@ -401,13 +432,17 @@ Class | Method | HTTP request | Description - [RunMeta](https://github.com/pollination/python-sdk/blob/master/docs/RunMeta.md) - [RunProgress](https://github.com/pollination/python-sdk/blob/master/docs/RunProgress.md) - [RunResultList](https://github.com/pollination/python-sdk/blob/master/docs/RunResultList.md) + - [RunResultListResourcesInnerInner](https://github.com/pollination/python-sdk/blob/master/docs/RunResultListResourcesInnerInner.md) - [RunStatus](https://github.com/pollination/python-sdk/blob/master/docs/RunStatus.md) - [RunStatusEnum](https://github.com/pollination/python-sdk/blob/master/docs/RunStatusEnum.md) + - [RunStatusInputsInner](https://github.com/pollination/python-sdk/blob/master/docs/RunStatusInputsInner.md) + - [RunStatusOutputsInner](https://github.com/pollination/python-sdk/blob/master/docs/RunStatusOutputsInner.md) - [S3](https://github.com/pollination/python-sdk/blob/master/docs/S3.md) - [S3UploadRequest](https://github.com/pollination/python-sdk/blob/master/docs/S3UploadRequest.md) - [SDKEnum](https://github.com/pollination/python-sdk/blob/master/docs/SDKEnum.md) - [ScriptingLanguages](https://github.com/pollination/python-sdk/blob/master/docs/ScriptingLanguages.md) - [SortEnum](https://github.com/pollination/python-sdk/blob/master/docs/SortEnum.md) + - [Source](https://github.com/pollination/python-sdk/blob/master/docs/Source.md) - [StatusType](https://github.com/pollination/python-sdk/blob/master/docs/StatusType.md) - [StepArrayInput](https://github.com/pollination/python-sdk/blob/master/docs/StepArrayInput.md) - [StepArrayOutput](https://github.com/pollination/python-sdk/blob/master/docs/StepArrayOutput.md) @@ -430,6 +465,7 @@ Class | Method | HTTP request | Description - [StepStatusEnum](https://github.com/pollination/python-sdk/blob/master/docs/StepStatusEnum.md) - [StepStringInput](https://github.com/pollination/python-sdk/blob/master/docs/StepStringInput.md) - [StepStringOutput](https://github.com/pollination/python-sdk/blob/master/docs/StepStringOutput.md) + - [Subject](https://github.com/pollination/python-sdk/blob/master/docs/Subject.md) - [SubjectType](https://github.com/pollination/python-sdk/blob/master/docs/SubjectType.md) - [Subscription](https://github.com/pollination/python-sdk/blob/master/docs/Subscription.md) - [SubscriptionCreate](https://github.com/pollination/python-sdk/blob/master/docs/SubscriptionCreate.md) @@ -462,6 +498,7 @@ Class | Method | HTTP request | Description - [UserPublicList](https://github.com/pollination/python-sdk/blob/master/docs/UserPublicList.md) - [UserUpdate](https://github.com/pollination/python-sdk/blob/master/docs/UserUpdate.md) - [ValidationError](https://github.com/pollination/python-sdk/blob/master/docs/ValidationError.md) + - [ValidationErrorLocInner](https://github.com/pollination/python-sdk/blob/master/docs/ValidationErrorLocInner.md) - [ValueFileReference](https://github.com/pollination/python-sdk/blob/master/docs/ValueFileReference.md) - [ValueFolderReference](https://github.com/pollination/python-sdk/blob/master/docs/ValueFolderReference.md) - [ValueListReference](https://github.com/pollination/python-sdk/blob/master/docs/ValueListReference.md) @@ -486,5 +523,22 @@ Class | Method | HTTP request | Description ## Author info@pollination.cloud +info@pollination.cloud +info@pollination.cloud +info@pollination.cloud +info@pollination.cloud +info@pollination.cloud +info@pollination.cloud +info@pollination.cloud +info@pollination.cloud +info@pollination.cloud +info@pollination.cloud +info@pollination.cloud +info@pollination.cloud +info@pollination.cloud +info@pollination.cloud +info@pollination.cloud +info@pollination.cloud +info@pollination.cloud diff --git a/docs/APIToken.md b/docs/APIToken.md index 616225538..be7351262 100644 --- a/docs/APIToken.md +++ b/docs/APIToken.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**claims** | **dict(str, str)** | Key value pairs of auth claims the API token is entitled to | [optional] +**claims** | **Dict[str, str]** | Key value pairs of auth claims the API token is entitled to | [optional] **name** | **str** | The user friendly name of the API token | **token_id** | **str** | The unique ID of this API token | diff --git a/docs/APITokenCreate.md b/docs/APITokenCreate.md index 5b5f251a6..2bd6d5059 100644 --- a/docs/APITokenCreate.md +++ b/docs/APITokenCreate.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**claims** | **dict(str, str)** | Key value pairs of auth claims the API token is entitled to | [optional] +**claims** | **Dict[str, str]** | Key value pairs of auth claims the API token is entitled to | [optional] **name** | **str** | The user friendly name of the API token | **token_id** | **str** | The unique ID of this API token | diff --git a/docs/APITokenList.md b/docs/APITokenList.md index 1436d5afa..579dc782c 100644 --- a/docs/APITokenList.md +++ b/docs/APITokenList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[APIToken]**](APIToken.md) | | +**resources** | [**List[APIToken]**](APIToken.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/APITokenPrivate.md b/docs/APITokenPrivate.md index bbbfe78ac..8401c1b39 100644 --- a/docs/APITokenPrivate.md +++ b/docs/APITokenPrivate.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**claims** | **dict(str, str)** | Key value pairs of auth claims the API token is entitled to | [optional] +**claims** | **Dict[str, str]** | Key value pairs of auth claims the API token is entitled to | [optional] **name** | **str** | The user friendly name of the API token | **token** | **str** | The decoded API token | **token_id** | **str** | The unique ID of this API token | diff --git a/docs/APITokensApi.md b/docs/APITokensApi.md index 0ffa2e6ed..789909412 100644 --- a/docs/APITokensApi.md +++ b/docs/APITokensApi.md @@ -157,7 +157,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_tokens** -> APITokenList list_tokens(page=page, per_page=per_page) +> APITokenList list_tokens(page=pageper_page=per_page) List user API tokens @@ -197,7 +197,7 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List user API tokens - api_response = api_instance.list_tokens(page=page, per_page=per_page) + api_response = api_instance.list_tokens(page=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling APITokensApi->list_tokens: %s\n" % e) diff --git a/docs/Accessor.md b/docs/Accessor.md index 2c19ec5c2..8649181e1 100644 --- a/docs/Accessor.md +++ b/docs/Accessor.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **permission** | [**Permission**](Permission.md) | | -**subject** | [**AnyOfAccountPublicTeam**](AnyOfAccountPublicTeam.md) | | +**subject** | [**Subject**](Subject.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AccountsApi.md b/docs/AccountsApi.md index ff52dede5..c5b5af178 100644 --- a/docs/AccountsApi.md +++ b/docs/AccountsApi.md @@ -5,6 +5,7 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- [**check_account_name**](AccountsApi.md#check_account_name) | **GET** /accounts/check/{name} | Check if an account with this name exists +[**delete_account**](AccountsApi.md#delete_account) | **DELETE** /accounts/{name} | Delete an account [**get_account**](AccountsApi.md#get_account) | **GET** /accounts/{name} | Get an account by name [**list_accounts**](AccountsApi.md#list_accounts) | **GET** /accounts | List Accounts on the Pollination platform [**list_quotas**](AccountsApi.md#list_quotas) | **GET** /accounts/{name}/quotas | List Quotas @@ -67,6 +68,134 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_account** +> delete_account(name) + +Delete an account + +Delete an account + +### Example + +* Bearer (JWT) Authentication (JWTAuth): +```python +from __future__ import print_function +import time +import pollination_sdk +from pollination_sdk.rest import ApiException +from pprint import pprint + +# Retrieve a temporary Acces Token (JWT) using your API token +API_TOKEN = 'some-token-string' + +auth = pollination_sdk.UserApi() +api_token = pollination_sdk.LoginDto( + api_token=API_TOKEN +) + +auth_response = auth.login(api_token) + +# Configure Bearer authorization (JWT): JWTAuth +configuration = pollination_sdk.Configuration( + access_token=auth_response.access_token +) + +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with pollination_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = pollination_sdk.AccountsApi(api_client) + name = 'name_example' # str | + + try: + # Delete an account + api_instance.delete_account(name) + except ApiException as e: + print("Exception when calling AccountsApi->delete_account: %s\n" % e) +``` + +* Api Key Authentication (APIKeyAuth): +```python +from __future__ import print_function +import time +import pollination_sdk +from pollination_sdk.rest import ApiException +from pprint import pprint + +# Retrieve a temporary Acces Token (JWT) using your API token +API_TOKEN = 'some-token-string' + +auth = pollination_sdk.UserApi() +api_token = pollination_sdk.LoginDto( + api_token=API_TOKEN +) + +auth_response = auth.login(api_token) + +# Configure Bearer authorization (JWT): JWTAuth +configuration = pollination_sdk.Configuration( + access_token=auth_response.access_token +) + +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with pollination_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = pollination_sdk.AccountsApi(api_client) + name = 'name_example' # str | + + try: + # Delete an account + api_instance.delete_account(name) + except ApiException as e: + print("Exception when calling AccountsApi->delete_account: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Deleted | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_account** > AccountPublic get_account(name) @@ -125,7 +254,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_accounts** -> PublicAccountList list_accounts(search=search, type=type, role=role, page=page, per_page=per_page) +> PublicAccountList list_accounts(search=searchtype=typerole=rolepage=pageper_page=per_page) List Accounts on the Pollination platform @@ -133,7 +262,7 @@ List accounts ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -141,16 +270,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -166,6 +285,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -178,13 +307,13 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List Accounts on the Pollination platform - api_response = api_instance.list_accounts(search=search, type=type, role=role, page=page, per_page=per_page) + api_response = api_instance.list_accounts(search=searchtype=typerole=rolepage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling AccountsApi->list_accounts: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -192,16 +321,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -217,6 +336,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -229,7 +358,7 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List Accounts on the Pollination platform - api_response = api_instance.list_accounts(search=search, type=type, role=role, page=page, per_page=per_page) + api_response = api_instance.list_accounts(search=searchtype=typerole=rolepage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling AccountsApi->list_accounts: %s\n" % e) @@ -251,7 +380,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -267,13 +396,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_quotas** -> QuotaList list_quotas(name, type=type, exhausted=exhausted, enforced=enforced, page=page, per_page=per_page) +> QuotaList list_quotas(nametype=typeexhausted=exhaustedenforced=enforcedpage=pageper_page=per_page) List Quotas ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -281,16 +410,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -306,12 +425,22 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.AccountsApi(api_client) name = 'name_example' # str | -type = [pollination_sdk.QuotaType()] # list[QuotaType] | The types of quotas to get (optional) +type = [pollination_sdk.QuotaType()] # List[QuotaType] | The types of quotas to get (optional) exhausted = True # bool | Whether to return only quotas which are exhausted (optional) enforced = True # bool | Whether to return only quotas which are enforced (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) @@ -319,13 +448,13 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List Quotas - api_response = api_instance.list_quotas(name, type=type, exhausted=exhausted, enforced=enforced, page=page, per_page=per_page) + api_response = api_instance.list_quotas(nametype=typeexhausted=exhaustedenforced=enforcedpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling AccountsApi->list_quotas: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -333,16 +462,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -358,12 +477,22 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.AccountsApi(api_client) name = 'name_example' # str | -type = [pollination_sdk.QuotaType()] # list[QuotaType] | The types of quotas to get (optional) +type = [pollination_sdk.QuotaType()] # List[QuotaType] | The types of quotas to get (optional) exhausted = True # bool | Whether to return only quotas which are exhausted (optional) enforced = True # bool | Whether to return only quotas which are enforced (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) @@ -371,7 +500,7 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List Quotas - api_response = api_instance.list_quotas(name, type=type, exhausted=exhausted, enforced=enforced, page=page, per_page=per_page) + api_response = api_instance.list_quotas(nametype=typeexhausted=exhaustedenforced=enforcedpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling AccountsApi->list_quotas: %s\n" % e) @@ -382,7 +511,7 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| | - **type** | [**list[QuotaType]**](QuotaType.md)| The types of quotas to get | [optional] + **type** | [**List[QuotaType]**](QuotaType.md)| The types of quotas to get | [optional] **exhausted** | **bool**| Whether to return only quotas which are exhausted | [optional] **enforced** | **bool**| Whether to return only quotas which are enforced | [optional] **page** | **int**| Page number starting from 1 | [optional] [default to 1] @@ -394,7 +523,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers diff --git a/docs/Activation.md b/docs/Activation.md index 7c16f0a3a..7dccb1fea 100644 --- a/docs/Activation.md +++ b/docs/Activation.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **lease_expires_at** | **datetime** | | [optional] **license_id** | **str** | | [optional] **location** | [**Location**](Location.md) | | -**metadata** | [**list[Metadata]**](Metadata.md) | | [optional] [default to []] +**metadata** | [**List[Metadata]**](Metadata.md) | | [optional] [default to []] **offline** | **bool** | | **os** | **str** | | [optional] **os_version** | **str** | | [optional] diff --git a/docs/ActivationList.md b/docs/ActivationList.md index 137150215..00ed7468a 100644 --- a/docs/ActivationList.md +++ b/docs/ActivationList.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**resources** | [**list[Activation]**](Activation.md) | | +**resources** | [**List[Activation]**](Activation.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Application.md b/docs/Application.md index 5ebf3016e..38340c38b 100644 --- a/docs/Application.md +++ b/docs/Application.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **id** | **str** | The application ID | **image** | **str** | An image associated with the application | [optional] [default to 'https://picsum.photos/400'] **is_paid** | **bool** | Whether or not the application is paid | [optional] [default to False] -**keywords** | **list[str]** | A list of keywords associated with the application | [optional] [default to []] +**keywords** | **List[str]** | A list of keywords associated with the application | [optional] [default to []] **license** | **str** | The license of the application | [optional] **name** | **str** | The name of the application. Must be unique to a given owner | **owner** | [**AccountPublic**](AccountPublic.md) | The application owner | diff --git a/docs/ApplicationAccessPolicyList.md b/docs/ApplicationAccessPolicyList.md index 4955f240b..de12a7b5f 100644 --- a/docs/ApplicationAccessPolicyList.md +++ b/docs/ApplicationAccessPolicyList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[ApplicationAccessPolicy]**](ApplicationAccessPolicy.md) | | +**resources** | [**List[ApplicationAccessPolicy]**](ApplicationAccessPolicy.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ApplicationCreate.md b/docs/ApplicationCreate.md index e608cd8c6..03a4dfe7f 100644 --- a/docs/ApplicationCreate.md +++ b/docs/ApplicationCreate.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **description** | **str** | A description of the application | [optional] [default to ''] **image** | **str** | An image associated with the application | [optional] [default to 'https://picsum.photos/400'] **is_paid** | **bool** | Whether or not the application is paid | [optional] [default to False] -**keywords** | **list[str]** | A list of keywords associated with the application | [optional] [default to []] +**keywords** | **List[str]** | A list of keywords associated with the application | [optional] [default to []] **license** | **str** | The license of the application | [optional] **name** | **str** | The name of the application. Must be unique to a given owner | **public** | **bool** | Whether or not a application is publicly viewable | [optional] [default to True] diff --git a/docs/ApplicationList.md b/docs/ApplicationList.md index 431805e5c..90308f639 100644 --- a/docs/ApplicationList.md +++ b/docs/ApplicationList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[Application]**](Application.md) | | +**resources** | [**List[Application]**](Application.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ApplicationUpdate.md b/docs/ApplicationUpdate.md index 94f8ddcbe..b44c3c2de 100644 --- a/docs/ApplicationUpdate.md +++ b/docs/ApplicationUpdate.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**deployment_config** | [**DeploymentConfig**](DeploymentConfig.md) | The deployment configuration for the application | [optional] +**deployment_config** | [**DeploymentConfigUpdate**](DeploymentConfigUpdate.md) | The deployment configuration for the application | [optional] **description** | **str** | A description of the application | [optional] **is_paid** | **bool** | Whether or not the application is paid | [optional] -**keywords** | **list[str]** | A list of keywords associated with the application | [optional] +**keywords** | **List[str]** | A list of keywords associated with the application | [optional] **license** | **str** | The license of the application | [optional] **public** | **bool** | Whether or not a application is publicly viewable | [optional] **source** | **str** | A link to the source code of the application | [optional] diff --git a/docs/ApplicationVersionList.md b/docs/ApplicationVersionList.md index 671770a45..d6d1b59b9 100644 --- a/docs/ApplicationVersionList.md +++ b/docs/ApplicationVersionList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[ApplicationVersion]**](ApplicationVersion.md) | | +**resources** | [**List[ApplicationVersion]**](ApplicationVersion.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ApplicationsApi.md b/docs/ApplicationsApi.md index 4863f8ead..abe72bc11 100644 --- a/docs/ApplicationsApi.md +++ b/docs/ApplicationsApi.md @@ -13,19 +13,21 @@ Method | HTTP request | Description [**get_application_deployment**](ApplicationsApi.md#get_application_deployment) | **GET** /applications/{owner}/{slug}/deployment | Get application deployment [**get_application_versions**](ApplicationsApi.md#get_application_versions) | **GET** /applications/{owner}/{slug}/versions | Get application versions [**list_applications**](ApplicationsApi.md#list_applications) | **GET** /applications | List Applications +[**restart_application_deployment**](ApplicationsApi.md#restart_application_deployment) | **DELETE** /applications/{owner}/{slug}/deployment | Restart application deployment [**update_application**](ApplicationsApi.md#update_application) | **PUT** /applications/{owner}/{slug} | Update a Application +[**upload_version_package**](ApplicationsApi.md#upload_version_package) | **POST** /applications/{owner}/{slug}/versions/{tag} | Upload the build package for the application version [**upsert_application_permission**](ApplicationsApi.md#upsert_application_permission) | **PATCH** /applications/{owner}/{slug}/permissions | Upsert a new permission to a application [**upsert_application_version**](ApplicationsApi.md#upsert_application_version) | **PATCH** /applications/{owner}/{slug}/versions | Upsert a new version to a application # **create_application** -> Application create_application(owner, application_create) +> Application create_application(ownerapplication_create) Create an Application ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -33,16 +35,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -58,6 +50,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -67,13 +69,13 @@ application_create = pollination_sdk.ApplicationCreate() # ApplicationCreate | try: # Create an Application - api_response = api_instance.create_application(owner, application_create) + api_response = api_instance.create_application(ownerapplication_create) pprint(api_response) except ApiException as e: print("Exception when calling ApplicationsApi->create_application: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -81,16 +83,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -106,6 +98,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -115,7 +117,7 @@ application_create = pollination_sdk.ApplicationCreate() # ApplicationCreate | try: # Create an Application - api_response = api_instance.create_application(owner, application_create) + api_response = api_instance.create_application(ownerapplication_create) pprint(api_response) except ApiException as e: print("Exception when calling ApplicationsApi->create_application: %s\n" % e) @@ -134,7 +136,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -154,13 +156,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_application** -> delete_application(owner, slug) +> delete_application(ownerslug) Delete a Application ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -168,16 +170,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -193,6 +185,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -202,12 +204,12 @@ slug = 'slug_example' # str | try: # Delete a Application - api_instance.delete_application(owner, slug) + api_instance.delete_application(ownerslug) except ApiException as e: print("Exception when calling ApplicationsApi->delete_application: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -215,16 +217,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -240,6 +232,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -249,7 +251,7 @@ slug = 'slug_example' # str | try: # Delete a Application - api_instance.delete_application(owner, slug) + api_instance.delete_application(ownerslug) except ApiException as e: print("Exception when calling ApplicationsApi->delete_application: %s\n" % e) ``` @@ -267,7 +269,7 @@ void (empty response body) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -286,13 +288,13 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_application_org_permission** -> delete_application_org_permission(owner, slug, application_policy_subject) +> delete_application_org_permission(ownerslugapplication_policy_subject) Remove a Application permissions ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -300,16 +302,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -325,6 +317,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -335,12 +337,12 @@ application_policy_subject = pollination_sdk.ApplicationPolicySubject() # Applic try: # Remove a Application permissions - api_instance.delete_application_org_permission(owner, slug, application_policy_subject) + api_instance.delete_application_org_permission(ownerslugapplication_policy_subject) except ApiException as e: print("Exception when calling ApplicationsApi->delete_application_org_permission: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -348,16 +350,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -373,6 +365,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -383,7 +385,7 @@ application_policy_subject = pollination_sdk.ApplicationPolicySubject() # Applic try: # Remove a Application permissions - api_instance.delete_application_org_permission(owner, slug, application_policy_subject) + api_instance.delete_application_org_permission(ownerslugapplication_policy_subject) except ApiException as e: print("Exception when calling ApplicationsApi->delete_application_org_permission: %s\n" % e) ``` @@ -402,7 +404,7 @@ void (empty response body) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -421,13 +423,13 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_application_version** -> delete_application_version(owner, slug, tag) +> delete_application_version(ownerslugtag) Remove a Application version ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -435,16 +437,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -460,6 +452,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -470,12 +472,12 @@ tag = 'tag_example' # str | try: # Remove a Application version - api_instance.delete_application_version(owner, slug, tag) + api_instance.delete_application_version(ownerslugtag) except ApiException as e: print("Exception when calling ApplicationsApi->delete_application_version: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -483,16 +485,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -508,6 +500,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -518,7 +520,7 @@ tag = 'tag_example' # str | try: # Remove a Application version - api_instance.delete_application_version(owner, slug, tag) + api_instance.delete_application_version(ownerslugtag) except ApiException as e: print("Exception when calling ApplicationsApi->delete_application_version: %s\n" % e) ``` @@ -537,7 +539,7 @@ void (empty response body) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -556,13 +558,13 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_application** -> Application get_application(owner, slug) +> Application get_application(ownerslug) Get an application ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -570,16 +572,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -595,6 +587,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -604,13 +606,13 @@ slug = 'slug_example' # str | try: # Get an application - api_response = api_instance.get_application(owner, slug) + api_response = api_instance.get_application(ownerslug) pprint(api_response) except ApiException as e: print("Exception when calling ApplicationsApi->get_application: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -618,16 +620,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -643,6 +635,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -652,7 +654,7 @@ slug = 'slug_example' # str | try: # Get an application - api_response = api_instance.get_application(owner, slug) + api_response = api_instance.get_application(ownerslug) pprint(api_response) except ApiException as e: print("Exception when calling ApplicationsApi->get_application: %s\n" % e) @@ -671,7 +673,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -691,13 +693,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_application_access_permissions** -> ApplicationAccessPolicyList get_application_access_permissions(owner, slug, page=page, per_page=per_page, subject_type=subject_type, permission=permission) +> ApplicationAccessPolicyList get_application_access_permissions(ownerslugpage=pageper_page=per_pagesubject_type=subject_typepermission=permission) Get application access permissions ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -705,16 +707,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -730,6 +722,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -738,18 +740,18 @@ with pollination_sdk.ApiClient(configuration) as api_client: slug = 'slug_example' # str | page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) -subject_type = ['subject_type_example'] # list[str] | The type of access policy subject (optional) -permission = ['permission_example'] # list[str] | An access policy permission string (optional) +subject_type = ['subject_type_example'] # List[str] | The type of access policy subject (optional) +permission = ['permission_example'] # List[str] | An access policy permission string (optional) try: # Get application access permissions - api_response = api_instance.get_application_access_permissions(owner, slug, page=page, per_page=per_page, subject_type=subject_type, permission=permission) + api_response = api_instance.get_application_access_permissions(ownerslugpage=pageper_page=per_pagesubject_type=subject_typepermission=permission) pprint(api_response) except ApiException as e: print("Exception when calling ApplicationsApi->get_application_access_permissions: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -757,16 +759,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -782,20 +774,30 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) -# Enter a context with an instance of the API client -with pollination_sdk.ApiClient(configuration) as api_client: +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.ApplicationsApi(api_client) owner = 'owner_example' # str | slug = 'slug_example' # str | page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) -subject_type = ['subject_type_example'] # list[str] | The type of access policy subject (optional) -permission = ['permission_example'] # list[str] | An access policy permission string (optional) +subject_type = ['subject_type_example'] # List[str] | The type of access policy subject (optional) +permission = ['permission_example'] # List[str] | An access policy permission string (optional) try: # Get application access permissions - api_response = api_instance.get_application_access_permissions(owner, slug, page=page, per_page=per_page, subject_type=subject_type, permission=permission) + api_response = api_instance.get_application_access_permissions(ownerslugpage=pageper_page=per_pagesubject_type=subject_typepermission=permission) pprint(api_response) except ApiException as e: print("Exception when calling ApplicationsApi->get_application_access_permissions: %s\n" % e) @@ -809,8 +811,8 @@ Name | Type | Description | Notes **slug** | **str**| | **page** | **int**| Page number starting from 1 | [optional] [default to 1] **per_page** | **int**| Number of items per page | [optional] [default to 25] - **subject_type** | [**list[str]**](str.md)| The type of access policy subject | [optional] - **permission** | [**list[str]**](str.md)| An access policy permission string | [optional] + **subject_type** | [**List[str]**](str.md)| The type of access policy subject | [optional] + **permission** | [**List[str]**](str.md)| An access policy permission string | [optional] ### Return type @@ -818,7 +820,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -837,13 +839,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_application_deployment** -> ApplicationDeployment get_application_deployment(owner, slug) +> ApplicationDeployment get_application_deployment(ownerslug) Get application deployment ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -851,16 +853,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -876,6 +868,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -885,13 +887,13 @@ slug = 'slug_example' # str | try: # Get application deployment - api_response = api_instance.get_application_deployment(owner, slug) + api_response = api_instance.get_application_deployment(ownerslug) pprint(api_response) except ApiException as e: print("Exception when calling ApplicationsApi->get_application_deployment: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -899,16 +901,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -924,6 +916,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -933,7 +935,7 @@ slug = 'slug_example' # str | try: # Get application deployment - api_response = api_instance.get_application_deployment(owner, slug) + api_response = api_instance.get_application_deployment(ownerslug) pprint(api_response) except ApiException as e: print("Exception when calling ApplicationsApi->get_application_deployment: %s\n" % e) @@ -952,7 +954,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -968,13 +970,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_application_versions** -> ApplicationVersionList get_application_versions(owner, slug, page=page, per_page=per_page) +> ApplicationVersionList get_application_versions(ownerslugpage=pageper_page=per_page) Get application versions ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -982,16 +984,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1007,6 +999,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1018,13 +1020,13 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # Get application versions - api_response = api_instance.get_application_versions(owner, slug, page=page, per_page=per_page) + api_response = api_instance.get_application_versions(ownerslugpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling ApplicationsApi->get_application_versions: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -1032,16 +1034,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1057,6 +1049,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1068,7 +1070,7 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # Get application versions - api_response = api_instance.get_application_versions(owner, slug, page=page, per_page=per_page) + api_response = api_instance.get_application_versions(ownerslugpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling ApplicationsApi->get_application_versions: %s\n" % e) @@ -1089,7 +1091,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -1108,13 +1110,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_applications** -> ApplicationList list_applications(search=search, ids=ids, names=names, owner=owner, public=public, deployed=deployed, permissions=permissions, keywords=keywords, sort_by=sort_by, sort_order=sort_order, page=page, per_page=per_page) +> ApplicationList list_applications(search=searchids=idsnames=namesowner=ownerpublic=publicdeployed=deployedpermissions=permissionskeywords=keywordssort_by=sort_bysort_order=sort_orderpage=pageper_page=per_page) List Applications ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -1122,16 +1124,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1147,18 +1139,28 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.ApplicationsApi(api_client) search = 'search_example' # str | Search string to find applications (optional) -ids = [] # list[str] | The ID of a application to search for (optional) (default to []) -names = [] # list[str] | The name of the application (optional) (default to []) -owner = [] # list[str] | Owner of the application (optional) (default to []) +ids = [] # List[str] | The ID of a application to search for (optional) (default to []) +names = [] # List[str] | The name of the application (optional) (default to []) +owner = [] # List[str] | Owner of the application (optional) (default to []) public = True # bool | Boolean check for public/private applications (optional) deployed = True # bool | Filter by deployed applications (optional) -permissions = [] # list[str] | Filter by permission on given resource (optional) (default to []) -keywords = [] # list[str] | Filter by keywords on given resource (optional) (default to []) +permissions = [] # List[str] | Filter by permission on given resource (optional) (default to []) +keywords = [] # List[str] | Filter by keywords on given resource (optional) (default to []) sort_by = pollination_sdk.ApplicationSortKey() # ApplicationSortKey | Key to sort the list by (optional) sort_order = pollination_sdk.SortEnum() # SortEnum | The order to sort the list (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) @@ -1166,13 +1168,13 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List Applications - api_response = api_instance.list_applications(search=search, ids=ids, names=names, owner=owner, public=public, deployed=deployed, permissions=permissions, keywords=keywords, sort_by=sort_by, sort_order=sort_order, page=page, per_page=per_page) + api_response = api_instance.list_applications(search=searchids=idsnames=namesowner=ownerpublic=publicdeployed=deployedpermissions=permissionskeywords=keywordssort_by=sort_bysort_order=sort_orderpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling ApplicationsApi->list_applications: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -1180,16 +1182,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1205,18 +1197,28 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.ApplicationsApi(api_client) search = 'search_example' # str | Search string to find applications (optional) -ids = [] # list[str] | The ID of a application to search for (optional) (default to []) -names = [] # list[str] | The name of the application (optional) (default to []) -owner = [] # list[str] | Owner of the application (optional) (default to []) +ids = [] # List[str] | The ID of a application to search for (optional) (default to []) +names = [] # List[str] | The name of the application (optional) (default to []) +owner = [] # List[str] | Owner of the application (optional) (default to []) public = True # bool | Boolean check for public/private applications (optional) deployed = True # bool | Filter by deployed applications (optional) -permissions = [] # list[str] | Filter by permission on given resource (optional) (default to []) -keywords = [] # list[str] | Filter by keywords on given resource (optional) (default to []) +permissions = [] # List[str] | Filter by permission on given resource (optional) (default to []) +keywords = [] # List[str] | Filter by keywords on given resource (optional) (default to []) sort_by = pollination_sdk.ApplicationSortKey() # ApplicationSortKey | Key to sort the list by (optional) sort_order = pollination_sdk.SortEnum() # SortEnum | The order to sort the list (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) @@ -1224,7 +1226,7 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List Applications - api_response = api_instance.list_applications(search=search, ids=ids, names=names, owner=owner, public=public, deployed=deployed, permissions=permissions, keywords=keywords, sort_by=sort_by, sort_order=sort_order, page=page, per_page=per_page) + api_response = api_instance.list_applications(search=searchids=idsnames=namesowner=ownerpublic=publicdeployed=deployedpermissions=permissionskeywords=keywordssort_by=sort_bysort_order=sort_orderpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling ApplicationsApi->list_applications: %s\n" % e) @@ -1235,13 +1237,13 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **search** | **str**| Search string to find applications | [optional] - **ids** | [**list[str]**](str.md)| The ID of a application to search for | [optional] [default to []] - **names** | [**list[str]**](str.md)| The name of the application | [optional] [default to []] - **owner** | [**list[str]**](str.md)| Owner of the application | [optional] [default to []] + **ids** | [**List[str]**](str.md)| The ID of a application to search for | [optional] [default to []] + **names** | [**List[str]**](str.md)| The name of the application | [optional] [default to []] + **owner** | [**List[str]**](str.md)| Owner of the application | [optional] [default to []] **public** | **bool**| Boolean check for public/private applications | [optional] **deployed** | **bool**| Filter by deployed applications | [optional] - **permissions** | [**list[str]**](str.md)| Filter by permission on given resource | [optional] [default to []] - **keywords** | [**list[str]**](str.md)| Filter by keywords on given resource | [optional] [default to []] + **permissions** | [**List[str]**](str.md)| Filter by permission on given resource | [optional] [default to []] + **keywords** | [**List[str]**](str.md)| Filter by keywords on given resource | [optional] [default to []] **sort_by** | [**ApplicationSortKey**](.md)| Key to sort the list by | [optional] **sort_order** | [**SortEnum**](.md)| The order to sort the list | [optional] **page** | **int**| Page number starting from 1 | [optional] [default to 1] @@ -1253,7 +1255,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -1271,14 +1273,14 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **update_application** -> UpdateAccepted update_application(owner, slug, application_update) +# **restart_application_deployment** +> object restart_application_deployment(ownerslug) -Update a Application +Restart application deployment ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -1286,6 +1288,21 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint +# Retrieve a temporary Acces Token (JWT) using your API token +API_TOKEN = 'some-token-string' + +auth = pollination_sdk.UserApi() +api_token = pollination_sdk.LoginDto( + api_token=API_TOKEN +) + +auth_response = auth.login(api_token) + +# Configure Bearer authorization (JWT): JWTAuth +configuration = pollination_sdk.Configuration( + access_token=auth_response.access_token +) + # Configure API key authorization: APIKeyAuth configuration = pollination_sdk.Configuration( host = "http://localhost", @@ -1296,6 +1313,29 @@ configuration = pollination_sdk.Configuration( # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' +# Enter a context with an instance of the API client +with pollination_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = pollination_sdk.ApplicationsApi(api_client) + owner = 'owner_example' # str | +slug = 'slug_example' # str | + + try: + # Restart application deployment + api_response = api_instance.restart_application_deployment(ownerslug) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApplicationsApi->restart_application_deployment: %s\n" % e) +``` + +* Api Key Authentication (APIKeyAuth): +```python +from __future__ import print_function +import time +import pollination_sdk +from pollination_sdk.rest import ApiException +from pprint import pprint + # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1311,22 +1351,66 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.ApplicationsApi(api_client) owner = 'owner_example' # str | slug = 'slug_example' # str | -application_update = pollination_sdk.ApplicationUpdate() # ApplicationUpdate | try: - # Update a Application - api_response = api_instance.update_application(owner, slug, application_update) + # Restart application deployment + api_response = api_instance.restart_application_deployment(ownerslug) pprint(api_response) except ApiException as e: - print("Exception when calling ApplicationsApi->update_application: %s\n" % e) + print("Exception when calling ApplicationsApi->restart_application_deployment: %s\n" % e) ``` +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **slug** | **str**| | + +### Return type + +**object** + +### Authorization + +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Retrieved | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_application** +> UpdateAccepted update_application(ownerslugapplication_update) + +Update a Application + +### Example + * Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function @@ -1335,6 +1419,21 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint +# Retrieve a temporary Acces Token (JWT) using your API token +API_TOKEN = 'some-token-string' + +auth = pollination_sdk.UserApi() +api_token = pollination_sdk.LoginDto( + api_token=API_TOKEN +) + +auth_response = auth.login(api_token) + +# Configure Bearer authorization (JWT): JWTAuth +configuration = pollination_sdk.Configuration( + access_token=auth_response.access_token +) + # Configure API key authorization: APIKeyAuth configuration = pollination_sdk.Configuration( host = "http://localhost", @@ -1345,6 +1444,30 @@ configuration = pollination_sdk.Configuration( # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' +# Enter a context with an instance of the API client +with pollination_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = pollination_sdk.ApplicationsApi(api_client) + owner = 'owner_example' # str | +slug = 'slug_example' # str | +application_update = pollination_sdk.ApplicationUpdate() # ApplicationUpdate | + + try: + # Update a Application + api_response = api_instance.update_application(ownerslugapplication_update) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApplicationsApi->update_application: %s\n" % e) +``` + +* Api Key Authentication (APIKeyAuth): +```python +from __future__ import print_function +import time +import pollination_sdk +from pollination_sdk.rest import ApiException +from pprint import pprint + # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1360,6 +1483,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1370,7 +1503,7 @@ application_update = pollination_sdk.ApplicationUpdate() # ApplicationUpdate | try: # Update a Application - api_response = api_instance.update_application(owner, slug, application_update) + api_response = api_instance.update_application(ownerslugapplication_update) pprint(api_response) except ApiException as e: print("Exception when calling ApplicationsApi->update_application: %s\n" % e) @@ -1390,7 +1523,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -1409,14 +1542,14 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **upsert_application_permission** -> UpdateAccepted upsert_application_permission(owner, slug, application_access_policy) +# **upload_version_package** +> object upload_version_package(ownerslugtagfile) -Upsert a new permission to a application +Upload the build package for the application version ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -1424,6 +1557,21 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint +# Retrieve a temporary Acces Token (JWT) using your API token +API_TOKEN = 'some-token-string' + +auth = pollination_sdk.UserApi() +api_token = pollination_sdk.LoginDto( + api_token=API_TOKEN +) + +auth_response = auth.login(api_token) + +# Configure Bearer authorization (JWT): JWTAuth +configuration = pollination_sdk.Configuration( + access_token=auth_response.access_token +) + # Configure API key authorization: APIKeyAuth configuration = pollination_sdk.Configuration( host = "http://localhost", @@ -1434,6 +1582,31 @@ configuration = pollination_sdk.Configuration( # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' +# Enter a context with an instance of the API client +with pollination_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = pollination_sdk.ApplicationsApi(api_client) + owner = 'owner_example' # str | +slug = 'slug_example' # str | +tag = 'tag_example' # str | +file = None # bytearray | + + try: + # Upload the build package for the application version + api_response = api_instance.upload_version_package(ownerslugtagfile) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApplicationsApi->upload_version_package: %s\n" % e) +``` + +* Api Key Authentication (APIKeyAuth): +```python +from __future__ import print_function +import time +import pollination_sdk +from pollination_sdk.rest import ApiException +from pprint import pprint + # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1449,22 +1622,70 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.ApplicationsApi(api_client) owner = 'owner_example' # str | slug = 'slug_example' # str | -application_access_policy = pollination_sdk.ApplicationAccessPolicy() # ApplicationAccessPolicy | +tag = 'tag_example' # str | +file = None # bytearray | try: - # Upsert a new permission to a application - api_response = api_instance.upsert_application_permission(owner, slug, application_access_policy) + # Upload the build package for the application version + api_response = api_instance.upload_version_package(ownerslugtagfile) pprint(api_response) except ApiException as e: - print("Exception when calling ApplicationsApi->upsert_application_permission: %s\n" % e) + print("Exception when calling ApplicationsApi->upload_version_package: %s\n" % e) ``` +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **slug** | **str**| | + **tag** | **str**| | + **file** | **bytearray**| | + +### Return type + +**object** + +### Authorization + +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Success | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **upsert_application_permission** +> UpdateAccepted upsert_application_permission(ownerslugapplication_access_policy) + +Upsert a new permission to a application + +### Example + * Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function @@ -1473,6 +1694,21 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint +# Retrieve a temporary Acces Token (JWT) using your API token +API_TOKEN = 'some-token-string' + +auth = pollination_sdk.UserApi() +api_token = pollination_sdk.LoginDto( + api_token=API_TOKEN +) + +auth_response = auth.login(api_token) + +# Configure Bearer authorization (JWT): JWTAuth +configuration = pollination_sdk.Configuration( + access_token=auth_response.access_token +) + # Configure API key authorization: APIKeyAuth configuration = pollination_sdk.Configuration( host = "http://localhost", @@ -1483,6 +1719,30 @@ configuration = pollination_sdk.Configuration( # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' +# Enter a context with an instance of the API client +with pollination_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = pollination_sdk.ApplicationsApi(api_client) + owner = 'owner_example' # str | +slug = 'slug_example' # str | +application_access_policy = pollination_sdk.ApplicationAccessPolicy() # ApplicationAccessPolicy | + + try: + # Upsert a new permission to a application + api_response = api_instance.upsert_application_permission(ownerslugapplication_access_policy) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApplicationsApi->upsert_application_permission: %s\n" % e) +``` + +* Api Key Authentication (APIKeyAuth): +```python +from __future__ import print_function +import time +import pollination_sdk +from pollination_sdk.rest import ApiException +from pprint import pprint + # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1498,6 +1758,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1508,7 +1778,7 @@ application_access_policy = pollination_sdk.ApplicationAccessPolicy() # Applicat try: # Upsert a new permission to a application - api_response = api_instance.upsert_application_permission(owner, slug, application_access_policy) + api_response = api_instance.upsert_application_permission(ownerslugapplication_access_policy) pprint(api_response) except ApiException as e: print("Exception when calling ApplicationsApi->upsert_application_permission: %s\n" % e) @@ -1528,7 +1798,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -1548,13 +1818,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **upsert_application_version** -> S3UploadRequest upsert_application_version(owner, slug, new_application_version) +> S3UploadRequest upsert_application_version(ownerslugnew_application_version) Upsert a new version to a application ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -1562,16 +1832,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1587,6 +1847,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1597,13 +1867,13 @@ new_application_version = pollination_sdk.NewApplicationVersion() # NewApplicati try: # Upsert a new version to a application - api_response = api_instance.upsert_application_version(owner, slug, new_application_version) + api_response = api_instance.upsert_application_version(ownerslugnew_application_version) pprint(api_response) except ApiException as e: print("Exception when calling ApplicationsApi->upsert_application_version: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -1611,16 +1881,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1636,6 +1896,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1646,7 +1916,7 @@ new_application_version = pollination_sdk.NewApplicationVersion() # NewApplicati try: # Upsert a new version to a application - api_response = api_instance.upsert_application_version(owner, slug, new_application_version) + api_response = api_instance.upsert_application_version(ownerslugnew_application_version) pprint(api_response) except ApiException as e: print("Exception when calling ApplicationsApi->upsert_application_version: %s\n" % e) @@ -1666,7 +1936,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers diff --git a/docs/ArtifactsApi.md b/docs/ArtifactsApi.md index b7a0893a7..5135aad91 100644 --- a/docs/ArtifactsApi.md +++ b/docs/ArtifactsApi.md @@ -11,13 +11,13 @@ Method | HTTP request | Description # **create_artifact** -> S3UploadRequest create_artifact(owner, name, key_request) +> S3UploadRequest create_artifact(ownernamekey_request) Get an Artifact upload link. ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -25,16 +25,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -50,6 +40,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -60,13 +60,13 @@ key_request = pollination_sdk.KeyRequest() # KeyRequest | try: # Get an Artifact upload link. - api_response = api_instance.create_artifact(owner, name, key_request) + api_response = api_instance.create_artifact(ownernamekey_request) pprint(api_response) except ApiException as e: print("Exception when calling ArtifactsApi->create_artifact: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -74,16 +74,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -99,6 +89,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -109,7 +109,7 @@ key_request = pollination_sdk.KeyRequest() # KeyRequest | try: # Get an Artifact upload link. - api_response = api_instance.create_artifact(owner, name, key_request) + api_response = api_instance.create_artifact(ownernamekey_request) pprint(api_response) except ApiException as e: print("Exception when calling ArtifactsApi->create_artifact: %s\n" % e) @@ -129,7 +129,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -145,13 +145,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_artifact** -> delete_artifact(owner, name, path=path, page=page, per_page=per_page) +> delete_artifact(ownernamepath=pathpage=pageper_page=per_page) Delete one or many artifacts by key/prefix ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -159,16 +159,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -184,24 +174,34 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.ArtifactsApi(api_client) owner = 'owner_example' # str | name = 'name_example' # str | -path = ['path_example'] # list[str] | The path to an file within a project folder (optional) +path = ['path_example'] # List[str] | The path to an file within a project folder (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) try: # Delete one or many artifacts by key/prefix - api_instance.delete_artifact(owner, name, path=path, page=page, per_page=per_page) + api_instance.delete_artifact(ownernamepath=pathpage=pageper_page=per_page) except ApiException as e: print("Exception when calling ArtifactsApi->delete_artifact: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -209,16 +209,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -234,19 +224,29 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.ArtifactsApi(api_client) owner = 'owner_example' # str | name = 'name_example' # str | -path = ['path_example'] # list[str] | The path to an file within a project folder (optional) +path = ['path_example'] # List[str] | The path to an file within a project folder (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) try: # Delete one or many artifacts by key/prefix - api_instance.delete_artifact(owner, name, path=path, page=page, per_page=per_page) + api_instance.delete_artifact(ownernamepath=pathpage=pageper_page=per_page) except ApiException as e: print("Exception when calling ArtifactsApi->delete_artifact: %s\n" % e) ``` @@ -257,7 +257,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **str**| | **name** | **str**| | - **path** | [**list[str]**](str.md)| The path to an file within a project folder | [optional] + **path** | [**List[str]**](str.md)| The path to an file within a project folder | [optional] **page** | **int**| Page number starting from 1 | [optional] [default to 1] **per_page** | **int**| Number of items per page | [optional] [default to 25] @@ -267,7 +267,7 @@ void (empty response body) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -283,13 +283,13 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **download_artifact** -> object download_artifact(owner, name, path=path) +> object download_artifact(ownernamepath=path) Download an artifact from the project folder ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -297,16 +297,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -322,6 +312,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -332,13 +332,13 @@ path = 'path_example' # str | The path to an file within a project folder (optio try: # Download an artifact from the project folder - api_response = api_instance.download_artifact(owner, name, path=path) + api_response = api_instance.download_artifact(ownernamepath=path) pprint(api_response) except ApiException as e: print("Exception when calling ArtifactsApi->download_artifact: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -346,16 +346,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -371,6 +361,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -381,7 +381,7 @@ path = 'path_example' # str | The path to an file within a project folder (optio try: # Download an artifact from the project folder - api_response = api_instance.download_artifact(owner, name, path=path) + api_response = api_instance.download_artifact(ownernamepath=path) pprint(api_response) except ApiException as e: print("Exception when calling ArtifactsApi->download_artifact: %s\n" % e) @@ -401,7 +401,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -421,13 +421,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_artifacts** -> FileMetaList list_artifacts(owner, name, path=path, page=page, per_page=per_page) +> FileMetaList list_artifacts(ownernamepath=pathpage=pageper_page=per_page) List artifacts in a project folder ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -435,16 +435,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -460,25 +450,35 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.ArtifactsApi(api_client) owner = 'owner_example' # str | name = 'name_example' # str | -path = ['path_example'] # list[str] | The path to an file within a project folder (optional) +path = ['path_example'] # List[str] | The path to an file within a project folder (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List artifacts in a project folder - api_response = api_instance.list_artifacts(owner, name, path=path, page=page, per_page=per_page) + api_response = api_instance.list_artifacts(ownernamepath=pathpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling ArtifactsApi->list_artifacts: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -486,16 +486,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -511,19 +501,29 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.ArtifactsApi(api_client) owner = 'owner_example' # str | name = 'name_example' # str | -path = ['path_example'] # list[str] | The path to an file within a project folder (optional) +path = ['path_example'] # List[str] | The path to an file within a project folder (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List artifacts in a project folder - api_response = api_instance.list_artifacts(owner, name, path=path, page=page, per_page=per_page) + api_response = api_instance.list_artifacts(ownernamepath=pathpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling ArtifactsApi->list_artifacts: %s\n" % e) @@ -535,7 +535,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **str**| | **name** | **str**| | - **path** | [**list[str]**](str.md)| The path to an file within a project folder | [optional] + **path** | [**List[str]**](str.md)| The path to an file within a project folder | [optional] **page** | **int**| Page number starting from 1 | [optional] [default to 1] **per_page** | **int**| Number of items per page | [optional] [default to 25] @@ -545,7 +545,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers diff --git a/docs/BakedRecipe.md b/docs/BakedRecipe.md index c56538ece..47dbe5106 100644 --- a/docs/BakedRecipe.md +++ b/docs/BakedRecipe.md @@ -4,13 +4,13 @@ Baked Recipe. A Baked Recipe contains all the templates referred to in the DAG ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **api_version** | **str** | | [optional] [readonly] [default to 'v1beta1'] -**dependencies** | [**list[Dependency]**](Dependency.md) | A list of plugins and other recipes this recipe depends on. | [optional] +**dependencies** | [**List[Dependency]**](Dependency.md) | A list of plugins and other recipes this recipe depends on. | [optional] **digest** | **str** | | -**flow** | [**list[DAG]**](DAG.md) | A list of tasks to create a DAG recipe. | +**flow** | [**List[DAG]**](DAG.md) | A list of tasks to create a DAG recipe. | **metadata** | [**MetaData**](MetaData.md) | Recipe metadata information. | [optional] -**templates** | [**list[AnyOfTemplateFunctionDAG]**](AnyOfTemplateFunctionDAG.md) | A list of templates. Templates can be Function or a DAG. | +**templates** | [**List[BakedRecipeTemplatesInner]**](BakedRecipeTemplatesInner.md) | A list of templates. Templates can be Function or a DAG. | **type** | **str** | | [optional] [readonly] [default to 'BakedRecipe'] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/BakedRecipeTemplatesInner.md b/docs/BakedRecipeTemplatesInner.md new file mode 100644 index 000000000..af56bab59 --- /dev/null +++ b/docs/BakedRecipeTemplatesInner.md @@ -0,0 +1,21 @@ +# BakedRecipeTemplatesInner + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**command** | **str** | Full shell command for this function. Each function accepts only one command. The command will be executed as a shell command in plugin. For running several commands after each other use && between the commands or pipe data from one to another using | | [optional] +**config** | [**PluginConfig**](PluginConfig.md) | The plugin config to use for this function | +**description** | **str** | Function description. A short human readable description for this function. | [optional] +**inputs** | [**List[DAGInputsInner]**](DAGInputsInner.md) | Inputs for the DAG. | [optional] +**language** | [**ScriptingLanguages**](ScriptingLanguages.md) | Programming language of the script. Currently only Python is supported. | [optional] +**name** | **str** | A unique name for this dag. | +**outputs** | [**List[DAGOutputsInner]**](DAGOutputsInner.md) | Outputs of the DAG that can be used by other DAGs. | [optional] +**source** | **str** | Source contains the source code of the script to execute. | [optional] +**type** | **str** | | [optional] [readonly] [default to 'DAG'] +**fail_fast** | **bool** | Stop scheduling new steps, as soon as it detects that one of the DAG nodes is failed. Default is True. | [optional] [default to True] +**tasks** | [**List[DAGTask]**](DAGTask.md) | Tasks are a list of DAG steps | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BillingOption.md b/docs/BillingOption.md index 702674808..9a4a2f4b2 100644 --- a/docs/BillingOption.md +++ b/docs/BillingOption.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **billing_type** | **str** | The type of billing option, can be daily, monthly or yearly | **id** | **int** | The id of the billing option | **name** | **str** | The name of the billing option | -**recurring_price** | **dict(str, float)** | The price of the billing option | +**recurring_price** | **Dict[str, float]** | The price of the billing option | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/BuildStatusEnum.md b/docs/BuildStatusEnum.md index ec0ffd334..fa5da8916 100644 --- a/docs/BuildStatusEnum.md +++ b/docs/BuildStatusEnum.md @@ -1,6 +1,6 @@ # BuildStatusEnum - The status of a build. +The status of a build. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/BodyCythonFunctionOrMethodOwnerPluginsPost.md b/docs/CADLicenseUsage.md similarity index 50% rename from docs/BodyCythonFunctionOrMethodOwnerPluginsPost.md rename to docs/CADLicenseUsage.md index 046c56ce3..d28735680 100644 --- a/docs/BodyCythonFunctionOrMethodOwnerPluginsPost.md +++ b/docs/CADLicenseUsage.md @@ -1,9 +1,16 @@ -# BodyCythonFunctionOrMethodOwnerPluginsPost +# CADLicenseUsage +A row in a report on CAD license usage ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**package** | **file** | | +**action** | **str** | | +**app_version** | **str** | | +**created_at** | **datetime** | | +**product_id** | **str** | | +**product_name** | **str** | | +**user_id** | **str** | | +**user_name** | **str** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CloudJobList.md b/docs/CloudJobList.md index bbb8a3b07..ebe6853fe 100644 --- a/docs/CloudJobList.md +++ b/docs/CloudJobList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[CloudJob]**](CloudJob.md) | | +**resources** | [**List[CloudJob]**](CloudJob.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DAG.md b/docs/DAG.md index cca74b387..376823327 100644 --- a/docs/DAG.md +++ b/docs/DAG.md @@ -4,12 +4,12 @@ A Directed Acyclic Graph containing a list of tasks. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **fail_fast** | **bool** | Stop scheduling new steps, as soon as it detects that one of the DAG nodes is failed. Default is True. | [optional] [default to True] -**inputs** | [**list[AnyOfDAGGenericInputDAGStringInputDAGIntegerInputDAGNumberInputDAGBooleanInputDAGFolderInputDAGFileInputDAGPathInputDAGArrayInputDAGJSONObjectInput]**](AnyOfDAGGenericInputDAGStringInputDAGIntegerInputDAGNumberInputDAGBooleanInputDAGFolderInputDAGFileInputDAGPathInputDAGArrayInputDAGJSONObjectInput.md) | Inputs for the DAG. | [optional] +**inputs** | [**List[DAGInputsInner]**](DAGInputsInner.md) | Inputs for the DAG. | [optional] **name** | **str** | A unique name for this dag. | -**outputs** | [**list[AnyOfDAGGenericOutputDAGStringOutputDAGIntegerOutputDAGNumberOutputDAGBooleanOutputDAGFolderOutputDAGFileOutputDAGPathOutputDAGArrayOutputDAGJSONObjectOutput]**](AnyOfDAGGenericOutputDAGStringOutputDAGIntegerOutputDAGNumberOutputDAGBooleanOutputDAGFolderOutputDAGFileOutputDAGPathOutputDAGArrayOutputDAGJSONObjectOutput.md) | Outputs of the DAG that can be used by other DAGs. | [optional] -**tasks** | [**list[DAGTask]**](DAGTask.md) | Tasks are a list of DAG steps | +**outputs** | [**List[DAGOutputsInner]**](DAGOutputsInner.md) | Outputs of the DAG that can be used by other DAGs. | [optional] +**tasks** | [**List[DAGTask]**](DAGTask.md) | Tasks are a list of DAG steps | **type** | **str** | | [optional] [readonly] [default to 'DAG'] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DAGArrayInput.md b/docs/DAGArrayInput.md index caa0cb739..2a9f4c62f 100644 --- a/docs/DAGArrayInput.md +++ b/docs/DAGArrayInput.md @@ -4,9 +4,9 @@ A JSON array input. You can add additional validation by defining a JSONSchema ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] -**default** | **list[object]** | Default value to use for an input if a value was not supplied. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**default** | **List[object]** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] **items_type** | [**ItemType**](ItemType.md) | Type of items in an array. All the items in an array must be from the same type. | [optional] **name** | **str** | Input name. | diff --git a/docs/DAGArrayInputAlias.md b/docs/DAGArrayInputAlias.md index 32195c07a..c20785dbe 100644 --- a/docs/DAGArrayInputAlias.md +++ b/docs/DAGArrayInputAlias.md @@ -4,13 +4,13 @@ A JSON array input. You can add additional validation by defining a JSONSchema ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] -**default** | **list[object]** | Default value to use for an input if a value was not supplied. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**default** | **List[object]** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] -**handler** | [**list[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | **items_type** | [**ItemType**](ItemType.md) | Type of items in an array. All the items in an array must be from the same type. | [optional] **name** | **str** | Input name. | -**platform** | **list[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | **required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] **spec** | **object** | An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. | [optional] **type** | **str** | | [optional] [readonly] [default to 'DAGArrayInputAlias'] diff --git a/docs/DAGArrayInputAliasInner.md b/docs/DAGArrayInputAliasInner.md new file mode 100644 index 000000000..91729c4f7 --- /dev/null +++ b/docs/DAGArrayInputAliasInner.md @@ -0,0 +1,20 @@ +# DAGArrayInputAliasInner + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**default** | **str** | Default value for generic input. | [optional] +**description** | **str** | Optional description for input. | [optional] +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**name** | **str** | Input name. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] +**spec** | **object** | An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. | [optional] +**type** | **str** | | [optional] [readonly] [default to 'DAGLinkedInputAlias'] +**extensions** | **List[str]** | Optional list of extensions for path. The check for extension is case-insensitive. The extension will only be validated for file inputs. | [optional] +**items_type** | [**ItemType**](ItemType.md) | Type of items in an array. All the items in an array must be from the same type. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DAGArrayOutput.md b/docs/DAGArrayOutput.md index 03946fd5a..b94d09129 100644 --- a/docs/DAGArrayOutput.md +++ b/docs/DAGArrayOutput.md @@ -4,10 +4,10 @@ DAG array output. This output loads the content from a JSON file which must be ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias]**](AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias.md) | A list of additional processes for loading this output on different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayOutputAliasInner]**](DAGArrayOutputAliasInner.md) | A list of additional processes for loading this output on different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] -**_from** | [**AnyOfTaskReferenceFileReference**](AnyOfTaskReferenceFileReference.md) | Reference to a file or a task output. Task output must be file. | +**var_from** | [**ModelFrom**](ModelFrom.md) | | **items_type** | [**ItemType**](ItemType.md) | Type of items in this array. All the items in an array must be from the same type. | [optional] **name** | **str** | Output name. | **required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] diff --git a/docs/DAGArrayOutputAlias.md b/docs/DAGArrayOutputAlias.md index a4129c54e..97f94905d 100644 --- a/docs/DAGArrayOutputAlias.md +++ b/docs/DAGArrayOutputAlias.md @@ -4,13 +4,13 @@ DAG alias array output. This output loads the content from a JSON file which mu ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] -**_from** | [**AnyOfTaskReferenceFileReference**](AnyOfTaskReferenceFileReference.md) | Reference to a file or a task output. Task output must be file. | -**handler** | [**list[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**var_from** | [**ModelFrom**](ModelFrom.md) | | +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | **items_type** | [**ItemType**](ItemType.md) | Type of items in this array. All the items in an array must be from the same type. | [optional] **name** | **str** | Output name. | -**platform** | **list[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | **required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] **type** | **str** | | [optional] [readonly] [default to 'DAGArrayOutputAlias'] diff --git a/docs/DAGArrayOutputAliasInner.md b/docs/DAGArrayOutputAliasInner.md new file mode 100644 index 000000000..d3118e27f --- /dev/null +++ b/docs/DAGArrayOutputAliasInner.md @@ -0,0 +1,18 @@ +# DAGArrayOutputAliasInner + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**description** | **str** | Optional description for output. | [optional] +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**name** | **str** | Output name. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**type** | **str** | | [optional] [readonly] [default to 'DAGLinkedOutputAlias'] +**var_from** | [**ModelFrom**](ModelFrom.md) | | +**required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] +**items_type** | [**ItemType**](ItemType.md) | Type of items in this array. All the items in an array must be from the same type. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DAGBooleanInput.md b/docs/DAGBooleanInput.md index 4f6897eb0..7e8d4a593 100644 --- a/docs/DAGBooleanInput.md +++ b/docs/DAGBooleanInput.md @@ -4,8 +4,8 @@ The boolean type matches only two special values: True and False. Note that val ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **bool** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] **name** | **str** | Input name. | diff --git a/docs/DAGBooleanInputAlias.md b/docs/DAGBooleanInputAlias.md index 9c7d14649..658078fc6 100644 --- a/docs/DAGBooleanInputAlias.md +++ b/docs/DAGBooleanInputAlias.md @@ -4,12 +4,12 @@ The boolean type matches only two special values: True and False. Note that val ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **bool** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] -**handler** | [**list[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | **name** | **str** | Input name. | -**platform** | **list[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | **required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] **spec** | **object** | An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. | [optional] **type** | **str** | | [optional] [readonly] [default to 'DAGBooleanInputAlias'] diff --git a/docs/DAGBooleanOutput.md b/docs/DAGBooleanOutput.md index 3647a1a66..bb851ef7b 100644 --- a/docs/DAGBooleanOutput.md +++ b/docs/DAGBooleanOutput.md @@ -4,10 +4,10 @@ DAG boolean output. This output loads the content from a file as a boolean. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias]**](AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias.md) | A list of additional processes for loading this output on different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayOutputAliasInner]**](DAGArrayOutputAliasInner.md) | A list of additional processes for loading this output on different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] -**_from** | [**AnyOfTaskReferenceFileReference**](AnyOfTaskReferenceFileReference.md) | Reference to a file or a task output. Task output must be file. | +**var_from** | [**ModelFrom**](ModelFrom.md) | | **name** | **str** | Output name. | **required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] **type** | **str** | | [optional] [readonly] [default to 'DAGBooleanOutput'] diff --git a/docs/DAGBooleanOutputAlias.md b/docs/DAGBooleanOutputAlias.md index ee492c80d..43f6cbf09 100644 --- a/docs/DAGBooleanOutputAlias.md +++ b/docs/DAGBooleanOutputAlias.md @@ -4,12 +4,12 @@ DAG alias boolean output. This output loads the content from a file as a boolea ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] -**_from** | [**AnyOfTaskReferenceFileReference**](AnyOfTaskReferenceFileReference.md) | Reference to a file or a task output. Task output must be file. | -**handler** | [**list[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**var_from** | [**ModelFrom**](ModelFrom.md) | | +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | **name** | **str** | Output name. | -**platform** | **list[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | **required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] **type** | **str** | | [optional] [readonly] [default to 'DAGBooleanOutputAlias'] diff --git a/docs/DAGFileInput.md b/docs/DAGFileInput.md index 49190f1cc..31db3f743 100644 --- a/docs/DAGFileInput.md +++ b/docs/DAGFileInput.md @@ -4,11 +4,11 @@ A file input. File is a special string input. Unlike other string inputs, a fil ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] -**default** | [**AnyOfHTTPS3ProjectFolder**](AnyOfHTTPS3ProjectFolder.md) | The default source for file if the value is not provided. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**default** | [**Default**](Default.md) | | [optional] **description** | **str** | Optional description for input. | [optional] -**extensions** | **list[str]** | Optional list of extensions for file. The check for extension is case-insensitive. | [optional] +**extensions** | **List[str]** | Optional list of extensions for file. The check for extension is case-insensitive. | [optional] **name** | **str** | Input name. | **required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] **spec** | **object** | An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. | [optional] diff --git a/docs/DAGFileInputAlias.md b/docs/DAGFileInputAlias.md index 16b1e634b..afb67ce6c 100644 --- a/docs/DAGFileInputAlias.md +++ b/docs/DAGFileInputAlias.md @@ -4,13 +4,13 @@ An alias file input. File is a special string input. Unlike other string inputs ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] -**default** | [**AnyOfHTTPS3ProjectFolder**](AnyOfHTTPS3ProjectFolder.md) | The default source for file if the value is not provided. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**default** | [**Default**](Default.md) | | [optional] **description** | **str** | Optional description for input. | [optional] -**extensions** | **list[str]** | Optional list of extensions for file. The check for extension is case-insensitive. | [optional] -**handler** | [**list[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**extensions** | **List[str]** | Optional list of extensions for file. The check for extension is case-insensitive. | [optional] +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | **name** | **str** | Input name. | -**platform** | **list[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | **required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] **spec** | **object** | An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. | [optional] **type** | **str** | | [optional] [readonly] [default to 'DAGFileInputAlias'] diff --git a/docs/DAGFileOutput.md b/docs/DAGFileOutput.md index ed042b20a..a419a70b1 100644 --- a/docs/DAGFileOutput.md +++ b/docs/DAGFileOutput.md @@ -4,10 +4,10 @@ DAG file output. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias]**](AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias.md) | A list of additional processes for loading this output on different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayOutputAliasInner]**](DAGArrayOutputAliasInner.md) | A list of additional processes for loading this output on different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] -**_from** | [**AnyOfTaskReferenceFileReference**](AnyOfTaskReferenceFileReference.md) | Reference to a file or a task output. Task output must be file. | +**var_from** | [**ModelFrom**](ModelFrom.md) | | **name** | **str** | Output name. | **required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] **type** | **str** | | [optional] [readonly] [default to 'DAGFileOutput'] diff --git a/docs/DAGFileOutputAlias.md b/docs/DAGFileOutputAlias.md index 9f0fa0d18..3cc2fda4e 100644 --- a/docs/DAGFileOutputAlias.md +++ b/docs/DAGFileOutputAlias.md @@ -4,12 +4,12 @@ DAG alias file output. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] -**_from** | [**AnyOfTaskReferenceFileReference**](AnyOfTaskReferenceFileReference.md) | Reference to a file or a task output. Task output must be file. | -**handler** | [**list[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**var_from** | [**ModelFrom**](ModelFrom.md) | | +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | **name** | **str** | Output name. | -**platform** | **list[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | **required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] **type** | **str** | | [optional] [readonly] [default to 'DAGFileOutputAlias'] diff --git a/docs/DAGFolderInput.md b/docs/DAGFolderInput.md index 505dc54be..61fb00ed5 100644 --- a/docs/DAGFolderInput.md +++ b/docs/DAGFolderInput.md @@ -4,9 +4,9 @@ A folder input. Folder is a special string input. Unlike other string inputs, a ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] -**default** | [**AnyOfHTTPS3ProjectFolder**](AnyOfHTTPS3ProjectFolder.md) | The default source for file if the value is not provided. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**default** | [**Default**](Default.md) | | [optional] **description** | **str** | Optional description for input. | [optional] **name** | **str** | Input name. | **required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] diff --git a/docs/DAGFolderInputAlias.md b/docs/DAGFolderInputAlias.md index 74edb03f2..4df326030 100644 --- a/docs/DAGFolderInputAlias.md +++ b/docs/DAGFolderInputAlias.md @@ -4,12 +4,12 @@ An alias folder input. Folder is a special string input. Unlike other string in ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] -**default** | [**AnyOfHTTPS3ProjectFolder**](AnyOfHTTPS3ProjectFolder.md) | The default source for file if the value is not provided. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**default** | [**Default**](Default.md) | | [optional] **description** | **str** | Optional description for input. | [optional] -**handler** | [**list[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | **name** | **str** | Input name. | -**platform** | **list[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | **required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] **spec** | **object** | An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. | [optional] **type** | **str** | | [optional] [readonly] [default to 'DAGFolderInputAlias'] diff --git a/docs/DAGFolderOutput.md b/docs/DAGFolderOutput.md index 34c39b2b4..835312675 100644 --- a/docs/DAGFolderOutput.md +++ b/docs/DAGFolderOutput.md @@ -4,10 +4,10 @@ DAG folder output. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias]**](AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias.md) | A list of additional processes for loading this output on different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayOutputAliasInner]**](DAGArrayOutputAliasInner.md) | A list of additional processes for loading this output on different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] -**_from** | [**AnyOfTaskReferenceFolderReference**](AnyOfTaskReferenceFolderReference.md) | Reference to a folder or a task output. Task output must be folder. | +**var_from** | [**From1**](From1.md) | | **name** | **str** | Output name. | **required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] **type** | **str** | | [optional] [readonly] [default to 'DAGFolderOutput'] diff --git a/docs/DAGFolderOutputAlias.md b/docs/DAGFolderOutputAlias.md index 6f1492de9..7b845d26f 100644 --- a/docs/DAGFolderOutputAlias.md +++ b/docs/DAGFolderOutputAlias.md @@ -4,12 +4,12 @@ DAG alias folder output. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] -**_from** | [**AnyOfTaskReferenceFolderReference**](AnyOfTaskReferenceFolderReference.md) | Reference to a folder or a task output. Task output must be folder. | -**handler** | [**list[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**var_from** | [**From1**](From1.md) | | +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | **name** | **str** | Output name. | -**platform** | **list[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | **required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] **type** | **str** | | [optional] [readonly] [default to 'DAGFolderOutputAlias'] diff --git a/docs/DAGGenericInput.md b/docs/DAGGenericInput.md index 80fc0661d..2febb1e8e 100644 --- a/docs/DAGGenericInput.md +++ b/docs/DAGGenericInput.md @@ -4,8 +4,8 @@ Base class for DAG inputs. This class adds a handler to input to handle the pro ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **str** | Default value for generic input. | [optional] **description** | **str** | Optional description for input. | [optional] **name** | **str** | Input name. | diff --git a/docs/DAGGenericInputAlias.md b/docs/DAGGenericInputAlias.md index 4c1751258..57af69bee 100644 --- a/docs/DAGGenericInputAlias.md +++ b/docs/DAGGenericInputAlias.md @@ -4,12 +4,12 @@ Base class for DAG Alias inputs. This class adds a handler to input to handle t ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **str** | Default value for generic input. | [optional] **description** | **str** | Optional description for input. | [optional] -**handler** | [**list[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | **name** | **str** | Input name. | -**platform** | **list[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | **required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] **spec** | **object** | An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. | [optional] **type** | **str** | | [optional] [readonly] [default to 'DAGGenericInputAlias'] diff --git a/docs/DAGGenericOutput.md b/docs/DAGGenericOutput.md index d68fbc71c..5e2059506 100644 --- a/docs/DAGGenericOutput.md +++ b/docs/DAGGenericOutput.md @@ -4,10 +4,10 @@ DAG generic output. In most cases, you should not be using the generic output u ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias]**](AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias.md) | A list of additional processes for loading this output on different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayOutputAliasInner]**](DAGArrayOutputAliasInner.md) | A list of additional processes for loading this output on different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] -**_from** | **object** | Reference to a file or a task output. Task output must be file. | +**var_from** | **object** | | **name** | **str** | Output name. | **type** | **str** | | [optional] [readonly] [default to 'DAGGenericOutput'] diff --git a/docs/DAGGenericOutputAlias.md b/docs/DAGGenericOutputAlias.md index 93da6eecb..0217dfc49 100644 --- a/docs/DAGGenericOutputAlias.md +++ b/docs/DAGGenericOutputAlias.md @@ -4,11 +4,11 @@ DAG generic alias output. In most cases, you should not be using the generic ou ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] -**handler** | [**list[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | **name** | **str** | Output name. | -**platform** | **list[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | **type** | **str** | | [optional] [readonly] [default to 'DAGGenericOutputAlias'] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DAGInputsInner.md b/docs/DAGInputsInner.md new file mode 100644 index 000000000..11f6c6758 --- /dev/null +++ b/docs/DAGInputsInner.md @@ -0,0 +1,19 @@ +# DAGInputsInner + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**default** | **object** | Default value to use for an input if a value was not supplied. | [optional] +**description** | **str** | Optional description for input. | [optional] +**name** | **str** | Input name. | +**required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] +**spec** | **object** | An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. | [optional] +**type** | **str** | | [optional] [readonly] [default to 'DAGJSONObjectInput'] +**extensions** | **List[str]** | Optional list of extensions for path. The check for extension is case-insensitive. The extension will only be validated for file inputs. | [optional] +**items_type** | [**ItemType**](ItemType.md) | Type of items in an array. All the items in an array must be from the same type. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DAGIntegerInput.md b/docs/DAGIntegerInput.md index 0fea31de5..e322d9f4e 100644 --- a/docs/DAGIntegerInput.md +++ b/docs/DAGIntegerInput.md @@ -4,8 +4,8 @@ An integer input. You can add additional validation by defining a JSONSchema sp ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **int** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] **name** | **str** | Input name. | diff --git a/docs/DAGIntegerInputAlias.md b/docs/DAGIntegerInputAlias.md index d6645d974..5efdef309 100644 --- a/docs/DAGIntegerInputAlias.md +++ b/docs/DAGIntegerInputAlias.md @@ -4,12 +4,12 @@ An alias integer input. You can add additional validation by defining a JSONSch ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **int** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] -**handler** | [**list[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | **name** | **str** | Input name. | -**platform** | **list[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | **required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] **spec** | **object** | An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. | [optional] **type** | **str** | | [optional] [readonly] [default to 'DAGIntegerInputAlias'] diff --git a/docs/DAGIntegerOutput.md b/docs/DAGIntegerOutput.md index 5c231771b..afe1eca9f 100644 --- a/docs/DAGIntegerOutput.md +++ b/docs/DAGIntegerOutput.md @@ -4,10 +4,10 @@ DAG integer output. This output loads the content from a file as an integer. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias]**](AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias.md) | A list of additional processes for loading this output on different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayOutputAliasInner]**](DAGArrayOutputAliasInner.md) | A list of additional processes for loading this output on different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] -**_from** | [**AnyOfTaskReferenceFileReference**](AnyOfTaskReferenceFileReference.md) | Reference to a file or a task output. Task output must be file. | +**var_from** | [**ModelFrom**](ModelFrom.md) | | **name** | **str** | Output name. | **required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] **type** | **str** | | [optional] [readonly] [default to 'DAGIntegerOutput'] diff --git a/docs/DAGIntegerOutputAlias.md b/docs/DAGIntegerOutputAlias.md index 3da9f6a51..8a2b43524 100644 --- a/docs/DAGIntegerOutputAlias.md +++ b/docs/DAGIntegerOutputAlias.md @@ -4,12 +4,12 @@ DAG alias integer output. This output loads the content from a file as an integ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] -**_from** | [**AnyOfTaskReferenceFileReference**](AnyOfTaskReferenceFileReference.md) | Reference to a file or a task output. Task output must be file. | -**handler** | [**list[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**var_from** | [**ModelFrom**](ModelFrom.md) | | +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | **name** | **str** | Output name. | -**platform** | **list[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | **required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] **type** | **str** | | [optional] [readonly] [default to 'DAGIntegerOutputAlias'] diff --git a/docs/DAGJSONObjectInput.md b/docs/DAGJSONObjectInput.md index 2bf7c1526..ee9eea30f 100644 --- a/docs/DAGJSONObjectInput.md +++ b/docs/DAGJSONObjectInput.md @@ -4,8 +4,8 @@ A JSON object input. JSON objects are similar to Python dictionaries. You can ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **object** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] **name** | **str** | Input name. | diff --git a/docs/DAGJSONObjectInputAlias.md b/docs/DAGJSONObjectInputAlias.md index fb4c226e7..20af31c22 100644 --- a/docs/DAGJSONObjectInputAlias.md +++ b/docs/DAGJSONObjectInputAlias.md @@ -4,12 +4,12 @@ An alias JSON object input. JSON objects are similar to Python dictionaries. Y ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **object** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] -**handler** | [**list[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | **name** | **str** | Input name. | -**platform** | **list[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | **required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] **spec** | **object** | An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. | [optional] **type** | **str** | | [optional] [readonly] [default to 'DAGJSONObjectInputAlias'] diff --git a/docs/DAGJSONObjectOutput.md b/docs/DAGJSONObjectOutput.md index 145a386a3..467dfb3a8 100644 --- a/docs/DAGJSONObjectOutput.md +++ b/docs/DAGJSONObjectOutput.md @@ -4,10 +4,10 @@ DAG object output. This output loads the content from a file as a JSON object. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias]**](AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias.md) | A list of additional processes for loading this output on different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayOutputAliasInner]**](DAGArrayOutputAliasInner.md) | A list of additional processes for loading this output on different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] -**_from** | [**AnyOfTaskReferenceFileReference**](AnyOfTaskReferenceFileReference.md) | Reference to a file or a task output. Task output must be file. | +**var_from** | [**ModelFrom**](ModelFrom.md) | | **name** | **str** | Output name. | **required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] **type** | **str** | | [optional] [readonly] [default to 'DAGJSONObjectOutput'] diff --git a/docs/DAGJSONObjectOutputAlias.md b/docs/DAGJSONObjectOutputAlias.md index 1345f5b58..3fc690e7c 100644 --- a/docs/DAGJSONObjectOutputAlias.md +++ b/docs/DAGJSONObjectOutputAlias.md @@ -4,12 +4,12 @@ DAG alias object output. This output loads the content from a file as a JSON ob ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] -**_from** | [**AnyOfTaskReferenceFileReference**](AnyOfTaskReferenceFileReference.md) | Reference to a file or a task output. Task output must be file. | -**handler** | [**list[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**var_from** | [**ModelFrom**](ModelFrom.md) | | +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | **name** | **str** | Output name. | -**platform** | **list[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | **required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] **type** | **str** | | [optional] [readonly] [default to 'DAGJSONObjectOutputAlias'] diff --git a/docs/DAGLinkedInputAlias.md b/docs/DAGLinkedInputAlias.md index 5f58517d0..947ae77a9 100644 --- a/docs/DAGLinkedInputAlias.md +++ b/docs/DAGLinkedInputAlias.md @@ -4,12 +4,12 @@ An Alias for Linked Inputs. A linked input alias will be hidden in the UI and w ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **str** | Default value for generic input. | [optional] **description** | **str** | Optional description for input. | [optional] -**handler** | [**list[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | **name** | **str** | Input name. | -**platform** | **list[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | **required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] **spec** | **object** | An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. | [optional] **type** | **str** | | [optional] [readonly] [default to 'DAGLinkedInputAlias'] diff --git a/docs/DAGLinkedOutputAlias.md b/docs/DAGLinkedOutputAlias.md index 4b6876413..14a0555c6 100644 --- a/docs/DAGLinkedOutputAlias.md +++ b/docs/DAGLinkedOutputAlias.md @@ -4,11 +4,11 @@ An Alias for Linked Outputs. A linked output alias will be translated to an obj ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] -**handler** | [**list[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | **name** | **str** | Output name. | -**platform** | **list[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | **type** | **str** | | [optional] [readonly] [default to 'DAGLinkedOutputAlias'] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DAGNumberInput.md b/docs/DAGNumberInput.md index 1207b104a..d1d9a585f 100644 --- a/docs/DAGNumberInput.md +++ b/docs/DAGNumberInput.md @@ -4,8 +4,8 @@ A number input. You can add additional validation by defining a JSONSchema spec ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **float** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] **name** | **str** | Input name. | diff --git a/docs/DAGNumberInputAlias.md b/docs/DAGNumberInputAlias.md index fb28d6925..861cc027d 100644 --- a/docs/DAGNumberInputAlias.md +++ b/docs/DAGNumberInputAlias.md @@ -4,12 +4,12 @@ An alias number input. You can add additional validation by defining a JSONSche ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **float** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] -**handler** | [**list[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | **name** | **str** | Input name. | -**platform** | **list[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | **required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] **spec** | **object** | An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. | [optional] **type** | **str** | | [optional] [readonly] [default to 'DAGNumberInputAlias'] diff --git a/docs/DAGNumberOutput.md b/docs/DAGNumberOutput.md index dae03e307..e2affa7d0 100644 --- a/docs/DAGNumberOutput.md +++ b/docs/DAGNumberOutput.md @@ -4,10 +4,10 @@ DAG number output. This output loads the content from a file as a floating numb ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias]**](AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias.md) | A list of additional processes for loading this output on different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayOutputAliasInner]**](DAGArrayOutputAliasInner.md) | A list of additional processes for loading this output on different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] -**_from** | [**AnyOfTaskReferenceFileReference**](AnyOfTaskReferenceFileReference.md) | Reference to a file or a task output. Task output must be file. | +**var_from** | [**ModelFrom**](ModelFrom.md) | | **name** | **str** | Output name. | **required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] **type** | **str** | | [optional] [readonly] [default to 'DAGNumberOutput'] diff --git a/docs/DAGNumberOutputAlias.md b/docs/DAGNumberOutputAlias.md index 81ea557e1..10b6e77d2 100644 --- a/docs/DAGNumberOutputAlias.md +++ b/docs/DAGNumberOutputAlias.md @@ -4,12 +4,12 @@ DAG alias number output. This output loads the content from a file as a floatin ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] -**_from** | [**AnyOfTaskReferenceFileReference**](AnyOfTaskReferenceFileReference.md) | Reference to a file or a task output. Task output must be file. | -**handler** | [**list[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**var_from** | [**ModelFrom**](ModelFrom.md) | | +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | **name** | **str** | Output name. | -**platform** | **list[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | **required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] **type** | **str** | | [optional] [readonly] [default to 'DAGNumberOutputAlias'] diff --git a/docs/DAGOutputsInner.md b/docs/DAGOutputsInner.md new file mode 100644 index 000000000..0ca194aa7 --- /dev/null +++ b/docs/DAGOutputsInner.md @@ -0,0 +1,17 @@ +# DAGOutputsInner + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alias** | [**List[DAGArrayOutputAliasInner]**](DAGArrayOutputAliasInner.md) | A list of additional processes for loading this output on different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**description** | **str** | Optional description for output. | [optional] +**var_from** | [**ModelFrom**](ModelFrom.md) | | +**name** | **str** | Output name. | +**type** | **str** | | [optional] [readonly] [default to 'DAGJSONObjectOutput'] +**required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] +**items_type** | [**ItemType**](ItemType.md) | Type of items in this array. All the items in an array must be from the same type. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DAGPathInput.md b/docs/DAGPathInput.md index 2eb503945..7b1493a8a 100644 --- a/docs/DAGPathInput.md +++ b/docs/DAGPathInput.md @@ -4,11 +4,11 @@ A file or a folder input. Use this input only in cases that the input can be ei ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] -**default** | [**AnyOfHTTPS3ProjectFolder**](AnyOfHTTPS3ProjectFolder.md) | The default source for file if the value is not provided. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**default** | [**Default**](Default.md) | | [optional] **description** | **str** | Optional description for input. | [optional] -**extensions** | **list[str]** | Optional list of extensions for path. The check for extension is case-insensitive. The extension will only be validated for file inputs. | [optional] +**extensions** | **List[str]** | Optional list of extensions for path. The check for extension is case-insensitive. The extension will only be validated for file inputs. | [optional] **name** | **str** | Input name. | **required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] **spec** | **object** | An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. | [optional] diff --git a/docs/DAGPathInputAlias.md b/docs/DAGPathInputAlias.md index c2e5cf7fc..db05ac470 100644 --- a/docs/DAGPathInputAlias.md +++ b/docs/DAGPathInputAlias.md @@ -4,13 +4,13 @@ A file or a folder input. Use this input only in cases that the input can be ei ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] -**default** | [**AnyOfHTTPS3ProjectFolder**](AnyOfHTTPS3ProjectFolder.md) | The default source for file if the value is not provided. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**default** | [**Default**](Default.md) | | [optional] **description** | **str** | Optional description for input. | [optional] -**extensions** | **list[str]** | Optional list of extensions for path. The check for extension is case-insensitive. The extension will only be validated for file inputs. | [optional] -**handler** | [**list[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**extensions** | **List[str]** | Optional list of extensions for path. The check for extension is case-insensitive. The extension will only be validated for file inputs. | [optional] +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | **name** | **str** | Input name. | -**platform** | **list[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | **required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] **spec** | **object** | An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. | [optional] **type** | **str** | | [optional] [readonly] [default to 'DAGPathInputAlias'] diff --git a/docs/DAGPathOutput.md b/docs/DAGPathOutput.md index 9b8d3dc72..9acd29073 100644 --- a/docs/DAGPathOutput.md +++ b/docs/DAGPathOutput.md @@ -4,10 +4,10 @@ DAG path output. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias]**](AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias.md) | A list of additional processes for loading this output on different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayOutputAliasInner]**](DAGArrayOutputAliasInner.md) | A list of additional processes for loading this output on different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] -**_from** | [**AnyOfTaskReferenceFileReferenceFolderReference**](AnyOfTaskReferenceFileReferenceFolderReference.md) | Reference to a file, folder or a task output. Task output must either be a file or a folder. | +**var_from** | [**From2**](From2.md) | | **name** | **str** | Output name. | **required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] **type** | **str** | | [optional] [readonly] [default to 'DAGPathOutput'] diff --git a/docs/DAGPathOutputAlias.md b/docs/DAGPathOutputAlias.md index 2c9ee9b5a..c71dc6c59 100644 --- a/docs/DAGPathOutputAlias.md +++ b/docs/DAGPathOutputAlias.md @@ -4,12 +4,12 @@ DAG alias path output. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] -**_from** | [**AnyOfTaskReferenceFileReferenceFolderReference**](AnyOfTaskReferenceFileReferenceFolderReference.md) | Reference to a file, folder or a task output. Task output must either be a file or a folder. | -**handler** | [**list[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**var_from** | [**From2**](From2.md) | | +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | **name** | **str** | Output name. | -**platform** | **list[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | **required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] **type** | **str** | | [optional] [readonly] [default to 'DAGPathOutputAlias'] diff --git a/docs/DAGStringInput.md b/docs/DAGStringInput.md index b5df4c93d..037d34433 100644 --- a/docs/DAGStringInput.md +++ b/docs/DAGStringInput.md @@ -4,8 +4,8 @@ A String input. You can add additional validation by defining a JSONSchema spec ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **str** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] **name** | **str** | Input name. | diff --git a/docs/DAGStringInputAlias.md b/docs/DAGStringInputAlias.md index 61e53d21a..0014c2b1a 100644 --- a/docs/DAGStringInputAlias.md +++ b/docs/DAGStringInputAlias.md @@ -4,12 +4,12 @@ An Alias String input. You can add additional validation by defining a JSONSche ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **str** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] -**handler** | [**list[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | **name** | **str** | Input name. | -**platform** | **list[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | **required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] **spec** | **object** | An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. | [optional] **type** | **str** | | [optional] [readonly] [default to 'DAGStringInputAlias'] diff --git a/docs/DAGStringOutput.md b/docs/DAGStringOutput.md index d125d1605..1ec62a051 100644 --- a/docs/DAGStringOutput.md +++ b/docs/DAGStringOutput.md @@ -4,10 +4,10 @@ DAG string output. This output loads the content from a file as a string. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias]**](AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias.md) | A list of additional processes for loading this output on different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayOutputAliasInner]**](DAGArrayOutputAliasInner.md) | A list of additional processes for loading this output on different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] -**_from** | [**AnyOfTaskReferenceFileReference**](AnyOfTaskReferenceFileReference.md) | Reference to a file or a task output. Task output must be file. | +**var_from** | [**ModelFrom**](ModelFrom.md) | | **name** | **str** | Output name. | **required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] **type** | **str** | | [optional] [readonly] [default to 'DAGStringOutput'] diff --git a/docs/DAGStringOutputAlias.md b/docs/DAGStringOutputAlias.md index 1c74c4615..12cd4f414 100644 --- a/docs/DAGStringOutputAlias.md +++ b/docs/DAGStringOutputAlias.md @@ -4,12 +4,12 @@ DAG alias string output. This output loads the content from a file as a string. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] -**_from** | [**AnyOfTaskReferenceFileReference**](AnyOfTaskReferenceFileReference.md) | Reference to a file or a task output. Task output must be file. | -**handler** | [**list[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | +**var_from** | [**ModelFrom**](ModelFrom.md) | | +**handler** | [**List[IOAliasHandler]**](IOAliasHandler.md) | List of process actions to process the input or output value. | **name** | **str** | Output name. | -**platform** | **list[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | +**platform** | **List[str]** | Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. | **required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] **type** | **str** | | [optional] [readonly] [default to 'DAGStringOutputAlias'] diff --git a/docs/DAGTask.md b/docs/DAGTask.md index b41502f3a..df2ac439a 100644 --- a/docs/DAGTask.md +++ b/docs/DAGTask.md @@ -4,12 +4,12 @@ A single task in a DAG flow. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] -**arguments** | [**list[AnyOfTaskArgumentTaskPathArgument]**](AnyOfTaskArgumentTaskPathArgument.md) | The input arguments for this task. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**arguments** | [**List[DAGTaskArgumentsInner]**](DAGTaskArgumentsInner.md) | The input arguments for this task. | [optional] **loop** | [**DAGTaskLoop**](DAGTaskLoop.md) | Loop configuration for this task. | [optional] **name** | **str** | Name for this task. It must be unique in a DAG. | -**needs** | **list[str]** | List of DAG tasks that this task depends on and needs to be executed before this task. | [optional] -**returns** | [**list[AnyOfTaskReturnTaskPathReturn]**](AnyOfTaskReturnTaskPathReturn.md) | List of task returns. | [optional] +**needs** | **List[str]** | List of DAG tasks that this task depends on and needs to be executed before this task. | [optional] +**returns** | [**List[DAGTaskReturnsInner]**](DAGTaskReturnsInner.md) | List of task returns. | [optional] **sub_folder** | **str** | A path relative to the current folder context where artifacts should be saved. This is useful when performing a loop or invoking another workflow and wanting to save results in a specific sub_folder. | [optional] **template** | **str** | Template name. A template is a Function or a DAG. This template must be available in the dependencies. | **type** | **str** | | [optional] [readonly] [default to 'DAGTask'] diff --git a/docs/DAGTaskArgumentsInner.md b/docs/DAGTaskArgumentsInner.md new file mode 100644 index 000000000..1028bfa12 --- /dev/null +++ b/docs/DAGTaskArgumentsInner.md @@ -0,0 +1,14 @@ +# DAGTaskArgumentsInner + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**var_from** | [**From5**](From5.md) | | +**name** | **str** | Argument name. The name must match one of the input names from Task's template which can be a function or DAG. | +**type** | **str** | | [optional] [readonly] [default to 'TaskPathArgument'] +**sub_path** | **str** | A sub_path inside the path that is provided in the ``from`` field. Use sub_path to only access part of the Path that is needed instead of copying all the files and folders inside the path. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DAGTaskLoop.md b/docs/DAGTaskLoop.md index fa6e4d13a..918d3c4e7 100644 --- a/docs/DAGTaskLoop.md +++ b/docs/DAGTaskLoop.md @@ -4,8 +4,8 @@ Loop configuration for the task. This will run the template provided multiple t ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] -**_from** | [**AnyOfInputReferenceTaskReferenceValueListReference**](AnyOfInputReferenceTaskReferenceValueListReference.md) | The task or DAG parameter to loop over (must be iterable). | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**var_from** | [**From3**](From3.md) | | [optional] **type** | **str** | | [optional] [readonly] [default to 'DAGTaskLoop'] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DAGTaskReturnsInner.md b/docs/DAGTaskReturnsInner.md new file mode 100644 index 000000000..ba87ae4be --- /dev/null +++ b/docs/DAGTaskReturnsInner.md @@ -0,0 +1,15 @@ +# DAGTaskReturnsInner + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**description** | **str** | Optional description for output. | [optional] +**name** | **str** | Output name. | +**type** | **str** | | [optional] [readonly] [default to 'TaskPathReturn'] +**path** | **str** | Path to the output artifact relative to where the function command is executed. | +**required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DailyUsage.md b/docs/DailyUsage.md index 1dfc8f838..2f588e19b 100644 --- a/docs/DailyUsage.md +++ b/docs/DailyUsage.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cpu** | **float** | cpu usage | [optional] [default to 0] -**date** | **datetime** | The day this usage was aggregated for | +**var_date** | **datetime** | The day this usage was aggregated for | **failed** | **int** | failed usage | [optional] [default to 0] **memory** | **float** | memory usage | [optional] [default to 0] **succeeded** | **int** | succeeded usage | [optional] [default to 0] diff --git a/docs/Default.md b/docs/Default.md new file mode 100644 index 000000000..4527d9f28 --- /dev/null +++ b/docs/Default.md @@ -0,0 +1,18 @@ +# Default + +The default source for file if the value is not provided. +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**type** | **str** | | [optional] [readonly] [default to 'ProjectFolder'] +**url** | **str** | For a HTTP endpoint this can be http://climate.onebuilding.org. | +**bucket** | **str** | The name of the S3 bucket on the host server. | +**credentials_path** | **str** | Path to the file holding the AccessKey and SecretAccessKey to authenticate to the bucket. Assumes public bucket access if none are specified. | [optional] +**endpoint** | **str** | The HTTP endpoint to reach the S3 bucket. | +**key** | **str** | The path inside the bucket to source artifacts from. | +**path** | **str** | The path to a folder where files and folders can be sourced. For a local filesystem this can be \"C:\\Users\\me\\jobs\\test\". | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Dependency.md b/docs/Dependency.md index 7f22e12e2..1b3816989 100644 --- a/docs/Dependency.md +++ b/docs/Dependency.md @@ -5,7 +5,7 @@ Configuration to fetch a Recipe or Plugin that another Recipe depends on. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **alias** | **str** | An optional alias to refer to this dependency. Useful if the name is already used somewhere else. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **hash** | **str** | The digest hash of the dependency when retrieved from its source. This is locked when the resource dependencies are downloaded. | [optional] **kind** | [**DependencyKind**](DependencyKind.md) | The kind of dependency. It can be a recipe or an plugin. | **name** | **str** | Workflow name. This name should be unique among all the resources in your resource. Use an alias if this is not the case. | diff --git a/docs/DeploymentConfigUpdate.md b/docs/DeploymentConfigUpdate.md new file mode 100644 index 000000000..8e22a8c4a --- /dev/null +++ b/docs/DeploymentConfigUpdate.md @@ -0,0 +1,14 @@ +# DeploymentConfigUpdate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpu_limit** | **int** | The maximum number of CPU cores that can be used by the application. | [optional] +**entrypoint_file** | **str** | The Streamlit python file to use as an entrypoint to the app | [optional] +**login_required** | **bool** | Whether the application requires login. | [optional] +**memory_limit** | **int** | The maximum amount of memory that can be used by the application. | [optional] +**scale_to_zero** | **bool** | A boolean toggle to scale deployments down to zero replicas when not used. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DockerConfig.md b/docs/DockerConfig.md index 28261b5cf..545ef7e10 100644 --- a/docs/DockerConfig.md +++ b/docs/DockerConfig.md @@ -4,7 +4,7 @@ Plugin Configuration to run in a Docker container ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **image** | **str** | Docker image name. Must include tag. | **registry** | **str** | The container registry URLs that this container should be pulled from. Will default to Dockerhub if none is specified. | [optional] **type** | **str** | | [optional] [readonly] [default to 'DockerConfig'] diff --git a/docs/FileMetaList.md b/docs/FileMetaList.md index d41b3e99e..61b2e172f 100644 --- a/docs/FileMetaList.md +++ b/docs/FileMetaList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[FileMeta]**](FileMeta.md) | | +**resources** | [**List[FileMeta]**](FileMeta.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FileReference.md b/docs/FileReference.md index 77eae342b..1f0c917f2 100644 --- a/docs/FileReference.md +++ b/docs/FileReference.md @@ -4,7 +4,7 @@ Reference to a file. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **path** | **str** | Relative path to a file. | **type** | **str** | | [optional] [readonly] [default to 'FileReference'] diff --git a/docs/FolderReference.md b/docs/FolderReference.md index bf37370a4..3fb6a8627 100644 --- a/docs/FolderReference.md +++ b/docs/FolderReference.md @@ -4,7 +4,7 @@ Reference to a folder. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **path** | **str** | Relative path to a folder. | **type** | **str** | | [optional] [readonly] [default to 'FolderReference'] diff --git a/docs/From1.md b/docs/From1.md new file mode 100644 index 000000000..fb86ae13e --- /dev/null +++ b/docs/From1.md @@ -0,0 +1,15 @@ +# From1 + +Reference to a folder or a task output. Task output must be folder. +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**name** | **str** | The name of the task to pull output data from. | +**type** | **str** | | [optional] [readonly] [default to 'FolderReference'] +**variable** | **str** | The name of the variable. | +**path** | **str** | Relative path to a folder. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/From2.md b/docs/From2.md new file mode 100644 index 000000000..95fbb9fd4 --- /dev/null +++ b/docs/From2.md @@ -0,0 +1,15 @@ +# From2 + +Reference to a file, folder or a task output. Task output must either be a file or a folder. +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**name** | **str** | The name of the task to pull output data from. | +**type** | **str** | | [optional] [readonly] [default to 'FolderReference'] +**variable** | **str** | The name of the variable. | +**path** | **str** | Relative path to a folder. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/From3.md b/docs/From3.md new file mode 100644 index 000000000..253673ffb --- /dev/null +++ b/docs/From3.md @@ -0,0 +1,15 @@ +# From3 + +The task or DAG parameter to loop over (must be iterable). +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**type** | **str** | | [optional] [readonly] [default to 'ValueListReference'] +**variable** | **str** | The name of the variable. | +**name** | **str** | The name of the task to pull output data from. | +**value** | **List[object]** | A fixed value for this reference. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/From4.md b/docs/From4.md new file mode 100644 index 000000000..a6269eb79 --- /dev/null +++ b/docs/From4.md @@ -0,0 +1,15 @@ +# From4 + +A reference to a DAG input, a DAG output or another task output. You can also use the ValueReference type to hard-code an input value. +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**type** | **str** | | [optional] [readonly] [default to 'ValueReference'] +**variable** | **str** | The name of the looped item variable (use dot notation for nested json values) | +**name** | **str** | The name of the task to pull output data from. | +**value** | **object** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/From5.md b/docs/From5.md new file mode 100644 index 000000000..263b7a556 --- /dev/null +++ b/docs/From5.md @@ -0,0 +1,15 @@ +# From5 + +A reference to a DAG input, a DAG output or another task output. You can also use the ValueReference type to hard-code an input value. +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**type** | **str** | | [optional] [readonly] [default to 'ValueFolderReference'] +**variable** | **str** | The name of the variable. | +**name** | **str** | The name of the task to pull output data from. | +**path** | **str** | A fixed value for this reference. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Function.md b/docs/Function.md index 3d7dfa8a8..7f89ce5ae 100644 --- a/docs/Function.md +++ b/docs/Function.md @@ -4,13 +4,13 @@ A Function with a single or a script. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **command** | **str** | Full shell command for this function. Each function accepts only one command. The command will be executed as a shell command in plugin. For running several commands after each other use && between the commands or pipe data from one to another using | | [optional] **description** | **str** | Function description. A short human readable description for this function. | [optional] -**inputs** | [**list[AnyOfFunctionStringInputFunctionIntegerInputFunctionNumberInputFunctionBooleanInputFunctionFolderInputFunctionFileInputFunctionPathInputFunctionArrayInputFunctionJSONObjectInput]**](AnyOfFunctionStringInputFunctionIntegerInputFunctionNumberInputFunctionBooleanInputFunctionFolderInputFunctionFileInputFunctionPathInputFunctionArrayInputFunctionJSONObjectInput.md) | Input arguments for this function. | [optional] +**inputs** | [**List[FunctionInputsInner]**](FunctionInputsInner.md) | Input arguments for this function. | [optional] **language** | [**ScriptingLanguages**](ScriptingLanguages.md) | Programming language of the script. Currently only Python is supported. | [optional] **name** | **str** | Function name. Must be unique within a plugin. | -**outputs** | [**list[AnyOfFunctionStringOutputFunctionIntegerOutputFunctionNumberOutputFunctionBooleanOutputFunctionFolderOutputFunctionFileOutputFunctionPathOutputFunctionArrayOutputFunctionJSONObjectOutput]**](AnyOfFunctionStringOutputFunctionIntegerOutputFunctionNumberOutputFunctionBooleanOutputFunctionFolderOutputFunctionFileOutputFunctionPathOutputFunctionArrayOutputFunctionJSONObjectOutput.md) | List of output arguments. | [optional] +**outputs** | [**List[FunctionOutputsInner]**](FunctionOutputsInner.md) | List of output arguments. | [optional] **source** | **str** | Source contains the source code of the script to execute. | [optional] **type** | **str** | | [optional] [readonly] [default to 'Function'] diff --git a/docs/FunctionArrayInput.md b/docs/FunctionArrayInput.md index 72cbd69c3..a2d82837c 100644 --- a/docs/FunctionArrayInput.md +++ b/docs/FunctionArrayInput.md @@ -4,9 +4,9 @@ A JSON array input. You can add additional validation by defining a JSONSchema ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] -**default** | **list[object]** | Default value to use for an input if a value was not supplied. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**default** | **List[object]** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] **items_type** | [**ItemType**](ItemType.md) | Type of items in an array. All the items in an array must be from the same type. | [optional] **name** | **str** | Input name. | diff --git a/docs/FunctionArrayOutput.md b/docs/FunctionArrayOutput.md index 369d40086..ac391b5a4 100644 --- a/docs/FunctionArrayOutput.md +++ b/docs/FunctionArrayOutput.md @@ -4,7 +4,7 @@ Function array output. This output loads the content from a JSON file which mus ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] **items_type** | [**ItemType**](ItemType.md) | Type of items in this array. All the items in an array must be from the same type. | [optional] **name** | **str** | Output name. | diff --git a/docs/FunctionBooleanInput.md b/docs/FunctionBooleanInput.md index 4c6dc77ea..94d02edea 100644 --- a/docs/FunctionBooleanInput.md +++ b/docs/FunctionBooleanInput.md @@ -4,8 +4,8 @@ The boolean type matches only two special values: True and False. Note that val ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **bool** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] **name** | **str** | Input name. | diff --git a/docs/FunctionBooleanOutput.md b/docs/FunctionBooleanOutput.md index 8d66d1354..4c3893d23 100644 --- a/docs/FunctionBooleanOutput.md +++ b/docs/FunctionBooleanOutput.md @@ -4,7 +4,7 @@ Function boolean output. This output loads the content from a file as a boolean ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] **name** | **str** | Output name. | **path** | **str** | Path to the output file relative to where the function command is executed. | diff --git a/docs/FunctionFileInput.md b/docs/FunctionFileInput.md index 5ab29e53e..f4f844982 100644 --- a/docs/FunctionFileInput.md +++ b/docs/FunctionFileInput.md @@ -4,11 +4,11 @@ A file input. File is a special string input. Unlike other string inputs, a fil ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] -**default** | [**AnyOfHTTPS3ProjectFolder**](AnyOfHTTPS3ProjectFolder.md) | The default source for file if the value is not provided. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**default** | [**Default**](Default.md) | | [optional] **description** | **str** | Optional description for input. | [optional] -**extensions** | **list[str]** | Optional list of extensions for file. The check for extension is case-insensitive. | [optional] +**extensions** | **List[str]** | Optional list of extensions for file. The check for extension is case-insensitive. | [optional] **name** | **str** | Input name. | **path** | **str** | Path to the target location that the input will be copied to. This path is relative to the working directory where the command is executed. | **required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] diff --git a/docs/FunctionFileOutput.md b/docs/FunctionFileOutput.md index dea7947d9..930e22b48 100644 --- a/docs/FunctionFileOutput.md +++ b/docs/FunctionFileOutput.md @@ -4,7 +4,7 @@ Function File output. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] **name** | **str** | Output name. | **path** | **str** | Path to the output file relative to where the function command is executed. | diff --git a/docs/FunctionFolderInput.md b/docs/FunctionFolderInput.md index 539e692d0..a27c0457c 100644 --- a/docs/FunctionFolderInput.md +++ b/docs/FunctionFolderInput.md @@ -4,9 +4,9 @@ A folder input. Folder is a special string input. Unlike other string inputs, a ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] -**default** | [**AnyOfHTTPS3ProjectFolder**](AnyOfHTTPS3ProjectFolder.md) | The default source for file if the value is not provided. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**default** | [**Default**](Default.md) | | [optional] **description** | **str** | Optional description for input. | [optional] **name** | **str** | Input name. | **path** | **str** | Path to the target location that the input will be copied to. This path is relative to the working directory where the command is executed. | diff --git a/docs/FunctionFolderOutput.md b/docs/FunctionFolderOutput.md index 25799ff2f..16ed47800 100644 --- a/docs/FunctionFolderOutput.md +++ b/docs/FunctionFolderOutput.md @@ -4,7 +4,7 @@ Function Folder output. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] **name** | **str** | Output name. | **path** | **str** | Path to the output folder relative to where the function command is executed. | diff --git a/docs/FunctionInputsInner.md b/docs/FunctionInputsInner.md new file mode 100644 index 000000000..2e3fafe6d --- /dev/null +++ b/docs/FunctionInputsInner.md @@ -0,0 +1,20 @@ +# FunctionInputsInner + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**default** | **object** | Default value to use for an input if a value was not supplied. | [optional] +**description** | **str** | Optional description for input. | [optional] +**name** | **str** | Input name. | +**required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] +**spec** | **object** | An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. | [optional] +**type** | **str** | | [optional] [readonly] [default to 'FunctionJSONObjectInput'] +**path** | **str** | Path to the target location that the input will be copied to. This path is relative to the working directory where the command is executed. | +**extensions** | **List[str]** | Optional list of extensions for file. The check for extension is case-insensitive. | [optional] +**items_type** | [**ItemType**](ItemType.md) | Type of items in an array. All the items in an array must be from the same type. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FunctionIntegerInput.md b/docs/FunctionIntegerInput.md index 3298a6cb6..3a7edf834 100644 --- a/docs/FunctionIntegerInput.md +++ b/docs/FunctionIntegerInput.md @@ -4,8 +4,8 @@ An integer input. You can add additional validation by defining a JSONSchema sp ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **int** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] **name** | **str** | Input name. | diff --git a/docs/FunctionIntegerOutput.md b/docs/FunctionIntegerOutput.md index 02abe66dd..0a52bdc92 100644 --- a/docs/FunctionIntegerOutput.md +++ b/docs/FunctionIntegerOutput.md @@ -4,7 +4,7 @@ Function integer output. This output loads the content from a file as an intege ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] **name** | **str** | Output name. | **path** | **str** | Path to the output file relative to where the function command is executed. | diff --git a/docs/FunctionJSONObjectInput.md b/docs/FunctionJSONObjectInput.md index ee74ade80..c897e925f 100644 --- a/docs/FunctionJSONObjectInput.md +++ b/docs/FunctionJSONObjectInput.md @@ -4,8 +4,8 @@ A JSON object input. JSON objects are similar to Python dictionaries. You can ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **object** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] **name** | **str** | Input name. | diff --git a/docs/FunctionJSONObjectOutput.md b/docs/FunctionJSONObjectOutput.md index 3709ca995..7a4ec4fe1 100644 --- a/docs/FunctionJSONObjectOutput.md +++ b/docs/FunctionJSONObjectOutput.md @@ -4,7 +4,7 @@ Function object output. This output loads the content from a file as a JSON obj ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] **name** | **str** | Output name. | **path** | **str** | Path to the output file relative to where the function command is executed. | diff --git a/docs/FunctionNumberInput.md b/docs/FunctionNumberInput.md index 934f6e2cc..35ef3cb13 100644 --- a/docs/FunctionNumberInput.md +++ b/docs/FunctionNumberInput.md @@ -4,8 +4,8 @@ A number input. You can add additional validation by defining a JSONSchema spec ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **float** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] **name** | **str** | Input name. | diff --git a/docs/FunctionNumberOutput.md b/docs/FunctionNumberOutput.md index f5363c66c..59e0c696c 100644 --- a/docs/FunctionNumberOutput.md +++ b/docs/FunctionNumberOutput.md @@ -4,7 +4,7 @@ Function number output. This output loads the content from a file as a floating ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] **name** | **str** | Output name. | **path** | **str** | Path to the output file relative to where the function command is executed. | diff --git a/docs/FunctionOutputsInner.md b/docs/FunctionOutputsInner.md new file mode 100644 index 000000000..e2ea69731 --- /dev/null +++ b/docs/FunctionOutputsInner.md @@ -0,0 +1,16 @@ +# FunctionOutputsInner + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**description** | **str** | Optional description for output. | [optional] +**name** | **str** | Output name. | +**path** | **str** | Path to the output file relative to where the function command is executed. | +**required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] +**type** | **str** | | [optional] [readonly] [default to 'FunctionJSONObjectOutput'] +**items_type** | [**ItemType**](ItemType.md) | Type of items in this array. All the items in an array must be from the same type. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FunctionPathInput.md b/docs/FunctionPathInput.md index 0848ed880..2d38f8ebd 100644 --- a/docs/FunctionPathInput.md +++ b/docs/FunctionPathInput.md @@ -4,11 +4,11 @@ A file or a folder input. Use this input only in cases that the input can be ei ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] -**default** | [**AnyOfHTTPS3ProjectFolder**](AnyOfHTTPS3ProjectFolder.md) | The default source for file if the value is not provided. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**default** | [**Default**](Default.md) | | [optional] **description** | **str** | Optional description for input. | [optional] -**extensions** | **list[str]** | Optional list of extensions for file. The check for extension is case-insensitive. | [optional] +**extensions** | **List[str]** | Optional list of extensions for file. The check for extension is case-insensitive. | [optional] **name** | **str** | Input name. | **path** | **str** | Path to the target location that the input will be copied to. This path is relative to the working directory where the command is executed. | **required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] diff --git a/docs/FunctionPathOutput.md b/docs/FunctionPathOutput.md index 274513903..17ca2492e 100644 --- a/docs/FunctionPathOutput.md +++ b/docs/FunctionPathOutput.md @@ -4,7 +4,7 @@ Function Path output. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] **name** | **str** | Output name. | **path** | **str** | Path to the output file or folder relative to where the function command is executed. | diff --git a/docs/FunctionStringInput.md b/docs/FunctionStringInput.md index fe193d5d0..5cc794018 100644 --- a/docs/FunctionStringInput.md +++ b/docs/FunctionStringInput.md @@ -4,8 +4,8 @@ A String input. You can add additional validation by defining a JSONSchema spec ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **str** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] **name** | **str** | Input name. | diff --git a/docs/FunctionStringOutput.md b/docs/FunctionStringOutput.md index 4913f79ff..a067e3c17 100644 --- a/docs/FunctionStringOutput.md +++ b/docs/FunctionStringOutput.md @@ -4,7 +4,7 @@ Function string output. This output loads the content from a file as a string. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] **name** | **str** | Output name. | **path** | **str** | Path to the output file relative to where the function command is executed. | diff --git a/docs/HTTP.md b/docs/HTTP.md index f6ab23404..1fbf7d19d 100644 --- a/docs/HTTP.md +++ b/docs/HTTP.md @@ -4,7 +4,7 @@ HTTP Source A web HTTP to an FTP server or an API for example. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **type** | **str** | | [optional] [readonly] [default to 'HTTP'] **url** | **str** | For a HTTP endpoint this can be http://climate.onebuilding.org. | diff --git a/docs/HTTPValidationError.md b/docs/HTTPValidationError.md index 5d3a268cf..5677ea3b8 100644 --- a/docs/HTTPValidationError.md +++ b/docs/HTTPValidationError.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**detail** | [**list[ValidationError]**](ValidationError.md) | | [optional] +**detail** | [**List[ValidationError]**](ValidationError.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/IOAliasHandler.md b/docs/IOAliasHandler.md index 46b7ec532..274cb2779 100644 --- a/docs/IOAliasHandler.md +++ b/docs/IOAliasHandler.md @@ -4,7 +4,7 @@ Input and output alias handler object. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **function** | **str** | Name of the function. The input value will be passed to this function as the first argument. | **index** | **int** | An integer to set the index for the order of execution. This input is only useful when there are more than one handler for the same platform and the output of one handler should be passed to another handler. This is also called chained handlers. By default all the handlers are indexed as 0 assuming they are not chained. | [optional] [default to 0] **language** | **str** | Declare the language (e.g. python, csharp, etc.). This option allows the recipe to be flexible on handling different programming languages. | diff --git a/docs/InputFileReference.md b/docs/InputFileReference.md index 12cdfdc7a..f442bede4 100644 --- a/docs/InputFileReference.md +++ b/docs/InputFileReference.md @@ -4,7 +4,7 @@ An input file reference ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **type** | **str** | | [optional] [readonly] [default to 'InputFileReference'] **variable** | **str** | The name of the DAG input variable | diff --git a/docs/InputFolderReference.md b/docs/InputFolderReference.md index 58e3206ec..66e65d09c 100644 --- a/docs/InputFolderReference.md +++ b/docs/InputFolderReference.md @@ -4,7 +4,7 @@ An input folder reference ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **type** | **str** | | [optional] [readonly] [default to 'InputFolderReference'] **variable** | **str** | The name of the DAG input variable | diff --git a/docs/InputPathReference.md b/docs/InputPathReference.md index 199228faf..6e6198e27 100644 --- a/docs/InputPathReference.md +++ b/docs/InputPathReference.md @@ -4,7 +4,7 @@ An input file or folder reference ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **type** | **str** | | [optional] [readonly] [default to 'InputPathReference'] **variable** | **str** | The name of the DAG input variable | diff --git a/docs/InputReference.md b/docs/InputReference.md index 5f4e364ce..790b35dca 100644 --- a/docs/InputReference.md +++ b/docs/InputReference.md @@ -4,7 +4,7 @@ An input parameter reference which is not a file or a folder. For a file or a f ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **type** | **str** | | [optional] [readonly] [default to 'InputReference'] **variable** | **str** | The name of the DAG input variable | diff --git a/docs/ItemReference.md b/docs/ItemReference.md index 6130dc1a0..1bb3302e5 100644 --- a/docs/ItemReference.md +++ b/docs/ItemReference.md @@ -4,7 +4,7 @@ An Item Reference. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **type** | **str** | | [optional] [readonly] [default to 'ItemReference'] **variable** | **str** | The name of the looped item variable (use dot notation for nested json values) | [optional] diff --git a/docs/ItemType.md b/docs/ItemType.md index 6832fc9e2..0eb17d009 100644 --- a/docs/ItemType.md +++ b/docs/ItemType.md @@ -1,6 +1,6 @@ # ItemType -Type enum for items in a list. Items can not be files or folder. For a list of files you should copy them to a folder and use FolderInput input instead of using ArrayInput. +Type enum for items in a list. Items can not be files or folder. For a list of files you should copy them to a folder and use FolderInput input instead of using ArrayInput. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/Job.md b/docs/Job.md index d1911fce2..dc3d2c3a8 100644 --- a/docs/Job.md +++ b/docs/Job.md @@ -4,11 +4,11 @@ Queenbee Job. A Job is an object to submit a list of arguments to execute a Que ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **api_version** | **str** | | [optional] [readonly] [default to 'v1beta1'] -**arguments** | **list[list[AnyOfJobArgumentJobPathArgument]]** | Input arguments for this job. | [optional] +**arguments** | **List[List[JobArgumentsInnerInner]]** | Input arguments for this job. | [optional] **description** | **str** | Run description. | [optional] -**labels** | **dict(str, str)** | Optional user data as a dictionary. User data is for user reference only and will not be used in the execution of the job. | [optional] +**labels** | **Dict[str, str]** | Optional user data as a dictionary. User data is for user reference only and will not be used in the execution of the job. | [optional] **name** | **str** | An optional name for this job. This name will be used a the display name for the run. | [optional] **source** | **str** | The source url for downloading the recipe. | **type** | **str** | | [optional] [readonly] [default to 'Job'] diff --git a/docs/JobArgument.md b/docs/JobArgument.md index b6f0b2d9c..e50e530d1 100644 --- a/docs/JobArgument.md +++ b/docs/JobArgument.md @@ -4,10 +4,10 @@ Job argument is an argument input for arguments which are not files or folders. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **name** | **str** | Argument name. The name must match one of the input names from Job's DAG template. | **type** | **str** | | [optional] [readonly] [default to 'JobArgument'] -**value** | **object** | The value of the job argument. | +**value** | **object** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/JobArgumentsInnerInner.md b/docs/JobArgumentsInnerInner.md new file mode 100644 index 000000000..dc9550c76 --- /dev/null +++ b/docs/JobArgumentsInnerInner.md @@ -0,0 +1,14 @@ +# JobArgumentsInnerInner + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**name** | **str** | Argument name. The name must match one of the input names from Job's template which can be a function or DAG. | +**type** | **str** | | [optional] [readonly] [default to 'JobPathArgument'] +**value** | **object** | | +**source** | [**Source**](Source.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobComputeUsage.md b/docs/JobComputeUsage.md new file mode 100644 index 000000000..d29aeebe0 --- /dev/null +++ b/docs/JobComputeUsage.md @@ -0,0 +1,22 @@ +# JobComputeUsage + +A row in a report on job CPU usage +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_name** | **str** | | +**author_email** | **str** | | +**author_name** | **str** | | +**cpu_usage_hours** | **float** | | +**finished_at** | **datetime** | | +**job_id** | **str** | | +**project_name** | **str** | | +**recipe_name** | **str** | | +**runs_cancelled** | **int** | | [optional] [default to 0] +**runs_failed** | **int** | | [optional] [default to 0] +**runs_succeeded** | **int** | | [optional] [default to 0] +**started_at** | **datetime** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobPathArgument.md b/docs/JobPathArgument.md index d20989950..8eb48f13e 100644 --- a/docs/JobPathArgument.md +++ b/docs/JobPathArgument.md @@ -4,9 +4,9 @@ BaseModel with functionality to return the object as a yaml string. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **name** | **str** | Argument name. The name must match one of the input names from Job's template which can be a function or DAG. | -**source** | [**AnyOfHTTPS3ProjectFolder**](AnyOfHTTPS3ProjectFolder.md) | The path to source the file from. | +**source** | [**Source**](Source.md) | | **type** | **str** | | [optional] [readonly] [default to 'JobPathArgument'] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/JobStatus.md b/docs/JobStatus.md index 38d63108f..1933d2726 100644 --- a/docs/JobStatus.md +++ b/docs/JobStatus.md @@ -4,7 +4,7 @@ Parametric Job Status. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **api_version** | **str** | | [optional] [readonly] [default to 'v1beta1'] **finished_at** | **datetime** | The time at which the task was completed | [optional] **id** | **str** | The ID of the individual job. | diff --git a/docs/JobsApi.md b/docs/JobsApi.md index ca6d5e06d..a9c9e6b98 100644 --- a/docs/JobsApi.md +++ b/docs/JobsApi.md @@ -15,7 +15,7 @@ Method | HTTP request | Description # **cancel_job** -> CloudJob cancel_job(owner, name, job_id) +> CloudJob cancel_job(ownernamejob_id) Cancel a Job @@ -23,7 +23,7 @@ Retrieve a job. ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -31,16 +31,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -56,6 +46,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -66,13 +66,13 @@ job_id = 'job_id_example' # str | try: # Cancel a Job - api_response = api_instance.cancel_job(owner, name, job_id) + api_response = api_instance.cancel_job(ownernamejob_id) pprint(api_response) except ApiException as e: print("Exception when calling JobsApi->cancel_job: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -80,16 +80,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -105,6 +95,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -115,7 +115,7 @@ job_id = 'job_id_example' # str | try: # Cancel a Job - api_response = api_instance.cancel_job(owner, name, job_id) + api_response = api_instance.cancel_job(ownernamejob_id) pprint(api_response) except ApiException as e: print("Exception when calling JobsApi->cancel_job: %s\n" % e) @@ -135,7 +135,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -151,7 +151,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_job** -> CreatedContent create_job(owner, name, job, authorization=authorization, x_pollination_token=x_pollination_token) +> CreatedContent create_job(ownernamejobauthorization=authorizationx_pollination_token=x_pollination_token) Schedule a job @@ -159,7 +159,7 @@ Create a new job. ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -167,16 +167,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -192,6 +182,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -204,13 +204,13 @@ x_pollination_token = 'x_pollination_token_example' # str | (optional) try: # Schedule a job - api_response = api_instance.create_job(owner, name, job, authorization=authorization, x_pollination_token=x_pollination_token) + api_response = api_instance.create_job(ownernamejobauthorization=authorizationx_pollination_token=x_pollination_token) pprint(api_response) except ApiException as e: print("Exception when calling JobsApi->create_job: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -218,16 +218,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -243,6 +233,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -255,7 +255,7 @@ x_pollination_token = 'x_pollination_token_example' # str | (optional) try: # Schedule a job - api_response = api_instance.create_job(owner, name, job, authorization=authorization, x_pollination_token=x_pollination_token) + api_response = api_instance.create_job(ownernamejobauthorization=authorizationx_pollination_token=x_pollination_token) pprint(api_response) except ApiException as e: print("Exception when calling JobsApi->create_job: %s\n" % e) @@ -277,7 +277,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -293,7 +293,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_job** -> object delete_job(owner, name, job_id) +> object delete_job(ownernamejob_id) Delete a Job @@ -301,7 +301,7 @@ Delete a job. ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -309,16 +309,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -334,6 +324,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -344,13 +344,13 @@ job_id = 'job_id_example' # str | try: # Delete a Job - api_response = api_instance.delete_job(owner, name, job_id) + api_response = api_instance.delete_job(ownernamejob_id) pprint(api_response) except ApiException as e: print("Exception when calling JobsApi->delete_job: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -358,16 +358,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -383,6 +373,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -393,7 +393,7 @@ job_id = 'job_id_example' # str | try: # Delete a Job - api_response = api_instance.delete_job(owner, name, job_id) + api_response = api_instance.delete_job(ownernamejob_id) pprint(api_response) except ApiException as e: print("Exception when calling JobsApi->delete_job: %s\n" % e) @@ -413,7 +413,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -429,7 +429,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **download_job_artifact** -> object download_job_artifact(owner, name, job_id, path=path) +> str download_job_artifact(ownernamejob_idpath=path) Download an artifact from the job folder @@ -437,7 +437,7 @@ Get a download link for an artifact in a job folder ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -445,16 +445,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -470,6 +460,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -481,13 +481,13 @@ path = 'path_example' # str | The path to an file within a project folder (optio try: # Download an artifact from the job folder - api_response = api_instance.download_job_artifact(owner, name, job_id, path=path) + api_response = api_instance.download_job_artifact(ownernamejob_idpath=path) pprint(api_response) except ApiException as e: print("Exception when calling JobsApi->download_job_artifact: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -495,16 +495,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -520,6 +510,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -531,7 +531,7 @@ path = 'path_example' # str | The path to an file within a project folder (optio try: # Download an artifact from the job folder - api_response = api_instance.download_job_artifact(owner, name, job_id, path=path) + api_response = api_instance.download_job_artifact(ownernamejob_idpath=path) pprint(api_response) except ApiException as e: print("Exception when calling JobsApi->download_job_artifact: %s\n" % e) @@ -548,11 +548,11 @@ Name | Type | Description | Notes ### Return type -**object** +**str** ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -572,7 +572,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_job** -> CloudJob get_job(owner, name, job_id) +> CloudJob get_job(ownernamejob_id) Get a Job @@ -580,7 +580,7 @@ Retrieve a job. ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -588,16 +588,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -613,6 +603,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -623,13 +623,13 @@ job_id = 'job_id_example' # str | try: # Get a Job - api_response = api_instance.get_job(owner, name, job_id) + api_response = api_instance.get_job(ownernamejob_id) pprint(api_response) except ApiException as e: print("Exception when calling JobsApi->get_job: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -637,16 +637,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -662,6 +652,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -672,7 +672,7 @@ job_id = 'job_id_example' # str | try: # Get a Job - api_response = api_instance.get_job(owner, name, job_id) + api_response = api_instance.get_job(ownernamejob_id) pprint(api_response) except ApiException as e: print("Exception when calling JobsApi->get_job: %s\n" % e) @@ -692,7 +692,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -708,7 +708,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_jobs** -> CloudJobList list_jobs(owner, name, ids=ids, status=status, created_after=created_after, created_before=created_before, page=page, per_page=per_page) +> CloudJobList list_jobs(ownernameids=idsstatus=statuscreated_after=created_aftercreated_before=created_beforepage=pageper_page=per_page) List Jobs @@ -716,7 +716,7 @@ Retrieve a list of jobs. ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -724,16 +724,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -749,13 +739,23 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.JobsApi(api_client) owner = 'owner_example' # str | name = 'name_example' # str | -ids = ['ids_example'] # list[str] | (optional) +ids = ['ids_example'] # List[str] | (optional) status = pollination_sdk.JobStatusEnum() # JobStatusEnum | (optional) created_after = '2013-10-20T19:20:30+01:00' # datetime | (optional) created_before = '2013-10-20T19:20:30+01:00' # datetime | (optional) @@ -764,13 +764,13 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List Jobs - api_response = api_instance.list_jobs(owner, name, ids=ids, status=status, created_after=created_after, created_before=created_before, page=page, per_page=per_page) + api_response = api_instance.list_jobs(ownernameids=idsstatus=statuscreated_after=created_aftercreated_before=created_beforepage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling JobsApi->list_jobs: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -778,16 +778,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -803,13 +793,23 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.JobsApi(api_client) owner = 'owner_example' # str | name = 'name_example' # str | -ids = ['ids_example'] # list[str] | (optional) +ids = ['ids_example'] # List[str] | (optional) status = pollination_sdk.JobStatusEnum() # JobStatusEnum | (optional) created_after = '2013-10-20T19:20:30+01:00' # datetime | (optional) created_before = '2013-10-20T19:20:30+01:00' # datetime | (optional) @@ -818,7 +818,7 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List Jobs - api_response = api_instance.list_jobs(owner, name, ids=ids, status=status, created_after=created_after, created_before=created_before, page=page, per_page=per_page) + api_response = api_instance.list_jobs(ownernameids=idsstatus=statuscreated_after=created_aftercreated_before=created_beforepage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling JobsApi->list_jobs: %s\n" % e) @@ -830,7 +830,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **str**| | **name** | **str**| | - **ids** | [**list[str]**](str.md)| | [optional] + **ids** | [**List[str]**](str.md)| | [optional] **status** | [**JobStatusEnum**](.md)| | [optional] **created_after** | **datetime**| | [optional] **created_before** | **datetime**| | [optional] @@ -843,7 +843,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -859,7 +859,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **retry_job** -> CloudJob retry_job(owner, name, job_id, retry_config) +> CloudJob retry_job(ownernamejob_idretry_config) Retry failed runs for a Job @@ -867,7 +867,7 @@ Retry failed runs for a job. ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -875,16 +875,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -900,6 +890,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -911,13 +911,13 @@ retry_config = pollination_sdk.RetryConfig() # RetryConfig | try: # Retry failed runs for a Job - api_response = api_instance.retry_job(owner, name, job_id, retry_config) + api_response = api_instance.retry_job(ownernamejob_idretry_config) pprint(api_response) except ApiException as e: print("Exception when calling JobsApi->retry_job: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -925,16 +925,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -950,6 +940,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -961,7 +961,7 @@ retry_config = pollination_sdk.RetryConfig() # RetryConfig | try: # Retry failed runs for a Job - api_response = api_instance.retry_job(owner, name, job_id, retry_config) + api_response = api_instance.retry_job(ownernamejob_idretry_config) pprint(api_response) except ApiException as e: print("Exception when calling JobsApi->retry_job: %s\n" % e) @@ -982,7 +982,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -998,7 +998,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **search_job_folder** -> object search_job_folder(owner, name, job_id, path=path, page=page, per_page=per_page) +> FileMetaList search_job_folder(ownernamejob_idpath=pathpage=pageper_page=per_page) List files/folders in a job folder @@ -1006,7 +1006,7 @@ Retrieve a list of artifacts in a job folder ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -1014,16 +1014,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1039,6 +1029,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1046,19 +1046,19 @@ with pollination_sdk.ApiClient(configuration) as api_client: owner = 'owner_example' # str | name = 'name_example' # str | job_id = 'job_id_example' # str | -path = ['path_example'] # list[str] | The path to an file within a project folder (optional) +path = ['path_example'] # List[str] | The path to an file within a project folder (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List files/folders in a job folder - api_response = api_instance.search_job_folder(owner, name, job_id, path=path, page=page, per_page=per_page) + api_response = api_instance.search_job_folder(ownernamejob_idpath=pathpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling JobsApi->search_job_folder: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -1066,16 +1066,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1091,6 +1081,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1098,13 +1098,13 @@ with pollination_sdk.ApiClient(configuration) as api_client: owner = 'owner_example' # str | name = 'name_example' # str | job_id = 'job_id_example' # str | -path = ['path_example'] # list[str] | The path to an file within a project folder (optional) +path = ['path_example'] # List[str] | The path to an file within a project folder (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List files/folders in a job folder - api_response = api_instance.search_job_folder(owner, name, job_id, path=path, page=page, per_page=per_page) + api_response = api_instance.search_job_folder(ownernamejob_idpath=pathpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling JobsApi->search_job_folder: %s\n" % e) @@ -1117,17 +1117,17 @@ Name | Type | Description | Notes **owner** | **str**| | **name** | **str**| | **job_id** | **str**| | - **path** | [**list[str]**](str.md)| The path to an file within a project folder | [optional] + **path** | [**List[str]**](str.md)| The path to an file within a project folder | [optional] **page** | **int**| Page number starting from 1 | [optional] [default to 1] **per_page** | **int**| Number of items per page | [optional] [default to 25] ### Return type -**object** +[**FileMetaList**](FileMetaList.md) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers diff --git a/docs/License.md b/docs/License.md index 71fcb3bdf..723549ad5 100644 --- a/docs/License.md +++ b/docs/License.md @@ -4,7 +4,7 @@ License information for the Package ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **name** | **str** | The license name used for the package. | **type** | **str** | | [optional] [readonly] [default to 'License'] **url** | **str** | A URL to the license used for the package. | [optional] diff --git a/docs/LicensePoolAccessPolicyList.md b/docs/LicensePoolAccessPolicyList.md index a8cdf60b1..1a28c7cc2 100644 --- a/docs/LicensePoolAccessPolicyList.md +++ b/docs/LicensePoolAccessPolicyList.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**resources** | [**list[LicensePoolAccessPolicy]**](LicensePoolAccessPolicy.md) | The list of policies granting access to the pool | [optional] [default to []] +**resources** | [**List[LicensePoolAccessPolicy]**](LicensePoolAccessPolicy.md) | The list of policies granting access to the pool | [optional] [default to []] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LicensePoolList.md b/docs/LicensePoolList.md index 8775724f5..33acd776b 100644 --- a/docs/LicensePoolList.md +++ b/docs/LicensePoolList.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**resources** | [**list[LicensePoolPublic]**](LicensePoolPublic.md) | | +**resources** | [**List[LicensePoolPublic]**](LicensePoolPublic.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LicensePoolPolicySubjectList.md b/docs/LicensePoolPolicySubjectList.md index 16ddf14a8..94592a73c 100644 --- a/docs/LicensePoolPolicySubjectList.md +++ b/docs/LicensePoolPolicySubjectList.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**resources** | [**list[LicensePoolPolicySubject]**](LicensePoolPolicySubject.md) | The list of subjects which currently have access to the pool | [optional] [default to []] +**resources** | [**List[LicensePoolPolicySubject]**](LicensePoolPolicySubject.md) | The list of subjects which currently have access to the pool | [optional] [default to []] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LicensePoolPublic.md b/docs/LicensePoolPublic.md index 29be82eea..f4e4e82c9 100644 --- a/docs/LicensePoolPublic.md +++ b/docs/LicensePoolPublic.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**accessors** | [**list[Accessor]**](Accessor.md) | The entities that can access the license though the pool | [optional] [default to []] +**accessors** | [**List[Accessor]**](Accessor.md) | The entities that can access the license though the pool | [optional] [default to []] **allowed_activations** | **int** | The number of allowable activations for this license | **description** | **str** | The description of the pool | [optional] **id** | **str** | The ID of the pool | diff --git a/docs/LicensePublic.md b/docs/LicensePublic.md index 2026daa00..8031fc872 100644 --- a/docs/LicensePublic.md +++ b/docs/LicensePublic.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **id** | **str** | | **key** | **str** | The key used to activate this license. Treat this like a password. | **lease_duration** | **int** | | -**metadata** | [**list[Metadata]**](Metadata.md) | | +**metadata** | [**List[Metadata]**](Metadata.md) | | **notes** | **str** | | [optional] **product_id** | **str** | | **revoked** | **bool** | | @@ -17,7 +17,7 @@ Name | Type | Description | Notes **suspended** | **bool** | | **total_activations** | **int** | | **total_deactivations** | **int** | | -**type** | [**LicenseType**](LicenseType.md) | | +**type** | [**LicenseType**](LicenseType.md) | | [readonly] **updated_at** | **datetime** | | **validity** | **int** | | diff --git a/docs/LicensesApi.md b/docs/LicensesApi.md index d3b811b40..95752dcfd 100644 --- a/docs/LicensesApi.md +++ b/docs/LicensesApi.md @@ -15,13 +15,13 @@ Method | HTTP request | Description # **delete_activation** -> delete_activation(pool_id, activation_id) +> delete_activation(pool_idactivation_id) Delete the activation ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -29,16 +29,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -54,6 +44,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -63,12 +63,12 @@ activation_id = 'activation_id_example' # str | try: # Delete the activation - api_instance.delete_activation(pool_id, activation_id) + api_instance.delete_activation(pool_idactivation_id) except ApiException as e: print("Exception when calling LicensesApi->delete_activation: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -76,16 +76,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -101,6 +91,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -110,7 +110,7 @@ activation_id = 'activation_id_example' # str | try: # Delete the activation - api_instance.delete_activation(pool_id, activation_id) + api_instance.delete_activation(pool_idactivation_id) except ApiException as e: print("Exception when calling LicensesApi->delete_activation: %s\n" % e) ``` @@ -128,7 +128,7 @@ void (empty response body) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -150,7 +150,7 @@ Get license pools available to authenticated user ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -158,16 +158,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -183,11 +173,21 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.LicensesApi(api_client) - owner = ['owner_example'] # list[str] | Owner of the project (optional) + owner = ['owner_example'] # List[str] | Owner of the project (optional) try: # Get license pools available to authenticated user @@ -197,7 +197,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: print("Exception when calling LicensesApi->get_available_pools: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -205,16 +205,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -230,11 +220,21 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.LicensesApi(api_client) - owner = ['owner_example'] # list[str] | Owner of the project (optional) + owner = ['owner_example'] # List[str] | Owner of the project (optional) try: # Get license pools available to authenticated user @@ -248,7 +248,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | [**list[str]**](str.md)| Owner of the project | [optional] + **owner** | [**List[str]**](str.md)| Owner of the project | [optional] ### Return type @@ -256,7 +256,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -278,7 +278,7 @@ Get the activations for the license ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -286,16 +286,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -311,6 +301,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -325,7 +325,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: print("Exception when calling LicensesApi->get_license_activations: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -333,16 +333,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -358,6 +348,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -384,7 +384,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -406,7 +406,7 @@ Get the license associated with a pool ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -414,16 +414,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -439,6 +429,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -453,7 +453,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: print("Exception when calling LicensesApi->get_pool_license: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -461,16 +461,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -486,6 +476,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -504,7 +504,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pool_id** | [**str**](.md)| | + **pool_id** | **str**| | ### Return type @@ -512,7 +512,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -528,13 +528,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **grant_access_to_pool** -> LicensePoolPublic grant_access_to_pool(pool_id, license_pool_access_policy_list) +> LicensePoolPublic grant_access_to_pool(pool_idlicense_pool_access_policy_list) Grant access to the license pool ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -542,16 +542,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -567,6 +557,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -576,13 +576,13 @@ license_pool_access_policy_list = pollination_sdk.LicensePoolAccessPolicyList() try: # Grant access to the license pool - api_response = api_instance.grant_access_to_pool(pool_id, license_pool_access_policy_list) + api_response = api_instance.grant_access_to_pool(pool_idlicense_pool_access_policy_list) pprint(api_response) except ApiException as e: print("Exception when calling LicensesApi->grant_access_to_pool: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -590,16 +590,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -615,6 +605,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -624,7 +624,7 @@ license_pool_access_policy_list = pollination_sdk.LicensePoolAccessPolicyList() try: # Grant access to the license pool - api_response = api_instance.grant_access_to_pool(pool_id, license_pool_access_policy_list) + api_response = api_instance.grant_access_to_pool(pool_idlicense_pool_access_policy_list) pprint(api_response) except ApiException as e: print("Exception when calling LicensesApi->grant_access_to_pool: %s\n" % e) @@ -634,7 +634,7 @@ license_pool_access_policy_list = pollination_sdk.LicensePoolAccessPolicyList() Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pool_id** | [**str**](.md)| | + **pool_id** | **str**| | **license_pool_access_policy_list** | [**LicensePoolAccessPolicyList**](LicensePoolAccessPolicyList.md)| | ### Return type @@ -643,7 +643,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -665,7 +665,7 @@ Regenerate the license associated with the pool ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -673,16 +673,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -698,6 +688,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -712,7 +712,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: print("Exception when calling LicensesApi->regenerate_license_pool: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -720,16 +720,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -745,6 +735,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -763,7 +763,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pool_id** | [**str**](.md)| | + **pool_id** | **str**| | ### Return type @@ -771,7 +771,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -787,13 +787,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **revoke_access_to_pool** -> LicensePoolPublic revoke_access_to_pool(pool_id, license_pool_policy_subject_list) +> LicensePoolPublic revoke_access_to_pool(pool_idlicense_pool_policy_subject_list) Revoke access to the license pool ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -801,16 +801,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -826,6 +816,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -835,13 +835,13 @@ license_pool_policy_subject_list = pollination_sdk.LicensePoolPolicySubjectList( try: # Revoke access to the license pool - api_response = api_instance.revoke_access_to_pool(pool_id, license_pool_policy_subject_list) + api_response = api_instance.revoke_access_to_pool(pool_idlicense_pool_policy_subject_list) pprint(api_response) except ApiException as e: print("Exception when calling LicensesApi->revoke_access_to_pool: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -849,16 +849,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -874,6 +864,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -883,7 +883,7 @@ license_pool_policy_subject_list = pollination_sdk.LicensePoolPolicySubjectList( try: # Revoke access to the license pool - api_response = api_instance.revoke_access_to_pool(pool_id, license_pool_policy_subject_list) + api_response = api_instance.revoke_access_to_pool(pool_idlicense_pool_policy_subject_list) pprint(api_response) except ApiException as e: print("Exception when calling LicensesApi->revoke_access_to_pool: %s\n" % e) @@ -893,7 +893,7 @@ license_pool_policy_subject_list = pollination_sdk.LicensePoolPolicySubjectList( Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pool_id** | [**str**](.md)| | + **pool_id** | **str**| | **license_pool_policy_subject_list** | [**LicensePoolPolicySubjectList**](LicensePoolPolicySubjectList.md)| | ### Return type @@ -902,7 +902,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -918,13 +918,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_license_pool** -> object update_license_pool(pool_id, license_pool_update) +> object update_license_pool(pool_idlicense_pool_update) Update the license pool ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -932,16 +932,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -957,6 +947,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -966,13 +966,13 @@ license_pool_update = pollination_sdk.LicensePoolUpdate() # LicensePoolUpdate | try: # Update the license pool - api_response = api_instance.update_license_pool(pool_id, license_pool_update) + api_response = api_instance.update_license_pool(pool_idlicense_pool_update) pprint(api_response) except ApiException as e: print("Exception when calling LicensesApi->update_license_pool: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -980,16 +980,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1005,6 +995,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1014,7 +1014,7 @@ license_pool_update = pollination_sdk.LicensePoolUpdate() # LicensePoolUpdate | try: # Update the license pool - api_response = api_instance.update_license_pool(pool_id, license_pool_update) + api_response = api_instance.update_license_pool(pool_idlicense_pool_update) pprint(api_response) except ApiException as e: print("Exception when calling LicensesApi->update_license_pool: %s\n" % e) @@ -1024,7 +1024,7 @@ license_pool_update = pollination_sdk.LicensePoolUpdate() # LicensePoolUpdate | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pool_id** | [**str**](.md)| | + **pool_id** | **str**| | **license_pool_update** | [**LicensePoolUpdate**](LicensePoolUpdate.md)| | ### Return type @@ -1033,7 +1033,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers diff --git a/docs/LocalConfig.md b/docs/LocalConfig.md index b53b484ab..6ab846621 100644 --- a/docs/LocalConfig.md +++ b/docs/LocalConfig.md @@ -4,7 +4,7 @@ Plugin Configuration to run on a desktop. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **type** | **str** | | [optional] [readonly] [default to 'LocalConfig'] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Maintainer.md b/docs/Maintainer.md index b1c332d9b..60e4893e3 100644 --- a/docs/Maintainer.md +++ b/docs/Maintainer.md @@ -4,7 +4,7 @@ Maintainer information ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **email** | **str** | The email address of the author/maintainer person or organization. | [optional] **name** | **str** | The name of the author/maintainer person or organization. | **type** | **str** | | [optional] [readonly] [default to 'Maintainer'] diff --git a/docs/Manifest.md b/docs/Manifest.md new file mode 100644 index 000000000..7229d9716 --- /dev/null +++ b/docs/Manifest.md @@ -0,0 +1,18 @@ +# Manifest + +The package Recipe or Plugin manifest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**api_version** | **str** | | [optional] [readonly] [default to 'v1beta1'] +**dependencies** | [**List[Dependency]**](Dependency.md) | A list of plugins and other recipes this recipe depends on. | [optional] +**flow** | [**List[DAG]**](DAG.md) | A list of tasks to create a DAG recipe. | +**metadata** | [**MetaData**](MetaData.md) | The Plugin metadata information | +**type** | **str** | | [optional] [readonly] [default to 'Plugin'] +**config** | [**PluginConfig**](PluginConfig.md) | The configuration information to run this plugin | +**functions** | [**List[Function]**](Function.md) | List of Plugin functions | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MetaData.md b/docs/MetaData.md index ac3a44c9e..9e2023fa2 100644 --- a/docs/MetaData.md +++ b/docs/MetaData.md @@ -4,17 +4,17 @@ Package metadata information. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **app_version** | **str** | The version of the application code underlying the manifest | [optional] **deprecated** | **bool** | Whether this package is deprecated | [optional] **description** | **str** | A description of what this package does | [optional] **home** | **str** | The URL of this package's home page | [optional] **icon** | **str** | A URL to an SVG or PNG image to be used as an icon | [optional] -**keywords** | **list[str]** | A list of keywords to search the package by | [optional] +**keywords** | **List[str]** | A list of keywords to search the package by | [optional] **license** | [**License**](License.md) | The license information. | [optional] -**maintainers** | [**list[Maintainer]**](Maintainer.md) | A list of maintainers for the package | [optional] +**maintainers** | [**List[Maintainer]**](Maintainer.md) | A list of maintainers for the package | [optional] **name** | **str** | Package name. Make it descriptive and helpful ;) | -**sources** | **list[str]** | A list of URLs to source code for this project | [optional] +**sources** | **List[str]** | A list of URLs to source code for this project | [optional] **tag** | **str** | The tag of the package | **type** | **str** | | [optional] [readonly] [default to 'MetaData'] diff --git a/docs/ModelFrom.md b/docs/ModelFrom.md new file mode 100644 index 000000000..2c4e1f885 --- /dev/null +++ b/docs/ModelFrom.md @@ -0,0 +1,15 @@ +# ModelFrom + +Reference to a file or a task output. Task output must be file. +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**name** | **str** | The name of the task to pull output data from. | +**type** | **str** | | [optional] [readonly] [default to 'FileReference'] +**variable** | **str** | The name of the variable. | +**path** | **str** | Relative path to a file. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OrganizationList.md b/docs/OrganizationList.md index 33c9802a5..f471c9623 100644 --- a/docs/OrganizationList.md +++ b/docs/OrganizationList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[Organization]**](Organization.md) | | +**resources** | [**List[Organization]**](Organization.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/OrganizationMemberList.md b/docs/OrganizationMemberList.md index 79dc494e5..dd70a6179 100644 --- a/docs/OrganizationMemberList.md +++ b/docs/OrganizationMemberList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[OrganizationMember]**](OrganizationMember.md) | | +**resources** | [**List[OrganizationMember]**](OrganizationMember.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/OrganizationMemberUsage.md b/docs/OrganizationMemberUsage.md new file mode 100644 index 000000000..ab83197c8 --- /dev/null +++ b/docs/OrganizationMemberUsage.md @@ -0,0 +1,19 @@ +# OrganizationMemberUsage + +A row in a report on compute usage by organisation members +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created_at** | **datetime** | | +**deleted** | **bool** | | +**deleted_at** | **datetime** | | [optional] +**display_name** | **str** | | +**email** | **str** | | +**permission** | **str** | | +**updated_at** | **datetime** | | +**user_id** | **str** | | +**username** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OrgsApi.md b/docs/OrgsApi.md index e378b888e..595bcd37b 100644 --- a/docs/OrgsApi.md +++ b/docs/OrgsApi.md @@ -23,7 +23,7 @@ Create a new org. ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -31,16 +31,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -56,6 +46,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -70,7 +70,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: print("Exception when calling OrgsApi->create_org: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -78,16 +78,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -103,6 +93,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -129,7 +129,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -157,7 +157,7 @@ Delete a org (must have `admin` permission) ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -165,16 +165,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -190,6 +180,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -203,7 +203,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: print("Exception when calling OrgsApi->delete_org: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -211,16 +211,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -236,6 +226,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -261,7 +261,7 @@ void (empty response body) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -280,7 +280,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_org_member** -> delete_org_member(name, username) +> delete_org_member(nameusername) Remove an Org member @@ -288,7 +288,7 @@ Remove a member from the org (must have org `owner` role) ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -296,16 +296,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -321,6 +311,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -330,12 +330,12 @@ username = 'username_example' # str | try: # Remove an Org member - api_instance.delete_org_member(name, username) + api_instance.delete_org_member(nameusername) except ApiException as e: print("Exception when calling OrgsApi->delete_org_member: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -343,16 +343,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -368,6 +358,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -377,7 +377,7 @@ username = 'username_example' # str | try: # Remove an Org member - api_instance.delete_org_member(name, username) + api_instance.delete_org_member(nameusername) except ApiException as e: print("Exception when calling OrgsApi->delete_org_member: %s\n" % e) ``` @@ -395,7 +395,7 @@ void (empty response body) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -422,7 +422,7 @@ Retrieve a org by name ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -430,16 +430,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -455,6 +445,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -469,7 +469,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: print("Exception when calling OrgsApi->get_org: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -477,16 +477,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -502,6 +492,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -528,7 +528,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -556,7 +556,7 @@ Retrieve a org's members ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -564,16 +564,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -589,6 +579,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -603,7 +603,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: print("Exception when calling OrgsApi->get_org_members: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -611,16 +611,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -636,6 +626,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -662,7 +662,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -678,7 +678,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_orgs** -> OrganizationList list_orgs(search=search, name=name, member=member, page=page, per_page=per_page) +> OrganizationList list_orgs(search=searchname=namemember=memberpage=pageper_page=per_page) List Orgs @@ -686,7 +686,7 @@ search for orgs using query parameters ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -694,16 +694,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -719,25 +709,35 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.OrgsApi(api_client) - search = [] # list[str] | You know, for search (optional) (default to []) -name = [] # list[str] | The account name (optional) (default to []) -member = [] # list[str] | The username of a user (optional) (default to []) + search = [] # List[str] | You know, for search (optional) (default to []) +name = [] # List[str] | The account name (optional) (default to []) +member = [] # List[str] | The username of a user (optional) (default to []) page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List Orgs - api_response = api_instance.list_orgs(search=search, name=name, member=member, page=page, per_page=per_page) + api_response = api_instance.list_orgs(search=searchname=namemember=memberpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling OrgsApi->list_orgs: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -745,16 +745,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -770,19 +760,29 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.OrgsApi(api_client) - search = [] # list[str] | You know, for search (optional) (default to []) -name = [] # list[str] | The account name (optional) (default to []) -member = [] # list[str] | The username of a user (optional) (default to []) + search = [] # List[str] | You know, for search (optional) (default to []) +name = [] # List[str] | The account name (optional) (default to []) +member = [] # List[str] | The username of a user (optional) (default to []) page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List Orgs - api_response = api_instance.list_orgs(search=search, name=name, member=member, page=page, per_page=per_page) + api_response = api_instance.list_orgs(search=searchname=namemember=memberpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling OrgsApi->list_orgs: %s\n" % e) @@ -792,9 +792,9 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **search** | [**list[str]**](str.md)| You know, for search | [optional] [default to []] - **name** | [**list[str]**](str.md)| The account name | [optional] [default to []] - **member** | [**list[str]**](str.md)| The username of a user | [optional] [default to []] + **search** | [**List[str]**](str.md)| You know, for search | [optional] [default to []] + **name** | [**List[str]**](str.md)| The account name | [optional] [default to []] + **member** | [**List[str]**](str.md)| The username of a user | [optional] [default to []] **page** | **int**| Page number starting from 1 | [optional] [default to 1] **per_page** | **int**| Number of items per page | [optional] [default to 25] @@ -804,7 +804,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -820,7 +820,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_org** -> UpdateAccepted update_org(name, organization_update) +> UpdateAccepted update_org(nameorganization_update) Update an Org @@ -828,7 +828,7 @@ Update a org (must have org `owner` role) ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -836,16 +836,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -861,6 +851,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -870,13 +870,13 @@ organization_update = pollination_sdk.OrganizationUpdate() # OrganizationUpdate try: # Update an Org - api_response = api_instance.update_org(name, organization_update) + api_response = api_instance.update_org(nameorganization_update) pprint(api_response) except ApiException as e: print("Exception when calling OrgsApi->update_org: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -884,16 +884,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -909,6 +899,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -918,7 +918,7 @@ organization_update = pollination_sdk.OrganizationUpdate() # OrganizationUpdate try: # Update an Org - api_response = api_instance.update_org(name, organization_update) + api_response = api_instance.update_org(nameorganization_update) pprint(api_response) except ApiException as e: print("Exception when calling OrgsApi->update_org: %s\n" % e) @@ -937,7 +937,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -957,7 +957,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **upsert_org_member** -> UpdateAccepted upsert_org_member(name, username, role) +> UpdateAccepted upsert_org_member(nameusernamerole) Add or update the role of an Org Member @@ -965,7 +965,7 @@ Upsert a member role to the org (must have org `owner` role) ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -973,16 +973,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -998,6 +988,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1008,13 +1008,13 @@ role = pollination_sdk.OrganizationRoleEnum() # OrganizationRoleEnum | try: # Add or update the role of an Org Member - api_response = api_instance.upsert_org_member(name, username, role) + api_response = api_instance.upsert_org_member(nameusernamerole) pprint(api_response) except ApiException as e: print("Exception when calling OrgsApi->upsert_org_member: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -1022,16 +1022,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1047,6 +1037,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1057,7 +1057,7 @@ role = pollination_sdk.OrganizationRoleEnum() # OrganizationRoleEnum | try: # Add or update the role of an Org Member - api_response = api_instance.upsert_org_member(name, username, role) + api_response = api_instance.upsert_org_member(nameusernamerole) pprint(api_response) except ApiException as e: print("Exception when calling OrgsApi->upsert_org_member: %s\n" % e) @@ -1077,7 +1077,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers diff --git a/docs/PackageVersion.md b/docs/PackageVersion.md index b7b376dee..80c01aca8 100644 --- a/docs/PackageVersion.md +++ b/docs/PackageVersion.md @@ -4,7 +4,7 @@ Package Version A MetaData object to distinguish a specific package version wit ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **app_version** | **str** | The version of the application code underlying the manifest | [optional] **created** | **datetime** | | **deprecated** | **bool** | Whether this package is deprecated | [optional] @@ -12,15 +12,15 @@ Name | Type | Description | Notes **digest** | **str** | | **home** | **str** | The URL of this package's home page | [optional] **icon** | **str** | A URL to an SVG or PNG image to be used as an icon | [optional] -**keywords** | **list[str]** | A list of keywords to search the package by | [optional] +**keywords** | **List[str]** | A list of keywords to search the package by | [optional] **kind** | **str** | The type of Queenbee package (ie: recipe or plugin) | [optional] [default to ''] **license** | [**License**](License.md) | The license information. | [optional] -**maintainers** | [**list[Maintainer]**](Maintainer.md) | A list of maintainers for the package | [optional] -**manifest** | [**AnyOfRecipePlugin**](AnyOfRecipePlugin.md) | The package Recipe or Plugin manifest | [optional] +**maintainers** | [**List[Maintainer]**](Maintainer.md) | A list of maintainers for the package | [optional] +**manifest** | [**Manifest**](Manifest.md) | | [optional] **name** | **str** | Package name. Make it descriptive and helpful ;) | **readme** | **str** | The README file string for this package | [optional] **slug** | **str** | A slug of the repository name and the package name. | [optional] -**sources** | **list[str]** | A list of URLs to source code for this project | [optional] +**sources** | **List[str]** | A list of URLs to source code for this project | [optional] **tag** | **str** | The tag of the package | **type** | **str** | | [optional] [readonly] [default to 'PackageVersion'] **url** | **str** | | diff --git a/docs/Plugin.md b/docs/Plugin.md index 6da003faf..16e20c649 100644 --- a/docs/Plugin.md +++ b/docs/Plugin.md @@ -4,10 +4,10 @@ A Queenbee Plugin. A plugin contains runtime configuration for a Command Line I ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **api_version** | **str** | | [optional] [readonly] [default to 'v1beta1'] **config** | [**PluginConfig**](PluginConfig.md) | The configuration information to run this plugin | -**functions** | [**list[Function]**](Function.md) | List of Plugin functions | +**functions** | [**List[Function]**](Function.md) | List of Plugin functions | **metadata** | [**MetaData**](MetaData.md) | The Plugin metadata information | **type** | **str** | | [optional] [readonly] [default to 'Plugin'] diff --git a/docs/PluginConfig.md b/docs/PluginConfig.md index 78f34e798..9b0626200 100644 --- a/docs/PluginConfig.md +++ b/docs/PluginConfig.md @@ -4,7 +4,7 @@ Plugin configuration. The config is used to schedule functions on a desktop or ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **docker** | [**DockerConfig**](DockerConfig.md) | The configuration to use this plugin in a docker container | **local** | [**LocalConfig**](LocalConfig.md) | The configuration to use this plugin locally | [optional] **type** | **str** | | [optional] [readonly] [default to 'PluginConfig'] diff --git a/docs/PluginPackage.md b/docs/PluginPackage.md index d834860bb..9ec9704ab 100644 --- a/docs/PluginPackage.md +++ b/docs/PluginPackage.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **description** | **str** | description | [optional] **digest** | **str** | The new package digest | **icon** | **str** | icon | [optional] -**keywords** | **list[str]** | keywords | [optional] +**keywords** | **List[str]** | keywords | [optional] **manifest** | [**Plugin**](Plugin.md) | | **readme** | **str** | The Repository Readme | [optional] **tag** | **str** | The new package tag | diff --git a/docs/PluginPackageList.md b/docs/PluginPackageList.md index 87691d0ae..519feac30 100644 --- a/docs/PluginPackageList.md +++ b/docs/PluginPackageList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[PluginPackage]**](PluginPackage.md) | | +**resources** | [**List[PluginPackage]**](PluginPackage.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PluginsApi.md b/docs/PluginsApi.md index 03297db7f..a100d786b 100644 --- a/docs/PluginsApi.md +++ b/docs/PluginsApi.md @@ -18,7 +18,7 @@ Method | HTTP request | Description # **create_plugin** -> CreatedContent create_plugin(owner, repository_create) +> CreatedContent create_plugin(ownerrepository_create) Create a Plugin @@ -26,7 +26,7 @@ Create a new plugin. ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -34,16 +34,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -59,6 +49,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -68,13 +68,13 @@ repository_create = pollination_sdk.RepositoryCreate() # RepositoryCreate | try: # Create a Plugin - api_response = api_instance.create_plugin(owner, repository_create) + api_response = api_instance.create_plugin(ownerrepository_create) pprint(api_response) except ApiException as e: print("Exception when calling PluginsApi->create_plugin: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -82,16 +82,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -107,6 +97,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -116,7 +116,7 @@ repository_create = pollination_sdk.RepositoryCreate() # RepositoryCreate | try: # Create a Plugin - api_response = api_instance.create_plugin(owner, repository_create) + api_response = api_instance.create_plugin(ownerrepository_create) pprint(api_response) except ApiException as e: print("Exception when calling PluginsApi->create_plugin: %s\n" % e) @@ -135,7 +135,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -155,7 +155,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_plugin_package** -> CreatedContent create_plugin_package(owner, name, new_plugin_package) +> CreatedContent create_plugin_package(ownernamenew_plugin_package) Create a new Plugin package @@ -163,7 +163,7 @@ Create a new plugin package version ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -171,16 +171,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -196,6 +186,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -206,13 +206,13 @@ new_plugin_package = pollination_sdk.NewPluginPackage() # NewPluginPackage | try: # Create a new Plugin package - api_response = api_instance.create_plugin_package(owner, name, new_plugin_package) + api_response = api_instance.create_plugin_package(ownernamenew_plugin_package) pprint(api_response) except ApiException as e: print("Exception when calling PluginsApi->create_plugin_package: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -220,16 +220,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -245,6 +235,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -255,7 +255,7 @@ new_plugin_package = pollination_sdk.NewPluginPackage() # NewPluginPackage | try: # Create a new Plugin package - api_response = api_instance.create_plugin_package(owner, name, new_plugin_package) + api_response = api_instance.create_plugin_package(ownernamenew_plugin_package) pprint(api_response) except ApiException as e: print("Exception when calling PluginsApi->create_plugin_package: %s\n" % e) @@ -275,7 +275,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -295,7 +295,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_plugin** -> delete_plugin(owner, name) +> delete_plugin(ownername) Delete a Plugin @@ -303,7 +303,7 @@ Delete a plugin (must have `admin` permission) ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -311,16 +311,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -336,6 +326,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -345,12 +345,12 @@ name = 'name_example' # str | try: # Delete a Plugin - api_instance.delete_plugin(owner, name) + api_instance.delete_plugin(ownername) except ApiException as e: print("Exception when calling PluginsApi->delete_plugin: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -358,16 +358,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -383,6 +373,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -392,7 +392,7 @@ name = 'name_example' # str | try: # Delete a Plugin - api_instance.delete_plugin(owner, name) + api_instance.delete_plugin(ownername) except ApiException as e: print("Exception when calling PluginsApi->delete_plugin: %s\n" % e) ``` @@ -410,7 +410,7 @@ void (empty response body) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -429,7 +429,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_plugin_org_permission** -> delete_plugin_org_permission(owner, name, repository_policy_subject) +> delete_plugin_org_permission(ownernamerepository_policy_subject) Remove a Repository permissions @@ -437,7 +437,7 @@ Delete a plugin's access policy (must have `admin` permission) ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -445,16 +445,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -470,6 +460,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -480,12 +480,12 @@ repository_policy_subject = pollination_sdk.RepositoryPolicySubject() # Reposito try: # Remove a Repository permissions - api_instance.delete_plugin_org_permission(owner, name, repository_policy_subject) + api_instance.delete_plugin_org_permission(ownernamerepository_policy_subject) except ApiException as e: print("Exception when calling PluginsApi->delete_plugin_org_permission: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -493,16 +493,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -518,6 +508,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -528,7 +528,7 @@ repository_policy_subject = pollination_sdk.RepositoryPolicySubject() # Reposito try: # Remove a Repository permissions - api_instance.delete_plugin_org_permission(owner, name, repository_policy_subject) + api_instance.delete_plugin_org_permission(ownernamerepository_policy_subject) except ApiException as e: print("Exception when calling PluginsApi->delete_plugin_org_permission: %s\n" % e) ``` @@ -547,7 +547,7 @@ void (empty response body) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -566,7 +566,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_plugin** -> Repository get_plugin(owner, name) +> Repository get_plugin(ownername) Get a plugin @@ -574,7 +574,7 @@ Retrieve a plugin by name ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -582,16 +582,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -607,6 +597,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -616,13 +616,13 @@ name = 'name_example' # str | try: # Get a plugin - api_response = api_instance.get_plugin(owner, name) + api_response = api_instance.get_plugin(ownername) pprint(api_response) except ApiException as e: print("Exception when calling PluginsApi->get_plugin: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -630,16 +630,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -655,6 +645,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -664,7 +664,7 @@ name = 'name_example' # str | try: # Get a plugin - api_response = api_instance.get_plugin(owner, name) + api_response = api_instance.get_plugin(ownername) pprint(api_response) except ApiException as e: print("Exception when calling PluginsApi->get_plugin: %s\n" % e) @@ -683,7 +683,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -703,7 +703,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_plugin_access_permissions** -> RepositoryAccessPolicyList get_plugin_access_permissions(owner, name, page=page, per_page=per_page, subject_type=subject_type, permission=permission) +> RepositoryAccessPolicyList get_plugin_access_permissions(ownernamepage=pageper_page=per_pagesubject_type=subject_typepermission=permission) Get plugin access permissions @@ -711,7 +711,7 @@ Retrieve a plugin's access permissions (must have `write` permission) ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -719,16 +719,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -744,6 +734,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -752,18 +752,18 @@ with pollination_sdk.ApiClient(configuration) as api_client: name = 'name_example' # str | page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) -subject_type = ['subject_type_example'] # list[str] | The type of access policy subject (optional) -permission = ['permission_example'] # list[str] | An access policy permission string (optional) +subject_type = ['subject_type_example'] # List[str] | The type of access policy subject (optional) +permission = ['permission_example'] # List[str] | An access policy permission string (optional) try: # Get plugin access permissions - api_response = api_instance.get_plugin_access_permissions(owner, name, page=page, per_page=per_page, subject_type=subject_type, permission=permission) + api_response = api_instance.get_plugin_access_permissions(ownernamepage=pageper_page=per_pagesubject_type=subject_typepermission=permission) pprint(api_response) except ApiException as e: print("Exception when calling PluginsApi->get_plugin_access_permissions: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -771,16 +771,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -796,6 +786,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -804,12 +804,12 @@ with pollination_sdk.ApiClient(configuration) as api_client: name = 'name_example' # str | page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) -subject_type = ['subject_type_example'] # list[str] | The type of access policy subject (optional) -permission = ['permission_example'] # list[str] | An access policy permission string (optional) +subject_type = ['subject_type_example'] # List[str] | The type of access policy subject (optional) +permission = ['permission_example'] # List[str] | An access policy permission string (optional) try: # Get plugin access permissions - api_response = api_instance.get_plugin_access_permissions(owner, name, page=page, per_page=per_page, subject_type=subject_type, permission=permission) + api_response = api_instance.get_plugin_access_permissions(ownernamepage=pageper_page=per_pagesubject_type=subject_typepermission=permission) pprint(api_response) except ApiException as e: print("Exception when calling PluginsApi->get_plugin_access_permissions: %s\n" % e) @@ -823,8 +823,8 @@ Name | Type | Description | Notes **name** | **str**| | **page** | **int**| Page number starting from 1 | [optional] [default to 1] **per_page** | **int**| Number of items per page | [optional] [default to 25] - **subject_type** | [**list[str]**](str.md)| The type of access policy subject | [optional] - **permission** | [**list[str]**](str.md)| An access policy permission string | [optional] + **subject_type** | [**List[str]**](str.md)| The type of access policy subject | [optional] + **permission** | [**List[str]**](str.md)| An access policy permission string | [optional] ### Return type @@ -832,7 +832,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -851,7 +851,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_plugin_by_tag** -> PluginPackage get_plugin_by_tag(owner, name, tag) +> PluginPackage get_plugin_by_tag(ownernametag) Get a plugin tag @@ -859,7 +859,7 @@ Retrieve a plugin tag by name and tag ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -867,16 +867,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -892,6 +882,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -902,13 +902,13 @@ tag = 'tag_example' # str | try: # Get a plugin tag - api_response = api_instance.get_plugin_by_tag(owner, name, tag) + api_response = api_instance.get_plugin_by_tag(ownernametag) pprint(api_response) except ApiException as e: print("Exception when calling PluginsApi->get_plugin_by_tag: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -916,16 +916,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -941,6 +931,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -951,7 +951,7 @@ tag = 'tag_example' # str | try: # Get a plugin tag - api_response = api_instance.get_plugin_by_tag(owner, name, tag) + api_response = api_instance.get_plugin_by_tag(ownernametag) pprint(api_response) except ApiException as e: print("Exception when calling PluginsApi->get_plugin_by_tag: %s\n" % e) @@ -971,7 +971,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -991,7 +991,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_plugin_tags** -> PluginPackageList list_plugin_tags(owner, name, sort_by=sort_by, sort_order=sort_order, page=page, per_page=per_page) +> PluginPackageList list_plugin_tags(ownernamesort_by=sort_bysort_order=sort_orderpage=pageper_page=per_page) Get a plugin tags @@ -999,7 +999,7 @@ Retrieve a plugin by name ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -1007,16 +1007,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1032,6 +1022,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1045,13 +1045,13 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # Get a plugin tags - api_response = api_instance.list_plugin_tags(owner, name, sort_by=sort_by, sort_order=sort_order, page=page, per_page=per_page) + api_response = api_instance.list_plugin_tags(ownernamesort_by=sort_bysort_order=sort_orderpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling PluginsApi->list_plugin_tags: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -1059,16 +1059,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1084,6 +1074,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1097,7 +1097,7 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # Get a plugin tags - api_response = api_instance.list_plugin_tags(owner, name, sort_by=sort_by, sort_order=sort_order, page=page, per_page=per_page) + api_response = api_instance.list_plugin_tags(ownernamesort_by=sort_bysort_order=sort_orderpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling PluginsApi->list_plugin_tags: %s\n" % e) @@ -1120,7 +1120,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -1140,13 +1140,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_plugins** -> RepositoryList list_plugins(search=search, name=name, owner=owner, public=public, keyword=keyword, permission=permission, sort_by=sort_by, sort_order=sort_order, page=page, per_page=per_page) +> RepositoryList list_plugins(search=searchname=nameowner=ownerpublic=publickeyword=keywordpermission=permissionsort_by=sort_bysort_order=sort_orderpage=pageper_page=per_page) List plugins ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -1154,16 +1154,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1179,16 +1169,26 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.PluginsApi(api_client) - search = ['search_example'] # list[str] | You know, for search (optional) -name = ['name_example'] # list[str] | The account name (optional) -owner = ['owner_example'] # list[str] | Owner of the project (optional) + search = ['search_example'] # List[str] | You know, for search (optional) +name = ['name_example'] # List[str] | The account name (optional) +owner = ['owner_example'] # List[str] | Owner of the project (optional) public = True # bool | Boolean check for public/private projects (optional) -keyword = ['keyword_example'] # list[str] | A keyword to index the repository by (optional) -permission = ['permission_example'] # list[str] | Filter by permission on given resource (optional) +keyword = ['keyword_example'] # List[str] | A keyword to index the repository by (optional) +permission = ['permission_example'] # List[str] | Filter by permission on given resource (optional) sort_by = pollination_sdk.RepositorySortKey() # RepositorySortKey | Key to sort the list by (optional) sort_order = pollination_sdk.SortEnum() # SortEnum | The order to sort the list (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) @@ -1196,13 +1196,13 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List plugins - api_response = api_instance.list_plugins(search=search, name=name, owner=owner, public=public, keyword=keyword, permission=permission, sort_by=sort_by, sort_order=sort_order, page=page, per_page=per_page) + api_response = api_instance.list_plugins(search=searchname=nameowner=ownerpublic=publickeyword=keywordpermission=permissionsort_by=sort_bysort_order=sort_orderpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling PluginsApi->list_plugins: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -1210,16 +1210,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1235,16 +1225,26 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.PluginsApi(api_client) - search = ['search_example'] # list[str] | You know, for search (optional) -name = ['name_example'] # list[str] | The account name (optional) -owner = ['owner_example'] # list[str] | Owner of the project (optional) + search = ['search_example'] # List[str] | You know, for search (optional) +name = ['name_example'] # List[str] | The account name (optional) +owner = ['owner_example'] # List[str] | Owner of the project (optional) public = True # bool | Boolean check for public/private projects (optional) -keyword = ['keyword_example'] # list[str] | A keyword to index the repository by (optional) -permission = ['permission_example'] # list[str] | Filter by permission on given resource (optional) +keyword = ['keyword_example'] # List[str] | A keyword to index the repository by (optional) +permission = ['permission_example'] # List[str] | Filter by permission on given resource (optional) sort_by = pollination_sdk.RepositorySortKey() # RepositorySortKey | Key to sort the list by (optional) sort_order = pollination_sdk.SortEnum() # SortEnum | The order to sort the list (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) @@ -1252,7 +1252,7 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List plugins - api_response = api_instance.list_plugins(search=search, name=name, owner=owner, public=public, keyword=keyword, permission=permission, sort_by=sort_by, sort_order=sort_order, page=page, per_page=per_page) + api_response = api_instance.list_plugins(search=searchname=nameowner=ownerpublic=publickeyword=keywordpermission=permissionsort_by=sort_bysort_order=sort_orderpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling PluginsApi->list_plugins: %s\n" % e) @@ -1262,12 +1262,12 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **search** | [**list[str]**](str.md)| You know, for search | [optional] - **name** | [**list[str]**](str.md)| The account name | [optional] - **owner** | [**list[str]**](str.md)| Owner of the project | [optional] + **search** | [**List[str]**](str.md)| You know, for search | [optional] + **name** | [**List[str]**](str.md)| The account name | [optional] + **owner** | [**List[str]**](str.md)| Owner of the project | [optional] **public** | **bool**| Boolean check for public/private projects | [optional] - **keyword** | [**list[str]**](str.md)| A keyword to index the repository by | [optional] - **permission** | [**list[str]**](str.md)| Filter by permission on given resource | [optional] + **keyword** | [**List[str]**](str.md)| A keyword to index the repository by | [optional] + **permission** | [**List[str]**](str.md)| Filter by permission on given resource | [optional] **sort_by** | [**RepositorySortKey**](.md)| Key to sort the list by | [optional] **sort_order** | [**SortEnum**](.md)| The order to sort the list | [optional] **page** | **int**| Page number starting from 1 | [optional] [default to 1] @@ -1279,7 +1279,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -1295,7 +1295,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_plugin** -> UpdateAccepted update_plugin(owner, name, repository_update) +> UpdateAccepted update_plugin(ownernamerepository_update) Update a Plugin @@ -1303,7 +1303,7 @@ Update a plugin (must have `contribute` permission) ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -1311,16 +1311,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1336,6 +1326,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1346,13 +1346,13 @@ repository_update = pollination_sdk.RepositoryUpdate() # RepositoryUpdate | try: # Update a Plugin - api_response = api_instance.update_plugin(owner, name, repository_update) + api_response = api_instance.update_plugin(ownernamerepository_update) pprint(api_response) except ApiException as e: print("Exception when calling PluginsApi->update_plugin: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -1360,16 +1360,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1385,6 +1375,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1395,7 +1395,7 @@ repository_update = pollination_sdk.RepositoryUpdate() # RepositoryUpdate | try: # Update a Plugin - api_response = api_instance.update_plugin(owner, name, repository_update) + api_response = api_instance.update_plugin(ownernamerepository_update) pprint(api_response) except ApiException as e: print("Exception when calling PluginsApi->update_plugin: %s\n" % e) @@ -1415,7 +1415,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -1435,7 +1435,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **upsert_plugin_permission** -> UpdateAccepted upsert_plugin_permission(owner, name, repository_access_policy) +> UpdateAccepted upsert_plugin_permission(ownernamerepository_access_policy) Upsert a new permission to a plugin @@ -1443,7 +1443,7 @@ Upsert a plugin's access policy (must have `admin` permission) ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -1451,16 +1451,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1476,6 +1466,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1486,13 +1486,13 @@ repository_access_policy = pollination_sdk.RepositoryAccessPolicy() # Repository try: # Upsert a new permission to a plugin - api_response = api_instance.upsert_plugin_permission(owner, name, repository_access_policy) + api_response = api_instance.upsert_plugin_permission(ownernamerepository_access_policy) pprint(api_response) except ApiException as e: print("Exception when calling PluginsApi->upsert_plugin_permission: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -1500,16 +1500,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1525,6 +1515,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1535,7 +1535,7 @@ repository_access_policy = pollination_sdk.RepositoryAccessPolicy() # Repository try: # Upsert a new permission to a plugin - api_response = api_instance.upsert_plugin_permission(owner, name, repository_access_policy) + api_response = api_instance.upsert_plugin_permission(ownernamerepository_access_policy) pprint(api_response) except ApiException as e: print("Exception when calling PluginsApi->upsert_plugin_permission: %s\n" % e) @@ -1555,7 +1555,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers diff --git a/docs/ProjectAccessPolicyList.md b/docs/ProjectAccessPolicyList.md index df40c99dd..f0e6ced93 100644 --- a/docs/ProjectAccessPolicyList.md +++ b/docs/ProjectAccessPolicyList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[ProjectAccessPolicy]**](ProjectAccessPolicy.md) | | +**resources** | [**List[ProjectAccessPolicy]**](ProjectAccessPolicy.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ProjectFolder.md b/docs/ProjectFolder.md index 3c92f5239..ce34bacd1 100644 --- a/docs/ProjectFolder.md +++ b/docs/ProjectFolder.md @@ -4,7 +4,7 @@ Project Folder Source This is the path to a folder where files and folders can ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **path** | **str** | The path to a folder where files and folders can be sourced. For a local filesystem this can be \"C:\\Users\\me\\jobs\\test\". | [optional] **type** | **str** | | [optional] [readonly] [default to 'ProjectFolder'] diff --git a/docs/ProjectList.md b/docs/ProjectList.md index 4916a7a9c..a5dc94b17 100644 --- a/docs/ProjectList.md +++ b/docs/ProjectList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[Project]**](Project.md) | | +**resources** | [**List[Project]**](Project.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ProjectRecipeFilterList.md b/docs/ProjectRecipeFilterList.md index 07bc662b0..bf0220d19 100644 --- a/docs/ProjectRecipeFilterList.md +++ b/docs/ProjectRecipeFilterList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[ProjectRecipeFilter]**](ProjectRecipeFilter.md) | | +**resources** | [**List[ProjectRecipeFilter]**](ProjectRecipeFilter.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ProjectsApi.md b/docs/ProjectsApi.md index 2bf7389aa..1758929be 100644 --- a/docs/ProjectsApi.md +++ b/docs/ProjectsApi.md @@ -12,20 +12,21 @@ Method | HTTP request | Description [**get_project**](ProjectsApi.md#get_project) | **GET** /projects/{owner}/{name} | Get a project [**get_project_access_permissions**](ProjectsApi.md#get_project_access_permissions) | **GET** /projects/{owner}/{name}/permissions | Get project access permissions [**get_project_recipe_filters**](ProjectsApi.md#get_project_recipe_filters) | **GET** /projects/{owner}/{name}/recipes/filters | Get project recipe filters -[**get_project_recipes**](ProjectsApi.md#get_project_recipes) | **GET** /projects/{owner}/{name}/recipes | Get project recipes +[**get_project_recipe_repositories**](ProjectsApi.md#get_project_recipe_repositories) | **GET** /projects/{owner}/{name}/recipes/repositories | Get project recipe repositories +[**get_project_recipes**](ProjectsApi.md#get_project_recipes) | **GET** /projects/{owner}/{name}/recipes | Get project recipe versions [**list_projects**](ProjectsApi.md#list_projects) | **GET** /projects | List Projects [**update**](ProjectsApi.md#update) | **PUT** /projects/{owner}/{name} | Update a Project [**upsert_project_permission**](ProjectsApi.md#upsert_project_permission) | **PATCH** /projects/{owner}/{name}/permissions | Upsert a new permission to a project # **create_project** -> CreatedContent create_project(owner, project_create) +> CreatedContent create_project(ownerproject_create) Create a Project ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -33,16 +34,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -58,6 +49,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -67,13 +68,13 @@ project_create = pollination_sdk.ProjectCreate() # ProjectCreate | try: # Create a Project - api_response = api_instance.create_project(owner, project_create) + api_response = api_instance.create_project(ownerproject_create) pprint(api_response) except ApiException as e: print("Exception when calling ProjectsApi->create_project: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -81,16 +82,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -106,6 +97,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -115,7 +116,7 @@ project_create = pollination_sdk.ProjectCreate() # ProjectCreate | try: # Create a Project - api_response = api_instance.create_project(owner, project_create) + api_response = api_instance.create_project(ownerproject_create) pprint(api_response) except ApiException as e: print("Exception when calling ProjectsApi->create_project: %s\n" % e) @@ -134,7 +135,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -154,13 +155,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_project_recipe_filter** -> ProjectRecipeFilter create_project_recipe_filter(owner, name, project_recipe_filter) +> ProjectRecipeFilter create_project_recipe_filter(ownernameproject_recipe_filter) Upsert a recipe filter to a project ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -168,16 +169,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -193,6 +184,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -203,13 +204,13 @@ project_recipe_filter = pollination_sdk.ProjectRecipeFilter() # ProjectRecipeFil try: # Upsert a recipe filter to a project - api_response = api_instance.create_project_recipe_filter(owner, name, project_recipe_filter) + api_response = api_instance.create_project_recipe_filter(ownernameproject_recipe_filter) pprint(api_response) except ApiException as e: print("Exception when calling ProjectsApi->create_project_recipe_filter: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -217,16 +218,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -242,6 +233,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -252,7 +253,7 @@ project_recipe_filter = pollination_sdk.ProjectRecipeFilter() # ProjectRecipeFil try: # Upsert a recipe filter to a project - api_response = api_instance.create_project_recipe_filter(owner, name, project_recipe_filter) + api_response = api_instance.create_project_recipe_filter(ownernameproject_recipe_filter) pprint(api_response) except ApiException as e: print("Exception when calling ProjectsApi->create_project_recipe_filter: %s\n" % e) @@ -272,7 +273,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -292,13 +293,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_project** -> delete_project(owner, name) +> delete_project(ownername) Delete a Project ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -306,16 +307,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -331,6 +322,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -340,12 +341,12 @@ name = 'name_example' # str | try: # Delete a Project - api_instance.delete_project(owner, name) + api_instance.delete_project(ownername) except ApiException as e: print("Exception when calling ProjectsApi->delete_project: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -353,16 +354,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -378,6 +369,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -387,7 +388,7 @@ name = 'name_example' # str | try: # Delete a Project - api_instance.delete_project(owner, name) + api_instance.delete_project(ownername) except ApiException as e: print("Exception when calling ProjectsApi->delete_project: %s\n" % e) ``` @@ -405,7 +406,7 @@ void (empty response body) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -424,13 +425,13 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_project_org_permission** -> delete_project_org_permission(owner, name, project_policy_subject) +> delete_project_org_permission(ownernameproject_policy_subject) Remove a Project permissions ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -438,16 +439,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -463,6 +454,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -473,12 +474,12 @@ project_policy_subject = pollination_sdk.ProjectPolicySubject() # ProjectPolicyS try: # Remove a Project permissions - api_instance.delete_project_org_permission(owner, name, project_policy_subject) + api_instance.delete_project_org_permission(ownernameproject_policy_subject) except ApiException as e: print("Exception when calling ProjectsApi->delete_project_org_permission: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -486,16 +487,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -511,6 +502,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -521,7 +522,7 @@ project_policy_subject = pollination_sdk.ProjectPolicySubject() # ProjectPolicyS try: # Remove a Project permissions - api_instance.delete_project_org_permission(owner, name, project_policy_subject) + api_instance.delete_project_org_permission(ownernameproject_policy_subject) except ApiException as e: print("Exception when calling ProjectsApi->delete_project_org_permission: %s\n" % e) ``` @@ -540,7 +541,7 @@ void (empty response body) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -559,13 +560,13 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_project_recipe_filter** -> delete_project_recipe_filter(owner, name, project_recipe_filter) +> delete_project_recipe_filter(ownernameproject_recipe_filter) Remove a Project recipe filter ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -573,16 +574,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -598,6 +589,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -608,12 +609,12 @@ project_recipe_filter = pollination_sdk.ProjectRecipeFilter() # ProjectRecipeFil try: # Remove a Project recipe filter - api_instance.delete_project_recipe_filter(owner, name, project_recipe_filter) + api_instance.delete_project_recipe_filter(ownernameproject_recipe_filter) except ApiException as e: print("Exception when calling ProjectsApi->delete_project_recipe_filter: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -621,16 +622,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -646,6 +637,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -656,7 +657,7 @@ project_recipe_filter = pollination_sdk.ProjectRecipeFilter() # ProjectRecipeFil try: # Remove a Project recipe filter - api_instance.delete_project_recipe_filter(owner, name, project_recipe_filter) + api_instance.delete_project_recipe_filter(ownernameproject_recipe_filter) except ApiException as e: print("Exception when calling ProjectsApi->delete_project_recipe_filter: %s\n" % e) ``` @@ -675,7 +676,7 @@ void (empty response body) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -694,13 +695,13 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_project** -> Project get_project(owner, name) +> Project get_project(ownername) Get a project ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -708,16 +709,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -733,6 +724,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -742,13 +743,13 @@ name = 'name_example' # str | try: # Get a project - api_response = api_instance.get_project(owner, name) + api_response = api_instance.get_project(ownername) pprint(api_response) except ApiException as e: print("Exception when calling ProjectsApi->get_project: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -756,16 +757,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -781,8 +772,18 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) -# Enter a context with an instance of the API client -with pollination_sdk.ApiClient(configuration) as api_client: +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.ProjectsApi(api_client) owner = 'owner_example' # str | @@ -790,7 +791,7 @@ name = 'name_example' # str | try: # Get a project - api_response = api_instance.get_project(owner, name) + api_response = api_instance.get_project(ownername) pprint(api_response) except ApiException as e: print("Exception when calling ProjectsApi->get_project: %s\n" % e) @@ -809,7 +810,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -829,13 +830,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_project_access_permissions** -> ProjectAccessPolicyList get_project_access_permissions(owner, name, page=page, per_page=per_page, subject_type=subject_type, permission=permission) +> ProjectAccessPolicyList get_project_access_permissions(ownernamepage=pageper_page=per_pagesubject_type=subject_typepermission=permission) Get project access permissions ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -843,16 +844,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -868,6 +859,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -876,18 +877,18 @@ with pollination_sdk.ApiClient(configuration) as api_client: name = 'name_example' # str | page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) -subject_type = ['subject_type_example'] # list[str] | The type of access policy subject (optional) -permission = ['permission_example'] # list[str] | An access policy permission string (optional) +subject_type = ['subject_type_example'] # List[str] | The type of access policy subject (optional) +permission = ['permission_example'] # List[str] | An access policy permission string (optional) try: # Get project access permissions - api_response = api_instance.get_project_access_permissions(owner, name, page=page, per_page=per_page, subject_type=subject_type, permission=permission) + api_response = api_instance.get_project_access_permissions(ownernamepage=pageper_page=per_pagesubject_type=subject_typepermission=permission) pprint(api_response) except ApiException as e: print("Exception when calling ProjectsApi->get_project_access_permissions: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -895,16 +896,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -920,6 +911,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -928,12 +929,12 @@ with pollination_sdk.ApiClient(configuration) as api_client: name = 'name_example' # str | page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) -subject_type = ['subject_type_example'] # list[str] | The type of access policy subject (optional) -permission = ['permission_example'] # list[str] | An access policy permission string (optional) +subject_type = ['subject_type_example'] # List[str] | The type of access policy subject (optional) +permission = ['permission_example'] # List[str] | An access policy permission string (optional) try: # Get project access permissions - api_response = api_instance.get_project_access_permissions(owner, name, page=page, per_page=per_page, subject_type=subject_type, permission=permission) + api_response = api_instance.get_project_access_permissions(ownernamepage=pageper_page=per_pagesubject_type=subject_typepermission=permission) pprint(api_response) except ApiException as e: print("Exception when calling ProjectsApi->get_project_access_permissions: %s\n" % e) @@ -947,8 +948,8 @@ Name | Type | Description | Notes **name** | **str**| | **page** | **int**| Page number starting from 1 | [optional] [default to 1] **per_page** | **int**| Number of items per page | [optional] [default to 25] - **subject_type** | [**list[str]**](str.md)| The type of access policy subject | [optional] - **permission** | [**list[str]**](str.md)| An access policy permission string | [optional] + **subject_type** | [**List[str]**](str.md)| The type of access policy subject | [optional] + **permission** | [**List[str]**](str.md)| An access policy permission string | [optional] ### Return type @@ -956,7 +957,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -975,13 +976,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_project_recipe_filters** -> ProjectRecipeFilterList get_project_recipe_filters(owner, name, page=page, per_page=per_page) +> ProjectRecipeFilterList get_project_recipe_filters(ownernamepage=pageper_page=per_page) Get project recipe filters ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -989,16 +990,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1014,6 +1005,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1025,13 +1026,13 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # Get project recipe filters - api_response = api_instance.get_project_recipe_filters(owner, name, page=page, per_page=per_page) + api_response = api_instance.get_project_recipe_filters(ownernamepage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling ProjectsApi->get_project_recipe_filters: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -1039,16 +1040,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1064,6 +1055,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1075,7 +1076,7 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # Get project recipe filters - api_response = api_instance.get_project_recipe_filters(owner, name, page=page, per_page=per_page) + api_response = api_instance.get_project_recipe_filters(ownernamepage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling ProjectsApi->get_project_recipe_filters: %s\n" % e) @@ -1096,7 +1097,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -1114,14 +1115,14 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_project_recipes** -> RecipeInterfaceList get_project_recipes(owner, name, search=search, page=page, per_page=per_page) +# **get_project_recipe_repositories** +> RepositoryList get_project_recipe_repositories(ownernamesearch=searchpage=pageper_page=per_page) -Get project recipes +Get project recipe repositories ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -1129,6 +1130,21 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint +# Retrieve a temporary Acces Token (JWT) using your API token +API_TOKEN = 'some-token-string' + +auth = pollination_sdk.UserApi() +api_token = pollination_sdk.LoginDto( + api_token=API_TOKEN +) + +auth_response = auth.login(api_token) + +# Configure Bearer authorization (JWT): JWTAuth +configuration = pollination_sdk.Configuration( + access_token=auth_response.access_token +) + # Configure API key authorization: APIKeyAuth configuration = pollination_sdk.Configuration( host = "http://localhost", @@ -1139,6 +1155,32 @@ configuration = pollination_sdk.Configuration( # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' +# Enter a context with an instance of the API client +with pollination_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = pollination_sdk.ProjectsApi(api_client) + owner = 'owner_example' # str | +name = 'name_example' # str | +search = 'search_example' # str | Search string to find recipes (optional) +page = 1 # int | Page number starting from 1 (optional) (default to 1) +per_page = 25 # int | Number of items per page (optional) (default to 25) + + try: + # Get project recipe repositories + api_response = api_instance.get_project_recipe_repositories(ownernamesearch=searchpage=pageper_page=per_page) + pprint(api_response) + except ApiException as e: + print("Exception when calling ProjectsApi->get_project_recipe_repositories: %s\n" % e) +``` + +* Api Key Authentication (APIKeyAuth): +```python +from __future__ import print_function +import time +import pollination_sdk +from pollination_sdk.rest import ApiException +from pprint import pprint + # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1154,6 +1196,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1165,13 +1217,51 @@ page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) try: - # Get project recipes - api_response = api_instance.get_project_recipes(owner, name, search=search, page=page, per_page=per_page) + # Get project recipe repositories + api_response = api_instance.get_project_recipe_repositories(ownernamesearch=searchpage=pageper_page=per_page) pprint(api_response) except ApiException as e: - print("Exception when calling ProjectsApi->get_project_recipes: %s\n" % e) + print("Exception when calling ProjectsApi->get_project_recipe_repositories: %s\n" % e) ``` +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **name** | **str**| | + **search** | **str**| Search string to find recipes | [optional] + **page** | **int**| Page number starting from 1 | [optional] [default to 1] + **per_page** | **int**| Number of items per page | [optional] [default to 25] + +### Return type + +[**RepositoryList**](RepositoryList.md) + +### Authorization + +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Retrieved | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_project_recipes** +> RecipeInterfaceList get_project_recipes(ownernamesearch=searchpage=pageper_page=per_page) + +Get project recipe versions + +### Example + * Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function @@ -1180,6 +1270,21 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint +# Retrieve a temporary Acces Token (JWT) using your API token +API_TOKEN = 'some-token-string' + +auth = pollination_sdk.UserApi() +api_token = pollination_sdk.LoginDto( + api_token=API_TOKEN +) + +auth_response = auth.login(api_token) + +# Configure Bearer authorization (JWT): JWTAuth +configuration = pollination_sdk.Configuration( + access_token=auth_response.access_token +) + # Configure API key authorization: APIKeyAuth configuration = pollination_sdk.Configuration( host = "http://localhost", @@ -1190,6 +1295,32 @@ configuration = pollination_sdk.Configuration( # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' +# Enter a context with an instance of the API client +with pollination_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = pollination_sdk.ProjectsApi(api_client) + owner = 'owner_example' # str | +name = 'name_example' # str | +search = 'search_example' # str | Search string to find recipes (optional) +page = 1 # int | Page number starting from 1 (optional) (default to 1) +per_page = 25 # int | Number of items per page (optional) (default to 25) + + try: + # Get project recipe versions + api_response = api_instance.get_project_recipes(ownernamesearch=searchpage=pageper_page=per_page) + pprint(api_response) + except ApiException as e: + print("Exception when calling ProjectsApi->get_project_recipes: %s\n" % e) +``` + +* Api Key Authentication (APIKeyAuth): +```python +from __future__ import print_function +import time +import pollination_sdk +from pollination_sdk.rest import ApiException +from pprint import pprint + # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1205,6 +1336,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1216,8 +1357,8 @@ page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) try: - # Get project recipes - api_response = api_instance.get_project_recipes(owner, name, search=search, page=page, per_page=per_page) + # Get project recipe versions + api_response = api_instance.get_project_recipes(ownernamesearch=searchpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling ProjectsApi->get_project_recipes: %s\n" % e) @@ -1239,7 +1380,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -1258,13 +1399,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_projects** -> ProjectList list_projects(search=search, ids=ids, names=names, owner=owner, public=public, permissions=permissions, sort_by=sort_by, sort_order=sort_order, page=page, per_page=per_page) +> ProjectList list_projects(search=searchids=idsnames=namesowner=ownerpublic=publicpermissions=permissionssort_by=sort_bysort_order=sort_orderpage=pageper_page=per_page) List Projects ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -1272,16 +1413,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1297,16 +1428,26 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.ProjectsApi(api_client) search = 'search_example' # str | Search string to find projects (optional) -ids = [] # list[str] | The ID of a project to search for (optional) (default to []) -names = [] # list[str] | The name of the project (optional) (default to []) -owner = [] # list[str] | Owner of the project (optional) (default to []) +ids = [] # List[str] | The ID of a project to search for (optional) (default to []) +names = [] # List[str] | The name of the project (optional) (default to []) +owner = [] # List[str] | Owner of the project (optional) (default to []) public = True # bool | Boolean check for public/private projects (optional) -permissions = [] # list[str] | Filter by permission on given resource (optional) (default to []) +permissions = [] # List[str] | Filter by permission on given resource (optional) (default to []) sort_by = pollination_sdk.ProjectSortKey() # ProjectSortKey | Key to sort the list by (optional) sort_order = pollination_sdk.SortEnum() # SortEnum | The order to sort the list (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) @@ -1314,13 +1455,13 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List Projects - api_response = api_instance.list_projects(search=search, ids=ids, names=names, owner=owner, public=public, permissions=permissions, sort_by=sort_by, sort_order=sort_order, page=page, per_page=per_page) + api_response = api_instance.list_projects(search=searchids=idsnames=namesowner=ownerpublic=publicpermissions=permissionssort_by=sort_bysort_order=sort_orderpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling ProjectsApi->list_projects: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -1328,16 +1469,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1353,16 +1484,26 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.ProjectsApi(api_client) search = 'search_example' # str | Search string to find projects (optional) -ids = [] # list[str] | The ID of a project to search for (optional) (default to []) -names = [] # list[str] | The name of the project (optional) (default to []) -owner = [] # list[str] | Owner of the project (optional) (default to []) +ids = [] # List[str] | The ID of a project to search for (optional) (default to []) +names = [] # List[str] | The name of the project (optional) (default to []) +owner = [] # List[str] | Owner of the project (optional) (default to []) public = True # bool | Boolean check for public/private projects (optional) -permissions = [] # list[str] | Filter by permission on given resource (optional) (default to []) +permissions = [] # List[str] | Filter by permission on given resource (optional) (default to []) sort_by = pollination_sdk.ProjectSortKey() # ProjectSortKey | Key to sort the list by (optional) sort_order = pollination_sdk.SortEnum() # SortEnum | The order to sort the list (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) @@ -1370,7 +1511,7 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List Projects - api_response = api_instance.list_projects(search=search, ids=ids, names=names, owner=owner, public=public, permissions=permissions, sort_by=sort_by, sort_order=sort_order, page=page, per_page=per_page) + api_response = api_instance.list_projects(search=searchids=idsnames=namesowner=ownerpublic=publicpermissions=permissionssort_by=sort_bysort_order=sort_orderpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling ProjectsApi->list_projects: %s\n" % e) @@ -1381,11 +1522,11 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **search** | **str**| Search string to find projects | [optional] - **ids** | [**list[str]**](str.md)| The ID of a project to search for | [optional] [default to []] - **names** | [**list[str]**](str.md)| The name of the project | [optional] [default to []] - **owner** | [**list[str]**](str.md)| Owner of the project | [optional] [default to []] + **ids** | [**List[str]**](str.md)| The ID of a project to search for | [optional] [default to []] + **names** | [**List[str]**](str.md)| The name of the project | [optional] [default to []] + **owner** | [**List[str]**](str.md)| Owner of the project | [optional] [default to []] **public** | **bool**| Boolean check for public/private projects | [optional] - **permissions** | [**list[str]**](str.md)| Filter by permission on given resource | [optional] [default to []] + **permissions** | [**List[str]**](str.md)| Filter by permission on given resource | [optional] [default to []] **sort_by** | [**ProjectSortKey**](.md)| Key to sort the list by | [optional] **sort_order** | [**SortEnum**](.md)| The order to sort the list | [optional] **page** | **int**| Page number starting from 1 | [optional] [default to 1] @@ -1397,7 +1538,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -1416,13 +1557,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update** -> UpdateAccepted update(owner, name, project_update) +> UpdateAccepted update(ownernameproject_update) Update a Project ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -1430,16 +1571,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1455,6 +1586,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1465,13 +1606,13 @@ project_update = pollination_sdk.ProjectUpdate() # ProjectUpdate | try: # Update a Project - api_response = api_instance.update(owner, name, project_update) + api_response = api_instance.update(ownernameproject_update) pprint(api_response) except ApiException as e: print("Exception when calling ProjectsApi->update: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -1479,16 +1620,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1504,6 +1635,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1514,7 +1655,7 @@ project_update = pollination_sdk.ProjectUpdate() # ProjectUpdate | try: # Update a Project - api_response = api_instance.update(owner, name, project_update) + api_response = api_instance.update(ownernameproject_update) pprint(api_response) except ApiException as e: print("Exception when calling ProjectsApi->update: %s\n" % e) @@ -1534,7 +1675,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -1554,13 +1695,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **upsert_project_permission** -> UpdateAccepted upsert_project_permission(owner, name, project_access_policy) +> UpdateAccepted upsert_project_permission(ownernameproject_access_policy) Upsert a new permission to a project ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -1568,16 +1709,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1593,6 +1724,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1603,13 +1744,13 @@ project_access_policy = pollination_sdk.ProjectAccessPolicy() # ProjectAccessPol try: # Upsert a new permission to a project - api_response = api_instance.upsert_project_permission(owner, name, project_access_policy) + api_response = api_instance.upsert_project_permission(ownernameproject_access_policy) pprint(api_response) except ApiException as e: print("Exception when calling ProjectsApi->upsert_project_permission: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -1617,16 +1758,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1642,6 +1773,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1652,7 +1793,7 @@ project_access_policy = pollination_sdk.ProjectAccessPolicy() # ProjectAccessPol try: # Upsert a new permission to a project - api_response = api_instance.upsert_project_permission(owner, name, project_access_policy) + api_response = api_instance.upsert_project_permission(ownernameproject_access_policy) pprint(api_response) except ApiException as e: print("Exception when calling ProjectsApi->upsert_project_permission: %s\n" % e) @@ -1672,7 +1813,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers diff --git a/docs/PublicAccountList.md b/docs/PublicAccountList.md index 31c8df0dc..6fbbfd17c 100644 --- a/docs/PublicAccountList.md +++ b/docs/PublicAccountList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[AccountPublic]**](AccountPublic.md) | | +**resources** | [**List[AccountPublic]**](AccountPublic.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/QuotaList.md b/docs/QuotaList.md index 8faca3b7a..4d7046ba4 100644 --- a/docs/QuotaList.md +++ b/docs/QuotaList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[Quota]**](Quota.md) | | +**resources** | [**List[Quota]**](Quota.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Recipe.md b/docs/Recipe.md index 262a35157..99673277c 100644 --- a/docs/Recipe.md +++ b/docs/Recipe.md @@ -4,10 +4,10 @@ A Queenbee Recipe ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **api_version** | **str** | | [optional] [readonly] [default to 'v1beta1'] -**dependencies** | [**list[Dependency]**](Dependency.md) | A list of plugins and other recipes this recipe depends on. | [optional] -**flow** | [**list[DAG]**](DAG.md) | A list of tasks to create a DAG recipe. | +**dependencies** | [**List[Dependency]**](Dependency.md) | A list of plugins and other recipes this recipe depends on. | [optional] +**flow** | [**List[DAG]**](DAG.md) | A list of tasks to create a DAG recipe. | **metadata** | [**MetaData**](MetaData.md) | Recipe metadata information. | [optional] **type** | **str** | | [optional] [readonly] [default to 'Recipe'] diff --git a/docs/RecipeInterface.md b/docs/RecipeInterface.md index e20011989..18594d679 100644 --- a/docs/RecipeInterface.md +++ b/docs/RecipeInterface.md @@ -4,11 +4,11 @@ An interface object for creating a Recipe. Recipe information only includes met ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **api_version** | **str** | | [optional] [readonly] [default to 'v1beta1'] -**inputs** | [**list[AnyOfDAGGenericInputDAGStringInputDAGIntegerInputDAGNumberInputDAGBooleanInputDAGFolderInputDAGFileInputDAGPathInputDAGArrayInputDAGJSONObjectInput]**](AnyOfDAGGenericInputDAGStringInputDAGIntegerInputDAGNumberInputDAGBooleanInputDAGFolderInputDAGFileInputDAGPathInputDAGArrayInputDAGJSONObjectInput.md) | A list of recipe inputs. | [optional] +**inputs** | [**List[DAGInputsInner]**](DAGInputsInner.md) | A list of recipe inputs. | [optional] **metadata** | [**MetaData**](MetaData.md) | Recipe metadata information. | -**outputs** | [**list[AnyOfDAGGenericOutputDAGStringOutputDAGIntegerOutputDAGNumberOutputDAGBooleanOutputDAGFolderOutputDAGFileOutputDAGPathOutputDAGArrayOutputDAGJSONObjectOutput]**](AnyOfDAGGenericOutputDAGStringOutputDAGIntegerOutputDAGNumberOutputDAGBooleanOutputDAGFolderOutputDAGFileOutputDAGPathOutputDAGArrayOutputDAGJSONObjectOutput.md) | A list of recipe outputs. | [optional] +**outputs** | [**List[DAGOutputsInner]**](DAGOutputsInner.md) | A list of recipe outputs. | [optional] **source** | **str** | A URL to the source this recipe from a registry. | [optional] **type** | **str** | | [optional] [readonly] [default to 'RecipeInterface'] diff --git a/docs/RecipeInterfaceList.md b/docs/RecipeInterfaceList.md index 8d6d2af2e..a33b8bf76 100644 --- a/docs/RecipeInterfaceList.md +++ b/docs/RecipeInterfaceList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[RecipeInterface]**](RecipeInterface.md) | | +**resources** | [**List[RecipeInterface]**](RecipeInterface.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RecipePackage.md b/docs/RecipePackage.md index bf9ac882f..54b9633b2 100644 --- a/docs/RecipePackage.md +++ b/docs/RecipePackage.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **description** | **str** | description | [optional] **digest** | **str** | The new package digest | **icon** | **str** | icon | [optional] -**keywords** | **list[str]** | keywords | [optional] +**keywords** | **List[str]** | keywords | [optional] **manifest** | [**RecipeInterface**](RecipeInterface.md) | | **readme** | **str** | The Repository Readme | [optional] **tag** | **str** | The new package tag | diff --git a/docs/RecipePackageList.md b/docs/RecipePackageList.md index 731761ac9..19a22ea3d 100644 --- a/docs/RecipePackageList.md +++ b/docs/RecipePackageList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[RecipePackage]**](RecipePackage.md) | | +**resources** | [**List[RecipePackage]**](RecipePackage.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RecipesApi.md b/docs/RecipesApi.md index 1ad274663..a9ea1896d 100644 --- a/docs/RecipesApi.md +++ b/docs/RecipesApi.md @@ -18,7 +18,7 @@ Method | HTTP request | Description # **create_recipe** -> CreatedContent create_recipe(owner, repository_create) +> CreatedContent create_recipe(ownerrepository_create) Create a Recipe @@ -26,7 +26,7 @@ Create a new recipe. ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -34,16 +34,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -59,6 +49,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -68,13 +68,13 @@ repository_create = pollination_sdk.RepositoryCreate() # RepositoryCreate | try: # Create a Recipe - api_response = api_instance.create_recipe(owner, repository_create) + api_response = api_instance.create_recipe(ownerrepository_create) pprint(api_response) except ApiException as e: print("Exception when calling RecipesApi->create_recipe: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -82,16 +82,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -107,6 +97,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -116,7 +116,7 @@ repository_create = pollination_sdk.RepositoryCreate() # RepositoryCreate | try: # Create a Recipe - api_response = api_instance.create_recipe(owner, repository_create) + api_response = api_instance.create_recipe(ownerrepository_create) pprint(api_response) except ApiException as e: print("Exception when calling RecipesApi->create_recipe: %s\n" % e) @@ -135,7 +135,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -155,7 +155,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_recipe_package** -> CreatedContent create_recipe_package(owner, name, new_recipe_package) +> CreatedContent create_recipe_package(ownernamenew_recipe_package) Create a new Recipe package @@ -163,7 +163,7 @@ Create a new recipe package version ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -171,16 +171,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -196,6 +186,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -206,13 +206,13 @@ new_recipe_package = pollination_sdk.NewRecipePackage() # NewRecipePackage | try: # Create a new Recipe package - api_response = api_instance.create_recipe_package(owner, name, new_recipe_package) + api_response = api_instance.create_recipe_package(ownernamenew_recipe_package) pprint(api_response) except ApiException as e: print("Exception when calling RecipesApi->create_recipe_package: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -220,16 +220,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -245,6 +235,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -255,7 +255,7 @@ new_recipe_package = pollination_sdk.NewRecipePackage() # NewRecipePackage | try: # Create a new Recipe package - api_response = api_instance.create_recipe_package(owner, name, new_recipe_package) + api_response = api_instance.create_recipe_package(ownernamenew_recipe_package) pprint(api_response) except ApiException as e: print("Exception when calling RecipesApi->create_recipe_package: %s\n" % e) @@ -275,7 +275,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -295,7 +295,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_recipe** -> delete_recipe(owner, name) +> delete_recipe(ownername) Delete a Recipe @@ -303,7 +303,7 @@ Delete a recipe (must have `admin` permission) ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -311,16 +311,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -336,6 +326,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -345,12 +345,12 @@ name = 'name_example' # str | try: # Delete a Recipe - api_instance.delete_recipe(owner, name) + api_instance.delete_recipe(ownername) except ApiException as e: print("Exception when calling RecipesApi->delete_recipe: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -358,16 +358,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -383,6 +373,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -392,7 +392,7 @@ name = 'name_example' # str | try: # Delete a Recipe - api_instance.delete_recipe(owner, name) + api_instance.delete_recipe(ownername) except ApiException as e: print("Exception when calling RecipesApi->delete_recipe: %s\n" % e) ``` @@ -410,7 +410,7 @@ void (empty response body) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -429,7 +429,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_recipe_org_permission** -> delete_recipe_org_permission(owner, name, repository_policy_subject) +> delete_recipe_org_permission(ownernamerepository_policy_subject) Remove a Repository permissions @@ -437,7 +437,7 @@ Delete a recipe's access policy (must have `admin` permission) ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -445,16 +445,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -470,6 +460,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -480,12 +480,12 @@ repository_policy_subject = pollination_sdk.RepositoryPolicySubject() # Reposito try: # Remove a Repository permissions - api_instance.delete_recipe_org_permission(owner, name, repository_policy_subject) + api_instance.delete_recipe_org_permission(ownernamerepository_policy_subject) except ApiException as e: print("Exception when calling RecipesApi->delete_recipe_org_permission: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -493,16 +493,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -518,6 +508,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -528,7 +528,7 @@ repository_policy_subject = pollination_sdk.RepositoryPolicySubject() # Reposito try: # Remove a Repository permissions - api_instance.delete_recipe_org_permission(owner, name, repository_policy_subject) + api_instance.delete_recipe_org_permission(ownernamerepository_policy_subject) except ApiException as e: print("Exception when calling RecipesApi->delete_recipe_org_permission: %s\n" % e) ``` @@ -547,7 +547,7 @@ void (empty response body) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -566,7 +566,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_recipe** -> Repository get_recipe(owner, name) +> Repository get_recipe(ownername) Get a recipe @@ -574,7 +574,7 @@ Retrieve a recipe by name ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -582,16 +582,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -607,6 +597,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -616,13 +616,13 @@ name = 'name_example' # str | try: # Get a recipe - api_response = api_instance.get_recipe(owner, name) + api_response = api_instance.get_recipe(ownername) pprint(api_response) except ApiException as e: print("Exception when calling RecipesApi->get_recipe: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -630,16 +630,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -655,6 +645,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -664,7 +664,7 @@ name = 'name_example' # str | try: # Get a recipe - api_response = api_instance.get_recipe(owner, name) + api_response = api_instance.get_recipe(ownername) pprint(api_response) except ApiException as e: print("Exception when calling RecipesApi->get_recipe: %s\n" % e) @@ -683,7 +683,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -703,7 +703,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_recipe_access_permissions** -> RepositoryAccessPolicyList get_recipe_access_permissions(owner, name, page=page, per_page=per_page, subject_type=subject_type, permission=permission) +> RepositoryAccessPolicyList get_recipe_access_permissions(ownernamepage=pageper_page=per_pagesubject_type=subject_typepermission=permission) Get recipe access permissions @@ -711,7 +711,7 @@ Retrieve a recipe's access permissions (must have `write` permission) ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -719,16 +719,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -744,6 +734,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -752,18 +752,18 @@ with pollination_sdk.ApiClient(configuration) as api_client: name = 'name_example' # str | page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) -subject_type = ['subject_type_example'] # list[str] | The type of access policy subject (optional) -permission = ['permission_example'] # list[str] | An access policy permission string (optional) +subject_type = ['subject_type_example'] # List[str] | The type of access policy subject (optional) +permission = ['permission_example'] # List[str] | An access policy permission string (optional) try: # Get recipe access permissions - api_response = api_instance.get_recipe_access_permissions(owner, name, page=page, per_page=per_page, subject_type=subject_type, permission=permission) + api_response = api_instance.get_recipe_access_permissions(ownernamepage=pageper_page=per_pagesubject_type=subject_typepermission=permission) pprint(api_response) except ApiException as e: print("Exception when calling RecipesApi->get_recipe_access_permissions: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -771,16 +771,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -796,6 +786,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -804,12 +804,12 @@ with pollination_sdk.ApiClient(configuration) as api_client: name = 'name_example' # str | page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) -subject_type = ['subject_type_example'] # list[str] | The type of access policy subject (optional) -permission = ['permission_example'] # list[str] | An access policy permission string (optional) +subject_type = ['subject_type_example'] # List[str] | The type of access policy subject (optional) +permission = ['permission_example'] # List[str] | An access policy permission string (optional) try: # Get recipe access permissions - api_response = api_instance.get_recipe_access_permissions(owner, name, page=page, per_page=per_page, subject_type=subject_type, permission=permission) + api_response = api_instance.get_recipe_access_permissions(ownernamepage=pageper_page=per_pagesubject_type=subject_typepermission=permission) pprint(api_response) except ApiException as e: print("Exception when calling RecipesApi->get_recipe_access_permissions: %s\n" % e) @@ -823,8 +823,8 @@ Name | Type | Description | Notes **name** | **str**| | **page** | **int**| Page number starting from 1 | [optional] [default to 1] **per_page** | **int**| Number of items per page | [optional] [default to 25] - **subject_type** | [**list[str]**](str.md)| The type of access policy subject | [optional] - **permission** | [**list[str]**](str.md)| An access policy permission string | [optional] + **subject_type** | [**List[str]**](str.md)| The type of access policy subject | [optional] + **permission** | [**List[str]**](str.md)| An access policy permission string | [optional] ### Return type @@ -832,7 +832,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -851,7 +851,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_recipe_by_tag** -> RecipePackage get_recipe_by_tag(owner, name, tag) +> RecipePackage get_recipe_by_tag(ownernametag) Get a recipe tag @@ -859,7 +859,7 @@ Retrieve a recipe tag by name and tag ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -867,16 +867,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -892,6 +882,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -902,13 +902,13 @@ tag = 'tag_example' # str | try: # Get a recipe tag - api_response = api_instance.get_recipe_by_tag(owner, name, tag) + api_response = api_instance.get_recipe_by_tag(ownernametag) pprint(api_response) except ApiException as e: print("Exception when calling RecipesApi->get_recipe_by_tag: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -916,16 +916,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -941,6 +931,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -951,7 +951,7 @@ tag = 'tag_example' # str | try: # Get a recipe tag - api_response = api_instance.get_recipe_by_tag(owner, name, tag) + api_response = api_instance.get_recipe_by_tag(ownernametag) pprint(api_response) except ApiException as e: print("Exception when calling RecipesApi->get_recipe_by_tag: %s\n" % e) @@ -971,7 +971,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -991,7 +991,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_recipe_tags** -> RecipePackageList list_recipe_tags(owner, name, sort_by=sort_by, sort_order=sort_order, page=page, per_page=per_page) +> RecipePackageList list_recipe_tags(ownernamesort_by=sort_bysort_order=sort_orderpage=pageper_page=per_page) Get a recipe tags @@ -999,7 +999,7 @@ Retrieve a recipe by name ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -1007,16 +1007,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1032,6 +1022,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1045,13 +1045,13 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # Get a recipe tags - api_response = api_instance.list_recipe_tags(owner, name, sort_by=sort_by, sort_order=sort_order, page=page, per_page=per_page) + api_response = api_instance.list_recipe_tags(ownernamesort_by=sort_bysort_order=sort_orderpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling RecipesApi->list_recipe_tags: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -1059,16 +1059,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1084,6 +1074,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1097,7 +1097,7 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # Get a recipe tags - api_response = api_instance.list_recipe_tags(owner, name, sort_by=sort_by, sort_order=sort_order, page=page, per_page=per_page) + api_response = api_instance.list_recipe_tags(ownernamesort_by=sort_bysort_order=sort_orderpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling RecipesApi->list_recipe_tags: %s\n" % e) @@ -1120,7 +1120,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -1140,13 +1140,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_recipes** -> RepositoryList list_recipes(search=search, name=name, owner=owner, public=public, keyword=keyword, permission=permission, sort_by=sort_by, sort_order=sort_order, page=page, per_page=per_page) +> RepositoryList list_recipes(search=searchname=nameowner=ownerpublic=publickeyword=keywordpermission=permissionsort_by=sort_bysort_order=sort_orderpage=pageper_page=per_page) List recipes ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -1154,16 +1154,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1179,16 +1169,26 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.RecipesApi(api_client) - search = ['search_example'] # list[str] | You know, for search (optional) -name = ['name_example'] # list[str] | The account name (optional) -owner = ['owner_example'] # list[str] | Owner of the project (optional) + search = ['search_example'] # List[str] | You know, for search (optional) +name = ['name_example'] # List[str] | The account name (optional) +owner = ['owner_example'] # List[str] | Owner of the project (optional) public = True # bool | Boolean check for public/private projects (optional) -keyword = ['keyword_example'] # list[str] | A keyword to index the repository by (optional) -permission = ['permission_example'] # list[str] | Filter by permission on given resource (optional) +keyword = ['keyword_example'] # List[str] | A keyword to index the repository by (optional) +permission = ['permission_example'] # List[str] | Filter by permission on given resource (optional) sort_by = pollination_sdk.RepositorySortKey() # RepositorySortKey | Key to sort the list by (optional) sort_order = pollination_sdk.SortEnum() # SortEnum | The order to sort the list (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) @@ -1196,13 +1196,13 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List recipes - api_response = api_instance.list_recipes(search=search, name=name, owner=owner, public=public, keyword=keyword, permission=permission, sort_by=sort_by, sort_order=sort_order, page=page, per_page=per_page) + api_response = api_instance.list_recipes(search=searchname=nameowner=ownerpublic=publickeyword=keywordpermission=permissionsort_by=sort_bysort_order=sort_orderpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling RecipesApi->list_recipes: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -1210,16 +1210,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1235,16 +1225,26 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.RecipesApi(api_client) - search = ['search_example'] # list[str] | You know, for search (optional) -name = ['name_example'] # list[str] | The account name (optional) -owner = ['owner_example'] # list[str] | Owner of the project (optional) + search = ['search_example'] # List[str] | You know, for search (optional) +name = ['name_example'] # List[str] | The account name (optional) +owner = ['owner_example'] # List[str] | Owner of the project (optional) public = True # bool | Boolean check for public/private projects (optional) -keyword = ['keyword_example'] # list[str] | A keyword to index the repository by (optional) -permission = ['permission_example'] # list[str] | Filter by permission on given resource (optional) +keyword = ['keyword_example'] # List[str] | A keyword to index the repository by (optional) +permission = ['permission_example'] # List[str] | Filter by permission on given resource (optional) sort_by = pollination_sdk.RepositorySortKey() # RepositorySortKey | Key to sort the list by (optional) sort_order = pollination_sdk.SortEnum() # SortEnum | The order to sort the list (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) @@ -1252,7 +1252,7 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List recipes - api_response = api_instance.list_recipes(search=search, name=name, owner=owner, public=public, keyword=keyword, permission=permission, sort_by=sort_by, sort_order=sort_order, page=page, per_page=per_page) + api_response = api_instance.list_recipes(search=searchname=nameowner=ownerpublic=publickeyword=keywordpermission=permissionsort_by=sort_bysort_order=sort_orderpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling RecipesApi->list_recipes: %s\n" % e) @@ -1262,12 +1262,12 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **search** | [**list[str]**](str.md)| You know, for search | [optional] - **name** | [**list[str]**](str.md)| The account name | [optional] - **owner** | [**list[str]**](str.md)| Owner of the project | [optional] + **search** | [**List[str]**](str.md)| You know, for search | [optional] + **name** | [**List[str]**](str.md)| The account name | [optional] + **owner** | [**List[str]**](str.md)| Owner of the project | [optional] **public** | **bool**| Boolean check for public/private projects | [optional] - **keyword** | [**list[str]**](str.md)| A keyword to index the repository by | [optional] - **permission** | [**list[str]**](str.md)| Filter by permission on given resource | [optional] + **keyword** | [**List[str]**](str.md)| A keyword to index the repository by | [optional] + **permission** | [**List[str]**](str.md)| Filter by permission on given resource | [optional] **sort_by** | [**RepositorySortKey**](.md)| Key to sort the list by | [optional] **sort_order** | [**SortEnum**](.md)| The order to sort the list | [optional] **page** | **int**| Page number starting from 1 | [optional] [default to 1] @@ -1279,7 +1279,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -1295,7 +1295,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_recipe** -> UpdateAccepted update_recipe(owner, name, repository_update) +> UpdateAccepted update_recipe(ownernamerepository_update) Update a Recipe @@ -1303,7 +1303,7 @@ Update a recipe (must have `contribute` permission) ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -1311,16 +1311,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1336,6 +1326,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1346,13 +1346,13 @@ repository_update = pollination_sdk.RepositoryUpdate() # RepositoryUpdate | try: # Update a Recipe - api_response = api_instance.update_recipe(owner, name, repository_update) + api_response = api_instance.update_recipe(ownernamerepository_update) pprint(api_response) except ApiException as e: print("Exception when calling RecipesApi->update_recipe: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -1360,16 +1360,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1385,6 +1375,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1395,7 +1395,7 @@ repository_update = pollination_sdk.RepositoryUpdate() # RepositoryUpdate | try: # Update a Recipe - api_response = api_instance.update_recipe(owner, name, repository_update) + api_response = api_instance.update_recipe(ownernamerepository_update) pprint(api_response) except ApiException as e: print("Exception when calling RecipesApi->update_recipe: %s\n" % e) @@ -1415,7 +1415,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -1435,7 +1435,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **upsert_recipe_permission** -> UpdateAccepted upsert_recipe_permission(owner, name, repository_access_policy) +> UpdateAccepted upsert_recipe_permission(ownernamerepository_access_policy) Upsert a new permission to a recipe @@ -1443,7 +1443,7 @@ Upsert a recipe's access policy (must have `admin` permission) ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -1451,16 +1451,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1476,6 +1466,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1486,13 +1486,13 @@ repository_access_policy = pollination_sdk.RepositoryAccessPolicy() # Repository try: # Upsert a new permission to a recipe - api_response = api_instance.upsert_recipe_permission(owner, name, repository_access_policy) + api_response = api_instance.upsert_recipe_permission(ownernamerepository_access_policy) pprint(api_response) except ApiException as e: print("Exception when calling RecipesApi->upsert_recipe_permission: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -1500,16 +1500,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1525,6 +1515,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1535,7 +1535,7 @@ repository_access_policy = pollination_sdk.RepositoryAccessPolicy() # Repository try: # Upsert a new permission to a recipe - api_response = api_instance.upsert_recipe_permission(owner, name, repository_access_policy) + api_response = api_instance.upsert_recipe_permission(ownernamerepository_access_policy) pprint(api_response) except ApiException as e: print("Exception when calling RecipesApi->upsert_recipe_permission: %s\n" % e) @@ -1555,7 +1555,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers diff --git a/docs/RegistriesApi.md b/docs/RegistriesApi.md index 73a185b89..da2052836 100644 --- a/docs/RegistriesApi.md +++ b/docs/RegistriesApi.md @@ -12,13 +12,13 @@ Method | HTTP request | Description # **get_package** -> object get_package(owner, type, name, digest) +> object get_package(ownertypenamedigest) Get Package ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -26,16 +26,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -51,6 +41,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -62,13 +62,13 @@ digest = 'digest_example' # str | try: # Get Package - api_response = api_instance.get_package(owner, type, name, digest) + api_response = api_instance.get_package(ownertypenamedigest) pprint(api_response) except ApiException as e: print("Exception when calling RegistriesApi->get_package: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -76,16 +76,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -101,6 +91,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -112,7 +112,7 @@ digest = 'digest_example' # str | try: # Get Package - api_response = api_instance.get_package(owner, type, name, digest) + api_response = api_instance.get_package(ownertypenamedigest) pprint(api_response) except ApiException as e: print("Exception when calling RegistriesApi->get_package: %s\n" % e) @@ -133,12 +133,12 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/x-tar + - **Accept**: application/jsonapplication/x-tar ### HTTP response details | Status code | Description | Response headers | @@ -149,13 +149,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_package_json** -> AnyOfRecipePluginBakedRecipe get_package_json(owner, type, name, digest, baked=baked) +> ResponseGetPackageJson get_package_json(ownertypenamedigestbaked=baked) Get Package in JSON format ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -163,16 +163,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -188,6 +178,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -200,13 +200,13 @@ baked = False # bool | (optional) (default to False) try: # Get Package in JSON format - api_response = api_instance.get_package_json(owner, type, name, digest, baked=baked) + api_response = api_instance.get_package_json(ownertypenamedigestbaked=baked) pprint(api_response) except ApiException as e: print("Exception when calling RegistriesApi->get_package_json: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -214,16 +214,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -239,6 +229,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -251,7 +251,7 @@ baked = False # bool | (optional) (default to False) try: # Get Package in JSON format - api_response = api_instance.get_package_json(owner, type, name, digest, baked=baked) + api_response = api_instance.get_package_json(ownertypenamedigestbaked=baked) pprint(api_response) except ApiException as e: print("Exception when calling RegistriesApi->get_package_json: %s\n" % e) @@ -269,11 +269,11 @@ Name | Type | Description | Notes ### Return type -[**AnyOfRecipePluginBakedRecipe**](AnyOfRecipePluginBakedRecipe.md) +[**ResponseGetPackageJson**](ResponseGetPackageJson.md) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -295,7 +295,7 @@ Get Registry Index ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -303,16 +303,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -328,6 +318,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -342,7 +342,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: print("Exception when calling RegistriesApi->get_registry_index: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -350,16 +350,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -375,6 +365,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -401,7 +401,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -417,13 +417,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **post_plugin** -> object post_plugin(owner, package) +> object post_plugin(ownerpackage) Push a plugin to the registry ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -431,16 +431,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -456,22 +446,32 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.RegistriesApi(api_client) owner = 'owner_example' # str | -package = '/path/to/file' # file | +package = None # bytearray | try: # Push a plugin to the registry - api_response = api_instance.post_plugin(owner, package) + api_response = api_instance.post_plugin(ownerpackage) pprint(api_response) except ApiException as e: print("Exception when calling RegistriesApi->post_plugin: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -479,16 +479,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -504,16 +494,26 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.RegistriesApi(api_client) owner = 'owner_example' # str | -package = '/path/to/file' # file | +package = None # bytearray | try: # Push a plugin to the registry - api_response = api_instance.post_plugin(owner, package) + api_response = api_instance.post_plugin(ownerpackage) pprint(api_response) except ApiException as e: print("Exception when calling RegistriesApi->post_plugin: %s\n" % e) @@ -524,7 +524,7 @@ package = '/path/to/file' # file | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **str**| | - **package** | **file**| | + **package** | **bytearray**| | ### Return type @@ -532,7 +532,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -548,13 +548,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **post_recipe** -> object post_recipe(owner, package) +> object post_recipe(ownerpackage) Push an Recipe to the registry ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -562,16 +562,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -587,22 +577,32 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.RegistriesApi(api_client) owner = 'owner_example' # str | -package = '/path/to/file' # file | +package = None # bytearray | try: # Push an Recipe to the registry - api_response = api_instance.post_recipe(owner, package) + api_response = api_instance.post_recipe(ownerpackage) pprint(api_response) except ApiException as e: print("Exception when calling RegistriesApi->post_recipe: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -610,16 +610,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -635,16 +625,26 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.RegistriesApi(api_client) owner = 'owner_example' # str | -package = '/path/to/file' # file | +package = None # bytearray | try: # Push an Recipe to the registry - api_response = api_instance.post_recipe(owner, package) + api_response = api_instance.post_recipe(ownerpackage) pprint(api_response) except ApiException as e: print("Exception when calling RegistriesApi->post_recipe: %s\n" % e) @@ -655,7 +655,7 @@ package = '/path/to/file' # file | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **str**| | - **package** | **file**| | + **package** | **bytearray**| | ### Return type @@ -663,7 +663,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers diff --git a/docs/ReportCADLicenseUsage.md b/docs/ReportCADLicenseUsage.md new file mode 100644 index 000000000..74b9cbc2d --- /dev/null +++ b/docs/ReportCADLicenseUsage.md @@ -0,0 +1,15 @@ +# ReportCADLicenseUsage + +A report on CAD license usage +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_id** | **str** | | +**created_at** | **datetime** | | [optional] +**data** | [**List[CADLicenseUsage]**](CADLicenseUsage.md) | | +**from_date** | **date** | | [optional] +**to_date** | **date** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportComputeUsage.md b/docs/ReportComputeUsage.md new file mode 100644 index 000000000..ca7352e17 --- /dev/null +++ b/docs/ReportComputeUsage.md @@ -0,0 +1,15 @@ +# ReportComputeUsage + +A report on cloud compute usage for an account +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_id** | **str** | | +**created_at** | **datetime** | | [optional] +**data** | [**List[JobComputeUsage]**](JobComputeUsage.md) | | +**from_date** | **date** | | [optional] +**to_date** | **date** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportOrganizationMemberUsage.md b/docs/ReportOrganizationMemberUsage.md new file mode 100644 index 000000000..acc2bab4f --- /dev/null +++ b/docs/ReportOrganizationMemberUsage.md @@ -0,0 +1,15 @@ +# ReportOrganizationMemberUsage + +A report on compute usage by organisation members +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_id** | **str** | | +**created_at** | **datetime** | | [optional] +**data** | [**List[OrganizationMemberUsage]**](OrganizationMemberUsage.md) | | +**from_date** | **date** | | [optional] +**to_date** | **date** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportsApi.md b/docs/ReportsApi.md new file mode 100644 index 000000000..501b78a3a --- /dev/null +++ b/docs/ReportsApi.md @@ -0,0 +1,413 @@ +# pollination_sdk.ReportsApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_cad_license_usage_report**](ReportsApi.md#get_cad_license_usage_report) | **GET** /reports/{name}/cad-license-usage | Get CAD license usage report for an account +[**get_compute_usage_report**](ReportsApi.md#get_compute_usage_report) | **GET** /reports/{name}/compute-usage | Get compute usage report for an account +[**get_org_member_usage_report**](ReportsApi.md#get_org_member_usage_report) | **GET** /reports/{name}/organization-member-usage | Get organization member usage report for an organization account + + +# **get_cad_license_usage_report** +> ReportCADLicenseUsage get_cad_license_usage_report(namefrom_date=from_dateto_date=to_date) + +Get CAD license usage report for an account + +Get cad_license usage report for an account + +### Example + +* Bearer (JWT) Authentication (JWTAuth): +```python +from __future__ import print_function +import time +import pollination_sdk +from pollination_sdk.rest import ApiException +from pprint import pprint + +# Retrieve a temporary Acces Token (JWT) using your API token +API_TOKEN = 'some-token-string' + +auth = pollination_sdk.UserApi() +api_token = pollination_sdk.LoginDto( + api_token=API_TOKEN +) + +auth_response = auth.login(api_token) + +# Configure Bearer authorization (JWT): JWTAuth +configuration = pollination_sdk.Configuration( + access_token=auth_response.access_token +) + +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with pollination_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = pollination_sdk.ReportsApi(api_client) + name = 'name_example' # str | +from_date = '2013-10-20' # date | (optional) +to_date = '2013-10-20' # date | (optional) + + try: + # Get CAD license usage report for an account + api_response = api_instance.get_cad_license_usage_report(namefrom_date=from_dateto_date=to_date) + pprint(api_response) + except ApiException as e: + print("Exception when calling ReportsApi->get_cad_license_usage_report: %s\n" % e) +``` + +* Api Key Authentication (APIKeyAuth): +```python +from __future__ import print_function +import time +import pollination_sdk +from pollination_sdk.rest import ApiException +from pprint import pprint + +# Retrieve a temporary Acces Token (JWT) using your API token +API_TOKEN = 'some-token-string' + +auth = pollination_sdk.UserApi() +api_token = pollination_sdk.LoginDto( + api_token=API_TOKEN +) + +auth_response = auth.login(api_token) + +# Configure Bearer authorization (JWT): JWTAuth +configuration = pollination_sdk.Configuration( + access_token=auth_response.access_token +) + +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with pollination_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = pollination_sdk.ReportsApi(api_client) + name = 'name_example' # str | +from_date = '2013-10-20' # date | (optional) +to_date = '2013-10-20' # date | (optional) + + try: + # Get CAD license usage report for an account + api_response = api_instance.get_cad_license_usage_report(namefrom_date=from_dateto_date=to_date) + pprint(api_response) + except ApiException as e: + print("Exception when calling ReportsApi->get_cad_license_usage_report: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **from_date** | **date**| | [optional] + **to_date** | **date**| | [optional] + +### Return type + +[**ReportCADLicenseUsage**](ReportCADLicenseUsage.md) + +### Authorization + +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_compute_usage_report** +> ReportComputeUsage get_compute_usage_report(namefrom_date=from_dateto_date=to_date) + +Get compute usage report for an account + +Get compute usage report for an account + +### Example + +* Bearer (JWT) Authentication (JWTAuth): +```python +from __future__ import print_function +import time +import pollination_sdk +from pollination_sdk.rest import ApiException +from pprint import pprint + +# Retrieve a temporary Acces Token (JWT) using your API token +API_TOKEN = 'some-token-string' + +auth = pollination_sdk.UserApi() +api_token = pollination_sdk.LoginDto( + api_token=API_TOKEN +) + +auth_response = auth.login(api_token) + +# Configure Bearer authorization (JWT): JWTAuth +configuration = pollination_sdk.Configuration( + access_token=auth_response.access_token +) + +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with pollination_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = pollination_sdk.ReportsApi(api_client) + name = 'name_example' # str | +from_date = '2013-10-20' # date | (optional) +to_date = '2013-10-20' # date | (optional) + + try: + # Get compute usage report for an account + api_response = api_instance.get_compute_usage_report(namefrom_date=from_dateto_date=to_date) + pprint(api_response) + except ApiException as e: + print("Exception when calling ReportsApi->get_compute_usage_report: %s\n" % e) +``` + +* Api Key Authentication (APIKeyAuth): +```python +from __future__ import print_function +import time +import pollination_sdk +from pollination_sdk.rest import ApiException +from pprint import pprint + +# Retrieve a temporary Acces Token (JWT) using your API token +API_TOKEN = 'some-token-string' + +auth = pollination_sdk.UserApi() +api_token = pollination_sdk.LoginDto( + api_token=API_TOKEN +) + +auth_response = auth.login(api_token) + +# Configure Bearer authorization (JWT): JWTAuth +configuration = pollination_sdk.Configuration( + access_token=auth_response.access_token +) + +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with pollination_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = pollination_sdk.ReportsApi(api_client) + name = 'name_example' # str | +from_date = '2013-10-20' # date | (optional) +to_date = '2013-10-20' # date | (optional) + + try: + # Get compute usage report for an account + api_response = api_instance.get_compute_usage_report(namefrom_date=from_dateto_date=to_date) + pprint(api_response) + except ApiException as e: + print("Exception when calling ReportsApi->get_compute_usage_report: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **from_date** | **date**| | [optional] + **to_date** | **date**| | [optional] + +### Return type + +[**ReportComputeUsage**](ReportComputeUsage.md) + +### Authorization + +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_org_member_usage_report** +> ReportOrganizationMemberUsage get_org_member_usage_report(name) + +Get organization member usage report for an organization account + +Get compute usage report for an account + +### Example + +* Bearer (JWT) Authentication (JWTAuth): +```python +from __future__ import print_function +import time +import pollination_sdk +from pollination_sdk.rest import ApiException +from pprint import pprint + +# Retrieve a temporary Acces Token (JWT) using your API token +API_TOKEN = 'some-token-string' + +auth = pollination_sdk.UserApi() +api_token = pollination_sdk.LoginDto( + api_token=API_TOKEN +) + +auth_response = auth.login(api_token) + +# Configure Bearer authorization (JWT): JWTAuth +configuration = pollination_sdk.Configuration( + access_token=auth_response.access_token +) + +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with pollination_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = pollination_sdk.ReportsApi(api_client) + name = 'name_example' # str | + + try: + # Get organization member usage report for an organization account + api_response = api_instance.get_org_member_usage_report(name) + pprint(api_response) + except ApiException as e: + print("Exception when calling ReportsApi->get_org_member_usage_report: %s\n" % e) +``` + +* Api Key Authentication (APIKeyAuth): +```python +from __future__ import print_function +import time +import pollination_sdk +from pollination_sdk.rest import ApiException +from pprint import pprint + +# Retrieve a temporary Acces Token (JWT) using your API token +API_TOKEN = 'some-token-string' + +auth = pollination_sdk.UserApi() +api_token = pollination_sdk.LoginDto( + api_token=API_TOKEN +) + +auth_response = auth.login(api_token) + +# Configure Bearer authorization (JWT): JWTAuth +configuration = pollination_sdk.Configuration( + access_token=auth_response.access_token +) + +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with pollination_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = pollination_sdk.ReportsApi(api_client) + name = 'name_example' # str | + + try: + # Get organization member usage report for an organization account + api_response = api_instance.get_org_member_usage_report(name) + pprint(api_response) + except ApiException as e: + print("Exception when calling ReportsApi->get_org_member_usage_report: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + +### Return type + +[**ReportOrganizationMemberUsage**](ReportOrganizationMemberUsage.md) + +### Authorization + +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/Repository.md b/docs/Repository.md index 7773e980f..00a05b7b8 100644 --- a/docs/Repository.md +++ b/docs/Repository.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **description** | **str** | A description of the repository | [optional] **icon** | **str** | An icon to represent this repository | [optional] **id** | **str** | The recipe unique ID | -**keywords** | **list[str]** | A list of keywords to index the repository by | [optional] +**keywords** | **List[str]** | A list of keywords to index the repository by | [optional] **latest_tag** | **str** | The latest package version to be indexed | **name** | **str** | The name of the repository | **owner** | [**AccountPublic**](AccountPublic.md) | The owner of the repository | diff --git a/docs/RepositoryAccessPolicyList.md b/docs/RepositoryAccessPolicyList.md index ea4597771..e8d5cce97 100644 --- a/docs/RepositoryAccessPolicyList.md +++ b/docs/RepositoryAccessPolicyList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[RepositoryAccessPolicy]**](RepositoryAccessPolicy.md) | | +**resources** | [**List[RepositoryAccessPolicy]**](RepositoryAccessPolicy.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RepositoryCreate.md b/docs/RepositoryCreate.md index 0515ac3c0..652980017 100644 --- a/docs/RepositoryCreate.md +++ b/docs/RepositoryCreate.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **str** | A description of the repository | [optional] **icon** | **str** | An icon to represent this repository | [optional] -**keywords** | **list[str]** | A list of keywords to index the repository by | [optional] +**keywords** | **List[str]** | A list of keywords to index the repository by | [optional] **name** | **str** | The name of the repository | **public** | **bool** | Whether or not a repository is publicly viewable | [optional] diff --git a/docs/RepositoryIndex.md b/docs/RepositoryIndex.md index 3c3aefb43..6cc37e80e 100644 --- a/docs/RepositoryIndex.md +++ b/docs/RepositoryIndex.md @@ -4,12 +4,12 @@ A searchable index for a Queenbee Plugin and Recipe repository ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **api_version** | **str** | | [optional] [readonly] [default to 'v1beta1'] **generated** | **datetime** | The timestamp at which the index was generated | [optional] **metadata** | [**RepositoryMetadata**](RepositoryMetadata.md) | Extra information about the repository | [optional] -**plugin** | **dict(str, list[PackageVersion])** | A dict of plugins accessible by name. Each name key points to a list of plugin versions | [optional] -**recipe** | **dict(str, list[PackageVersion])** | A dict of recipes accessible by name. Each name key points to a list of recipesversions | [optional] +**plugin** | **Dict[str, List[PackageVersion]]** | A dict of plugins accessible by name. Each name key points to a list of plugin versions | [optional] +**recipe** | **Dict[str, List[PackageVersion]]** | A dict of recipes accessible by name. Each name key points to a list of recipesversions | [optional] **type** | **str** | | [optional] [readonly] [default to 'RepositoryIndex'] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RepositoryList.md b/docs/RepositoryList.md index f4f4e0c7b..d18199d28 100644 --- a/docs/RepositoryList.md +++ b/docs/RepositoryList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[Repository]**](Repository.md) | | +**resources** | [**List[Repository]**](Repository.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RepositoryMetadata.md b/docs/RepositoryMetadata.md index 0d9c44459..2b7184b04 100644 --- a/docs/RepositoryMetadata.md +++ b/docs/RepositoryMetadata.md @@ -4,7 +4,7 @@ BaseModel with functionality to return the object as a yaml string. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | A short description of the repository | [optional] [default to 'A Queenbee package repository'] **name** | **str** | The name of the repository | [optional] **plugin_count** | **int** | The number of plugins hosted by the repository | [optional] [default to 0] diff --git a/docs/RepositoryUpdate.md b/docs/RepositoryUpdate.md index 49240675a..7eb181715 100644 --- a/docs/RepositoryUpdate.md +++ b/docs/RepositoryUpdate.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **str** | A description of the repository | [optional] **icon** | **str** | An icon to represent this repository | [optional] -**keywords** | **list[str]** | A list of keywords to index the repository by | [optional] +**keywords** | **List[str]** | A list of keywords to index the repository by | [optional] **public** | **bool** | Whether or not a repository is publicly viewable | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ResponseGetPackageJson.md b/docs/ResponseGetPackageJson.md new file mode 100644 index 000000000..fa5e2a5e7 --- /dev/null +++ b/docs/ResponseGetPackageJson.md @@ -0,0 +1,19 @@ +# ResponseGetPackageJson + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**api_version** | **str** | | [optional] [readonly] [default to 'v1beta1'] +**dependencies** | [**List[Dependency]**](Dependency.md) | A list of plugins and other recipes this recipe depends on. | [optional] +**flow** | [**List[DAG]**](DAG.md) | A list of tasks to create a DAG recipe. | +**metadata** | [**MetaData**](MetaData.md) | Recipe metadata information. | +**type** | **str** | | [optional] [readonly] [default to 'BakedRecipe'] +**config** | [**PluginConfig**](PluginConfig.md) | The configuration information to run this plugin | +**functions** | [**List[Function]**](Function.md) | List of Plugin functions | +**digest** | **str** | | +**templates** | [**List[BakedRecipeTemplatesInner]**](BakedRecipeTemplatesInner.md) | A list of templates. Templates can be Function or a DAG. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RunList.md b/docs/RunList.md index 1d4466188..f5062480f 100644 --- a/docs/RunList.md +++ b/docs/RunList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[Run]**](Run.md) | | +**resources** | [**List[Run]**](Run.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RunResultList.md b/docs/RunResultList.md index 1c28d38dc..44a4b92d1 100644 --- a/docs/RunResultList.md +++ b/docs/RunResultList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | **list[list[AnyOfStepStringInputStepIntegerInputStepNumberInputStepBooleanInputStepFolderInputStepFileInputStepPathInputStepArrayInputStepJSONObjectInputStepStringOutputStepIntegerOutputStepNumberOutputStepBooleanOutputStepFolderOutputStepFileOutputStepPathOutputStepArrayOutputStepJSONObjectOutput]]** | | +**resources** | **List[List[RunResultListResourcesInnerInner]]** | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RunResultListResourcesInnerInner.md b/docs/RunResultListResourcesInnerInner.md new file mode 100644 index 000000000..00eec2129 --- /dev/null +++ b/docs/RunResultListResourcesInnerInner.md @@ -0,0 +1,22 @@ +# RunResultListResourcesInnerInner + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**default** | **object** | Default value to use for an input if a value was not supplied. | [optional] +**description** | **str** | Optional description for output. | [optional] +**name** | **str** | Output name. | +**required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] +**spec** | **object** | An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. | [optional] +**type** | **str** | | [optional] [readonly] [default to 'StepJSONObjectOutput'] +**value** | **object** | | +**path** | **str** | Path to the output file relative to where the function command is executed. | +**source** | [**Source**](Source.md) | | +**extensions** | **List[str]** | Optional list of extensions for file. The check for extension is case-insensitive. | [optional] +**items_type** | [**ItemType**](ItemType.md) | Type of items in this array. All the items in an array must be from the same type. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RunStatus.md b/docs/RunStatus.md index 5fa688755..f6231dff7 100644 --- a/docs/RunStatus.md +++ b/docs/RunStatus.md @@ -4,19 +4,19 @@ Job Status. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **api_version** | **str** | | [optional] [readonly] [default to 'v1beta1'] **entrypoint** | **str** | The ID of the first step in the run. | [optional] **finished_at** | **datetime** | The time at which the task was completed | [optional] **id** | **str** | The ID of the individual run. | -**inputs** | [**list[AnyOfStepStringInputStepIntegerInputStepNumberInputStepBooleanInputStepFolderInputStepFileInputStepPathInputStepArrayInputStepJSONObjectInput]**](AnyOfStepStringInputStepIntegerInputStepNumberInputStepBooleanInputStepFolderInputStepFileInputStepPathInputStepArrayInputStepJSONObjectInput.md) | The inputs used for this run. | +**inputs** | [**List[RunStatusInputsInner]**](RunStatusInputsInner.md) | The inputs used for this run. | **job_id** | **str** | The ID of the job that generated this run. | **message** | **str** | Any message produced by the task. Usually error/debugging hints. | [optional] -**outputs** | [**list[AnyOfStepStringOutputStepIntegerOutputStepNumberOutputStepBooleanOutputStepFolderOutputStepFileOutputStepPathOutputStepArrayOutputStepJSONObjectOutput]**](AnyOfStepStringOutputStepIntegerOutputStepNumberOutputStepBooleanOutputStepFolderOutputStepFileOutputStepPathOutputStepArrayOutputStepJSONObjectOutput.md) | The outputs produced by this run. | +**outputs** | [**List[RunStatusOutputsInner]**](RunStatusOutputsInner.md) | The outputs produced by this run. | **source** | **str** | Source url for the status object. It can be a recipe or a function. | [optional] **started_at** | **datetime** | The time at which the task was started | **status** | [**RunStatusEnum**](RunStatusEnum.md) | The status of this run. | [optional] -**steps** | [**dict(str, StepStatus)**](StepStatus.md) | | [optional] +**steps** | [**Dict[str, StepStatus]**](StepStatus.md) | | [optional] **type** | **str** | | [optional] [readonly] [default to 'RunStatus'] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RunStatusInputsInner.md b/docs/RunStatusInputsInner.md new file mode 100644 index 000000000..988acf6da --- /dev/null +++ b/docs/RunStatusInputsInner.md @@ -0,0 +1,22 @@ +# RunStatusInputsInner + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**default** | **object** | Default value to use for an input if a value was not supplied. | [optional] +**description** | **str** | Optional description for input. | [optional] +**name** | **str** | Input name. | +**required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] +**spec** | **object** | An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. | [optional] +**type** | **str** | | [optional] [readonly] [default to 'StepJSONObjectInput'] +**value** | **object** | | +**path** | **str** | Path to the target location that the input will be copied to. This path is relative to the working directory where the command is executed. | [optional] +**source** | [**Source**](Source.md) | | +**extensions** | **List[str]** | Optional list of extensions for file. The check for extension is case-insensitive. | [optional] +**items_type** | [**ItemType**](ItemType.md) | Type of items in an array. All the items in an array must be from the same type. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RunStatusOutputsInner.md b/docs/RunStatusOutputsInner.md new file mode 100644 index 000000000..ace08683e --- /dev/null +++ b/docs/RunStatusOutputsInner.md @@ -0,0 +1,18 @@ +# RunStatusOutputsInner + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**description** | **str** | Optional description for output. | [optional] +**name** | **str** | Output name. | +**path** | **str** | Path to the output file relative to where the function command is executed. | +**required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] +**type** | **str** | | [optional] [readonly] [default to 'StepJSONObjectOutput'] +**value** | **object** | | +**source** | [**Source**](Source.md) | | +**items_type** | [**ItemType**](ItemType.md) | Type of items in this array. All the items in an array must be from the same type. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RunsApi.md b/docs/RunsApi.md index c5a022b90..efdac542d 100644 --- a/docs/RunsApi.md +++ b/docs/RunsApi.md @@ -18,7 +18,7 @@ Method | HTTP request | Description # **cancel_run** -> Run cancel_run(owner, name, run_id) +> Run cancel_run(ownernamerun_id) Cancel a run @@ -26,7 +26,7 @@ Stop a run. ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -34,16 +34,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -59,6 +49,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -69,13 +69,13 @@ run_id = 'run_id_example' # str | try: # Cancel a run - api_response = api_instance.cancel_run(owner, name, run_id) + api_response = api_instance.cancel_run(ownernamerun_id) pprint(api_response) except ApiException as e: print("Exception when calling RunsApi->cancel_run: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -83,16 +83,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -108,6 +98,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -118,7 +118,7 @@ run_id = 'run_id_example' # str | try: # Cancel a run - api_response = api_instance.cancel_run(owner, name, run_id) + api_response = api_instance.cancel_run(ownernamerun_id) pprint(api_response) except ApiException as e: print("Exception when calling RunsApi->cancel_run: %s\n" % e) @@ -138,7 +138,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -154,7 +154,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **download_run_artifact** -> object download_run_artifact(owner, name, run_id, path=path) +> str download_run_artifact(ownernamerun_idpath=path) Download an artifact from the run folder @@ -162,7 +162,7 @@ Get a download link for an artifact in a run folder ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -170,16 +170,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -195,6 +185,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -206,13 +206,13 @@ path = 'path_example' # str | The path to an file within a project folder (optio try: # Download an artifact from the run folder - api_response = api_instance.download_run_artifact(owner, name, run_id, path=path) + api_response = api_instance.download_run_artifact(ownernamerun_idpath=path) pprint(api_response) except ApiException as e: print("Exception when calling RunsApi->download_run_artifact: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -220,16 +220,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -245,6 +235,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -256,7 +256,7 @@ path = 'path_example' # str | The path to an file within a project folder (optio try: # Download an artifact from the run folder - api_response = api_instance.download_run_artifact(owner, name, run_id, path=path) + api_response = api_instance.download_run_artifact(ownernamerun_idpath=path) pprint(api_response) except ApiException as e: print("Exception when calling RunsApi->download_run_artifact: %s\n" % e) @@ -273,11 +273,11 @@ Name | Type | Description | Notes ### Return type -**object** +**str** ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -297,7 +297,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_all_run_steps** -> list[StepStatus] get_all_run_steps(owner, name, run_id) +> List[StepStatus] get_all_run_steps(ownernamerun_id) Query the steps of a run @@ -305,7 +305,7 @@ list all run steps ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -313,16 +313,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -338,6 +328,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -348,13 +348,13 @@ run_id = 'run_id_example' # str | try: # Query the steps of a run - api_response = api_instance.get_all_run_steps(owner, name, run_id) + api_response = api_instance.get_all_run_steps(ownernamerun_id) pprint(api_response) except ApiException as e: print("Exception when calling RunsApi->get_all_run_steps: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -362,16 +362,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -387,6 +377,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -397,7 +397,7 @@ run_id = 'run_id_example' # str | try: # Query the steps of a run - api_response = api_instance.get_all_run_steps(owner, name, run_id) + api_response = api_instance.get_all_run_steps(ownernamerun_id) pprint(api_response) except ApiException as e: print("Exception when calling RunsApi->get_all_run_steps: %s\n" % e) @@ -413,11 +413,11 @@ Name | Type | Description | Notes ### Return type -[**list[StepStatus]**](StepStatus.md) +[**List[StepStatus]**](StepStatus.md) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -433,7 +433,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_run** -> Run get_run(owner, name, run_id) +> Run get_run(ownernamerun_id) Get a Run @@ -441,7 +441,7 @@ Retrieve a run. ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -449,16 +449,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -474,6 +464,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -484,13 +484,13 @@ run_id = 'run_id_example' # str | try: # Get a Run - api_response = api_instance.get_run(owner, name, run_id) + api_response = api_instance.get_run(ownernamerun_id) pprint(api_response) except ApiException as e: print("Exception when calling RunsApi->get_run: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -498,16 +498,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -523,6 +513,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -533,7 +533,7 @@ run_id = 'run_id_example' # str | try: # Get a Run - api_response = api_instance.get_run(owner, name, run_id) + api_response = api_instance.get_run(ownernamerun_id) pprint(api_response) except ApiException as e: print("Exception when calling RunsApi->get_run: %s\n" % e) @@ -553,7 +553,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -569,7 +569,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_run_output** -> object get_run_output(owner, name, run_id, output_name) +> object get_run_output(ownernamerun_idoutput_name) Get run output by name @@ -577,7 +577,7 @@ get run output by name ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -585,16 +585,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -610,6 +600,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -621,13 +621,13 @@ output_name = 'output_name_example' # str | try: # Get run output by name - api_response = api_instance.get_run_output(owner, name, run_id, output_name) + api_response = api_instance.get_run_output(ownernamerun_idoutput_name) pprint(api_response) except ApiException as e: print("Exception when calling RunsApi->get_run_output: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -635,16 +635,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -660,6 +650,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -671,7 +671,7 @@ output_name = 'output_name_example' # str | try: # Get run output by name - api_response = api_instance.get_run_output(owner, name, run_id, output_name) + api_response = api_instance.get_run_output(ownernamerun_idoutput_name) pprint(api_response) except ApiException as e: print("Exception when calling RunsApi->get_run_output: %s\n" % e) @@ -692,7 +692,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -712,7 +712,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_run_step_logs** -> str get_run_step_logs(owner, name, run_id, step_id) +> str get_run_step_logs(ownernamerun_idstep_id) Get the logs of a specific step of the run @@ -720,7 +720,7 @@ get run step logs ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -728,16 +728,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -753,6 +743,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -764,13 +764,13 @@ step_id = 'step_id_example' # str | try: # Get the logs of a specific step of the run - api_response = api_instance.get_run_step_logs(owner, name, run_id, step_id) + api_response = api_instance.get_run_step_logs(ownernamerun_idstep_id) pprint(api_response) except ApiException as e: print("Exception when calling RunsApi->get_run_step_logs: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -778,16 +778,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -803,6 +793,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -814,7 +814,7 @@ step_id = 'step_id_example' # str | try: # Get the logs of a specific step of the run - api_response = api_instance.get_run_step_logs(owner, name, run_id, step_id) + api_response = api_instance.get_run_step_logs(ownernamerun_idstep_id) pprint(api_response) except ApiException as e: print("Exception when calling RunsApi->get_run_step_logs: %s\n" % e) @@ -835,7 +835,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -851,7 +851,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_run_steps** -> StepList get_run_steps(owner, name, run_id, status=status, step_id=step_id, until_generation=until_generation, since_generation=since_generation, page=page, per_page=per_page) +> StepList get_run_steps(ownernamerun_idstatus=statusstep_id=step_iduntil_generation=until_generationsince_generation=since_generationpage=pageper_page=per_page) Query the steps of a run @@ -859,7 +859,7 @@ list run steps ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -867,16 +867,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -892,6 +882,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -900,7 +900,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: name = 'name_example' # str | run_id = 'run_id_example' # str | status = pollination_sdk.StepStatusEnum() # StepStatusEnum | (optional) -step_id = ['step_id_example'] # list[str] | (optional) +step_id = ['step_id_example'] # List[str] | (optional) until_generation = 'until_generation_example' # str | (optional) since_generation = 'since_generation_example' # str | (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) @@ -908,13 +908,13 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # Query the steps of a run - api_response = api_instance.get_run_steps(owner, name, run_id, status=status, step_id=step_id, until_generation=until_generation, since_generation=since_generation, page=page, per_page=per_page) + api_response = api_instance.get_run_steps(ownernamerun_idstatus=statusstep_id=step_iduntil_generation=until_generationsince_generation=since_generationpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling RunsApi->get_run_steps: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -922,16 +922,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -947,6 +937,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -955,7 +955,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: name = 'name_example' # str | run_id = 'run_id_example' # str | status = pollination_sdk.StepStatusEnum() # StepStatusEnum | (optional) -step_id = ['step_id_example'] # list[str] | (optional) +step_id = ['step_id_example'] # List[str] | (optional) until_generation = 'until_generation_example' # str | (optional) since_generation = 'since_generation_example' # str | (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) @@ -963,7 +963,7 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # Query the steps of a run - api_response = api_instance.get_run_steps(owner, name, run_id, status=status, step_id=step_id, until_generation=until_generation, since_generation=since_generation, page=page, per_page=per_page) + api_response = api_instance.get_run_steps(ownernamerun_idstatus=statusstep_id=step_iduntil_generation=until_generationsince_generation=since_generationpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling RunsApi->get_run_steps: %s\n" % e) @@ -977,7 +977,7 @@ Name | Type | Description | Notes **name** | **str**| | **run_id** | **str**| | **status** | [**StepStatusEnum**](.md)| | [optional] - **step_id** | [**list[str]**](str.md)| | [optional] + **step_id** | [**List[str]**](str.md)| | [optional] **until_generation** | **str**| | [optional] **since_generation** | **str**| | [optional] **page** | **int**| Page number starting from 1 | [optional] [default to 1] @@ -989,7 +989,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -1005,7 +1005,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_run_artifacts** -> object list_run_artifacts(owner, name, run_id, path=path, page=page, per_page=per_page) +> FileMetaList list_run_artifacts(ownernamerun_idpath=pathpage=pageper_page=per_page) List artifacts in a run folder @@ -1013,7 +1013,7 @@ Retrieve a list of artifacts in a run folder ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -1021,16 +1021,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1046,6 +1036,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1053,19 +1053,19 @@ with pollination_sdk.ApiClient(configuration) as api_client: owner = 'owner_example' # str | name = 'name_example' # str | run_id = 'run_id_example' # str | -path = ['path_example'] # list[str] | The path to an file within a project folder (optional) +path = ['path_example'] # List[str] | The path to an file within a project folder (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List artifacts in a run folder - api_response = api_instance.list_run_artifacts(owner, name, run_id, path=path, page=page, per_page=per_page) + api_response = api_instance.list_run_artifacts(ownernamerun_idpath=pathpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling RunsApi->list_run_artifacts: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -1073,16 +1073,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1098,6 +1088,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1105,13 +1105,13 @@ with pollination_sdk.ApiClient(configuration) as api_client: owner = 'owner_example' # str | name = 'name_example' # str | run_id = 'run_id_example' # str | -path = ['path_example'] # list[str] | The path to an file within a project folder (optional) +path = ['path_example'] # List[str] | The path to an file within a project folder (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List artifacts in a run folder - api_response = api_instance.list_run_artifacts(owner, name, run_id, path=path, page=page, per_page=per_page) + api_response = api_instance.list_run_artifacts(ownernamerun_idpath=pathpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling RunsApi->list_run_artifacts: %s\n" % e) @@ -1124,17 +1124,17 @@ Name | Type | Description | Notes **owner** | **str**| | **name** | **str**| | **run_id** | **str**| | - **path** | [**list[str]**](str.md)| The path to an file within a project folder | [optional] + **path** | [**List[str]**](str.md)| The path to an file within a project folder | [optional] **page** | **int**| Page number starting from 1 | [optional] [default to 1] **per_page** | **int**| Number of items per page | [optional] [default to 25] ### Return type -**object** +[**FileMetaList**](FileMetaList.md) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -1150,7 +1150,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_runs** -> RunList list_runs(owner, name, job_id=job_id, status=status, page=page, per_page=per_page) +> RunList list_runs(ownernamejob_id=job_idstatus=statuspage=pageper_page=per_page) List runs @@ -1158,7 +1158,7 @@ Retrieve a list of runs. ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -1166,16 +1166,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1191,26 +1181,36 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.RunsApi(api_client) owner = 'owner_example' # str | name = 'name_example' # str | -job_id = ['job_id_example'] # list[str] | (optional) +job_id = ['job_id_example'] # List[str] | (optional) status = pollination_sdk.RunStatusEnum() # RunStatusEnum | (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List runs - api_response = api_instance.list_runs(owner, name, job_id=job_id, status=status, page=page, per_page=per_page) + api_response = api_instance.list_runs(ownernamejob_id=job_idstatus=statuspage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling RunsApi->list_runs: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -1218,16 +1218,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1243,20 +1233,30 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.RunsApi(api_client) owner = 'owner_example' # str | name = 'name_example' # str | -job_id = ['job_id_example'] # list[str] | (optional) +job_id = ['job_id_example'] # List[str] | (optional) status = pollination_sdk.RunStatusEnum() # RunStatusEnum | (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List runs - api_response = api_instance.list_runs(owner, name, job_id=job_id, status=status, page=page, per_page=per_page) + api_response = api_instance.list_runs(ownernamejob_id=job_idstatus=statuspage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling RunsApi->list_runs: %s\n" % e) @@ -1268,7 +1268,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **str**| | **name** | **str**| | - **job_id** | [**list[str]**](str.md)| | [optional] + **job_id** | [**List[str]**](str.md)| | [optional] **status** | [**RunStatusEnum**](.md)| | [optional] **page** | **int**| Page number starting from 1 | [optional] [default to 1] **per_page** | **int**| Number of items per page | [optional] [default to 25] @@ -1279,7 +1279,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -1295,7 +1295,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **query_results** -> RunResultList query_results(owner, name, job_id=job_id, status=status, page=page, per_page=per_page) +> RunResultList query_results(ownernamejob_id=job_idstatus=statuspage=pageper_page=per_page) Query run results @@ -1303,7 +1303,7 @@ Retrieve a list of run results. ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -1311,16 +1311,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1336,26 +1326,36 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.RunsApi(api_client) owner = 'owner_example' # str | name = 'name_example' # str | -job_id = ['job_id_example'] # list[str] | (optional) +job_id = ['job_id_example'] # List[str] | (optional) status = pollination_sdk.RunStatusEnum() # RunStatusEnum | (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) try: # Query run results - api_response = api_instance.query_results(owner, name, job_id=job_id, status=status, page=page, per_page=per_page) + api_response = api_instance.query_results(ownernamejob_id=job_idstatus=statuspage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling RunsApi->query_results: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -1363,16 +1363,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1388,20 +1378,30 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = pollination_sdk.RunsApi(api_client) owner = 'owner_example' # str | name = 'name_example' # str | -job_id = ['job_id_example'] # list[str] | (optional) +job_id = ['job_id_example'] # List[str] | (optional) status = pollination_sdk.RunStatusEnum() # RunStatusEnum | (optional) page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) try: # Query run results - api_response = api_instance.query_results(owner, name, job_id=job_id, status=status, page=page, per_page=per_page) + api_response = api_instance.query_results(ownernamejob_id=job_idstatus=statuspage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling RunsApi->query_results: %s\n" % e) @@ -1413,7 +1413,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **str**| | **name** | **str**| | - **job_id** | [**list[str]**](str.md)| | [optional] + **job_id** | [**List[str]**](str.md)| | [optional] **status** | [**RunStatusEnum**](.md)| | [optional] **page** | **int**| Page number starting from 1 | [optional] [default to 1] **per_page** | **int**| Number of items per page | [optional] [default to 25] @@ -1424,7 +1424,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -1440,7 +1440,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **retry_run** -> Run retry_run(owner, name, run_id, retry_config) +> Run retry_run(ownernamerun_idretry_config) Retry a run @@ -1448,7 +1448,7 @@ Retry a run. ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -1456,16 +1456,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1481,6 +1471,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1492,13 +1492,13 @@ retry_config = pollination_sdk.RetryConfig() # RetryConfig | try: # Retry a run - api_response = api_instance.retry_run(owner, name, run_id, retry_config) + api_response = api_instance.retry_run(ownernamerun_idretry_config) pprint(api_response) except ApiException as e: print("Exception when calling RunsApi->retry_run: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -1506,16 +1506,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1531,6 +1521,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1542,7 +1542,7 @@ retry_config = pollination_sdk.RetryConfig() # RetryConfig | try: # Retry a run - api_response = api_instance.retry_run(owner, name, run_id, retry_config) + api_response = api_instance.retry_run(ownernamerun_idretry_config) pprint(api_response) except ApiException as e: print("Exception when calling RunsApi->retry_run: %s\n" % e) @@ -1563,7 +1563,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers diff --git a/docs/S3.md b/docs/S3.md index 50843e7f3..7d2d7bf97 100644 --- a/docs/S3.md +++ b/docs/S3.md @@ -4,7 +4,7 @@ S3 Source An S3 bucket artifact Source. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **bucket** | **str** | The name of the S3 bucket on the host server. | **credentials_path** | **str** | Path to the file holding the AccessKey and SecretAccessKey to authenticate to the bucket. Assumes public bucket access if none are specified. | [optional] **endpoint** | **str** | The HTTP endpoint to reach the S3 bucket. | diff --git a/docs/S3UploadRequest.md b/docs/S3UploadRequest.md index 1ee8df5c2..3d314e76d 100644 --- a/docs/S3UploadRequest.md +++ b/docs/S3UploadRequest.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**fields** | **dict(str, str)** | | +**fields** | **Dict[str, str]** | | **url** | **str** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Source.md b/docs/Source.md new file mode 100644 index 000000000..e50dd0d6d --- /dev/null +++ b/docs/Source.md @@ -0,0 +1,18 @@ +# Source + +The path to source the file from. +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**type** | **str** | | [optional] [readonly] [default to 'ProjectFolder'] +**url** | **str** | For a HTTP endpoint this can be http://climate.onebuilding.org. | +**bucket** | **str** | The name of the S3 bucket on the host server. | +**credentials_path** | **str** | Path to the file holding the AccessKey and SecretAccessKey to authenticate to the bucket. Assumes public bucket access if none are specified. | [optional] +**endpoint** | **str** | The HTTP endpoint to reach the S3 bucket. | +**key** | **str** | The path inside the bucket to source artifacts from. | +**path** | **str** | The path to a folder where files and folders can be sourced. For a local filesystem this can be \"C:\\Users\\me\\jobs\\test\". | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StepArrayInput.md b/docs/StepArrayInput.md index 360a80385..2e3084d58 100644 --- a/docs/StepArrayInput.md +++ b/docs/StepArrayInput.md @@ -4,16 +4,16 @@ A JSON array input. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] -**default** | **list[object]** | Default value to use for an input if a value was not supplied. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**default** | **List[object]** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] **items_type** | [**ItemType**](ItemType.md) | Type of items in an array. All the items in an array must be from the same type. | [optional] **name** | **str** | Input name. | **required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] **spec** | **object** | An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. | [optional] **type** | **str** | | [optional] [readonly] [default to 'StepArrayInput'] -**value** | **list[object]** | | +**value** | **List[object]** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/StepArrayOutput.md b/docs/StepArrayOutput.md index d0c3633eb..e682fe224 100644 --- a/docs/StepArrayOutput.md +++ b/docs/StepArrayOutput.md @@ -4,14 +4,14 @@ A JSON array output. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] **items_type** | [**ItemType**](ItemType.md) | Type of items in this array. All the items in an array must be from the same type. | [optional] **name** | **str** | Output name. | **path** | **str** | Path to the output file relative to where the function command is executed. | **required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] **type** | **str** | | [optional] [readonly] [default to 'StepArrayOutput'] -**value** | **list[object]** | | +**value** | **List[object]** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/StepBooleanInput.md b/docs/StepBooleanInput.md index 580099b5f..bf53de9de 100644 --- a/docs/StepBooleanInput.md +++ b/docs/StepBooleanInput.md @@ -4,8 +4,8 @@ The boolean type matches only two special values: True and False. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **bool** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] **name** | **str** | Input name. | diff --git a/docs/StepBooleanOutput.md b/docs/StepBooleanOutput.md index cc244f032..3bc6b625c 100644 --- a/docs/StepBooleanOutput.md +++ b/docs/StepBooleanOutput.md @@ -4,7 +4,7 @@ The boolean type matches only two special values: True and False. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] **name** | **str** | Output name. | **path** | **str** | Path to the output file relative to where the function command is executed. | diff --git a/docs/StepFileInput.md b/docs/StepFileInput.md index ffbc166ec..09c355043 100644 --- a/docs/StepFileInput.md +++ b/docs/StepFileInput.md @@ -4,15 +4,15 @@ A file input. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] -**default** | [**AnyOfHTTPS3ProjectFolder**](AnyOfHTTPS3ProjectFolder.md) | The default source for file if the value is not provided. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**default** | [**Default**](Default.md) | | [optional] **description** | **str** | Optional description for input. | [optional] -**extensions** | **list[str]** | Optional list of extensions for file. The check for extension is case-insensitive. | [optional] +**extensions** | **List[str]** | Optional list of extensions for file. The check for extension is case-insensitive. | [optional] **name** | **str** | Input name. | **path** | **str** | Path to the target location that the input will be copied to. This path is relative to the working directory where the command is executed. | [optional] **required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] -**source** | [**AnyOfHTTPS3ProjectFolder**](AnyOfHTTPS3ProjectFolder.md) | The path to source the file from. | +**source** | [**Source**](Source.md) | | **spec** | **object** | An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. | [optional] **type** | **str** | | [optional] [readonly] [default to 'StepFileInput'] diff --git a/docs/StepFileOutput.md b/docs/StepFileOutput.md index 3746ece41..9af1df8ac 100644 --- a/docs/StepFileOutput.md +++ b/docs/StepFileOutput.md @@ -4,12 +4,12 @@ A file output. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] **name** | **str** | Output name. | **path** | **str** | Path to the output file relative to where the function command is executed. | **required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] -**source** | [**AnyOfHTTPS3ProjectFolder**](AnyOfHTTPS3ProjectFolder.md) | The path to source the file from. | +**source** | [**Source**](Source.md) | | **type** | **str** | | [optional] [readonly] [default to 'StepFileOutput'] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/StepFolderInput.md b/docs/StepFolderInput.md index 87482872b..066f44c47 100644 --- a/docs/StepFolderInput.md +++ b/docs/StepFolderInput.md @@ -4,14 +4,14 @@ A folder input. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] -**default** | [**AnyOfHTTPS3ProjectFolder**](AnyOfHTTPS3ProjectFolder.md) | The default source for file if the value is not provided. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**default** | [**Default**](Default.md) | | [optional] **description** | **str** | Optional description for input. | [optional] **name** | **str** | Input name. | **path** | **str** | Path to the target location that the input will be copied to. This path is relative to the working directory where the command is executed. | [optional] **required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] -**source** | [**AnyOfHTTPS3ProjectFolder**](AnyOfHTTPS3ProjectFolder.md) | The path to source the file from. | +**source** | [**Source**](Source.md) | | **spec** | **object** | An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. | [optional] **type** | **str** | | [optional] [readonly] [default to 'StepFolderInput'] diff --git a/docs/StepFolderOutput.md b/docs/StepFolderOutput.md index b1f778a5d..8dc0785cc 100644 --- a/docs/StepFolderOutput.md +++ b/docs/StepFolderOutput.md @@ -4,12 +4,12 @@ A folder output. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] **name** | **str** | Output name. | **path** | **str** | Path to the output folder relative to where the function command is executed. | **required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] -**source** | [**AnyOfHTTPS3ProjectFolder**](AnyOfHTTPS3ProjectFolder.md) | The path to source the file from. | +**source** | [**Source**](Source.md) | | **type** | **str** | | [optional] [readonly] [default to 'StepFolderOutput'] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/StepIntegerInput.md b/docs/StepIntegerInput.md index b012f129c..f9787206c 100644 --- a/docs/StepIntegerInput.md +++ b/docs/StepIntegerInput.md @@ -4,8 +4,8 @@ An integer input. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **int** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] **name** | **str** | Input name. | diff --git a/docs/StepIntegerOutput.md b/docs/StepIntegerOutput.md index 4ea24878b..582504df9 100644 --- a/docs/StepIntegerOutput.md +++ b/docs/StepIntegerOutput.md @@ -4,7 +4,7 @@ An integer output. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] **name** | **str** | Output name. | **path** | **str** | Path to the output file relative to where the function command is executed. | diff --git a/docs/StepJSONObjectInput.md b/docs/StepJSONObjectInput.md index 6c40168a9..94f239cfc 100644 --- a/docs/StepJSONObjectInput.md +++ b/docs/StepJSONObjectInput.md @@ -4,8 +4,8 @@ A JSON object input. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **object** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] **name** | **str** | Input name. | diff --git a/docs/StepJSONObjectOutput.md b/docs/StepJSONObjectOutput.md index 12884d99e..d40c83591 100644 --- a/docs/StepJSONObjectOutput.md +++ b/docs/StepJSONObjectOutput.md @@ -4,7 +4,7 @@ A JSON object output. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] **name** | **str** | Output name. | **path** | **str** | Path to the output file relative to where the function command is executed. | diff --git a/docs/StepList.md b/docs/StepList.md index 2f9b9f860..e6bb730e7 100644 --- a/docs/StepList.md +++ b/docs/StepList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[StepStatus]**](StepStatus.md) | | +**resources** | [**List[StepStatus]**](StepStatus.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/StepNumberInput.md b/docs/StepNumberInput.md index 7e67dad00..563ffb9bb 100644 --- a/docs/StepNumberInput.md +++ b/docs/StepNumberInput.md @@ -4,8 +4,8 @@ A number input. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **float** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] **name** | **str** | Input name. | diff --git a/docs/StepNumberOutput.md b/docs/StepNumberOutput.md index f61210555..6678eab76 100644 --- a/docs/StepNumberOutput.md +++ b/docs/StepNumberOutput.md @@ -4,7 +4,7 @@ A number output. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] **name** | **str** | Output name. | **path** | **str** | Path to the output file relative to where the function command is executed. | diff --git a/docs/StepPathInput.md b/docs/StepPathInput.md index e94b7de03..32cd1ee46 100644 --- a/docs/StepPathInput.md +++ b/docs/StepPathInput.md @@ -4,15 +4,15 @@ A file or a folder input. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] -**default** | [**AnyOfHTTPS3ProjectFolder**](AnyOfHTTPS3ProjectFolder.md) | The default source for file if the value is not provided. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**default** | [**Default**](Default.md) | | [optional] **description** | **str** | Optional description for input. | [optional] -**extensions** | **list[str]** | Optional list of extensions for file. The check for extension is case-insensitive. | [optional] +**extensions** | **List[str]** | Optional list of extensions for file. The check for extension is case-insensitive. | [optional] **name** | **str** | Input name. | **path** | **str** | Path to the target location that the input will be copied to. This path is relative to the working directory where the command is executed. | [optional] **required** | **bool** | A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. | [optional] [default to False] -**source** | [**AnyOfHTTPS3ProjectFolder**](AnyOfHTTPS3ProjectFolder.md) | The path to source the file from. | +**source** | [**Source**](Source.md) | | **spec** | **object** | An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. | [optional] **type** | **str** | | [optional] [readonly] [default to 'StepPathInput'] diff --git a/docs/StepPathOutput.md b/docs/StepPathOutput.md index fa4f8f027..a5938b702 100644 --- a/docs/StepPathOutput.md +++ b/docs/StepPathOutput.md @@ -4,12 +4,12 @@ A file or a folder output. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] **name** | **str** | Output name. | **path** | **str** | Path to the output file or folder relative to where the function command is executed. | **required** | **bool** | A boolean to indicate if an artifact output is required. A False value makes the artifact optional. | [optional] [default to True] -**source** | [**AnyOfHTTPS3ProjectFolder**](AnyOfHTTPS3ProjectFolder.md) | The path to source the file from. | +**source** | [**Source**](Source.md) | | **type** | **str** | | [optional] [readonly] [default to 'StepPathOutput'] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/StepStatus.md b/docs/StepStatus.md index d8e240315..548f65fe4 100644 --- a/docs/StepStatus.md +++ b/docs/StepStatus.md @@ -4,17 +4,17 @@ The Status of a Job Step ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **boundary_id** | **str** | This indicates the step ID of the associated template root step in which this step belongs to. A DAG step will have the id of the parent DAG for example. | [optional] -**children_ids** | **list[str]** | A list of child step IDs | +**children_ids** | **List[str]** | A list of child step IDs | **command** | **str** | The command used to run this step. Only applies to Function steps. | [optional] **finished_at** | **datetime** | The time at which the task was completed | [optional] **id** | **str** | The step unique ID | -**inputs** | [**list[AnyOfStepStringInputStepIntegerInputStepNumberInputStepBooleanInputStepFolderInputStepFileInputStepPathInputStepArrayInputStepJSONObjectInput]**](AnyOfStepStringInputStepIntegerInputStepNumberInputStepBooleanInputStepFolderInputStepFileInputStepPathInputStepArrayInputStepJSONObjectInput.md) | The inputs used by this step. | +**inputs** | [**List[RunStatusInputsInner]**](RunStatusInputsInner.md) | The inputs used by this step. | **message** | **str** | Any message produced by the task. Usually error/debugging hints. | [optional] **name** | **str** | A human readable name for the step. Usually defined by the DAG task name but can be extended if the step is part of a loop for example. This name is unique within the boundary of the DAG/Job that generated it. | -**outbound_steps** | **list[str]** | A list of the last step to ran in the context of this step. In the case of a DAG or a job this will be the last step that has been executed. It will remain empty for functions. | -**outputs** | [**list[AnyOfStepStringOutputStepIntegerOutputStepNumberOutputStepBooleanOutputStepFolderOutputStepFileOutputStepPathOutputStepArrayOutputStepJSONObjectOutput]**](AnyOfStepStringOutputStepIntegerOutputStepNumberOutputStepBooleanOutputStepFolderOutputStepFileOutputStepPathOutputStepArrayOutputStepJSONObjectOutput.md) | The outputs produced by this step. | +**outbound_steps** | **List[str]** | A list of the last step to ran in the context of this step. In the case of a DAG or a job this will be the last step that has been executed. It will remain empty for functions. | +**outputs** | [**List[RunStatusOutputsInner]**](RunStatusOutputsInner.md) | The outputs produced by this step. | **source** | **str** | Source url for the status object. It can be a recipe or a function. | [optional] **started_at** | **datetime** | The time at which the task was started | **status** | [**StepStatusEnum**](StepStatusEnum.md) | The status of this step. | [optional] diff --git a/docs/StepStringInput.md b/docs/StepStringInput.md index d418fca52..3127e24cd 100644 --- a/docs/StepStringInput.md +++ b/docs/StepStringInput.md @@ -4,8 +4,8 @@ A String input. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alias** | [**list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]**](AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias.md) | A list of aliases for this input in different platforms. | [optional] -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**alias** | [**List[DAGArrayInputAliasInner]**](DAGArrayInputAliasInner.md) | A list of aliases for this input in different platforms. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **default** | **str** | Default value to use for an input if a value was not supplied. | [optional] **description** | **str** | Optional description for input. | [optional] **name** | **str** | Input name. | diff --git a/docs/StepStringOutput.md b/docs/StepStringOutput.md index 839471696..a0fc99f85 100644 --- a/docs/StepStringOutput.md +++ b/docs/StepStringOutput.md @@ -4,7 +4,7 @@ A String output. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] **name** | **str** | Output name. | **path** | **str** | Path to the output file relative to where the function command is executed. | diff --git a/docs/Subject.md b/docs/Subject.md new file mode 100644 index 000000000..08c4b300a --- /dev/null +++ b/docs/Subject.md @@ -0,0 +1,17 @@ +# Subject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_type** | **str** | | +**description** | **str** | | [optional] +**display_name** | **str** | | [optional] +**id** | **str** | The team ID | +**name** | **str** | | +**picture_url** | **str** | https://robohash.org/ladybugbot | [optional] +**member_count** | **int** | The number of members that are part of this team | [optional] [default to 0] +**slug** | **str** | The public slug of the team | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SubscriptionPayment.md b/docs/SubscriptionPayment.md index 03bbd54c5..a5920e371 100644 --- a/docs/SubscriptionPayment.md +++ b/docs/SubscriptionPayment.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **amount** | **float** | | **currency** | **str** | | -**date** | **date** | | +**var_date** | **date** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SubscriptionPlan.md b/docs/SubscriptionPlan.md index ec50a83c7..6fb3c29f6 100644 --- a/docs/SubscriptionPlan.md +++ b/docs/SubscriptionPlan.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**account_types** | [**list[AccountType]**](AccountType.md) | The types of account to which the plan can be applied | -**billing_options** | [**list[BillingOption]**](BillingOption.md) | The billing options for this plan | [optional] [default to []] +**account_types** | [**List[AccountType]**](AccountType.md) | The types of account to which the plan can be applied | +**billing_options** | [**List[BillingOption]**](BillingOption.md) | The billing options for this plan | [optional] [default to []] **name** | **str** | A name of the config plan used to create this subscription | -**quotas** | [**list[QuotaPlan]**](QuotaPlan.md) | A list of quota plans for a given subscription | [optional] [default to []] +**quotas** | [**List[QuotaPlan]**](QuotaPlan.md) | A list of quota plans for a given subscription | [optional] [default to []] **slug** | **str** | A slug of the config plan used to create this subscription | **type** | [**PlanType**](PlanType.md) | The type of plan | [readonly] diff --git a/docs/SubscriptionPlansApi.md b/docs/SubscriptionPlansApi.md index 736cf0254..636d8eb53 100644 --- a/docs/SubscriptionPlansApi.md +++ b/docs/SubscriptionPlansApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **list_subscription_plans** -> list[SubscriptionPlan] list_subscription_plans(plan_type=plan_type) +> List[SubscriptionPlan] list_subscription_plans(plan_type=plan_type) List Subscription Plans @@ -43,7 +43,7 @@ Name | Type | Description | Notes ### Return type -[**list[SubscriptionPlan]**](SubscriptionPlan.md) +[**List[SubscriptionPlan]**](SubscriptionPlan.md) ### Authorization diff --git a/docs/SubscriptionUpdateDryRun.md b/docs/SubscriptionUpdateDryRun.md index bc03cdc41..f468bd924 100644 --- a/docs/SubscriptionUpdateDryRun.md +++ b/docs/SubscriptionUpdateDryRun.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**exceeded_quotas** | [**list[Quota]**](Quota.md) | A list of quotas exceeded by a proposed subscription update | [optional] [default to []] +**exceeded_quotas** | [**List[Quota]**](Quota.md) | A list of quotas exceeded by a proposed subscription update | [optional] [default to []] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SubscriptionsApi.md b/docs/SubscriptionsApi.md index ddacccb53..88510c4aa 100644 --- a/docs/SubscriptionsApi.md +++ b/docs/SubscriptionsApi.md @@ -21,7 +21,7 @@ Cancel a subscription ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -29,16 +29,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -54,6 +44,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -68,7 +68,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: print("Exception when calling SubscriptionsApi->cancel_subscription: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -76,16 +76,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -101,6 +91,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -119,7 +119,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **subscription_id** | [**str**](.md)| | + **subscription_id** | **str**| | ### Return type @@ -127,7 +127,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -149,7 +149,7 @@ Subscribe account to subscritpion plan ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -157,16 +157,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -182,6 +172,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -196,7 +196,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: print("Exception when calling SubscriptionsApi->create_subscription: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -204,16 +204,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -229,6 +219,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -255,7 +255,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -277,7 +277,7 @@ Retrieve a subscription by ID ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -285,16 +285,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -310,6 +300,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -324,7 +324,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: print("Exception when calling SubscriptionsApi->get_subscription: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -332,16 +332,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -357,6 +347,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -375,7 +375,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **subscription_id** | [**str**](.md)| | + **subscription_id** | **str**| | ### Return type @@ -383,7 +383,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -399,13 +399,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_pollination_subscriptions** -> list[Subscription] list_pollination_subscriptions(account=account) +> List[Subscription] list_pollination_subscriptions(account=account) List Subscriptions ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -413,16 +413,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -438,6 +428,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -452,7 +452,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: print("Exception when calling SubscriptionsApi->list_pollination_subscriptions: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -460,16 +460,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -485,6 +475,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -507,11 +507,11 @@ Name | Type | Description | Notes ### Return type -[**list[Subscription]**](Subscription.md) +[**List[Subscription]**](Subscription.md) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -527,13 +527,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_subscription_payments** -> list[Payment] list_subscription_payments(subscription_id) +> List[Payment] list_subscription_payments(subscription_id) List Payment for a Subscription ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -541,16 +541,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -566,6 +556,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -580,7 +580,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: print("Exception when calling SubscriptionsApi->list_subscription_payments: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -588,16 +588,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -613,6 +603,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -631,15 +631,15 @@ with pollination_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **subscription_id** | [**str**](.md)| | + **subscription_id** | **str**| | ### Return type -[**list[Payment]**](Payment.md) +[**List[Payment]**](Payment.md) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -655,13 +655,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_subscription_quotas** -> list[Quota] list_subscription_quotas(subscription_id) +> List[Quota] list_subscription_quotas(subscription_id) List the quotas for a given subscription ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -669,16 +669,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -694,6 +684,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -708,7 +708,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: print("Exception when calling SubscriptionsApi->list_subscription_quotas: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -716,16 +716,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -741,6 +731,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -759,15 +759,15 @@ with pollination_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **subscription_id** | [**str**](.md)| | + **subscription_id** | **str**| | ### Return type -[**list[Quota]**](Quota.md) +[**List[Quota]**](Quota.md) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -783,13 +783,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_subscription** -> Subscription update_subscription(subscription_id, subscription_update) +> Subscription update_subscription(subscription_idsubscription_update) Update a subscription ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -797,16 +797,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -822,6 +812,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -831,13 +831,13 @@ subscription_update = pollination_sdk.SubscriptionUpdate() # SubscriptionUpdate try: # Update a subscription - api_response = api_instance.update_subscription(subscription_id, subscription_update) + api_response = api_instance.update_subscription(subscription_idsubscription_update) pprint(api_response) except ApiException as e: print("Exception when calling SubscriptionsApi->update_subscription: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -845,16 +845,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -870,6 +860,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -879,7 +879,7 @@ subscription_update = pollination_sdk.SubscriptionUpdate() # SubscriptionUpdate try: # Update a subscription - api_response = api_instance.update_subscription(subscription_id, subscription_update) + api_response = api_instance.update_subscription(subscription_idsubscription_update) pprint(api_response) except ApiException as e: print("Exception when calling SubscriptionsApi->update_subscription: %s\n" % e) @@ -889,7 +889,7 @@ subscription_update = pollination_sdk.SubscriptionUpdate() # SubscriptionUpdate Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **subscription_id** | [**str**](.md)| | + **subscription_id** | **str**| | **subscription_update** | [**SubscriptionUpdate**](SubscriptionUpdate.md)| | ### Return type @@ -898,7 +898,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -914,13 +914,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_subscription_preivew** -> SubscriptionUpdateDryRun update_subscription_preivew(subscription_id, subscription_update) +> SubscriptionUpdateDryRun update_subscription_preivew(subscription_idsubscription_update) Preview the effect of a subscription update ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -928,16 +928,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -953,6 +943,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -962,13 +962,13 @@ subscription_update = pollination_sdk.SubscriptionUpdate() # SubscriptionUpdate try: # Preview the effect of a subscription update - api_response = api_instance.update_subscription_preivew(subscription_id, subscription_update) + api_response = api_instance.update_subscription_preivew(subscription_idsubscription_update) pprint(api_response) except ApiException as e: print("Exception when calling SubscriptionsApi->update_subscription_preivew: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -976,16 +976,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -1001,6 +991,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -1010,7 +1010,7 @@ subscription_update = pollination_sdk.SubscriptionUpdate() # SubscriptionUpdate try: # Preview the effect of a subscription update - api_response = api_instance.update_subscription_preivew(subscription_id, subscription_update) + api_response = api_instance.update_subscription_preivew(subscription_idsubscription_update) pprint(api_response) except ApiException as e: print("Exception when calling SubscriptionsApi->update_subscription_preivew: %s\n" % e) @@ -1020,7 +1020,7 @@ subscription_update = pollination_sdk.SubscriptionUpdate() # SubscriptionUpdate Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **subscription_id** | [**str**](.md)| | + **subscription_id** | **str**| | **subscription_update** | [**SubscriptionUpdate**](SubscriptionUpdate.md)| | ### Return type @@ -1029,7 +1029,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers diff --git a/docs/TaskArgument.md b/docs/TaskArgument.md index 2de895175..2dda5c5da 100644 --- a/docs/TaskArgument.md +++ b/docs/TaskArgument.md @@ -4,8 +4,8 @@ Task argument for receiving inputs that are not files or folders. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] -**_from** | [**AnyOfInputReferenceTaskReferenceItemReferenceValueReference**](AnyOfInputReferenceTaskReferenceItemReferenceValueReference.md) | A reference to a DAG input, a DAG output or another task output. You can also use the ValueReference type to hard-code an input value. | +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**var_from** | [**From4**](From4.md) | | **name** | **str** | Argument name. The name must match one of the input names from Task's template which can be a function or DAG. | **type** | **str** | | [optional] [readonly] [default to 'TaskArgument'] diff --git a/docs/TaskFileReference.md b/docs/TaskFileReference.md index 9319ccb13..596d1e4e3 100644 --- a/docs/TaskFileReference.md +++ b/docs/TaskFileReference.md @@ -4,7 +4,7 @@ A reference to a file that is generated in a task. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **name** | **str** | The name of the task to pull output data from. | **type** | **str** | | [optional] [readonly] [default to 'TaskFileReference'] **variable** | **str** | The name of the variable. | diff --git a/docs/TaskFolderReference.md b/docs/TaskFolderReference.md index 79ea69d14..27f194f68 100644 --- a/docs/TaskFolderReference.md +++ b/docs/TaskFolderReference.md @@ -4,7 +4,7 @@ A reference to a folder that is generated in a task. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **name** | **str** | The name of the task to pull output data from. | **type** | **str** | | [optional] [readonly] [default to 'TaskFolderReference'] **variable** | **str** | The name of the variable. | diff --git a/docs/TaskPathArgument.md b/docs/TaskPathArgument.md index 319da5c9a..49da38c54 100644 --- a/docs/TaskPathArgument.md +++ b/docs/TaskPathArgument.md @@ -4,8 +4,8 @@ BaseModel with functionality to return the object as a yaml string. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] -**_from** | [**AnyOfInputFileReferenceInputFolderReferenceInputPathReferenceTaskFileReferenceTaskFolderReferenceTaskPathReferenceValueFileReferenceValueFolderReference**](AnyOfInputFileReferenceInputFolderReferenceInputPathReferenceTaskFileReferenceTaskFolderReferenceTaskPathReferenceValueFileReferenceValueFolderReference.md) | A reference to a DAG input, a DAG output or another task output. You can also use the ValueReference type to hard-code an input value. | +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**var_from** | [**From5**](From5.md) | | **name** | **str** | Argument name. The name must match one of the input names from Task's template which can be a function or DAG. | **sub_path** | **str** | A sub_path inside the path that is provided in the ``from`` field. Use sub_path to only access part of the Path that is needed instead of copying all the files and folders inside the path. | [optional] **type** | **str** | | [optional] [readonly] [default to 'TaskPathArgument'] diff --git a/docs/TaskPathReference.md b/docs/TaskPathReference.md index 47cd45fcc..c01ab0a75 100644 --- a/docs/TaskPathReference.md +++ b/docs/TaskPathReference.md @@ -4,7 +4,7 @@ A reference to a file or folder that is generated in a task. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **name** | **str** | The name of the task to pull output data from. | **type** | **str** | | [optional] [readonly] [default to 'TaskPathReference'] **variable** | **str** | The name of the variable. | diff --git a/docs/TaskPathReturn.md b/docs/TaskPathReturn.md index 200a9e361..1a1333f32 100644 --- a/docs/TaskPathReturn.md +++ b/docs/TaskPathReturn.md @@ -4,7 +4,7 @@ A Task output that returns a file or a folder output from a function or a DAG. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] **name** | **str** | Output name. | **path** | **str** | Path to the output artifact relative to where the function command is executed. | diff --git a/docs/TaskReference.md b/docs/TaskReference.md index 1f26d890b..358d3cf5f 100644 --- a/docs/TaskReference.md +++ b/docs/TaskReference.md @@ -4,7 +4,7 @@ A Task reference for parameters other than files or folders. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **name** | **str** | The name of the task to pull output data from. | **type** | **str** | | [optional] [readonly] [default to 'TaskReference'] **variable** | **str** | The name of the variable. | diff --git a/docs/TaskReturn.md b/docs/TaskReturn.md index 5858b6856..854c205c1 100644 --- a/docs/TaskReturn.md +++ b/docs/TaskReturn.md @@ -4,7 +4,7 @@ A Task return output that exposes the values from a function or a DAG. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **description** | **str** | Optional description for output. | [optional] **name** | **str** | Output name. | **type** | **str** | | [optional] [readonly] [default to 'TaskReturn'] diff --git a/docs/TeamList.md b/docs/TeamList.md index c3ff6d14a..84266abbc 100644 --- a/docs/TeamList.md +++ b/docs/TeamList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[Team]**](Team.md) | | +**resources** | [**List[Team]**](Team.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TeamMemberList.md b/docs/TeamMemberList.md index bed228651..c7157a8fd 100644 --- a/docs/TeamMemberList.md +++ b/docs/TeamMemberList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[TeamMember]**](TeamMember.md) | | +**resources** | [**List[TeamMember]**](TeamMember.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TeamsApi.md b/docs/TeamsApi.md index 2c94e0855..eb50b0120 100644 --- a/docs/TeamsApi.md +++ b/docs/TeamsApi.md @@ -15,7 +15,7 @@ Method | HTTP request | Description # **create_team** -> CreatedContent create_team(org_name, team_create) +> CreatedContent create_team(org_nameteam_create) Create a Team @@ -23,7 +23,7 @@ Create a new team (must be parent org member) ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -31,16 +31,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -56,6 +46,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -65,13 +65,13 @@ team_create = pollination_sdk.TeamCreate() # TeamCreate | try: # Create a Team - api_response = api_instance.create_team(org_name, team_create) + api_response = api_instance.create_team(org_nameteam_create) pprint(api_response) except ApiException as e: print("Exception when calling TeamsApi->create_team: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -79,16 +79,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -104,6 +94,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -113,7 +113,7 @@ team_create = pollination_sdk.TeamCreate() # TeamCreate | try: # Create a Team - api_response = api_instance.create_team(org_name, team_create) + api_response = api_instance.create_team(org_nameteam_create) pprint(api_response) except ApiException as e: print("Exception when calling TeamsApi->create_team: %s\n" % e) @@ -132,7 +132,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -152,7 +152,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_org_team_member** -> delete_org_team_member(org_name, team_slug, username) +> delete_org_team_member(org_nameteam_slugusername) Remove a team member @@ -160,7 +160,7 @@ Remove a member from the org (must have org `owner` role) ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -168,16 +168,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -193,6 +183,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -203,12 +203,12 @@ username = 'username_example' # str | try: # Remove a team member - api_instance.delete_org_team_member(org_name, team_slug, username) + api_instance.delete_org_team_member(org_nameteam_slugusername) except ApiException as e: print("Exception when calling TeamsApi->delete_org_team_member: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -216,16 +216,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -241,6 +231,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -251,7 +251,7 @@ username = 'username_example' # str | try: # Remove a team member - api_instance.delete_org_team_member(org_name, team_slug, username) + api_instance.delete_org_team_member(org_nameteam_slugusername) except ApiException as e: print("Exception when calling TeamsApi->delete_org_team_member: %s\n" % e) ``` @@ -270,7 +270,7 @@ void (empty response body) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -289,7 +289,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_team** -> delete_team(org_name, team_slug) +> delete_team(org_nameteam_slug) Delete a Team @@ -297,7 +297,7 @@ Delete a team (must have team or org `owner` role) ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -305,16 +305,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -330,6 +320,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -339,12 +339,12 @@ team_slug = 'team_slug_example' # str | try: # Delete a Team - api_instance.delete_team(org_name, team_slug) + api_instance.delete_team(org_nameteam_slug) except ApiException as e: print("Exception when calling TeamsApi->delete_team: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -352,16 +352,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -377,6 +367,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -386,7 +386,7 @@ team_slug = 'team_slug_example' # str | try: # Delete a Team - api_instance.delete_team(org_name, team_slug) + api_instance.delete_team(org_nameteam_slug) except ApiException as e: print("Exception when calling TeamsApi->delete_team: %s\n" % e) ``` @@ -404,7 +404,7 @@ void (empty response body) ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -423,7 +423,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_org_team_members** -> TeamMemberList get_org_team_members(org_name, team_slug) +> TeamMemberList get_org_team_members(org_nameteam_slug) List team members @@ -431,7 +431,7 @@ Retrieve a tean's members ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -439,16 +439,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -464,6 +454,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -473,13 +473,13 @@ team_slug = 'team_slug_example' # str | try: # List team members - api_response = api_instance.get_org_team_members(org_name, team_slug) + api_response = api_instance.get_org_team_members(org_nameteam_slug) pprint(api_response) except ApiException as e: print("Exception when calling TeamsApi->get_org_team_members: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -487,16 +487,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -512,6 +502,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -521,7 +521,7 @@ team_slug = 'team_slug_example' # str | try: # List team members - api_response = api_instance.get_org_team_members(org_name, team_slug) + api_response = api_instance.get_org_team_members(org_nameteam_slug) pprint(api_response) except ApiException as e: print("Exception when calling TeamsApi->get_org_team_members: %s\n" % e) @@ -540,7 +540,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -556,7 +556,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_team** -> Team get_team(org_name, team_slug) +> Team get_team(org_nameteam_slug) Get a Team @@ -580,7 +580,7 @@ team_slug = 'team_slug_example' # str | try: # Get a Team - api_response = api_instance.get_team(org_name, team_slug) + api_response = api_instance.get_team(org_nameteam_slug) pprint(api_response) except ApiException as e: print("Exception when calling TeamsApi->get_team: %s\n" % e) @@ -619,7 +619,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_org_teams** -> TeamList list_org_teams(org_name, search=search, name=name, member=member, page=page, per_page=per_page) +> TeamList list_org_teams(org_namesearch=searchname=namemember=memberpage=pageper_page=per_page) List Teams @@ -639,15 +639,15 @@ with pollination_sdk.ApiClient() as api_client: # Create an instance of the API class api_instance = pollination_sdk.TeamsApi(api_client) org_name = 'org_name_example' # str | -search = [] # list[str] | You know, for search (optional) (default to []) -name = [] # list[str] | The account name (optional) (default to []) -member = [] # list[str] | The ID of a user (optional) (default to []) +search = [] # List[str] | You know, for search (optional) (default to []) +name = [] # List[str] | The account name (optional) (default to []) +member = [] # List[str] | The ID of a user (optional) (default to []) page = 1 # int | Page number starting from 1 (optional) (default to 1) per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List Teams - api_response = api_instance.list_org_teams(org_name, search=search, name=name, member=member, page=page, per_page=per_page) + api_response = api_instance.list_org_teams(org_namesearch=searchname=namemember=memberpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling TeamsApi->list_org_teams: %s\n" % e) @@ -658,9 +658,9 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **org_name** | **str**| | - **search** | [**list[str]**](str.md)| You know, for search | [optional] [default to []] - **name** | [**list[str]**](str.md)| The account name | [optional] [default to []] - **member** | [**list[str]**](str.md)| The ID of a user | [optional] [default to []] + **search** | [**List[str]**](str.md)| You know, for search | [optional] [default to []] + **name** | [**List[str]**](str.md)| The account name | [optional] [default to []] + **member** | [**List[str]**](str.md)| The ID of a user | [optional] [default to []] **page** | **int**| Page number starting from 1 | [optional] [default to 1] **per_page** | **int**| Number of items per page | [optional] [default to 25] @@ -686,7 +686,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_team** -> UpdateAccepted update_team(org_name, team_slug, team_update) +> UpdateAccepted update_team(org_nameteam_slugteam_update) Update a Team @@ -694,7 +694,7 @@ Update a team (must have team or org `owner` role) ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -702,16 +702,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -727,6 +717,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -737,13 +737,13 @@ team_update = pollination_sdk.TeamUpdate() # TeamUpdate | try: # Update a Team - api_response = api_instance.update_team(org_name, team_slug, team_update) + api_response = api_instance.update_team(org_nameteam_slugteam_update) pprint(api_response) except ApiException as e: print("Exception when calling TeamsApi->update_team: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -751,16 +751,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -776,6 +766,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -786,7 +786,7 @@ team_update = pollination_sdk.TeamUpdate() # TeamUpdate | try: # Update a Team - api_response = api_instance.update_team(org_name, team_slug, team_update) + api_response = api_instance.update_team(org_nameteam_slugteam_update) pprint(api_response) except ApiException as e: print("Exception when calling TeamsApi->update_team: %s\n" % e) @@ -806,7 +806,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -826,7 +826,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **upsert_org_team_member** -> UpdateAccepted upsert_org_team_member(org_name, team_slug, username, role) +> UpdateAccepted upsert_org_team_member(org_nameteam_slugusernamerole) Add or update the role of an Team Member @@ -834,7 +834,7 @@ Upsert a member role to the team (must have org or team `owner` role) ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -842,16 +842,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -867,6 +857,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -878,13 +878,13 @@ role = pollination_sdk.TeamRoleEnum() # TeamRoleEnum | try: # Add or update the role of an Team Member - api_response = api_instance.upsert_org_team_member(org_name, team_slug, username, role) + api_response = api_instance.upsert_org_team_member(org_nameteam_slugusernamerole) pprint(api_response) except ApiException as e: print("Exception when calling TeamsApi->upsert_org_team_member: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -892,16 +892,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -917,6 +907,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -928,7 +928,7 @@ role = pollination_sdk.TeamRoleEnum() # TeamRoleEnum | try: # Add or update the role of an Team Member - api_response = api_instance.upsert_org_team_member(org_name, team_slug, username, role) + api_response = api_instance.upsert_org_team_member(org_nameteam_slugusernamerole) pprint(api_response) except ApiException as e: print("Exception when calling TeamsApi->upsert_org_team_member: %s\n" % e) @@ -949,7 +949,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers diff --git a/docs/TemplateFunction.md b/docs/TemplateFunction.md index 66e622ae2..a244e83f0 100644 --- a/docs/TemplateFunction.md +++ b/docs/TemplateFunction.md @@ -4,14 +4,14 @@ Function template. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **command** | **str** | Full shell command for this function. Each function accepts only one command. The command will be executed as a shell command in plugin. For running several commands after each other use && between the commands or pipe data from one to another using | | [optional] **config** | [**PluginConfig**](PluginConfig.md) | The plugin config to use for this function | **description** | **str** | Function description. A short human readable description for this function. | [optional] -**inputs** | [**list[AnyOfFunctionStringInputFunctionIntegerInputFunctionNumberInputFunctionBooleanInputFunctionFolderInputFunctionFileInputFunctionPathInputFunctionArrayInputFunctionJSONObjectInput]**](AnyOfFunctionStringInputFunctionIntegerInputFunctionNumberInputFunctionBooleanInputFunctionFolderInputFunctionFileInputFunctionPathInputFunctionArrayInputFunctionJSONObjectInput.md) | Input arguments for this function. | [optional] +**inputs** | [**List[FunctionInputsInner]**](FunctionInputsInner.md) | Input arguments for this function. | [optional] **language** | [**ScriptingLanguages**](ScriptingLanguages.md) | Programming language of the script. Currently only Python is supported. | [optional] **name** | **str** | Function name. Must be unique within a plugin. | -**outputs** | [**list[AnyOfFunctionStringOutputFunctionIntegerOutputFunctionNumberOutputFunctionBooleanOutputFunctionFolderOutputFunctionFileOutputFunctionPathOutputFunctionArrayOutputFunctionJSONObjectOutput]**](AnyOfFunctionStringOutputFunctionIntegerOutputFunctionNumberOutputFunctionBooleanOutputFunctionFolderOutputFunctionFileOutputFunctionPathOutputFunctionArrayOutputFunctionJSONObjectOutput.md) | List of output arguments. | [optional] +**outputs** | [**List[FunctionOutputsInner]**](FunctionOutputsInner.md) | List of output arguments. | [optional] **source** | **str** | Source contains the source code of the script to execute. | [optional] **type** | **str** | | [optional] [readonly] [default to 'TemplateFunction'] diff --git a/docs/Usage.md b/docs/Usage.md index f2aa565d0..0fbccf490 100644 --- a/docs/Usage.md +++ b/docs/Usage.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cpu** | **float** | cpu usage | [optional] [default to 0] -**daily_usage** | [**list[DailyUsage]**](DailyUsage.md) | daily breakdown of usage | [optional] [default to []] +**daily_usage** | [**List[DailyUsage]**](DailyUsage.md) | daily breakdown of usage | [optional] [default to []] **end** | **datetime** | The end date for this usage aggregation | **failed** | **int** | failed usage | [optional] [default to 0] **memory** | **float** | memory usage | [optional] [default to 0] diff --git a/docs/UserApi.md b/docs/UserApi.md index 3eb429540..7615aa756 100644 --- a/docs/UserApi.md +++ b/docs/UserApi.md @@ -96,7 +96,7 @@ Get authenticated user profile ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -104,16 +104,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -129,6 +119,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -142,7 +142,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: print("Exception when calling UserApi->get_me: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -150,16 +150,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -175,6 +165,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -197,7 +197,7 @@ This endpoint does not need any parameter. ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -212,13 +212,13 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_roles** -> list[str] get_roles() +> List[str] get_roles() Get the authenticated user roles ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -226,16 +226,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -251,6 +241,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -264,7 +264,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: print("Exception when calling UserApi->get_roles: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -272,16 +272,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -297,6 +287,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -315,11 +315,11 @@ This endpoint does not need any parameter. ### Return type -**list[str]** +**List[str]** ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers @@ -342,7 +342,7 @@ Update the authenticated user profile ### Example -* Api Key Authentication (APIKeyAuth): +* Bearer (JWT) Authentication (JWTAuth): ```python from __future__ import print_function import time @@ -350,16 +350,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -375,6 +365,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -389,7 +389,7 @@ with pollination_sdk.ApiClient(configuration) as api_client: print("Exception when calling UserApi->update_user_profile: %s\n" % e) ``` -* Bearer (JWT) Authentication (JWTAuth): +* Api Key Authentication (APIKeyAuth): ```python from __future__ import print_function import time @@ -397,16 +397,6 @@ import pollination_sdk from pollination_sdk.rest import ApiException from pprint import pprint -# Configure API key authorization: APIKeyAuth -configuration = pollination_sdk.Configuration( - host = "http://localhost", - api_key = { - 'APIKeyAuth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' - # Retrieve a temporary Acces Token (JWT) using your API token API_TOKEN = 'some-token-string' @@ -422,6 +412,16 @@ configuration = pollination_sdk.Configuration( access_token=auth_response.access_token ) +# Configure API key authorization: APIKeyAuth +configuration = pollination_sdk.Configuration( + host = "http://localhost", + api_key = { + 'APIKeyAuth': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer' + # Enter a context with an instance of the API client with pollination_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -448,7 +448,7 @@ Name | Type | Description | Notes ### Authorization -[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth) +[JWTAuth](../README.md#JWTAuth), [APIKeyAuth](../README.md#APIKeyAuth) ### HTTP request headers diff --git a/docs/UserPublicList.md b/docs/UserPublicList.md index 1dadf6634..f7b5e7a35 100644 --- a/docs/UserPublicList.md +++ b/docs/UserPublicList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **page** | **int** | The current page the pagination request is on | **page_count** | **int** | The total number of pages | **per_page** | **int** | The number of pages per pagination request | -**resources** | [**list[UserPublic]**](UserPublic.md) | | +**resources** | [**List[UserPublic]**](UserPublic.md) | | **total_count** | **int** | The total number of resources matching the list request | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/UsersApi.md b/docs/UsersApi.md index ec637c96f..e3d679609 100644 --- a/docs/UsersApi.md +++ b/docs/UsersApi.md @@ -124,7 +124,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_users** -> UserPublicList list_users(search=search, page=page, per_page=per_page) +> UserPublicList list_users(search=searchpage=pageper_page=per_page) List Users @@ -147,7 +147,7 @@ per_page = 25 # int | Number of items per page (optional) (default to 25) try: # List Users - api_response = api_instance.list_users(search=search, page=page, per_page=per_page) + api_response = api_instance.list_users(search=searchpage=pageper_page=per_page) pprint(api_response) except ApiException as e: print("Exception when calling UsersApi->list_users: %s\n" % e) diff --git a/docs/ValidationError.md b/docs/ValidationError.md index d8492e81f..84411aa53 100644 --- a/docs/ValidationError.md +++ b/docs/ValidationError.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**loc** | **list[str]** | | +**loc** | [**List[ValidationErrorLocInner]**](ValidationErrorLocInner.md) | | **msg** | **str** | | **type** | **str** | | [readonly] diff --git a/docs/BodyPostRecipeOwnerRecipesPost.md b/docs/ValidationErrorLocInner.md similarity index 81% rename from docs/BodyPostRecipeOwnerRecipesPost.md rename to docs/ValidationErrorLocInner.md index 9ed34a544..16fa5f407 100644 --- a/docs/BodyPostRecipeOwnerRecipesPost.md +++ b/docs/ValidationErrorLocInner.md @@ -1,9 +1,8 @@ -# BodyPostRecipeOwnerRecipesPost +# ValidationErrorLocInner ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**package** | **file** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ValueFileReference.md b/docs/ValueFileReference.md index f6ec71eda..a54eff6c2 100644 --- a/docs/ValueFileReference.md +++ b/docs/ValueFileReference.md @@ -4,7 +4,7 @@ A reference to a fixed file. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **path** | **str** | A fixed value for this reference. | **type** | **str** | | [optional] [readonly] [default to 'ValueFileReference'] diff --git a/docs/ValueFolderReference.md b/docs/ValueFolderReference.md index 05de86093..19d8dafe8 100644 --- a/docs/ValueFolderReference.md +++ b/docs/ValueFolderReference.md @@ -4,7 +4,7 @@ A reference to a fixed folder. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **path** | **str** | A fixed value for this reference. | **type** | **str** | | [optional] [readonly] [default to 'ValueFolderReference'] diff --git a/docs/ValueListReference.md b/docs/ValueListReference.md index 67c4d7308..9df480392 100644 --- a/docs/ValueListReference.md +++ b/docs/ValueListReference.md @@ -4,9 +4,9 @@ A reference to a fixed value. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **type** | **str** | | [optional] [readonly] [default to 'ValueListReference'] -**value** | **list[object]** | A fixed value for this reference. | +**value** | **List[object]** | A fixed value for this reference. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ValueReference.md b/docs/ValueReference.md index 878a50d68..a8f18dec9 100644 --- a/docs/ValueReference.md +++ b/docs/ValueReference.md @@ -4,9 +4,9 @@ A reference to a fixed value. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] +**annotations** | **Dict[str, str]** | An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. | [optional] **type** | **str** | | [optional] [readonly] [default to 'ValueReference'] -**value** | **object** | A fixed value for this reference. | +**value** | **object** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh index ced3be2b0..f53a75d4f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 @@ -38,14 +38,14 @@ git add . git commit -m "$release_note" # Sets the new remote -git_remote=`git remote` +git_remote=$(git remote) if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git fi fi @@ -55,4 +55,3 @@ git pull origin master # Pushes (Forces) the changes in the local repository up to the remote repository echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" git push origin master 2>&1 | grep -v 'To https' - diff --git a/pollination_sdk/__init__.py b/pollination_sdk/__init__.py index 7c8d2af23..c45cd7ee6 100644 --- a/pollination_sdk/__init__.py +++ b/pollination_sdk/__init__.py @@ -7,7 +7,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -15,7 +15,7 @@ from __future__ import absolute_import -__version__ = "1.0.0" +__version__ = "1.6.0" # import apis into sdk package from pollination_sdk.api.api_tokens_api import APITokensApi @@ -29,6 +29,7 @@ from pollination_sdk.api.projects_api import ProjectsApi from pollination_sdk.api.recipes_api import RecipesApi from pollination_sdk.api.registries_api import RegistriesApi +from pollination_sdk.api.reports_api import ReportsApi from pollination_sdk.api.runs_api import RunsApi from pollination_sdk.api.subscription_plans_api import SubscriptionPlansApi from pollination_sdk.api.subscriptions_api import SubscriptionsApi @@ -67,12 +68,12 @@ from pollination_sdk.models.application_version import ApplicationVersion from pollination_sdk.models.application_version_list import ApplicationVersionList from pollination_sdk.models.baked_recipe import BakedRecipe +from pollination_sdk.models.baked_recipe_templates_inner import BakedRecipeTemplatesInner from pollination_sdk.models.billing_info import BillingInfo from pollination_sdk.models.billing_option import BillingOption -from pollination_sdk.models.body_cython_function_or_method_owner_plugins_post import BodyCythonFunctionOrMethodOwnerPluginsPost -from pollination_sdk.models.body_post_recipe_owner_recipes_post import BodyPostRecipeOwnerRecipesPost from pollination_sdk.models.build_status import BuildStatus from pollination_sdk.models.build_status_enum import BuildStatusEnum +from pollination_sdk.models.cad_license_usage import CADLicenseUsage from pollination_sdk.models.card_type import CardType from pollination_sdk.models.cloud_job import CloudJob from pollination_sdk.models.cloud_job_list import CloudJobList @@ -80,8 +81,10 @@ from pollination_sdk.models.dag import DAG from pollination_sdk.models.dag_array_input import DAGArrayInput from pollination_sdk.models.dag_array_input_alias import DAGArrayInputAlias +from pollination_sdk.models.dag_array_input_alias_inner import DAGArrayInputAliasInner from pollination_sdk.models.dag_array_output import DAGArrayOutput from pollination_sdk.models.dag_array_output_alias import DAGArrayOutputAlias +from pollination_sdk.models.dag_array_output_alias_inner import DAGArrayOutputAliasInner from pollination_sdk.models.dag_boolean_input import DAGBooleanInput from pollination_sdk.models.dag_boolean_input_alias import DAGBooleanInputAlias from pollination_sdk.models.dag_boolean_output import DAGBooleanOutput @@ -98,6 +101,7 @@ from pollination_sdk.models.dag_generic_input_alias import DAGGenericInputAlias from pollination_sdk.models.dag_generic_output import DAGGenericOutput from pollination_sdk.models.dag_generic_output_alias import DAGGenericOutputAlias +from pollination_sdk.models.dag_inputs_inner import DAGInputsInner from pollination_sdk.models.dag_integer_input import DAGIntegerInput from pollination_sdk.models.dag_integer_input_alias import DAGIntegerInputAlias from pollination_sdk.models.dag_integer_output import DAGIntegerOutput @@ -112,6 +116,7 @@ from pollination_sdk.models.dag_number_input_alias import DAGNumberInputAlias from pollination_sdk.models.dag_number_output import DAGNumberOutput from pollination_sdk.models.dag_number_output_alias import DAGNumberOutputAlias +from pollination_sdk.models.dag_outputs_inner import DAGOutputsInner from pollination_sdk.models.dag_path_input import DAGPathInput from pollination_sdk.models.dag_path_input_alias import DAGPathInputAlias from pollination_sdk.models.dag_path_output import DAGPathOutput @@ -121,16 +126,25 @@ from pollination_sdk.models.dag_string_output import DAGStringOutput from pollination_sdk.models.dag_string_output_alias import DAGStringOutputAlias from pollination_sdk.models.dag_task import DAGTask +from pollination_sdk.models.dag_task_arguments_inner import DAGTaskArgumentsInner from pollination_sdk.models.dag_task_loop import DAGTaskLoop +from pollination_sdk.models.dag_task_returns_inner import DAGTaskReturnsInner from pollination_sdk.models.daily_usage import DailyUsage +from pollination_sdk.models.default import Default from pollination_sdk.models.dependency import Dependency from pollination_sdk.models.dependency_kind import DependencyKind from pollination_sdk.models.deployment_config import DeploymentConfig +from pollination_sdk.models.deployment_config_update import DeploymentConfigUpdate from pollination_sdk.models.docker_config import DockerConfig from pollination_sdk.models.file_meta import FileMeta from pollination_sdk.models.file_meta_list import FileMetaList from pollination_sdk.models.file_reference import FileReference from pollination_sdk.models.folder_reference import FolderReference +from pollination_sdk.models.from1 import From1 +from pollination_sdk.models.from2 import From2 +from pollination_sdk.models.from3 import From3 +from pollination_sdk.models.from4 import From4 +from pollination_sdk.models.from5 import From5 from pollination_sdk.models.function import Function from pollination_sdk.models.function_array_input import FunctionArrayInput from pollination_sdk.models.function_array_output import FunctionArrayOutput @@ -140,12 +154,14 @@ from pollination_sdk.models.function_file_output import FunctionFileOutput from pollination_sdk.models.function_folder_input import FunctionFolderInput from pollination_sdk.models.function_folder_output import FunctionFolderOutput +from pollination_sdk.models.function_inputs_inner import FunctionInputsInner from pollination_sdk.models.function_integer_input import FunctionIntegerInput from pollination_sdk.models.function_integer_output import FunctionIntegerOutput from pollination_sdk.models.function_json_object_input import FunctionJSONObjectInput from pollination_sdk.models.function_json_object_output import FunctionJSONObjectOutput from pollination_sdk.models.function_number_input import FunctionNumberInput from pollination_sdk.models.function_number_output import FunctionNumberOutput +from pollination_sdk.models.function_outputs_inner import FunctionOutputsInner from pollination_sdk.models.function_path_input import FunctionPathInput from pollination_sdk.models.function_path_output import FunctionPathOutput from pollination_sdk.models.function_string_input import FunctionStringInput @@ -161,6 +177,8 @@ from pollination_sdk.models.item_type import ItemType from pollination_sdk.models.job import Job from pollination_sdk.models.job_argument import JobArgument +from pollination_sdk.models.job_arguments_inner_inner import JobArgumentsInnerInner +from pollination_sdk.models.job_compute_usage import JobComputeUsage from pollination_sdk.models.job_path_argument import JobPathArgument from pollination_sdk.models.job_status import JobStatus from pollination_sdk.models.job_status_enum import JobStatusEnum @@ -178,8 +196,10 @@ from pollination_sdk.models.local_config import LocalConfig from pollination_sdk.models.location import Location from pollination_sdk.models.maintainer import Maintainer +from pollination_sdk.models.manifest import Manifest from pollination_sdk.models.meta_data import MetaData from pollination_sdk.models.metadata import Metadata +from pollination_sdk.models.model_from import ModelFrom from pollination_sdk.models.new_application_version import NewApplicationVersion from pollination_sdk.models.new_plugin_package import NewPluginPackage from pollination_sdk.models.new_recipe_package import NewRecipePackage @@ -188,6 +208,7 @@ from pollination_sdk.models.organization_list import OrganizationList from pollination_sdk.models.organization_member import OrganizationMember from pollination_sdk.models.organization_member_list import OrganizationMemberList +from pollination_sdk.models.organization_member_usage import OrganizationMemberUsage from pollination_sdk.models.organization_role_enum import OrganizationRoleEnum from pollination_sdk.models.organization_update import OrganizationUpdate from pollination_sdk.models.package_sort_key import PackageSortKey @@ -225,6 +246,9 @@ from pollination_sdk.models.recipe_interface_list import RecipeInterfaceList from pollination_sdk.models.recipe_package import RecipePackage from pollination_sdk.models.recipe_package_list import RecipePackageList +from pollination_sdk.models.report_cad_license_usage import ReportCADLicenseUsage +from pollination_sdk.models.report_compute_usage import ReportComputeUsage +from pollination_sdk.models.report_organization_member_usage import ReportOrganizationMemberUsage from pollination_sdk.models.repository import Repository from pollination_sdk.models.repository_access_policy import RepositoryAccessPolicy from pollination_sdk.models.repository_access_policy_list import RepositoryAccessPolicyList @@ -237,6 +261,7 @@ from pollination_sdk.models.repository_update import RepositoryUpdate from pollination_sdk.models.repository_user_permissions import RepositoryUserPermissions from pollination_sdk.models.resources_duration import ResourcesDuration +from pollination_sdk.models.response_get_package_json import ResponseGetPackageJson from pollination_sdk.models.retry_config import RetryConfig from pollination_sdk.models.role_enum import RoleEnum from pollination_sdk.models.run import Run @@ -244,13 +269,17 @@ from pollination_sdk.models.run_meta import RunMeta from pollination_sdk.models.run_progress import RunProgress from pollination_sdk.models.run_result_list import RunResultList +from pollination_sdk.models.run_result_list_resources_inner_inner import RunResultListResourcesInnerInner from pollination_sdk.models.run_status import RunStatus from pollination_sdk.models.run_status_enum import RunStatusEnum +from pollination_sdk.models.run_status_inputs_inner import RunStatusInputsInner +from pollination_sdk.models.run_status_outputs_inner import RunStatusOutputsInner from pollination_sdk.models.s3 import S3 from pollination_sdk.models.s3_upload_request import S3UploadRequest from pollination_sdk.models.sdk_enum import SDKEnum from pollination_sdk.models.scripting_languages import ScriptingLanguages from pollination_sdk.models.sort_enum import SortEnum +from pollination_sdk.models.source import Source from pollination_sdk.models.status_type import StatusType from pollination_sdk.models.step_array_input import StepArrayInput from pollination_sdk.models.step_array_output import StepArrayOutput @@ -273,6 +302,7 @@ from pollination_sdk.models.step_status_enum import StepStatusEnum from pollination_sdk.models.step_string_input import StepStringInput from pollination_sdk.models.step_string_output import StepStringOutput +from pollination_sdk.models.subject import Subject from pollination_sdk.models.subject_type import SubjectType from pollination_sdk.models.subscription import Subscription from pollination_sdk.models.subscription_create import SubscriptionCreate @@ -305,6 +335,7 @@ from pollination_sdk.models.user_public_list import UserPublicList from pollination_sdk.models.user_update import UserUpdate from pollination_sdk.models.validation_error import ValidationError +from pollination_sdk.models.validation_error_loc_inner import ValidationErrorLocInner from pollination_sdk.models.value_file_reference import ValueFileReference from pollination_sdk.models.value_folder_reference import ValueFolderReference from pollination_sdk.models.value_list_reference import ValueListReference diff --git a/pollination_sdk/api/__init__.py b/pollination_sdk/api/__init__.py index c8ff8ae13..64be943d4 100644 --- a/pollination_sdk/api/__init__.py +++ b/pollination_sdk/api/__init__.py @@ -14,6 +14,7 @@ from pollination_sdk.api.projects_api import ProjectsApi from pollination_sdk.api.recipes_api import RecipesApi from pollination_sdk.api.registries_api import RegistriesApi +from pollination_sdk.api.reports_api import ReportsApi from pollination_sdk.api.runs_api import RunsApi from pollination_sdk.api.subscription_plans_api import SubscriptionPlansApi from pollination_sdk.api.subscriptions_api import SubscriptionsApi diff --git a/pollination_sdk/api/accounts_api.py b/pollination_sdk/api/accounts_api.py index b507ab364..c1f96890d 100644 --- a/pollination_sdk/api/accounts_api.py +++ b/pollination_sdk/api/accounts_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -168,6 +168,137 @@ def check_account_name_with_http_info(self, name, **kwargs): # noqa: E501 collection_formats=collection_formats, _request_auth=local_var_params.get('_request_auth')) + def delete_account(self, name, **kwargs): # noqa: E501 + """Delete an account # noqa: E501 + + Delete an account # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.delete_account(name, async_req=True) + >>> result = thread.get() + + :param name: (required) + :type name: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.delete_account_with_http_info(name, **kwargs) # noqa: E501 + + def delete_account_with_http_info(self, name, **kwargs): # noqa: E501 + """Delete an account # noqa: E501 + + Delete an account # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.delete_account_with_http_info(name, async_req=True) + >>> result = thread.get() + + :param name: (required) + :type name: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'name' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_account" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_account`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 + + return self.api_client.call_api( + '/accounts/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + def get_account(self, name, **kwargs): # noqa: E501 """Get an account by name # noqa: E501 @@ -383,10 +514,10 @@ def list_accounts_with_http_info(self, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'search', - 'type', - 'role', - 'page', + 'search' + 'type' + 'role' + 'page' 'per_page' ] all_params.extend( @@ -439,7 +570,7 @@ def list_accounts_with_http_info(self, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/accounts', 'GET', @@ -470,7 +601,7 @@ def list_quotas(self, name, **kwargs): # noqa: E501 :param name: (required) :type name: str :param type: The types of quotas to get - :type type: list[QuotaType] + :type type: List[QuotaType] :param exhausted: Whether to return only quotas which are exhausted :type exhausted: bool :param enforced: Whether to return only quotas which are enforced @@ -509,7 +640,7 @@ def list_quotas_with_http_info(self, name, **kwargs): # noqa: E501 :param name: (required) :type name: str :param type: The types of quotas to get - :type type: list[QuotaType] + :type type: List[QuotaType] :param exhausted: Whether to return only quotas which are exhausted :type exhausted: bool :param enforced: Whether to return only quotas which are enforced @@ -544,11 +675,11 @@ def list_quotas_with_http_info(self, name, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'name', - 'type', - 'exhausted', - 'enforced', - 'page', + 'name' + 'type' + 'exhausted' + 'enforced' + 'page' 'per_page' ] all_params.extend( @@ -587,7 +718,6 @@ def list_quotas_with_http_info(self, name, **kwargs): # noqa: E501 query_params = [] if 'type' in local_var_params and local_var_params['type'] is not None: # noqa: E501 query_params.append(('type', local_var_params['type'])) # noqa: E501 - collection_formats['type'] = 'multi' # noqa: E501 if 'exhausted' in local_var_params and local_var_params['exhausted'] is not None: # noqa: E501 query_params.append(('exhausted', local_var_params['exhausted'])) # noqa: E501 if 'enforced' in local_var_params and local_var_params['enforced'] is not None: # noqa: E501 @@ -608,7 +738,7 @@ def list_quotas_with_http_info(self, name, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/accounts/{name}/quotas', 'GET', diff --git a/pollination_sdk/api/api_tokens_api.py b/pollination_sdk/api/api_tokens_api.py index 256744541..c6e70da9f 100644 --- a/pollination_sdk/api/api_tokens_api.py +++ b/pollination_sdk/api/api_tokens_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -375,7 +375,7 @@ def list_tokens_with_http_info(self, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'page', + 'page' 'per_page' ] all_params.extend( diff --git a/pollination_sdk/api/applications_api.py b/pollination_sdk/api/applications_api.py index 8a2991b44..a9c93fb96 100644 --- a/pollination_sdk/api/applications_api.py +++ b/pollination_sdk/api/applications_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -107,7 +107,7 @@ def create_application_with_http_info(self, owner, application_create, **kwargs) local_var_params = locals() all_params = [ - 'owner', + 'owner' 'application_create' ] all_params.extend( @@ -162,7 +162,7 @@ def create_application_with_http_info(self, owner, application_create, **kwargs) ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/applications/{owner}', 'POST', @@ -251,7 +251,7 @@ def delete_application_with_http_info(self, owner, slug, **kwargs): # noqa: E50 local_var_params = locals() all_params = [ - 'owner', + 'owner' 'slug' ] all_params.extend( @@ -302,7 +302,7 @@ def delete_application_with_http_info(self, owner, slug, **kwargs): # noqa: E50 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/applications/{owner}/{slug}', 'DELETE', @@ -395,8 +395,8 @@ def delete_application_org_permission_with_http_info(self, owner, slug, applicat local_var_params = locals() all_params = [ - 'owner', - 'slug', + 'owner' + 'slug' 'application_policy_subject' ] all_params.extend( @@ -457,7 +457,7 @@ def delete_application_org_permission_with_http_info(self, owner, slug, applicat ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/applications/{owner}/{slug}/permissions', 'DELETE', @@ -550,8 +550,8 @@ def delete_application_version_with_http_info(self, owner, slug, tag, **kwargs): local_var_params = locals() all_params = [ - 'owner', - 'slug', + 'owner' + 'slug' 'tag' ] all_params.extend( @@ -608,7 +608,7 @@ def delete_application_version_with_http_info(self, owner, slug, tag, **kwargs): ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/applications/{owner}/{slug}/versions/{tag}', 'DELETE', @@ -697,7 +697,7 @@ def get_application_with_http_info(self, owner, slug, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'owner', + 'owner' 'slug' ] all_params.extend( @@ -748,7 +748,7 @@ def get_application_with_http_info(self, owner, slug, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/applications/{owner}/{slug}', 'GET', @@ -785,9 +785,9 @@ def get_application_access_permissions(self, owner, slug, **kwargs): # noqa: E5 :param per_page: Number of items per page :type per_page: int :param subject_type: The type of access policy subject - :type subject_type: list[str] + :type subject_type: List[str] :param permission: An access policy permission string - :type permission: list[str] + :type permission: List[str] :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -824,9 +824,9 @@ def get_application_access_permissions_with_http_info(self, owner, slug, **kwarg :param per_page: Number of items per page :type per_page: int :param subject_type: The type of access policy subject - :type subject_type: list[str] + :type subject_type: List[str] :param permission: An access policy permission string - :type permission: list[str] + :type permission: List[str] :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code @@ -853,11 +853,11 @@ def get_application_access_permissions_with_http_info(self, owner, slug, **kwarg local_var_params = locals() all_params = [ - 'owner', - 'slug', - 'page', - 'per_page', - 'subject_type', + 'owner' + 'slug' + 'page' + 'per_page' + 'subject_type' 'permission' ] all_params.extend( @@ -906,10 +906,8 @@ def get_application_access_permissions_with_http_info(self, owner, slug, **kwarg query_params.append(('per-page', local_var_params['per_page'])) # noqa: E501 if 'subject_type' in local_var_params and local_var_params['subject_type'] is not None: # noqa: E501 query_params.append(('subject_type', local_var_params['subject_type'])) # noqa: E501 - collection_formats['subject_type'] = 'multi' # noqa: E501 if 'permission' in local_var_params and local_var_params['permission'] is not None: # noqa: E501 query_params.append(('permission', local_var_params['permission'])) # noqa: E501 - collection_formats['permission'] = 'multi' # noqa: E501 header_params = {} @@ -922,7 +920,7 @@ def get_application_access_permissions_with_http_info(self, owner, slug, **kwarg ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/applications/{owner}/{slug}/permissions', 'GET', @@ -1011,7 +1009,7 @@ def get_application_deployment_with_http_info(self, owner, slug, **kwargs): # n local_var_params = locals() all_params = [ - 'owner', + 'owner' 'slug' ] all_params.extend( @@ -1062,7 +1060,7 @@ def get_application_deployment_with_http_info(self, owner, slug, **kwargs): # n ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/applications/{owner}/{slug}/deployment', 'GET', @@ -1159,9 +1157,9 @@ def get_application_versions_with_http_info(self, owner, slug, **kwargs): # noq local_var_params = locals() all_params = [ - 'owner', - 'slug', - 'page', + 'owner' + 'slug' + 'page' 'per_page' ] all_params.extend( @@ -1220,7 +1218,7 @@ def get_application_versions_with_http_info(self, owner, slug, **kwargs): # noq ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/applications/{owner}/{slug}/versions', 'GET', @@ -1251,19 +1249,19 @@ def list_applications(self, **kwargs): # noqa: E501 :param search: Search string to find applications :type search: str :param ids: The ID of a application to search for - :type ids: list[str] + :type ids: List[str] :param names: The name of the application - :type names: list[str] + :type names: List[str] :param owner: Owner of the application - :type owner: list[str] + :type owner: List[str] :param public: Boolean check for public/private applications :type public: bool :param deployed: Filter by deployed applications :type deployed: bool :param permissions: Filter by permission on given resource - :type permissions: list[str] + :type permissions: List[str] :param keywords: Filter by keywords on given resource - :type keywords: list[str] + :type keywords: List[str] :param sort_by: Key to sort the list by :type sort_by: ApplicationSortKey :param sort_order: The order to sort the list @@ -1302,19 +1300,19 @@ def list_applications_with_http_info(self, **kwargs): # noqa: E501 :param search: Search string to find applications :type search: str :param ids: The ID of a application to search for - :type ids: list[str] + :type ids: List[str] :param names: The name of the application - :type names: list[str] + :type names: List[str] :param owner: Owner of the application - :type owner: list[str] + :type owner: List[str] :param public: Boolean check for public/private applications :type public: bool :param deployed: Filter by deployed applications :type deployed: bool :param permissions: Filter by permission on given resource - :type permissions: list[str] + :type permissions: List[str] :param keywords: Filter by keywords on given resource - :type keywords: list[str] + :type keywords: List[str] :param sort_by: Key to sort the list by :type sort_by: ApplicationSortKey :param sort_order: The order to sort the list @@ -1349,17 +1347,17 @@ def list_applications_with_http_info(self, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'search', - 'ids', - 'names', - 'owner', - 'public', - 'deployed', - 'permissions', - 'keywords', - 'sort_by', - 'sort_order', - 'page', + 'search' + 'ids' + 'names' + 'owner' + 'public' + 'deployed' + 'permissions' + 'keywords' + 'sort_by' + 'sort_order' + 'page' 'per_page' ] all_params.extend( @@ -1394,23 +1392,18 @@ def list_applications_with_http_info(self, **kwargs): # noqa: E501 query_params.append(('search', local_var_params['search'])) # noqa: E501 if 'ids' in local_var_params and local_var_params['ids'] is not None: # noqa: E501 query_params.append(('ids', local_var_params['ids'])) # noqa: E501 - collection_formats['ids'] = 'multi' # noqa: E501 if 'names' in local_var_params and local_var_params['names'] is not None: # noqa: E501 query_params.append(('names', local_var_params['names'])) # noqa: E501 - collection_formats['names'] = 'multi' # noqa: E501 if 'owner' in local_var_params and local_var_params['owner'] is not None: # noqa: E501 query_params.append(('owner', local_var_params['owner'])) # noqa: E501 - collection_formats['owner'] = 'multi' # noqa: E501 if 'public' in local_var_params and local_var_params['public'] is not None: # noqa: E501 query_params.append(('public', local_var_params['public'])) # noqa: E501 if 'deployed' in local_var_params and local_var_params['deployed'] is not None: # noqa: E501 query_params.append(('deployed', local_var_params['deployed'])) # noqa: E501 if 'permissions' in local_var_params and local_var_params['permissions'] is not None: # noqa: E501 query_params.append(('permissions', local_var_params['permissions'])) # noqa: E501 - collection_formats['permissions'] = 'multi' # noqa: E501 if 'keywords' in local_var_params and local_var_params['keywords'] is not None: # noqa: E501 query_params.append(('keywords', local_var_params['keywords'])) # noqa: E501 - collection_formats['keywords'] = 'multi' # noqa: E501 if 'sort_by' in local_var_params and local_var_params['sort_by'] is not None: # noqa: E501 query_params.append(('sort_by', local_var_params['sort_by'])) # noqa: E501 if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501 @@ -1431,7 +1424,7 @@ def list_applications_with_http_info(self, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/applications', 'GET', @@ -1450,6 +1443,146 @@ def list_applications_with_http_info(self, **kwargs): # noqa: E501 collection_formats=collection_formats, _request_auth=local_var_params.get('_request_auth')) + def restart_application_deployment(self, owner, slug, **kwargs): # noqa: E501 + """Restart application deployment # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.restart_application_deployment(owner, slug, async_req=True) + >>> result = thread.get() + + :param owner: (required) + :type owner: str + :param slug: (required) + :type slug: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: object + """ + kwargs['_return_http_data_only'] = True + return self.restart_application_deployment_with_http_info(owner, slug, **kwargs) # noqa: E501 + + def restart_application_deployment_with_http_info(self, owner, slug, **kwargs): # noqa: E501 + """Restart application deployment # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.restart_application_deployment_with_http_info(owner, slug, async_req=True) + >>> result = thread.get() + + :param owner: (required) + :type owner: str + :param slug: (required) + :type slug: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'owner' + 'slug' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method restart_application_deployment" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501 + local_var_params['owner'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `owner` when calling `restart_application_deployment`") # noqa: E501 + # verify the required parameter 'slug' is set + if self.api_client.client_side_validation and ('slug' not in local_var_params or # noqa: E501 + local_var_params['slug'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `slug` when calling `restart_application_deployment`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in local_var_params: + path_params['owner'] = local_var_params['owner'] # noqa: E501 + if 'slug' in local_var_params: + path_params['slug'] = local_var_params['slug'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 + + return self.api_client.call_api( + '/applications/{owner}/{slug}/deployment', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + def update_application(self, owner, slug, application_update, **kwargs): # noqa: E501 """Update a Application # noqa: E501 @@ -1524,8 +1657,8 @@ def update_application_with_http_info(self, owner, slug, application_update, **k local_var_params = locals() all_params = [ - 'owner', - 'slug', + 'owner' + 'slug' 'application_update' ] all_params.extend( @@ -1586,7 +1719,7 @@ def update_application_with_http_info(self, owner, slug, application_update, **k ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/applications/{owner}/{slug}', 'PUT', @@ -1605,6 +1738,172 @@ def update_application_with_http_info(self, owner, slug, application_update, **k collection_formats=collection_formats, _request_auth=local_var_params.get('_request_auth')) + def upload_version_package(self, owner, slug, tag, file, **kwargs): # noqa: E501 + """Upload the build package for the application version # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.upload_version_package(owner, slug, tag, file, async_req=True) + >>> result = thread.get() + + :param owner: (required) + :type owner: str + :param slug: (required) + :type slug: str + :param tag: (required) + :type tag: str + :param file: (required) + :type file: bytearray + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: object + """ + kwargs['_return_http_data_only'] = True + return self.upload_version_package_with_http_info(owner, slug, tag, file, **kwargs) # noqa: E501 + + def upload_version_package_with_http_info(self, owner, slug, tag, file, **kwargs): # noqa: E501 + """Upload the build package for the application version # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.upload_version_package_with_http_info(owner, slug, tag, file, async_req=True) + >>> result = thread.get() + + :param owner: (required) + :type owner: str + :param slug: (required) + :type slug: str + :param tag: (required) + :type tag: str + :param file: (required) + :type file: bytearray + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'owner' + 'slug' + 'tag' + 'file' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method upload_version_package" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501 + local_var_params['owner'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `owner` when calling `upload_version_package`") # noqa: E501 + # verify the required parameter 'slug' is set + if self.api_client.client_side_validation and ('slug' not in local_var_params or # noqa: E501 + local_var_params['slug'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `slug` when calling `upload_version_package`") # noqa: E501 + # verify the required parameter 'tag' is set + if self.api_client.client_side_validation and ('tag' not in local_var_params or # noqa: E501 + local_var_params['tag'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `tag` when calling `upload_version_package`") # noqa: E501 + # verify the required parameter 'file' is set + if self.api_client.client_side_validation and ('file' not in local_var_params or # noqa: E501 + local_var_params['file'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `file` when calling `upload_version_package`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in local_var_params: + path_params['owner'] = local_var_params['owner'] # noqa: E501 + if 'slug' in local_var_params: + path_params['slug'] = local_var_params['slug'] # noqa: E501 + if 'tag' in local_var_params: + path_params['tag'] = local_var_params['tag'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + if 'file' in local_var_params: + local_var_files['file'] = local_var_params['file'] # noqa: E501 + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['multipart/form-data']) # noqa: E501 + + # Authentication setting + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 + + return self.api_client.call_api( + '/applications/{owner}/{slug}/versions/{tag}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + def upsert_application_permission(self, owner, slug, application_access_policy, **kwargs): # noqa: E501 """Upsert a new permission to a application # noqa: E501 @@ -1679,8 +1978,8 @@ def upsert_application_permission_with_http_info(self, owner, slug, application_ local_var_params = locals() all_params = [ - 'owner', - 'slug', + 'owner' + 'slug' 'application_access_policy' ] all_params.extend( @@ -1741,7 +2040,7 @@ def upsert_application_permission_with_http_info(self, owner, slug, application_ ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/applications/{owner}/{slug}/permissions', 'PATCH', @@ -1834,8 +2133,8 @@ def upsert_application_version_with_http_info(self, owner, slug, new_application local_var_params = locals() all_params = [ - 'owner', - 'slug', + 'owner' + 'slug' 'new_application_version' ] all_params.extend( @@ -1896,7 +2195,7 @@ def upsert_application_version_with_http_info(self, owner, slug, new_application ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/applications/{owner}/{slug}/versions', 'PATCH', diff --git a/pollination_sdk/api/artifacts_api.py b/pollination_sdk/api/artifacts_api.py index fcfac1f81..14ba5f861 100644 --- a/pollination_sdk/api/artifacts_api.py +++ b/pollination_sdk/api/artifacts_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -111,8 +111,8 @@ def create_artifact_with_http_info(self, owner, name, key_request, **kwargs): # local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'key_request' ] all_params.extend( @@ -173,7 +173,7 @@ def create_artifact_with_http_info(self, owner, name, key_request, **kwargs): # ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/artifacts', 'POST', @@ -206,7 +206,7 @@ def delete_artifact(self, owner, name, **kwargs): # noqa: E501 :param name: (required) :type name: str :param path: The path to an file within a project folder - :type path: list[str] + :type path: List[str] :param page: Page number starting from 1 :type page: int :param per_page: Number of items per page @@ -243,7 +243,7 @@ def delete_artifact_with_http_info(self, owner, name, **kwargs): # noqa: E501 :param name: (required) :type name: str :param path: The path to an file within a project folder - :type path: list[str] + :type path: List[str] :param page: Page number starting from 1 :type page: int :param per_page: Number of items per page @@ -274,10 +274,10 @@ def delete_artifact_with_http_info(self, owner, name, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'owner', - 'name', - 'path', - 'page', + 'owner' + 'name' + 'path' + 'page' 'per_page' ] all_params.extend( @@ -309,8 +309,8 @@ def delete_artifact_with_http_info(self, owner, name, **kwargs): # noqa: E501 if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `page` when calling `delete_artifact`, must be a value greater than or equal to `1`") # noqa: E501 - if self.api_client.client_side_validation and 'per_page' in local_var_params and local_var_params['per_page'] > 100: # noqa: E501 - raise ApiValueError("Invalid value for parameter `per_page` when calling `delete_artifact`, must be a value less than or equal to `100`") # noqa: E501 + if self.api_client.client_side_validation and 'per_page' in local_var_params and local_var_params['per_page'] > 10000: # noqa: E501 + raise ApiValueError("Invalid value for parameter `per_page` when calling `delete_artifact`, must be a value less than or equal to `10000`") # noqa: E501 collection_formats = {} path_params = {} @@ -322,7 +322,6 @@ def delete_artifact_with_http_info(self, owner, name, **kwargs): # noqa: E501 query_params = [] if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 - collection_formats['path'] = 'multi' # noqa: E501 if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 query_params.append(('page', local_var_params['page'])) # noqa: E501 if 'per_page' in local_var_params and local_var_params['per_page'] is not None: # noqa: E501 @@ -339,7 +338,7 @@ def delete_artifact_with_http_info(self, owner, name, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/artifacts', 'DELETE', @@ -432,8 +431,8 @@ def download_artifact_with_http_info(self, owner, name, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'path' ] all_params.extend( @@ -486,7 +485,7 @@ def download_artifact_with_http_info(self, owner, name, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/artifacts/download', 'GET', @@ -519,7 +518,7 @@ def list_artifacts(self, owner, name, **kwargs): # noqa: E501 :param name: (required) :type name: str :param path: The path to an file within a project folder - :type path: list[str] + :type path: List[str] :param page: Page number starting from 1 :type page: int :param per_page: Number of items per page @@ -556,7 +555,7 @@ def list_artifacts_with_http_info(self, owner, name, **kwargs): # noqa: E501 :param name: (required) :type name: str :param path: The path to an file within a project folder - :type path: list[str] + :type path: List[str] :param page: Page number starting from 1 :type page: int :param per_page: Number of items per page @@ -587,10 +586,10 @@ def list_artifacts_with_http_info(self, owner, name, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'owner', - 'name', - 'path', - 'page', + 'owner' + 'name' + 'path' + 'page' 'per_page' ] all_params.extend( @@ -622,8 +621,8 @@ def list_artifacts_with_http_info(self, owner, name, **kwargs): # noqa: E501 if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `page` when calling `list_artifacts`, must be a value greater than or equal to `1`") # noqa: E501 - if self.api_client.client_side_validation and 'per_page' in local_var_params and local_var_params['per_page'] > 100: # noqa: E501 - raise ApiValueError("Invalid value for parameter `per_page` when calling `list_artifacts`, must be a value less than or equal to `100`") # noqa: E501 + if self.api_client.client_side_validation and 'per_page' in local_var_params and local_var_params['per_page'] > 10000: # noqa: E501 + raise ApiValueError("Invalid value for parameter `per_page` when calling `list_artifacts`, must be a value less than or equal to `10000`") # noqa: E501 collection_formats = {} path_params = {} @@ -635,7 +634,6 @@ def list_artifacts_with_http_info(self, owner, name, **kwargs): # noqa: E501 query_params = [] if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 - collection_formats['path'] = 'multi' # noqa: E501 if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 query_params.append(('page', local_var_params['page'])) # noqa: E501 if 'per_page' in local_var_params and local_var_params['per_page'] is not None: # noqa: E501 @@ -652,7 +650,7 @@ def list_artifacts_with_http_info(self, owner, name, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/artifacts', 'GET', diff --git a/pollination_sdk/api/jobs_api.py b/pollination_sdk/api/jobs_api.py index ba0241252..0f3eeee12 100644 --- a/pollination_sdk/api/jobs_api.py +++ b/pollination_sdk/api/jobs_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -113,8 +113,8 @@ def cancel_job_with_http_info(self, owner, name, job_id, **kwargs): # noqa: E50 local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'job_id' ] all_params.extend( @@ -171,7 +171,7 @@ def cancel_job_with_http_info(self, owner, name, job_id, **kwargs): # noqa: E50 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/jobs/{job_id}/cancel', 'PUT', @@ -274,10 +274,10 @@ def create_job_with_http_info(self, owner, name, job, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'owner', - 'name', - 'job', - 'authorization', + 'owner' + 'name' + 'job' + 'authorization' 'x_pollination_token' ] all_params.extend( @@ -342,7 +342,7 @@ def create_job_with_http_info(self, owner, name, job, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/jobs', 'POST', @@ -437,8 +437,8 @@ def delete_job_with_http_info(self, owner, name, job_id, **kwargs): # noqa: E50 local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'job_id' ] all_params.extend( @@ -495,7 +495,7 @@ def delete_job_with_http_info(self, owner, name, job_id, **kwargs): # noqa: E50 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/jobs/{job_id}', 'DELETE', @@ -545,7 +545,7 @@ def download_job_artifact(self, owner, name, job_id, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: object + :rtype: str """ kwargs['_return_http_data_only'] = True return self.download_job_artifact_with_http_info(owner, name, job_id, **kwargs) # noqa: E501 @@ -588,15 +588,15 @@ def download_job_artifact_with_http_info(self, owner, name, job_id, **kwargs): :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(str, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() all_params = [ - 'owner', - 'name', - 'job_id', + 'owner' + 'name' + 'job_id' 'path' ] all_params.extend( @@ -655,7 +655,7 @@ def download_job_artifact_with_http_info(self, owner, name, job_id, **kwargs): ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/jobs/{job_id}/artifacts/download', 'GET', @@ -665,7 +665,7 @@ def download_job_artifact_with_http_info(self, owner, name, job_id, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # noqa: E501 + response_type='str', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -750,8 +750,8 @@ def get_job_with_http_info(self, owner, name, job_id, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'job_id' ] all_params.extend( @@ -808,7 +808,7 @@ def get_job_with_http_info(self, owner, name, job_id, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/jobs/{job_id}', 'GET', @@ -842,7 +842,7 @@ def list_jobs(self, owner, name, **kwargs): # noqa: E501 :param name: (required) :type name: str :param ids: - :type ids: list[str] + :type ids: List[str] :param status: :type status: JobStatusEnum :param created_after: @@ -886,7 +886,7 @@ def list_jobs_with_http_info(self, owner, name, **kwargs): # noqa: E501 :param name: (required) :type name: str :param ids: - :type ids: list[str] + :type ids: List[str] :param status: :type status: JobStatusEnum :param created_after: @@ -923,13 +923,13 @@ def list_jobs_with_http_info(self, owner, name, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'owner', - 'name', - 'ids', - 'status', - 'created_after', - 'created_before', - 'page', + 'owner' + 'name' + 'ids' + 'status' + 'created_after' + 'created_before' + 'page' 'per_page' ] all_params.extend( @@ -974,7 +974,6 @@ def list_jobs_with_http_info(self, owner, name, **kwargs): # noqa: E501 query_params = [] if 'ids' in local_var_params and local_var_params['ids'] is not None: # noqa: E501 query_params.append(('ids', local_var_params['ids'])) # noqa: E501 - collection_formats['ids'] = 'multi' # noqa: E501 if 'status' in local_var_params and local_var_params['status'] is not None: # noqa: E501 query_params.append(('status', local_var_params['status'])) # noqa: E501 if 'created_after' in local_var_params and local_var_params['created_after'] is not None: # noqa: E501 @@ -997,7 +996,7 @@ def list_jobs_with_http_info(self, owner, name, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/jobs', 'GET', @@ -1096,9 +1095,9 @@ def retry_job_with_http_info(self, owner, name, job_id, retry_config, **kwargs): local_var_params = locals() all_params = [ - 'owner', - 'name', - 'job_id', + 'owner' + 'name' + 'job_id' 'retry_config' ] all_params.extend( @@ -1165,7 +1164,7 @@ def retry_job_with_http_info(self, owner, name, job_id, retry_config, **kwargs): ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/jobs/{job_id}/retry', 'PUT', @@ -1201,7 +1200,7 @@ def search_job_folder(self, owner, name, job_id, **kwargs): # noqa: E501 :param job_id: (required) :type job_id: str :param path: The path to an file within a project folder - :type path: list[str] + :type path: List[str] :param page: Page number starting from 1 :type page: int :param per_page: Number of items per page @@ -1219,7 +1218,7 @@ def search_job_folder(self, owner, name, job_id, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: object + :rtype: FileMetaList """ kwargs['_return_http_data_only'] = True return self.search_job_folder_with_http_info(owner, name, job_id, **kwargs) # noqa: E501 @@ -1241,7 +1240,7 @@ def search_job_folder_with_http_info(self, owner, name, job_id, **kwargs): # no :param job_id: (required) :type job_id: str :param path: The path to an file within a project folder - :type path: list[str] + :type path: List[str] :param page: Page number starting from 1 :type page: int :param per_page: Number of items per page @@ -1266,17 +1265,17 @@ def search_job_folder_with_http_info(self, owner, name, job_id, **kwargs): # no :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(FileMetaList, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() all_params = [ - 'owner', - 'name', - 'job_id', - 'path', - 'page', + 'owner' + 'name' + 'job_id' + 'path' + 'page' 'per_page' ] all_params.extend( @@ -1312,8 +1311,8 @@ def search_job_folder_with_http_info(self, owner, name, job_id, **kwargs): # no if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `page` when calling `search_job_folder`, must be a value greater than or equal to `1`") # noqa: E501 - if self.api_client.client_side_validation and 'per_page' in local_var_params and local_var_params['per_page'] > 100: # noqa: E501 - raise ApiValueError("Invalid value for parameter `per_page` when calling `search_job_folder`, must be a value less than or equal to `100`") # noqa: E501 + if self.api_client.client_side_validation and 'per_page' in local_var_params and local_var_params['per_page'] > 10000: # noqa: E501 + raise ApiValueError("Invalid value for parameter `per_page` when calling `search_job_folder`, must be a value less than or equal to `10000`") # noqa: E501 collection_formats = {} path_params = {} @@ -1327,7 +1326,6 @@ def search_job_folder_with_http_info(self, owner, name, job_id, **kwargs): # no query_params = [] if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 - collection_formats['path'] = 'multi' # noqa: E501 if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 query_params.append(('page', local_var_params['page'])) # noqa: E501 if 'per_page' in local_var_params and local_var_params['per_page'] is not None: # noqa: E501 @@ -1344,7 +1342,7 @@ def search_job_folder_with_http_info(self, owner, name, job_id, **kwargs): # no ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/jobs/{job_id}/artifacts', 'GET', @@ -1354,7 +1352,7 @@ def search_job_folder_with_http_info(self, owner, name, job_id, **kwargs): # no body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # noqa: E501 + response_type='FileMetaList', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 diff --git a/pollination_sdk/api/licenses_api.py b/pollination_sdk/api/licenses_api.py index f5cbbcbb5..223c07142 100644 --- a/pollination_sdk/api/licenses_api.py +++ b/pollination_sdk/api/licenses_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -107,7 +107,7 @@ def delete_activation_with_http_info(self, pool_id, activation_id, **kwargs): # local_var_params = locals() all_params = [ - 'pool_id', + 'pool_id' 'activation_id' ] all_params.extend( @@ -158,7 +158,7 @@ def delete_activation_with_http_info(self, pool_id, activation_id, **kwargs): # ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/licenses/pools/{pool_id}/activations/{activation_id}', 'DELETE', @@ -187,7 +187,7 @@ def get_available_pools(self, **kwargs): # noqa: E501 >>> result = thread.get() :param owner: Owner of the project - :type owner: list[str] + :type owner: List[str] :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -216,7 +216,7 @@ def get_available_pools_with_http_info(self, **kwargs): # noqa: E501 >>> result = thread.get() :param owner: Owner of the project - :type owner: list[str] + :type owner: List[str] :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code @@ -271,7 +271,6 @@ def get_available_pools_with_http_info(self, **kwargs): # noqa: E501 query_params = [] if 'owner' in local_var_params and local_var_params['owner'] is not None: # noqa: E501 query_params.append(('owner', local_var_params['owner'])) # noqa: E501 - collection_formats['owner'] = 'multi' # noqa: E501 header_params = {} @@ -284,7 +283,7 @@ def get_available_pools_with_http_info(self, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/licenses/pools', 'GET', @@ -413,7 +412,7 @@ def get_license_activations_with_http_info(self, pool_id, **kwargs): # noqa: E5 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/licenses/pools/{pool_id}/activations', 'GET', @@ -542,7 +541,7 @@ def get_pool_license_with_http_info(self, pool_id, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/licenses/pools/{pool_id}/license', 'GET', @@ -631,7 +630,7 @@ def grant_access_to_pool_with_http_info(self, pool_id, license_pool_access_polic local_var_params = locals() all_params = [ - 'pool_id', + 'pool_id' 'license_pool_access_policy_list' ] all_params.extend( @@ -686,7 +685,7 @@ def grant_access_to_pool_with_http_info(self, pool_id, license_pool_access_polic ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/licenses/pools/{pool_id}/permissions', 'PATCH', @@ -815,7 +814,7 @@ def regenerate_license_pool_with_http_info(self, pool_id, **kwargs): # noqa: E5 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/licenses/pools/{pool_id}/regenerate', 'POST', @@ -904,7 +903,7 @@ def revoke_access_to_pool_with_http_info(self, pool_id, license_pool_policy_subj local_var_params = locals() all_params = [ - 'pool_id', + 'pool_id' 'license_pool_policy_subject_list' ] all_params.extend( @@ -959,7 +958,7 @@ def revoke_access_to_pool_with_http_info(self, pool_id, license_pool_policy_subj ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/licenses/pools/{pool_id}/permissions', 'DELETE', @@ -1048,7 +1047,7 @@ def update_license_pool_with_http_info(self, pool_id, license_pool_update, **kwa local_var_params = locals() all_params = [ - 'pool_id', + 'pool_id' 'license_pool_update' ] all_params.extend( @@ -1103,7 +1102,7 @@ def update_license_pool_with_http_info(self, pool_id, license_pool_update, **kwa ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/licenses/pools/{pool_id}', 'PUT', diff --git a/pollination_sdk/api/orgs_api.py b/pollination_sdk/api/orgs_api.py index fd280c1e9..b2f6395d8 100644 --- a/pollination_sdk/api/orgs_api.py +++ b/pollination_sdk/api/orgs_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -153,7 +153,7 @@ def create_org_with_http_info(self, organization_create, **kwargs): # noqa: E50 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/orgs', 'POST', @@ -284,7 +284,7 @@ def delete_org_with_http_info(self, name, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/orgs/{name}', 'DELETE', @@ -375,7 +375,7 @@ def delete_org_member_with_http_info(self, name, username, **kwargs): # noqa: E local_var_params = locals() all_params = [ - 'name', + 'name' 'username' ] all_params.extend( @@ -426,7 +426,7 @@ def delete_org_member_with_http_info(self, name, username, **kwargs): # noqa: E ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/orgs/{name}/members/{username}', 'DELETE', @@ -557,7 +557,7 @@ def get_org_with_http_info(self, name, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/orgs/{name}', 'GET', @@ -688,7 +688,7 @@ def get_org_members_with_http_info(self, name, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/orgs/{name}/members', 'GET', @@ -718,11 +718,11 @@ def list_orgs(self, **kwargs): # noqa: E501 >>> result = thread.get() :param search: You know, for search - :type search: list[str] + :type search: List[str] :param name: The account name - :type name: list[str] + :type name: List[str] :param member: The username of a user - :type member: list[str] + :type member: List[str] :param page: Page number starting from 1 :type page: int :param per_page: Number of items per page @@ -756,11 +756,11 @@ def list_orgs_with_http_info(self, **kwargs): # noqa: E501 >>> result = thread.get() :param search: You know, for search - :type search: list[str] + :type search: List[str] :param name: The account name - :type name: list[str] + :type name: List[str] :param member: The username of a user - :type member: list[str] + :type member: List[str] :param page: Page number starting from 1 :type page: int :param per_page: Number of items per page @@ -791,10 +791,10 @@ def list_orgs_with_http_info(self, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'search', - 'name', - 'member', - 'page', + 'search' + 'name' + 'member' + 'page' 'per_page' ] all_params.extend( @@ -827,13 +827,10 @@ def list_orgs_with_http_info(self, **kwargs): # noqa: E501 query_params = [] if 'search' in local_var_params and local_var_params['search'] is not None: # noqa: E501 query_params.append(('search', local_var_params['search'])) # noqa: E501 - collection_formats['search'] = 'multi' # noqa: E501 if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501 query_params.append(('name', local_var_params['name'])) # noqa: E501 - collection_formats['name'] = 'multi' # noqa: E501 if 'member' in local_var_params and local_var_params['member'] is not None: # noqa: E501 query_params.append(('member', local_var_params['member'])) # noqa: E501 - collection_formats['member'] = 'multi' # noqa: E501 if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 query_params.append(('page', local_var_params['page'])) # noqa: E501 if 'per_page' in local_var_params and local_var_params['per_page'] is not None: # noqa: E501 @@ -850,7 +847,7 @@ def list_orgs_with_http_info(self, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/orgs', 'GET', @@ -941,7 +938,7 @@ def update_org_with_http_info(self, name, organization_update, **kwargs): # noq local_var_params = locals() all_params = [ - 'name', + 'name' 'organization_update' ] all_params.extend( @@ -996,7 +993,7 @@ def update_org_with_http_info(self, name, organization_update, **kwargs): # noq ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/orgs/{name}', 'PUT', @@ -1091,8 +1088,8 @@ def upsert_org_member_with_http_info(self, name, username, role, **kwargs): # n local_var_params = locals() all_params = [ - 'name', - 'username', + 'name' + 'username' 'role' ] all_params.extend( @@ -1149,7 +1146,7 @@ def upsert_org_member_with_http_info(self, name, username, role, **kwargs): # n ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/orgs/{name}/members/{username}/{role}', 'PATCH', diff --git a/pollination_sdk/api/plugins_api.py b/pollination_sdk/api/plugins_api.py index 770e0285e..3eead713c 100644 --- a/pollination_sdk/api/plugins_api.py +++ b/pollination_sdk/api/plugins_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -109,7 +109,7 @@ def create_plugin_with_http_info(self, owner, repository_create, **kwargs): # n local_var_params = locals() all_params = [ - 'owner', + 'owner' 'repository_create' ] all_params.extend( @@ -164,7 +164,7 @@ def create_plugin_with_http_info(self, owner, repository_create, **kwargs): # n ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/plugins/{owner}', 'POST', @@ -259,8 +259,8 @@ def create_plugin_package_with_http_info(self, owner, name, new_plugin_package, local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'new_plugin_package' ] all_params.extend( @@ -321,7 +321,7 @@ def create_plugin_package_with_http_info(self, owner, name, new_plugin_package, ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/plugins/{owner}/{name}/tags', 'POST', @@ -412,7 +412,7 @@ def delete_plugin_with_http_info(self, owner, name, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'owner', + 'owner' 'name' ] all_params.extend( @@ -463,7 +463,7 @@ def delete_plugin_with_http_info(self, owner, name, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/plugins/{owner}/{name}', 'DELETE', @@ -558,8 +558,8 @@ def delete_plugin_org_permission_with_http_info(self, owner, name, repository_po local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'repository_policy_subject' ] all_params.extend( @@ -620,7 +620,7 @@ def delete_plugin_org_permission_with_http_info(self, owner, name, repository_po ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/plugins/{owner}/{name}/permissions', 'DELETE', @@ -711,7 +711,7 @@ def get_plugin_with_http_info(self, owner, name, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'owner', + 'owner' 'name' ] all_params.extend( @@ -762,7 +762,7 @@ def get_plugin_with_http_info(self, owner, name, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/plugins/{owner}/{name}', 'GET', @@ -800,9 +800,9 @@ def get_plugin_access_permissions(self, owner, name, **kwargs): # noqa: E501 :param per_page: Number of items per page :type per_page: int :param subject_type: The type of access policy subject - :type subject_type: list[str] + :type subject_type: List[str] :param permission: An access policy permission string - :type permission: list[str] + :type permission: List[str] :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -840,9 +840,9 @@ def get_plugin_access_permissions_with_http_info(self, owner, name, **kwargs): :param per_page: Number of items per page :type per_page: int :param subject_type: The type of access policy subject - :type subject_type: list[str] + :type subject_type: List[str] :param permission: An access policy permission string - :type permission: list[str] + :type permission: List[str] :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code @@ -869,11 +869,11 @@ def get_plugin_access_permissions_with_http_info(self, owner, name, **kwargs): local_var_params = locals() all_params = [ - 'owner', - 'name', - 'page', - 'per_page', - 'subject_type', + 'owner' + 'name' + 'page' + 'per_page' + 'subject_type' 'permission' ] all_params.extend( @@ -922,10 +922,8 @@ def get_plugin_access_permissions_with_http_info(self, owner, name, **kwargs): query_params.append(('per-page', local_var_params['per_page'])) # noqa: E501 if 'subject_type' in local_var_params and local_var_params['subject_type'] is not None: # noqa: E501 query_params.append(('subject_type', local_var_params['subject_type'])) # noqa: E501 - collection_formats['subject_type'] = 'multi' # noqa: E501 if 'permission' in local_var_params and local_var_params['permission'] is not None: # noqa: E501 query_params.append(('permission', local_var_params['permission'])) # noqa: E501 - collection_formats['permission'] = 'multi' # noqa: E501 header_params = {} @@ -938,7 +936,7 @@ def get_plugin_access_permissions_with_http_info(self, owner, name, **kwargs): ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/plugins/{owner}/{name}/permissions', 'GET', @@ -1033,8 +1031,8 @@ def get_plugin_by_tag_with_http_info(self, owner, name, tag, **kwargs): # noqa: local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'tag' ] all_params.extend( @@ -1091,7 +1089,7 @@ def get_plugin_by_tag_with_http_info(self, owner, name, tag, **kwargs): # noqa: ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/plugins/{owner}/{name}/tags/{tag}', 'GET', @@ -1198,11 +1196,11 @@ def list_plugin_tags_with_http_info(self, owner, name, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'owner', - 'name', - 'sort_by', - 'sort_order', - 'page', + 'owner' + 'name' + 'sort_by' + 'sort_order' + 'page' 'per_page' ] all_params.extend( @@ -1265,7 +1263,7 @@ def list_plugin_tags_with_http_info(self, owner, name, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/plugins/{owner}/{name}/tags', 'GET', @@ -1294,17 +1292,17 @@ def list_plugins(self, **kwargs): # noqa: E501 >>> result = thread.get() :param search: You know, for search - :type search: list[str] + :type search: List[str] :param name: The account name - :type name: list[str] + :type name: List[str] :param owner: Owner of the project - :type owner: list[str] + :type owner: List[str] :param public: Boolean check for public/private projects :type public: bool :param keyword: A keyword to index the repository by - :type keyword: list[str] + :type keyword: List[str] :param permission: Filter by permission on given resource - :type permission: list[str] + :type permission: List[str] :param sort_by: Key to sort the list by :type sort_by: RepositorySortKey :param sort_order: The order to sort the list @@ -1341,17 +1339,17 @@ def list_plugins_with_http_info(self, **kwargs): # noqa: E501 >>> result = thread.get() :param search: You know, for search - :type search: list[str] + :type search: List[str] :param name: The account name - :type name: list[str] + :type name: List[str] :param owner: Owner of the project - :type owner: list[str] + :type owner: List[str] :param public: Boolean check for public/private projects :type public: bool :param keyword: A keyword to index the repository by - :type keyword: list[str] + :type keyword: List[str] :param permission: Filter by permission on given resource - :type permission: list[str] + :type permission: List[str] :param sort_by: Key to sort the list by :type sort_by: RepositorySortKey :param sort_order: The order to sort the list @@ -1386,15 +1384,15 @@ def list_plugins_with_http_info(self, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'search', - 'name', - 'owner', - 'public', - 'keyword', - 'permission', - 'sort_by', - 'sort_order', - 'page', + 'search' + 'name' + 'owner' + 'public' + 'keyword' + 'permission' + 'sort_by' + 'sort_order' + 'page' 'per_page' ] all_params.extend( @@ -1427,21 +1425,16 @@ def list_plugins_with_http_info(self, **kwargs): # noqa: E501 query_params = [] if 'search' in local_var_params and local_var_params['search'] is not None: # noqa: E501 query_params.append(('search', local_var_params['search'])) # noqa: E501 - collection_formats['search'] = 'multi' # noqa: E501 if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501 query_params.append(('name', local_var_params['name'])) # noqa: E501 - collection_formats['name'] = 'multi' # noqa: E501 if 'owner' in local_var_params and local_var_params['owner'] is not None: # noqa: E501 query_params.append(('owner', local_var_params['owner'])) # noqa: E501 - collection_formats['owner'] = 'multi' # noqa: E501 if 'public' in local_var_params and local_var_params['public'] is not None: # noqa: E501 query_params.append(('public', local_var_params['public'])) # noqa: E501 if 'keyword' in local_var_params and local_var_params['keyword'] is not None: # noqa: E501 query_params.append(('keyword', local_var_params['keyword'])) # noqa: E501 - collection_formats['keyword'] = 'multi' # noqa: E501 if 'permission' in local_var_params and local_var_params['permission'] is not None: # noqa: E501 query_params.append(('permission', local_var_params['permission'])) # noqa: E501 - collection_formats['permission'] = 'multi' # noqa: E501 if 'sort_by' in local_var_params and local_var_params['sort_by'] is not None: # noqa: E501 query_params.append(('sort_by', local_var_params['sort_by'])) # noqa: E501 if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501 @@ -1462,7 +1455,7 @@ def list_plugins_with_http_info(self, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/plugins', 'GET', @@ -1557,8 +1550,8 @@ def update_plugin_with_http_info(self, owner, name, repository_update, **kwargs) local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'repository_update' ] all_params.extend( @@ -1619,7 +1612,7 @@ def update_plugin_with_http_info(self, owner, name, repository_update, **kwargs) ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/plugins/{owner}/{name}', 'PUT', @@ -1714,8 +1707,8 @@ def upsert_plugin_permission_with_http_info(self, owner, name, repository_access local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'repository_access_policy' ] all_params.extend( @@ -1776,7 +1769,7 @@ def upsert_plugin_permission_with_http_info(self, owner, name, repository_access ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/plugins/{owner}/{name}/permissions', 'PATCH', diff --git a/pollination_sdk/api/projects_api.py b/pollination_sdk/api/projects_api.py index 2358ed13a..f42a3f57c 100644 --- a/pollination_sdk/api/projects_api.py +++ b/pollination_sdk/api/projects_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -107,7 +107,7 @@ def create_project_with_http_info(self, owner, project_create, **kwargs): # noq local_var_params = locals() all_params = [ - 'owner', + 'owner' 'project_create' ] all_params.extend( @@ -162,7 +162,7 @@ def create_project_with_http_info(self, owner, project_create, **kwargs): # noq ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}', 'POST', @@ -255,8 +255,8 @@ def create_project_recipe_filter_with_http_info(self, owner, name, project_recip local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'project_recipe_filter' ] all_params.extend( @@ -317,7 +317,7 @@ def create_project_recipe_filter_with_http_info(self, owner, name, project_recip ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/recipes/filters', 'POST', @@ -406,7 +406,7 @@ def delete_project_with_http_info(self, owner, name, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'owner', + 'owner' 'name' ] all_params.extend( @@ -457,7 +457,7 @@ def delete_project_with_http_info(self, owner, name, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}', 'DELETE', @@ -550,8 +550,8 @@ def delete_project_org_permission_with_http_info(self, owner, name, project_poli local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'project_policy_subject' ] all_params.extend( @@ -612,7 +612,7 @@ def delete_project_org_permission_with_http_info(self, owner, name, project_poli ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/permissions', 'DELETE', @@ -705,8 +705,8 @@ def delete_project_recipe_filter_with_http_info(self, owner, name, project_recip local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'project_recipe_filter' ] all_params.extend( @@ -767,7 +767,7 @@ def delete_project_recipe_filter_with_http_info(self, owner, name, project_recip ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/recipes/filters', 'DELETE', @@ -856,7 +856,7 @@ def get_project_with_http_info(self, owner, name, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'owner', + 'owner' 'name' ] all_params.extend( @@ -907,7 +907,7 @@ def get_project_with_http_info(self, owner, name, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}', 'GET', @@ -944,9 +944,9 @@ def get_project_access_permissions(self, owner, name, **kwargs): # noqa: E501 :param per_page: Number of items per page :type per_page: int :param subject_type: The type of access policy subject - :type subject_type: list[str] + :type subject_type: List[str] :param permission: An access policy permission string - :type permission: list[str] + :type permission: List[str] :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -983,9 +983,9 @@ def get_project_access_permissions_with_http_info(self, owner, name, **kwargs): :param per_page: Number of items per page :type per_page: int :param subject_type: The type of access policy subject - :type subject_type: list[str] + :type subject_type: List[str] :param permission: An access policy permission string - :type permission: list[str] + :type permission: List[str] :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code @@ -1012,11 +1012,11 @@ def get_project_access_permissions_with_http_info(self, owner, name, **kwargs): local_var_params = locals() all_params = [ - 'owner', - 'name', - 'page', - 'per_page', - 'subject_type', + 'owner' + 'name' + 'page' + 'per_page' + 'subject_type' 'permission' ] all_params.extend( @@ -1065,10 +1065,8 @@ def get_project_access_permissions_with_http_info(self, owner, name, **kwargs): query_params.append(('per-page', local_var_params['per_page'])) # noqa: E501 if 'subject_type' in local_var_params and local_var_params['subject_type'] is not None: # noqa: E501 query_params.append(('subject_type', local_var_params['subject_type'])) # noqa: E501 - collection_formats['subject_type'] = 'multi' # noqa: E501 if 'permission' in local_var_params and local_var_params['permission'] is not None: # noqa: E501 query_params.append(('permission', local_var_params['permission'])) # noqa: E501 - collection_formats['permission'] = 'multi' # noqa: E501 header_params = {} @@ -1081,7 +1079,7 @@ def get_project_access_permissions_with_http_info(self, owner, name, **kwargs): ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/permissions', 'GET', @@ -1178,9 +1176,9 @@ def get_project_recipe_filters_with_http_info(self, owner, name, **kwargs): # n local_var_params = locals() all_params = [ - 'owner', - 'name', - 'page', + 'owner' + 'name' + 'page' 'per_page' ] all_params.extend( @@ -1239,7 +1237,7 @@ def get_project_recipe_filters_with_http_info(self, owner, name, **kwargs): # n ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/recipes/filters', 'GET', @@ -1258,8 +1256,173 @@ def get_project_recipe_filters_with_http_info(self, owner, name, **kwargs): # n collection_formats=collection_formats, _request_auth=local_var_params.get('_request_auth')) + def get_project_recipe_repositories(self, owner, name, **kwargs): # noqa: E501 + """Get project recipe repositories # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_project_recipe_repositories(owner, name, async_req=True) + >>> result = thread.get() + + :param owner: (required) + :type owner: str + :param name: (required) + :type name: str + :param search: Search string to find recipes + :type search: str + :param page: Page number starting from 1 + :type page: int + :param per_page: Number of items per page + :type per_page: int + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: RepositoryList + """ + kwargs['_return_http_data_only'] = True + return self.get_project_recipe_repositories_with_http_info(owner, name, **kwargs) # noqa: E501 + + def get_project_recipe_repositories_with_http_info(self, owner, name, **kwargs): # noqa: E501 + """Get project recipe repositories # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_project_recipe_repositories_with_http_info(owner, name, async_req=True) + >>> result = thread.get() + + :param owner: (required) + :type owner: str + :param name: (required) + :type name: str + :param search: Search string to find recipes + :type search: str + :param page: Page number starting from 1 + :type page: int + :param per_page: Number of items per page + :type per_page: int + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(RepositoryList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'owner' + 'name' + 'search' + 'page' + 'per_page' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_project_recipe_repositories" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501 + local_var_params['owner'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `owner` when calling `get_project_recipe_repositories`") # noqa: E501 + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `get_project_recipe_repositories`") # noqa: E501 + + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `get_project_recipe_repositories`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'per_page' in local_var_params and local_var_params['per_page'] > 100: # noqa: E501 + raise ApiValueError("Invalid value for parameter `per_page` when calling `get_project_recipe_repositories`, must be a value less than or equal to `100`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'owner' in local_var_params: + path_params['owner'] = local_var_params['owner'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + + query_params = [] + if 'search' in local_var_params and local_var_params['search'] is not None: # noqa: E501 + query_params.append(('search', local_var_params['search'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'per_page' in local_var_params and local_var_params['per_page'] is not None: # noqa: E501 + query_params.append(('per-page', local_var_params['per_page'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 + + return self.api_client.call_api( + '/projects/{owner}/{name}/recipes/repositories', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='RepositoryList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + def get_project_recipes(self, owner, name, **kwargs): # noqa: E501 - """Get project recipes # noqa: E501 + """Get project recipe versions # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -1296,7 +1459,7 @@ def get_project_recipes(self, owner, name, **kwargs): # noqa: E501 return self.get_project_recipes_with_http_info(owner, name, **kwargs) # noqa: E501 def get_project_recipes_with_http_info(self, owner, name, **kwargs): # noqa: E501 - """Get project recipes # noqa: E501 + """Get project recipe versions # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -1340,10 +1503,10 @@ def get_project_recipes_with_http_info(self, owner, name, **kwargs): # noqa: E5 local_var_params = locals() all_params = [ - 'owner', - 'name', - 'search', - 'page', + 'owner' + 'name' + 'search' + 'page' 'per_page' ] all_params.extend( @@ -1404,7 +1567,7 @@ def get_project_recipes_with_http_info(self, owner, name, **kwargs): # noqa: E5 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/recipes', 'GET', @@ -1435,15 +1598,15 @@ def list_projects(self, **kwargs): # noqa: E501 :param search: Search string to find projects :type search: str :param ids: The ID of a project to search for - :type ids: list[str] + :type ids: List[str] :param names: The name of the project - :type names: list[str] + :type names: List[str] :param owner: Owner of the project - :type owner: list[str] + :type owner: List[str] :param public: Boolean check for public/private projects :type public: bool :param permissions: Filter by permission on given resource - :type permissions: list[str] + :type permissions: List[str] :param sort_by: Key to sort the list by :type sort_by: ProjectSortKey :param sort_order: The order to sort the list @@ -1482,15 +1645,15 @@ def list_projects_with_http_info(self, **kwargs): # noqa: E501 :param search: Search string to find projects :type search: str :param ids: The ID of a project to search for - :type ids: list[str] + :type ids: List[str] :param names: The name of the project - :type names: list[str] + :type names: List[str] :param owner: Owner of the project - :type owner: list[str] + :type owner: List[str] :param public: Boolean check for public/private projects :type public: bool :param permissions: Filter by permission on given resource - :type permissions: list[str] + :type permissions: List[str] :param sort_by: Key to sort the list by :type sort_by: ProjectSortKey :param sort_order: The order to sort the list @@ -1525,15 +1688,15 @@ def list_projects_with_http_info(self, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'search', - 'ids', - 'names', - 'owner', - 'public', - 'permissions', - 'sort_by', - 'sort_order', - 'page', + 'search' + 'ids' + 'names' + 'owner' + 'public' + 'permissions' + 'sort_by' + 'sort_order' + 'page' 'per_page' ] all_params.extend( @@ -1568,18 +1731,14 @@ def list_projects_with_http_info(self, **kwargs): # noqa: E501 query_params.append(('search', local_var_params['search'])) # noqa: E501 if 'ids' in local_var_params and local_var_params['ids'] is not None: # noqa: E501 query_params.append(('ids', local_var_params['ids'])) # noqa: E501 - collection_formats['ids'] = 'multi' # noqa: E501 if 'names' in local_var_params and local_var_params['names'] is not None: # noqa: E501 query_params.append(('names', local_var_params['names'])) # noqa: E501 - collection_formats['names'] = 'multi' # noqa: E501 if 'owner' in local_var_params and local_var_params['owner'] is not None: # noqa: E501 query_params.append(('owner', local_var_params['owner'])) # noqa: E501 - collection_formats['owner'] = 'multi' # noqa: E501 if 'public' in local_var_params and local_var_params['public'] is not None: # noqa: E501 query_params.append(('public', local_var_params['public'])) # noqa: E501 if 'permissions' in local_var_params and local_var_params['permissions'] is not None: # noqa: E501 query_params.append(('permissions', local_var_params['permissions'])) # noqa: E501 - collection_formats['permissions'] = 'multi' # noqa: E501 if 'sort_by' in local_var_params and local_var_params['sort_by'] is not None: # noqa: E501 query_params.append(('sort_by', local_var_params['sort_by'])) # noqa: E501 if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501 @@ -1600,7 +1759,7 @@ def list_projects_with_http_info(self, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects', 'GET', @@ -1693,8 +1852,8 @@ def update_with_http_info(self, owner, name, project_update, **kwargs): # noqa: local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'project_update' ] all_params.extend( @@ -1755,7 +1914,7 @@ def update_with_http_info(self, owner, name, project_update, **kwargs): # noqa: ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}', 'PUT', @@ -1848,8 +2007,8 @@ def upsert_project_permission_with_http_info(self, owner, name, project_access_p local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'project_access_policy' ] all_params.extend( @@ -1910,7 +2069,7 @@ def upsert_project_permission_with_http_info(self, owner, name, project_access_p ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/permissions', 'PATCH', diff --git a/pollination_sdk/api/recipes_api.py b/pollination_sdk/api/recipes_api.py index 7a2d67894..ac4ddaa73 100644 --- a/pollination_sdk/api/recipes_api.py +++ b/pollination_sdk/api/recipes_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -109,7 +109,7 @@ def create_recipe_with_http_info(self, owner, repository_create, **kwargs): # n local_var_params = locals() all_params = [ - 'owner', + 'owner' 'repository_create' ] all_params.extend( @@ -164,7 +164,7 @@ def create_recipe_with_http_info(self, owner, repository_create, **kwargs): # n ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/recipes/{owner}', 'POST', @@ -259,8 +259,8 @@ def create_recipe_package_with_http_info(self, owner, name, new_recipe_package, local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'new_recipe_package' ] all_params.extend( @@ -321,7 +321,7 @@ def create_recipe_package_with_http_info(self, owner, name, new_recipe_package, ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/recipes/{owner}/{name}/tags', 'POST', @@ -412,7 +412,7 @@ def delete_recipe_with_http_info(self, owner, name, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'owner', + 'owner' 'name' ] all_params.extend( @@ -463,7 +463,7 @@ def delete_recipe_with_http_info(self, owner, name, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/recipes/{owner}/{name}', 'DELETE', @@ -558,8 +558,8 @@ def delete_recipe_org_permission_with_http_info(self, owner, name, repository_po local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'repository_policy_subject' ] all_params.extend( @@ -620,7 +620,7 @@ def delete_recipe_org_permission_with_http_info(self, owner, name, repository_po ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/recipes/{owner}/{name}/permissions', 'DELETE', @@ -711,7 +711,7 @@ def get_recipe_with_http_info(self, owner, name, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'owner', + 'owner' 'name' ] all_params.extend( @@ -762,7 +762,7 @@ def get_recipe_with_http_info(self, owner, name, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/recipes/{owner}/{name}', 'GET', @@ -800,9 +800,9 @@ def get_recipe_access_permissions(self, owner, name, **kwargs): # noqa: E501 :param per_page: Number of items per page :type per_page: int :param subject_type: The type of access policy subject - :type subject_type: list[str] + :type subject_type: List[str] :param permission: An access policy permission string - :type permission: list[str] + :type permission: List[str] :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -840,9 +840,9 @@ def get_recipe_access_permissions_with_http_info(self, owner, name, **kwargs): :param per_page: Number of items per page :type per_page: int :param subject_type: The type of access policy subject - :type subject_type: list[str] + :type subject_type: List[str] :param permission: An access policy permission string - :type permission: list[str] + :type permission: List[str] :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code @@ -869,11 +869,11 @@ def get_recipe_access_permissions_with_http_info(self, owner, name, **kwargs): local_var_params = locals() all_params = [ - 'owner', - 'name', - 'page', - 'per_page', - 'subject_type', + 'owner' + 'name' + 'page' + 'per_page' + 'subject_type' 'permission' ] all_params.extend( @@ -922,10 +922,8 @@ def get_recipe_access_permissions_with_http_info(self, owner, name, **kwargs): query_params.append(('per-page', local_var_params['per_page'])) # noqa: E501 if 'subject_type' in local_var_params and local_var_params['subject_type'] is not None: # noqa: E501 query_params.append(('subject_type', local_var_params['subject_type'])) # noqa: E501 - collection_formats['subject_type'] = 'multi' # noqa: E501 if 'permission' in local_var_params and local_var_params['permission'] is not None: # noqa: E501 query_params.append(('permission', local_var_params['permission'])) # noqa: E501 - collection_formats['permission'] = 'multi' # noqa: E501 header_params = {} @@ -938,7 +936,7 @@ def get_recipe_access_permissions_with_http_info(self, owner, name, **kwargs): ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/recipes/{owner}/{name}/permissions', 'GET', @@ -1033,8 +1031,8 @@ def get_recipe_by_tag_with_http_info(self, owner, name, tag, **kwargs): # noqa: local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'tag' ] all_params.extend( @@ -1091,7 +1089,7 @@ def get_recipe_by_tag_with_http_info(self, owner, name, tag, **kwargs): # noqa: ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/recipes/{owner}/{name}/tags/{tag}', 'GET', @@ -1198,11 +1196,11 @@ def list_recipe_tags_with_http_info(self, owner, name, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'owner', - 'name', - 'sort_by', - 'sort_order', - 'page', + 'owner' + 'name' + 'sort_by' + 'sort_order' + 'page' 'per_page' ] all_params.extend( @@ -1265,7 +1263,7 @@ def list_recipe_tags_with_http_info(self, owner, name, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/recipes/{owner}/{name}/tags', 'GET', @@ -1294,17 +1292,17 @@ def list_recipes(self, **kwargs): # noqa: E501 >>> result = thread.get() :param search: You know, for search - :type search: list[str] + :type search: List[str] :param name: The account name - :type name: list[str] + :type name: List[str] :param owner: Owner of the project - :type owner: list[str] + :type owner: List[str] :param public: Boolean check for public/private projects :type public: bool :param keyword: A keyword to index the repository by - :type keyword: list[str] + :type keyword: List[str] :param permission: Filter by permission on given resource - :type permission: list[str] + :type permission: List[str] :param sort_by: Key to sort the list by :type sort_by: RepositorySortKey :param sort_order: The order to sort the list @@ -1341,17 +1339,17 @@ def list_recipes_with_http_info(self, **kwargs): # noqa: E501 >>> result = thread.get() :param search: You know, for search - :type search: list[str] + :type search: List[str] :param name: The account name - :type name: list[str] + :type name: List[str] :param owner: Owner of the project - :type owner: list[str] + :type owner: List[str] :param public: Boolean check for public/private projects :type public: bool :param keyword: A keyword to index the repository by - :type keyword: list[str] + :type keyword: List[str] :param permission: Filter by permission on given resource - :type permission: list[str] + :type permission: List[str] :param sort_by: Key to sort the list by :type sort_by: RepositorySortKey :param sort_order: The order to sort the list @@ -1386,15 +1384,15 @@ def list_recipes_with_http_info(self, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'search', - 'name', - 'owner', - 'public', - 'keyword', - 'permission', - 'sort_by', - 'sort_order', - 'page', + 'search' + 'name' + 'owner' + 'public' + 'keyword' + 'permission' + 'sort_by' + 'sort_order' + 'page' 'per_page' ] all_params.extend( @@ -1427,21 +1425,16 @@ def list_recipes_with_http_info(self, **kwargs): # noqa: E501 query_params = [] if 'search' in local_var_params and local_var_params['search'] is not None: # noqa: E501 query_params.append(('search', local_var_params['search'])) # noqa: E501 - collection_formats['search'] = 'multi' # noqa: E501 if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501 query_params.append(('name', local_var_params['name'])) # noqa: E501 - collection_formats['name'] = 'multi' # noqa: E501 if 'owner' in local_var_params and local_var_params['owner'] is not None: # noqa: E501 query_params.append(('owner', local_var_params['owner'])) # noqa: E501 - collection_formats['owner'] = 'multi' # noqa: E501 if 'public' in local_var_params and local_var_params['public'] is not None: # noqa: E501 query_params.append(('public', local_var_params['public'])) # noqa: E501 if 'keyword' in local_var_params and local_var_params['keyword'] is not None: # noqa: E501 query_params.append(('keyword', local_var_params['keyword'])) # noqa: E501 - collection_formats['keyword'] = 'multi' # noqa: E501 if 'permission' in local_var_params and local_var_params['permission'] is not None: # noqa: E501 query_params.append(('permission', local_var_params['permission'])) # noqa: E501 - collection_formats['permission'] = 'multi' # noqa: E501 if 'sort_by' in local_var_params and local_var_params['sort_by'] is not None: # noqa: E501 query_params.append(('sort_by', local_var_params['sort_by'])) # noqa: E501 if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501 @@ -1462,7 +1455,7 @@ def list_recipes_with_http_info(self, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/recipes', 'GET', @@ -1557,8 +1550,8 @@ def update_recipe_with_http_info(self, owner, name, repository_update, **kwargs) local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'repository_update' ] all_params.extend( @@ -1619,7 +1612,7 @@ def update_recipe_with_http_info(self, owner, name, repository_update, **kwargs) ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/recipes/{owner}/{name}', 'PUT', @@ -1714,8 +1707,8 @@ def upsert_recipe_permission_with_http_info(self, owner, name, repository_access local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'repository_access_policy' ] all_params.extend( @@ -1776,7 +1769,7 @@ def upsert_recipe_permission_with_http_info(self, owner, name, repository_access ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/recipes/{owner}/{name}/permissions', 'PATCH', diff --git a/pollination_sdk/api/registries_api.py b/pollination_sdk/api/registries_api.py index 110197e5f..9412dcc05 100644 --- a/pollination_sdk/api/registries_api.py +++ b/pollination_sdk/api/registries_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -115,9 +115,9 @@ def get_package_with_http_info(self, owner, type, name, digest, **kwargs): # no local_var_params = locals() all_params = [ - 'owner', - 'type', - 'name', + 'owner' + 'type' + 'name' 'digest' ] all_params.extend( @@ -177,10 +177,10 @@ def get_package_with_http_info(self, owner, type, name, digest, **kwargs): # no body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json', 'application/x-tar']) # noqa: E501 + ['application/json''application/x-tar']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/registries/{owner}/{type}/{name}/{digest}', 'GET', @@ -231,7 +231,7 @@ def get_package_json(self, owner, type, name, digest, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: AnyOfRecipePluginBakedRecipe + :rtype: ResponseGetPackageJson """ kwargs['_return_http_data_only'] = True return self.get_package_json_with_http_info(owner, type, name, digest, **kwargs) # noqa: E501 @@ -275,16 +275,16 @@ def get_package_json_with_http_info(self, owner, type, name, digest, **kwargs): :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: tuple(AnyOfRecipePluginBakedRecipe, status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(ResponseGetPackageJson, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() all_params = [ - 'owner', - 'type', - 'name', - 'digest', + 'owner' + 'type' + 'name' + 'digest' 'baked' ] all_params.extend( @@ -349,7 +349,7 @@ def get_package_json_with_http_info(self, owner, type, name, digest, **kwargs): ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/registries/{owner}/{type}/{name}/{digest}/json', 'GET', @@ -359,7 +359,7 @@ def get_package_json_with_http_info(self, owner, type, name, digest, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='AnyOfRecipePluginBakedRecipe', # noqa: E501 + response_type='ResponseGetPackageJson', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -478,7 +478,7 @@ def get_registry_index_with_http_info(self, owner, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/registries/{owner}/index.json', 'GET', @@ -509,7 +509,7 @@ def post_plugin(self, owner, package, **kwargs): # noqa: E501 :param owner: (required) :type owner: str :param package: (required) - :type package: file + :type package: bytearray :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -540,7 +540,7 @@ def post_plugin_with_http_info(self, owner, package, **kwargs): # noqa: E501 :param owner: (required) :type owner: str :param package: (required) - :type package: file + :type package: bytearray :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code @@ -567,7 +567,7 @@ def post_plugin_with_http_info(self, owner, package, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'owner', + 'owner' 'package' ] all_params.extend( @@ -622,7 +622,7 @@ def post_plugin_with_http_info(self, owner, package, **kwargs): # noqa: E501 ['multipart/form-data']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/registries/{owner}/plugins', 'POST', @@ -653,7 +653,7 @@ def post_recipe(self, owner, package, **kwargs): # noqa: E501 :param owner: (required) :type owner: str :param package: (required) - :type package: file + :type package: bytearray :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -684,7 +684,7 @@ def post_recipe_with_http_info(self, owner, package, **kwargs): # noqa: E501 :param owner: (required) :type owner: str :param package: (required) - :type package: file + :type package: bytearray :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code @@ -711,7 +711,7 @@ def post_recipe_with_http_info(self, owner, package, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'owner', + 'owner' 'package' ] all_params.extend( @@ -766,7 +766,7 @@ def post_recipe_with_http_info(self, owner, package, **kwargs): # noqa: E501 ['multipart/form-data']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/registries/{owner}/recipes', 'POST', diff --git a/pollination_sdk/api/reports_api.py b/pollination_sdk/api/reports_api.py new file mode 100644 index 000000000..9e15a9532 --- /dev/null +++ b/pollination_sdk/api/reports_api.py @@ -0,0 +1,459 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from pollination_sdk.api_client import ApiClient +from pollination_sdk.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class ReportsApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_cad_license_usage_report(self, name, **kwargs): # noqa: E501 + """Get CAD license usage report for an account # noqa: E501 + + Get cad_license usage report for an account # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_cad_license_usage_report(name, async_req=True) + >>> result = thread.get() + + :param name: (required) + :type name: str + :param from_date: + :type from_date: date + :param to_date: + :type to_date: date + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ReportCADLicenseUsage + """ + kwargs['_return_http_data_only'] = True + return self.get_cad_license_usage_report_with_http_info(name, **kwargs) # noqa: E501 + + def get_cad_license_usage_report_with_http_info(self, name, **kwargs): # noqa: E501 + """Get CAD license usage report for an account # noqa: E501 + + Get cad_license usage report for an account # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_cad_license_usage_report_with_http_info(name, async_req=True) + >>> result = thread.get() + + :param name: (required) + :type name: str + :param from_date: + :type from_date: date + :param to_date: + :type to_date: date + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ReportCADLicenseUsage, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'name' + 'from_date' + 'to_date' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_cad_license_usage_report" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `get_cad_license_usage_report`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + + query_params = [] + if 'from_date' in local_var_params and local_var_params['from_date'] is not None: # noqa: E501 + query_params.append(('from_date', local_var_params['from_date'])) # noqa: E501 + if 'to_date' in local_var_params and local_var_params['to_date'] is not None: # noqa: E501 + query_params.append(('to_date', local_var_params['to_date'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 + + return self.api_client.call_api( + '/reports/{name}/cad-license-usage', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ReportCADLicenseUsage', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def get_compute_usage_report(self, name, **kwargs): # noqa: E501 + """Get compute usage report for an account # noqa: E501 + + Get compute usage report for an account # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_compute_usage_report(name, async_req=True) + >>> result = thread.get() + + :param name: (required) + :type name: str + :param from_date: + :type from_date: date + :param to_date: + :type to_date: date + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ReportComputeUsage + """ + kwargs['_return_http_data_only'] = True + return self.get_compute_usage_report_with_http_info(name, **kwargs) # noqa: E501 + + def get_compute_usage_report_with_http_info(self, name, **kwargs): # noqa: E501 + """Get compute usage report for an account # noqa: E501 + + Get compute usage report for an account # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_compute_usage_report_with_http_info(name, async_req=True) + >>> result = thread.get() + + :param name: (required) + :type name: str + :param from_date: + :type from_date: date + :param to_date: + :type to_date: date + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ReportComputeUsage, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'name' + 'from_date' + 'to_date' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_compute_usage_report" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `get_compute_usage_report`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + + query_params = [] + if 'from_date' in local_var_params and local_var_params['from_date'] is not None: # noqa: E501 + query_params.append(('from_date', local_var_params['from_date'])) # noqa: E501 + if 'to_date' in local_var_params and local_var_params['to_date'] is not None: # noqa: E501 + query_params.append(('to_date', local_var_params['to_date'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 + + return self.api_client.call_api( + '/reports/{name}/compute-usage', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ReportComputeUsage', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def get_org_member_usage_report(self, name, **kwargs): # noqa: E501 + """Get organization member usage report for an organization account # noqa: E501 + + Get compute usage report for an account # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_org_member_usage_report(name, async_req=True) + >>> result = thread.get() + + :param name: (required) + :type name: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ReportOrganizationMemberUsage + """ + kwargs['_return_http_data_only'] = True + return self.get_org_member_usage_report_with_http_info(name, **kwargs) # noqa: E501 + + def get_org_member_usage_report_with_http_info(self, name, **kwargs): # noqa: E501 + """Get organization member usage report for an organization account # noqa: E501 + + Get compute usage report for an account # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_org_member_usage_report_with_http_info(name, async_req=True) + >>> result = thread.get() + + :param name: (required) + :type name: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ReportOrganizationMemberUsage, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'name' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_org_member_usage_report" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `get_org_member_usage_report`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 + + return self.api_client.call_api( + '/reports/{name}/organization-member-usage', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ReportOrganizationMemberUsage', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/pollination_sdk/api/runs_api.py b/pollination_sdk/api/runs_api.py index 09f4a1cc2..a722195e2 100644 --- a/pollination_sdk/api/runs_api.py +++ b/pollination_sdk/api/runs_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -113,8 +113,8 @@ def cancel_run_with_http_info(self, owner, name, run_id, **kwargs): # noqa: E50 local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'run_id' ] all_params.extend( @@ -171,7 +171,7 @@ def cancel_run_with_http_info(self, owner, name, run_id, **kwargs): # noqa: E50 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/runs/{run_id}/cancel', 'PUT', @@ -221,7 +221,7 @@ def download_run_artifact(self, owner, name, run_id, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: object + :rtype: str """ kwargs['_return_http_data_only'] = True return self.download_run_artifact_with_http_info(owner, name, run_id, **kwargs) # noqa: E501 @@ -264,15 +264,15 @@ def download_run_artifact_with_http_info(self, owner, name, run_id, **kwargs): :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(str, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() all_params = [ - 'owner', - 'name', - 'run_id', + 'owner' + 'name' + 'run_id' 'path' ] all_params.extend( @@ -331,7 +331,7 @@ def download_run_artifact_with_http_info(self, owner, name, run_id, **kwargs): ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/runs/{run_id}/artifacts/download', 'GET', @@ -341,7 +341,7 @@ def download_run_artifact_with_http_info(self, owner, name, run_id, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # noqa: E501 + response_type='str', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -379,7 +379,7 @@ def get_all_run_steps(self, owner, name, run_id, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: list[StepStatus] + :rtype: List[StepStatus] """ kwargs['_return_http_data_only'] = True return self.get_all_run_steps_with_http_info(owner, name, run_id, **kwargs) # noqa: E501 @@ -420,14 +420,14 @@ def get_all_run_steps_with_http_info(self, owner, name, run_id, **kwargs): # no :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: tuple(list[StepStatus], status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(List[StepStatus], status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'run_id' ] all_params.extend( @@ -484,7 +484,7 @@ def get_all_run_steps_with_http_info(self, owner, name, run_id, **kwargs): # no ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/runs/{run_id}/all-steps', 'GET', @@ -494,7 +494,7 @@ def get_all_run_steps_with_http_info(self, owner, name, run_id, **kwargs): # no body=body_params, post_params=form_params, files=local_var_files, - response_type='list[StepStatus]', # noqa: E501 + response_type='List[StepStatus]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -579,8 +579,8 @@ def get_run_with_http_info(self, owner, name, run_id, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'owner', - 'name', + 'owner' + 'name' 'run_id' ] all_params.extend( @@ -637,7 +637,7 @@ def get_run_with_http_info(self, owner, name, run_id, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/runs/{run_id}', 'GET', @@ -736,9 +736,9 @@ def get_run_output_with_http_info(self, owner, name, run_id, output_name, **kwar local_var_params = locals() all_params = [ - 'owner', - 'name', - 'run_id', + 'owner' + 'name' + 'run_id' 'output_name' ] all_params.extend( @@ -801,7 +801,7 @@ def get_run_output_with_http_info(self, owner, name, run_id, output_name, **kwar ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/runs/{run_id}/outputs/{output_name}', 'GET', @@ -900,9 +900,9 @@ def get_run_step_logs_with_http_info(self, owner, name, run_id, step_id, **kwarg local_var_params = locals() all_params = [ - 'owner', - 'name', - 'run_id', + 'owner' + 'name' + 'run_id' 'step_id' ] all_params.extend( @@ -965,7 +965,7 @@ def get_run_step_logs_with_http_info(self, owner, name, run_id, step_id, **kwarg ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/runs/{run_id}/steps/{step_id}/logs', 'GET', @@ -1003,7 +1003,7 @@ def get_run_steps(self, owner, name, run_id, **kwargs): # noqa: E501 :param status: :type status: StepStatusEnum :param step_id: - :type step_id: list[str] + :type step_id: List[str] :param until_generation: :type until_generation: str :param since_generation: @@ -1049,7 +1049,7 @@ def get_run_steps_with_http_info(self, owner, name, run_id, **kwargs): # noqa: :param status: :type status: StepStatusEnum :param step_id: - :type step_id: list[str] + :type step_id: List[str] :param until_generation: :type until_generation: str :param since_generation: @@ -1084,14 +1084,14 @@ def get_run_steps_with_http_info(self, owner, name, run_id, **kwargs): # noqa: local_var_params = locals() all_params = [ - 'owner', - 'name', - 'run_id', - 'status', - 'step_id', - 'until_generation', - 'since_generation', - 'page', + 'owner' + 'name' + 'run_id' + 'status' + 'step_id' + 'until_generation' + 'since_generation' + 'page' 'per_page' ] all_params.extend( @@ -1144,7 +1144,6 @@ def get_run_steps_with_http_info(self, owner, name, run_id, **kwargs): # noqa: query_params.append(('status', local_var_params['status'])) # noqa: E501 if 'step_id' in local_var_params and local_var_params['step_id'] is not None: # noqa: E501 query_params.append(('step_id', local_var_params['step_id'])) # noqa: E501 - collection_formats['step_id'] = 'multi' # noqa: E501 if 'until_generation' in local_var_params and local_var_params['until_generation'] is not None: # noqa: E501 query_params.append(('until_generation', local_var_params['until_generation'])) # noqa: E501 if 'since_generation' in local_var_params and local_var_params['since_generation'] is not None: # noqa: E501 @@ -1165,7 +1164,7 @@ def get_run_steps_with_http_info(self, owner, name, run_id, **kwargs): # noqa: ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/runs/{run_id}/steps', 'GET', @@ -1201,7 +1200,7 @@ def list_run_artifacts(self, owner, name, run_id, **kwargs): # noqa: E501 :param run_id: (required) :type run_id: str :param path: The path to an file within a project folder - :type path: list[str] + :type path: List[str] :param page: Page number starting from 1 :type page: int :param per_page: Number of items per page @@ -1219,7 +1218,7 @@ def list_run_artifacts(self, owner, name, run_id, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: object + :rtype: FileMetaList """ kwargs['_return_http_data_only'] = True return self.list_run_artifacts_with_http_info(owner, name, run_id, **kwargs) # noqa: E501 @@ -1241,7 +1240,7 @@ def list_run_artifacts_with_http_info(self, owner, name, run_id, **kwargs): # n :param run_id: (required) :type run_id: str :param path: The path to an file within a project folder - :type path: list[str] + :type path: List[str] :param page: Page number starting from 1 :type page: int :param per_page: Number of items per page @@ -1266,17 +1265,17 @@ def list_run_artifacts_with_http_info(self, owner, name, run_id, **kwargs): # n :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(FileMetaList, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() all_params = [ - 'owner', - 'name', - 'run_id', - 'path', - 'page', + 'owner' + 'name' + 'run_id' + 'path' + 'page' 'per_page' ] all_params.extend( @@ -1312,8 +1311,8 @@ def list_run_artifacts_with_http_info(self, owner, name, run_id, **kwargs): # n if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `page` when calling `list_run_artifacts`, must be a value greater than or equal to `1`") # noqa: E501 - if self.api_client.client_side_validation and 'per_page' in local_var_params and local_var_params['per_page'] > 100: # noqa: E501 - raise ApiValueError("Invalid value for parameter `per_page` when calling `list_run_artifacts`, must be a value less than or equal to `100`") # noqa: E501 + if self.api_client.client_side_validation and 'per_page' in local_var_params and local_var_params['per_page'] > 10000: # noqa: E501 + raise ApiValueError("Invalid value for parameter `per_page` when calling `list_run_artifacts`, must be a value less than or equal to `10000`") # noqa: E501 collection_formats = {} path_params = {} @@ -1327,7 +1326,6 @@ def list_run_artifacts_with_http_info(self, owner, name, run_id, **kwargs): # n query_params = [] if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 - collection_formats['path'] = 'multi' # noqa: E501 if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 query_params.append(('page', local_var_params['page'])) # noqa: E501 if 'per_page' in local_var_params and local_var_params['per_page'] is not None: # noqa: E501 @@ -1344,7 +1342,7 @@ def list_run_artifacts_with_http_info(self, owner, name, run_id, **kwargs): # n ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/runs/{run_id}/artifacts', 'GET', @@ -1354,7 +1352,7 @@ def list_run_artifacts_with_http_info(self, owner, name, run_id, **kwargs): # n body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # noqa: E501 + response_type='FileMetaList', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -1378,7 +1376,7 @@ def list_runs(self, owner, name, **kwargs): # noqa: E501 :param name: (required) :type name: str :param job_id: - :type job_id: list[str] + :type job_id: List[str] :param status: :type status: RunStatusEnum :param page: Page number starting from 1 @@ -1418,7 +1416,7 @@ def list_runs_with_http_info(self, owner, name, **kwargs): # noqa: E501 :param name: (required) :type name: str :param job_id: - :type job_id: list[str] + :type job_id: List[str] :param status: :type status: RunStatusEnum :param page: Page number starting from 1 @@ -1451,11 +1449,11 @@ def list_runs_with_http_info(self, owner, name, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'owner', - 'name', - 'job_id', - 'status', - 'page', + 'owner' + 'name' + 'job_id' + 'status' + 'page' 'per_page' ] all_params.extend( @@ -1500,7 +1498,6 @@ def list_runs_with_http_info(self, owner, name, **kwargs): # noqa: E501 query_params = [] if 'job_id' in local_var_params and local_var_params['job_id'] is not None: # noqa: E501 query_params.append(('job_id', local_var_params['job_id'])) # noqa: E501 - collection_formats['job_id'] = 'multi' # noqa: E501 if 'status' in local_var_params and local_var_params['status'] is not None: # noqa: E501 query_params.append(('status', local_var_params['status'])) # noqa: E501 if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 @@ -1519,7 +1516,7 @@ def list_runs_with_http_info(self, owner, name, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/runs', 'GET', @@ -1553,7 +1550,7 @@ def query_results(self, owner, name, **kwargs): # noqa: E501 :param name: (required) :type name: str :param job_id: - :type job_id: list[str] + :type job_id: List[str] :param status: :type status: RunStatusEnum :param page: Page number starting from 1 @@ -1593,7 +1590,7 @@ def query_results_with_http_info(self, owner, name, **kwargs): # noqa: E501 :param name: (required) :type name: str :param job_id: - :type job_id: list[str] + :type job_id: List[str] :param status: :type status: RunStatusEnum :param page: Page number starting from 1 @@ -1626,11 +1623,11 @@ def query_results_with_http_info(self, owner, name, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'owner', - 'name', - 'job_id', - 'status', - 'page', + 'owner' + 'name' + 'job_id' + 'status' + 'page' 'per_page' ] all_params.extend( @@ -1675,7 +1672,6 @@ def query_results_with_http_info(self, owner, name, **kwargs): # noqa: E501 query_params = [] if 'job_id' in local_var_params and local_var_params['job_id'] is not None: # noqa: E501 query_params.append(('job_id', local_var_params['job_id'])) # noqa: E501 - collection_formats['job_id'] = 'multi' # noqa: E501 if 'status' in local_var_params and local_var_params['status'] is not None: # noqa: E501 query_params.append(('status', local_var_params['status'])) # noqa: E501 if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 @@ -1694,7 +1690,7 @@ def query_results_with_http_info(self, owner, name, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/results', 'GET', @@ -1793,9 +1789,9 @@ def retry_run_with_http_info(self, owner, name, run_id, retry_config, **kwargs): local_var_params = locals() all_params = [ - 'owner', - 'name', - 'run_id', + 'owner' + 'name' + 'run_id' 'retry_config' ] all_params.extend( @@ -1862,7 +1858,7 @@ def retry_run_with_http_info(self, owner, name, run_id, retry_config, **kwargs): ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/projects/{owner}/{name}/runs/{run_id}/retry', 'PUT', diff --git a/pollination_sdk/api/subscription_plans_api.py b/pollination_sdk/api/subscription_plans_api.py index e48c9d5b4..9b55ceaef 100644 --- a/pollination_sdk/api/subscription_plans_api.py +++ b/pollination_sdk/api/subscription_plans_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -61,7 +61,7 @@ def list_subscription_plans(self, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: list[SubscriptionPlan] + :rtype: List[SubscriptionPlan] """ kwargs['_return_http_data_only'] = True return self.list_subscription_plans_with_http_info(**kwargs) # noqa: E501 @@ -97,7 +97,7 @@ def list_subscription_plans_with_http_info(self, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: tuple(list[SubscriptionPlan], status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(List[SubscriptionPlan], status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -153,7 +153,7 @@ def list_subscription_plans_with_http_info(self, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='list[SubscriptionPlan]', # noqa: E501 + response_type='List[SubscriptionPlan]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 diff --git a/pollination_sdk/api/subscriptions_api.py b/pollination_sdk/api/subscriptions_api.py index 00cd1e16b..d87e342f5 100644 --- a/pollination_sdk/api/subscriptions_api.py +++ b/pollination_sdk/api/subscriptions_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -147,7 +147,7 @@ def cancel_subscription_with_http_info(self, subscription_id, **kwargs): # noqa ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/subscriptions/{subscription_id}', 'DELETE', @@ -280,7 +280,7 @@ def create_subscription_with_http_info(self, subscription_create, **kwargs): # ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/subscriptions/', 'POST', @@ -409,7 +409,7 @@ def get_subscription_with_http_info(self, subscription_id, **kwargs): # noqa: E ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/subscriptions/{subscription_id}', 'GET', @@ -452,7 +452,7 @@ def list_pollination_subscriptions(self, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: list[Subscription] + :rtype: List[Subscription] """ kwargs['_return_http_data_only'] = True return self.list_pollination_subscriptions_with_http_info(**kwargs) # noqa: E501 @@ -488,7 +488,7 @@ def list_pollination_subscriptions_with_http_info(self, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: tuple(list[Subscription], status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(List[Subscription], status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -534,7 +534,7 @@ def list_pollination_subscriptions_with_http_info(self, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/subscriptions/', 'GET', @@ -544,7 +544,7 @@ def list_pollination_subscriptions_with_http_info(self, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='list[Subscription]', # noqa: E501 + response_type='List[Subscription]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -577,7 +577,7 @@ def list_subscription_payments(self, subscription_id, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: list[Payment] + :rtype: List[Payment] """ kwargs['_return_http_data_only'] = True return self.list_subscription_payments_with_http_info(subscription_id, **kwargs) # noqa: E501 @@ -613,7 +613,7 @@ def list_subscription_payments_with_http_info(self, subscription_id, **kwargs): :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: tuple(list[Payment], status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(List[Payment], status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -663,7 +663,7 @@ def list_subscription_payments_with_http_info(self, subscription_id, **kwargs): ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/subscriptions/{subscription_id}/payments', 'GET', @@ -673,7 +673,7 @@ def list_subscription_payments_with_http_info(self, subscription_id, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='list[Payment]', # noqa: E501 + response_type='List[Payment]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -706,7 +706,7 @@ def list_subscription_quotas(self, subscription_id, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: list[Quota] + :rtype: List[Quota] """ kwargs['_return_http_data_only'] = True return self.list_subscription_quotas_with_http_info(subscription_id, **kwargs) # noqa: E501 @@ -742,7 +742,7 @@ def list_subscription_quotas_with_http_info(self, subscription_id, **kwargs): # :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: tuple(list[Quota], status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(List[Quota], status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -792,7 +792,7 @@ def list_subscription_quotas_with_http_info(self, subscription_id, **kwargs): # ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/subscriptions/{subscription_id}/quotas', 'GET', @@ -802,7 +802,7 @@ def list_subscription_quotas_with_http_info(self, subscription_id, **kwargs): # body=body_params, post_params=form_params, files=local_var_files, - response_type='list[Quota]', # noqa: E501 + response_type='List[Quota]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -881,7 +881,7 @@ def update_subscription_with_http_info(self, subscription_id, subscription_updat local_var_params = locals() all_params = [ - 'subscription_id', + 'subscription_id' 'subscription_update' ] all_params.extend( @@ -936,7 +936,7 @@ def update_subscription_with_http_info(self, subscription_id, subscription_updat ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/subscriptions/{subscription_id}', 'PUT', @@ -1025,7 +1025,7 @@ def update_subscription_preivew_with_http_info(self, subscription_id, subscripti local_var_params = locals() all_params = [ - 'subscription_id', + 'subscription_id' 'subscription_update' ] all_params.extend( @@ -1080,7 +1080,7 @@ def update_subscription_preivew_with_http_info(self, subscription_id, subscripti ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/subscriptions/{subscription_id}/preview', 'PUT', diff --git a/pollination_sdk/api/teams_api.py b/pollination_sdk/api/teams_api.py index 299a1617b..1f95f9d35 100644 --- a/pollination_sdk/api/teams_api.py +++ b/pollination_sdk/api/teams_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -109,7 +109,7 @@ def create_team_with_http_info(self, org_name, team_create, **kwargs): # noqa: local_var_params = locals() all_params = [ - 'org_name', + 'org_name' 'team_create' ] all_params.extend( @@ -164,7 +164,7 @@ def create_team_with_http_info(self, org_name, team_create, **kwargs): # noqa: ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/orgs/{org_name}/teams', 'POST', @@ -259,8 +259,8 @@ def delete_org_team_member_with_http_info(self, org_name, team_slug, username, * local_var_params = locals() all_params = [ - 'org_name', - 'team_slug', + 'org_name' + 'team_slug' 'username' ] all_params.extend( @@ -317,7 +317,7 @@ def delete_org_team_member_with_http_info(self, org_name, team_slug, username, * ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/orgs/{org_name}/teams/{team_slug}/members/{username}', 'DELETE', @@ -408,7 +408,7 @@ def delete_team_with_http_info(self, org_name, team_slug, **kwargs): # noqa: E5 local_var_params = locals() all_params = [ - 'org_name', + 'org_name' 'team_slug' ] all_params.extend( @@ -459,7 +459,7 @@ def delete_team_with_http_info(self, org_name, team_slug, **kwargs): # noqa: E5 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/orgs/{org_name}/teams/{team_slug}', 'DELETE', @@ -550,7 +550,7 @@ def get_org_team_members_with_http_info(self, org_name, team_slug, **kwargs): # local_var_params = locals() all_params = [ - 'org_name', + 'org_name' 'team_slug' ] all_params.extend( @@ -601,7 +601,7 @@ def get_org_team_members_with_http_info(self, org_name, team_slug, **kwargs): # ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/orgs/{org_name}/teams/{team_slug}/members', 'GET', @@ -692,7 +692,7 @@ def get_team_with_http_info(self, org_name, team_slug, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'org_name', + 'org_name' 'team_slug' ] all_params.extend( @@ -775,11 +775,11 @@ def list_org_teams(self, org_name, **kwargs): # noqa: E501 :param org_name: (required) :type org_name: str :param search: You know, for search - :type search: list[str] + :type search: List[str] :param name: The account name - :type name: list[str] + :type name: List[str] :param member: The ID of a user - :type member: list[str] + :type member: List[str] :param page: Page number starting from 1 :type page: int :param per_page: Number of items per page @@ -815,11 +815,11 @@ def list_org_teams_with_http_info(self, org_name, **kwargs): # noqa: E501 :param org_name: (required) :type org_name: str :param search: You know, for search - :type search: list[str] + :type search: List[str] :param name: The account name - :type name: list[str] + :type name: List[str] :param member: The ID of a user - :type member: list[str] + :type member: List[str] :param page: Page number starting from 1 :type page: int :param per_page: Number of items per page @@ -850,11 +850,11 @@ def list_org_teams_with_http_info(self, org_name, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'org_name', - 'search', - 'name', - 'member', - 'page', + 'org_name' + 'search' + 'name' + 'member' + 'page' 'per_page' ] all_params.extend( @@ -893,13 +893,10 @@ def list_org_teams_with_http_info(self, org_name, **kwargs): # noqa: E501 query_params = [] if 'search' in local_var_params and local_var_params['search'] is not None: # noqa: E501 query_params.append(('search', local_var_params['search'])) # noqa: E501 - collection_formats['search'] = 'multi' # noqa: E501 if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501 query_params.append(('name', local_var_params['name'])) # noqa: E501 - collection_formats['name'] = 'multi' # noqa: E501 if 'member' in local_var_params and local_var_params['member'] is not None: # noqa: E501 query_params.append(('member', local_var_params['member'])) # noqa: E501 - collection_formats['member'] = 'multi' # noqa: E501 if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 query_params.append(('page', local_var_params['page'])) # noqa: E501 if 'per_page' in local_var_params and local_var_params['per_page'] is not None: # noqa: E501 @@ -1011,8 +1008,8 @@ def update_team_with_http_info(self, org_name, team_slug, team_update, **kwargs) local_var_params = locals() all_params = [ - 'org_name', - 'team_slug', + 'org_name' + 'team_slug' 'team_update' ] all_params.extend( @@ -1073,7 +1070,7 @@ def update_team_with_http_info(self, org_name, team_slug, team_update, **kwargs) ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/orgs/{org_name}/teams/{team_slug}', 'PUT', @@ -1172,9 +1169,9 @@ def upsert_org_team_member_with_http_info(self, org_name, team_slug, username, r local_var_params = locals() all_params = [ - 'org_name', - 'team_slug', - 'username', + 'org_name' + 'team_slug' + 'username' 'role' ] all_params.extend( @@ -1237,7 +1234,7 @@ def upsert_org_team_member_with_http_info(self, org_name, team_slug, username, r ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/orgs/{org_name}/teams/{team_slug}/members/{username}/{role}', 'PATCH', diff --git a/pollination_sdk/api/user_api.py b/pollination_sdk/api/user_api.py index 182fd29ae..ce5c817cd 100644 --- a/pollination_sdk/api/user_api.py +++ b/pollination_sdk/api/user_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -273,7 +273,7 @@ def get_me_with_http_info(self, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/user', 'GET', @@ -314,7 +314,7 @@ def get_roles(self, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: list[str] + :rtype: List[str] """ kwargs['_return_http_data_only'] = True return self.get_roles_with_http_info(**kwargs) # noqa: E501 @@ -348,7 +348,7 @@ def get_roles_with_http_info(self, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: tuple(list[str], status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(List[str], status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -391,7 +391,7 @@ def get_roles_with_http_info(self, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/user/roles', 'GET', @@ -401,7 +401,7 @@ def get_roles_with_http_info(self, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='list[str]', # noqa: E501 + response_type='List[str]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -526,7 +526,7 @@ def update_user_profile_with_http_info(self, user_update, **kwargs): # noqa: E5 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APIKeyAuth', 'JWTAuth'] # noqa: E501 + auth_settings = ['JWTAuth''APIKeyAuth'] # noqa: E501 return self.api_client.call_api( '/user', 'PUT', diff --git a/pollination_sdk/api/users_api.py b/pollination_sdk/api/users_api.py index 49333e979..20b10e712 100644 --- a/pollination_sdk/api/users_api.py +++ b/pollination_sdk/api/users_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -373,8 +373,8 @@ def list_users_with_http_info(self, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'search', - 'page', + 'search' + 'page' 'per_page' ] all_params.extend( diff --git a/pollination_sdk/api_client.py b/pollination_sdk/api_client.py index e83c5f41b..5f3ec98a5 100644 --- a/pollination_sdk/api_client.py +++ b/pollination_sdk/api_client.py @@ -4,7 +4,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -79,7 +79,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'pollination/1.0.0/python' + self.user_agent = 'pollination/1.6.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/pollination_sdk/api_response.py b/pollination_sdk/api_response.py new file mode 100644 index 000000000..9bc7c11f6 --- /dev/null +++ b/pollination_sdk/api_response.py @@ -0,0 +1,21 @@ +"""API response object.""" + +from __future__ import annotations +from typing import Optional, Generic, Mapping, TypeVar +from pydantic import Field, StrictInt, StrictBytes, BaseModel + +T = TypeVar("T") + +class ApiResponse(BaseModel, Generic[T]): + """ + API response object + """ + + status_code: StrictInt = Field(description="HTTP status code") + headers: Optional[Mapping[str, str]] = Field(None, description="HTTP headers") + data: T = Field(description="Deserialized data given the data type") + raw_data: StrictBytes = Field(description="Raw data (HTTP response body)") + + model_config = { + "arbitrary_types_allowed": True + } diff --git a/pollination_sdk/configuration.py b/pollination_sdk/configuration.py index 81c4d51ef..1d7bdf3c5 100644 --- a/pollination_sdk/configuration.py +++ b/pollination_sdk/configuration.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -411,7 +411,7 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.0.0\n"\ + "Version of the API: 1.6.0\n"\ "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) @@ -422,7 +422,7 @@ def get_host_settings(self): """ return [ { - 'url': "/", + 'url': "", 'description': "No description provided", } ] diff --git a/pollination_sdk/exceptions.py b/pollination_sdk/exceptions.py index d6ccefa23..b718bc78e 100644 --- a/pollination_sdk/exceptions.py +++ b/pollination_sdk/exceptions.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/pollination_sdk/models/__init__.py b/pollination_sdk/models/__init__.py index 921dfc5e3..5e363f075 100644 --- a/pollination_sdk/models/__init__.py +++ b/pollination_sdk/models/__init__.py @@ -6,7 +6,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -36,12 +36,12 @@ from pollination_sdk.models.application_version import ApplicationVersion from pollination_sdk.models.application_version_list import ApplicationVersionList from pollination_sdk.models.baked_recipe import BakedRecipe +from pollination_sdk.models.baked_recipe_templates_inner import BakedRecipeTemplatesInner from pollination_sdk.models.billing_info import BillingInfo from pollination_sdk.models.billing_option import BillingOption -from pollination_sdk.models.body_cython_function_or_method_owner_plugins_post import BodyCythonFunctionOrMethodOwnerPluginsPost -from pollination_sdk.models.body_post_recipe_owner_recipes_post import BodyPostRecipeOwnerRecipesPost from pollination_sdk.models.build_status import BuildStatus from pollination_sdk.models.build_status_enum import BuildStatusEnum +from pollination_sdk.models.cad_license_usage import CADLicenseUsage from pollination_sdk.models.card_type import CardType from pollination_sdk.models.cloud_job import CloudJob from pollination_sdk.models.cloud_job_list import CloudJobList @@ -49,8 +49,10 @@ from pollination_sdk.models.dag import DAG from pollination_sdk.models.dag_array_input import DAGArrayInput from pollination_sdk.models.dag_array_input_alias import DAGArrayInputAlias +from pollination_sdk.models.dag_array_input_alias_inner import DAGArrayInputAliasInner from pollination_sdk.models.dag_array_output import DAGArrayOutput from pollination_sdk.models.dag_array_output_alias import DAGArrayOutputAlias +from pollination_sdk.models.dag_array_output_alias_inner import DAGArrayOutputAliasInner from pollination_sdk.models.dag_boolean_input import DAGBooleanInput from pollination_sdk.models.dag_boolean_input_alias import DAGBooleanInputAlias from pollination_sdk.models.dag_boolean_output import DAGBooleanOutput @@ -67,6 +69,7 @@ from pollination_sdk.models.dag_generic_input_alias import DAGGenericInputAlias from pollination_sdk.models.dag_generic_output import DAGGenericOutput from pollination_sdk.models.dag_generic_output_alias import DAGGenericOutputAlias +from pollination_sdk.models.dag_inputs_inner import DAGInputsInner from pollination_sdk.models.dag_integer_input import DAGIntegerInput from pollination_sdk.models.dag_integer_input_alias import DAGIntegerInputAlias from pollination_sdk.models.dag_integer_output import DAGIntegerOutput @@ -81,6 +84,7 @@ from pollination_sdk.models.dag_number_input_alias import DAGNumberInputAlias from pollination_sdk.models.dag_number_output import DAGNumberOutput from pollination_sdk.models.dag_number_output_alias import DAGNumberOutputAlias +from pollination_sdk.models.dag_outputs_inner import DAGOutputsInner from pollination_sdk.models.dag_path_input import DAGPathInput from pollination_sdk.models.dag_path_input_alias import DAGPathInputAlias from pollination_sdk.models.dag_path_output import DAGPathOutput @@ -90,16 +94,25 @@ from pollination_sdk.models.dag_string_output import DAGStringOutput from pollination_sdk.models.dag_string_output_alias import DAGStringOutputAlias from pollination_sdk.models.dag_task import DAGTask +from pollination_sdk.models.dag_task_arguments_inner import DAGTaskArgumentsInner from pollination_sdk.models.dag_task_loop import DAGTaskLoop +from pollination_sdk.models.dag_task_returns_inner import DAGTaskReturnsInner from pollination_sdk.models.daily_usage import DailyUsage +from pollination_sdk.models.default import Default from pollination_sdk.models.dependency import Dependency from pollination_sdk.models.dependency_kind import DependencyKind from pollination_sdk.models.deployment_config import DeploymentConfig +from pollination_sdk.models.deployment_config_update import DeploymentConfigUpdate from pollination_sdk.models.docker_config import DockerConfig from pollination_sdk.models.file_meta import FileMeta from pollination_sdk.models.file_meta_list import FileMetaList from pollination_sdk.models.file_reference import FileReference from pollination_sdk.models.folder_reference import FolderReference +from pollination_sdk.models.from1 import From1 +from pollination_sdk.models.from2 import From2 +from pollination_sdk.models.from3 import From3 +from pollination_sdk.models.from4 import From4 +from pollination_sdk.models.from5 import From5 from pollination_sdk.models.function import Function from pollination_sdk.models.function_array_input import FunctionArrayInput from pollination_sdk.models.function_array_output import FunctionArrayOutput @@ -109,12 +122,14 @@ from pollination_sdk.models.function_file_output import FunctionFileOutput from pollination_sdk.models.function_folder_input import FunctionFolderInput from pollination_sdk.models.function_folder_output import FunctionFolderOutput +from pollination_sdk.models.function_inputs_inner import FunctionInputsInner from pollination_sdk.models.function_integer_input import FunctionIntegerInput from pollination_sdk.models.function_integer_output import FunctionIntegerOutput from pollination_sdk.models.function_json_object_input import FunctionJSONObjectInput from pollination_sdk.models.function_json_object_output import FunctionJSONObjectOutput from pollination_sdk.models.function_number_input import FunctionNumberInput from pollination_sdk.models.function_number_output import FunctionNumberOutput +from pollination_sdk.models.function_outputs_inner import FunctionOutputsInner from pollination_sdk.models.function_path_input import FunctionPathInput from pollination_sdk.models.function_path_output import FunctionPathOutput from pollination_sdk.models.function_string_input import FunctionStringInput @@ -130,6 +145,8 @@ from pollination_sdk.models.item_type import ItemType from pollination_sdk.models.job import Job from pollination_sdk.models.job_argument import JobArgument +from pollination_sdk.models.job_arguments_inner_inner import JobArgumentsInnerInner +from pollination_sdk.models.job_compute_usage import JobComputeUsage from pollination_sdk.models.job_path_argument import JobPathArgument from pollination_sdk.models.job_status import JobStatus from pollination_sdk.models.job_status_enum import JobStatusEnum @@ -147,8 +164,10 @@ from pollination_sdk.models.local_config import LocalConfig from pollination_sdk.models.location import Location from pollination_sdk.models.maintainer import Maintainer +from pollination_sdk.models.manifest import Manifest from pollination_sdk.models.meta_data import MetaData from pollination_sdk.models.metadata import Metadata +from pollination_sdk.models.model_from import ModelFrom from pollination_sdk.models.new_application_version import NewApplicationVersion from pollination_sdk.models.new_plugin_package import NewPluginPackage from pollination_sdk.models.new_recipe_package import NewRecipePackage @@ -157,6 +176,7 @@ from pollination_sdk.models.organization_list import OrganizationList from pollination_sdk.models.organization_member import OrganizationMember from pollination_sdk.models.organization_member_list import OrganizationMemberList +from pollination_sdk.models.organization_member_usage import OrganizationMemberUsage from pollination_sdk.models.organization_role_enum import OrganizationRoleEnum from pollination_sdk.models.organization_update import OrganizationUpdate from pollination_sdk.models.package_sort_key import PackageSortKey @@ -194,6 +214,9 @@ from pollination_sdk.models.recipe_interface_list import RecipeInterfaceList from pollination_sdk.models.recipe_package import RecipePackage from pollination_sdk.models.recipe_package_list import RecipePackageList +from pollination_sdk.models.report_cad_license_usage import ReportCADLicenseUsage +from pollination_sdk.models.report_compute_usage import ReportComputeUsage +from pollination_sdk.models.report_organization_member_usage import ReportOrganizationMemberUsage from pollination_sdk.models.repository import Repository from pollination_sdk.models.repository_access_policy import RepositoryAccessPolicy from pollination_sdk.models.repository_access_policy_list import RepositoryAccessPolicyList @@ -206,6 +229,7 @@ from pollination_sdk.models.repository_update import RepositoryUpdate from pollination_sdk.models.repository_user_permissions import RepositoryUserPermissions from pollination_sdk.models.resources_duration import ResourcesDuration +from pollination_sdk.models.response_get_package_json import ResponseGetPackageJson from pollination_sdk.models.retry_config import RetryConfig from pollination_sdk.models.role_enum import RoleEnum from pollination_sdk.models.run import Run @@ -213,13 +237,17 @@ from pollination_sdk.models.run_meta import RunMeta from pollination_sdk.models.run_progress import RunProgress from pollination_sdk.models.run_result_list import RunResultList +from pollination_sdk.models.run_result_list_resources_inner_inner import RunResultListResourcesInnerInner from pollination_sdk.models.run_status import RunStatus from pollination_sdk.models.run_status_enum import RunStatusEnum +from pollination_sdk.models.run_status_inputs_inner import RunStatusInputsInner +from pollination_sdk.models.run_status_outputs_inner import RunStatusOutputsInner from pollination_sdk.models.s3 import S3 from pollination_sdk.models.s3_upload_request import S3UploadRequest from pollination_sdk.models.sdk_enum import SDKEnum from pollination_sdk.models.scripting_languages import ScriptingLanguages from pollination_sdk.models.sort_enum import SortEnum +from pollination_sdk.models.source import Source from pollination_sdk.models.status_type import StatusType from pollination_sdk.models.step_array_input import StepArrayInput from pollination_sdk.models.step_array_output import StepArrayOutput @@ -242,6 +270,7 @@ from pollination_sdk.models.step_status_enum import StepStatusEnum from pollination_sdk.models.step_string_input import StepStringInput from pollination_sdk.models.step_string_output import StepStringOutput +from pollination_sdk.models.subject import Subject from pollination_sdk.models.subject_type import SubjectType from pollination_sdk.models.subscription import Subscription from pollination_sdk.models.subscription_create import SubscriptionCreate @@ -274,6 +303,7 @@ from pollination_sdk.models.user_public_list import UserPublicList from pollination_sdk.models.user_update import UserUpdate from pollination_sdk.models.validation_error import ValidationError +from pollination_sdk.models.validation_error_loc_inner import ValidationErrorLocInner from pollination_sdk.models.value_file_reference import ValueFileReference from pollination_sdk.models.value_folder_reference import ValueFolderReference from pollination_sdk.models.value_list_reference import ValueListReference diff --git a/pollination_sdk/models/accessor.py b/pollination_sdk/models/accessor.py index 3b4820740..d46dee24b 100644 --- a/pollination_sdk/models/accessor.py +++ b/pollination_sdk/models/accessor.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class Accessor(object): and the value is json key in definition. """ openapi_types = { - 'permission': 'Permission', - 'subject': 'AnyOfAccountPublicTeam' + 'permission': 'Permission' + 'subject': 'Subject' } attribute_map = { - 'permission': 'permission', + 'permission': 'permission' 'subject': 'subject' } @@ -85,7 +85,7 @@ def subject(self): :return: The subject of this Accessor. # noqa: E501 - :rtype: AnyOfAccountPublicTeam + :rtype: Subject """ return self._subject @@ -95,7 +95,7 @@ def subject(self, subject): :param subject: The subject of this Accessor. # noqa: E501 - :type subject: AnyOfAccountPublicTeam + :type subject: Subject """ if self.local_vars_configuration.client_side_validation and subject is None: # noqa: E501 raise ValueError("Invalid value for `subject`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/account_public.py b/pollination_sdk/models/account_public.py index 1dc873a8e..5f4b43758 100644 --- a/pollination_sdk/models/account_public.py +++ b/pollination_sdk/models/account_public.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class AccountPublic(object): and the value is json key in definition. """ openapi_types = { - 'account_type': 'str', - 'description': 'str', - 'display_name': 'str', - 'id': 'str', - 'name': 'str', + 'account_type': 'str' + 'description': 'str' + 'display_name': 'str' + 'id': 'str' + 'name': 'str' 'picture_url': 'str' } attribute_map = { - 'account_type': 'account_type', - 'description': 'description', - 'display_name': 'display_name', - 'id': 'id', - 'name': 'name', + 'account_type': 'account_type' + 'description': 'description' + 'display_name': 'display_name' + 'id': 'id' + 'name': 'name' 'picture_url': 'picture_url' } diff --git a/pollination_sdk/models/account_type.py b/pollination_sdk/models/account_type.py index 6ce6edea1..a6637a079 100644 --- a/pollination_sdk/models/account_type.py +++ b/pollination_sdk/models/account_type.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,8 +29,8 @@ class AccountType(object): """ allowed enum values """ - ORG = "org" - USER = "user" + ORG = 'org' + USER = 'user' allowable_values = [ORG, USER] # noqa: E501 diff --git a/pollination_sdk/models/activation.py b/pollination_sdk/models/activation.py index eed103126..ec9da5f0a 100644 --- a/pollination_sdk/models/activation.py +++ b/pollination_sdk/models/activation.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,36 +34,36 @@ class Activation(object): and the value is json key in definition. """ openapi_types = { - 'app_version': 'str', - 'created_at': 'datetime', - 'hostname': 'str', - 'id': 'str', - 'last_synced_at': 'datetime', - 'lease_expires_at': 'datetime', - 'license_id': 'str', - 'location': 'Location', - 'metadata': 'list[Metadata]', - 'offline': 'bool', - 'os': 'str', - 'os_version': 'str', - 'updated_at': 'datetime', + 'app_version': 'str' + 'created_at': 'datetime' + 'hostname': 'str' + 'id': 'str' + 'last_synced_at': 'datetime' + 'lease_expires_at': 'datetime' + 'license_id': 'str' + 'location': 'Location' + 'metadata': 'List[Metadata]' + 'offline': 'bool' + 'os': 'str' + 'os_version': 'str' + 'updated_at': 'datetime' 'user': 'AccountPublic' } attribute_map = { - 'app_version': 'app_version', - 'created_at': 'created_at', - 'hostname': 'hostname', - 'id': 'id', - 'last_synced_at': 'last_synced_at', - 'lease_expires_at': 'lease_expires_at', - 'license_id': 'license_id', - 'location': 'location', - 'metadata': 'metadata', - 'offline': 'offline', - 'os': 'os', - 'os_version': 'os_version', - 'updated_at': 'updated_at', + 'app_version': 'app_version' + 'created_at': 'created_at' + 'hostname': 'hostname' + 'id': 'id' + 'last_synced_at': 'last_synced_at' + 'lease_expires_at': 'lease_expires_at' + 'license_id': 'license_id' + 'location': 'location' + 'metadata': 'metadata' + 'offline': 'offline' + 'os': 'os' + 'os_version': 'os_version' + 'updated_at': 'updated_at' 'user': 'user' } @@ -294,7 +294,7 @@ def metadata(self): :return: The metadata of this Activation. # noqa: E501 - :rtype: list[Metadata] + :rtype: List[Metadata] """ return self._metadata @@ -304,7 +304,7 @@ def metadata(self, metadata): :param metadata: The metadata of this Activation. # noqa: E501 - :type metadata: list[Metadata] + :type metadata: List[Metadata] """ self._metadata = metadata diff --git a/pollination_sdk/models/activation_list.py b/pollination_sdk/models/activation_list.py index 423c1652f..84bc19c0e 100644 --- a/pollination_sdk/models/activation_list.py +++ b/pollination_sdk/models/activation_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,7 +34,7 @@ class ActivationList(object): and the value is json key in definition. """ openapi_types = { - 'resources': 'list[Activation]' + 'resources': 'List[Activation]' } attribute_map = { @@ -58,7 +58,7 @@ def resources(self): :return: The resources of this ActivationList. # noqa: E501 - :rtype: list[Activation] + :rtype: List[Activation] """ return self._resources @@ -68,7 +68,7 @@ def resources(self, resources): :param resources: The resources of this ActivationList. # noqa: E501 - :type resources: list[Activation] + :type resources: List[Activation] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/api_token.py b/pollination_sdk/models/api_token.py index 7be73f6d4..c7cf70a3b 100644 --- a/pollination_sdk/models/api_token.py +++ b/pollination_sdk/models/api_token.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class APIToken(object): and the value is json key in definition. """ openapi_types = { - 'claims': 'dict(str, str)', - 'name': 'str', + 'claims': 'Dict[str, str]' + 'name': 'str' 'token_id': 'str' } attribute_map = { - 'claims': 'claims', - 'name': 'name', + 'claims': 'claims' + 'name': 'name' 'token_id': 'token_id' } @@ -68,7 +68,7 @@ def claims(self): Key value pairs of auth claims the API token is entitled to # noqa: E501 :return: The claims of this APIToken. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._claims @@ -79,7 +79,7 @@ def claims(self, claims): Key value pairs of auth claims the API token is entitled to # noqa: E501 :param claims: The claims of this APIToken. # noqa: E501 - :type claims: dict(str, str) + :type claims: Dict[str, str] """ self._claims = claims diff --git a/pollination_sdk/models/api_token_create.py b/pollination_sdk/models/api_token_create.py index 21868103b..3525ac439 100644 --- a/pollination_sdk/models/api_token_create.py +++ b/pollination_sdk/models/api_token_create.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class APITokenCreate(object): and the value is json key in definition. """ openapi_types = { - 'claims': 'dict(str, str)', - 'name': 'str', + 'claims': 'Dict[str, str]' + 'name': 'str' 'token_id': 'str' } attribute_map = { - 'claims': 'claims', - 'name': 'name', + 'claims': 'claims' + 'name': 'name' 'token_id': 'token_id' } @@ -68,7 +68,7 @@ def claims(self): Key value pairs of auth claims the API token is entitled to # noqa: E501 :return: The claims of this APITokenCreate. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._claims @@ -79,7 +79,7 @@ def claims(self, claims): Key value pairs of auth claims the API token is entitled to # noqa: E501 :param claims: The claims of this APITokenCreate. # noqa: E501 - :type claims: dict(str, str) + :type claims: Dict[str, str] """ self._claims = claims diff --git a/pollination_sdk/models/api_token_list.py b/pollination_sdk/models/api_token_list.py index fb03080fb..62f5ec8e4 100644 --- a/pollination_sdk/models/api_token_list.py +++ b/pollination_sdk/models/api_token_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class APITokenList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[APIToken]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[APIToken]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this APITokenList. # noqa: E501 - :rtype: list[APIToken] + :rtype: List[APIToken] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this APITokenList. # noqa: E501 - :type resources: list[APIToken] + :type resources: List[APIToken] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/api_token_private.py b/pollination_sdk/models/api_token_private.py index e50315f1c..11a30f595 100644 --- a/pollination_sdk/models/api_token_private.py +++ b/pollination_sdk/models/api_token_private.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,16 +34,16 @@ class APITokenPrivate(object): and the value is json key in definition. """ openapi_types = { - 'claims': 'dict(str, str)', - 'name': 'str', - 'token': 'str', + 'claims': 'Dict[str, str]' + 'name': 'str' + 'token': 'str' 'token_id': 'str' } attribute_map = { - 'claims': 'claims', - 'name': 'name', - 'token': 'token', + 'claims': 'claims' + 'name': 'name' + 'token': 'token' 'token_id': 'token_id' } @@ -72,7 +72,7 @@ def claims(self): Key value pairs of auth claims the API token is entitled to # noqa: E501 :return: The claims of this APITokenPrivate. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._claims @@ -83,7 +83,7 @@ def claims(self, claims): Key value pairs of auth claims the API token is entitled to # noqa: E501 :param claims: The claims of this APITokenPrivate. # noqa: E501 - :type claims: dict(str, str) + :type claims: Dict[str, str] """ self._claims = claims diff --git a/pollination_sdk/models/application.py b/pollination_sdk/models/application.py index 56074adda..c4a6f4c38 100644 --- a/pollination_sdk/models/application.py +++ b/pollination_sdk/models/application.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,40 +34,40 @@ class Application(object): and the value is json key in definition. """ openapi_types = { - 'deployment_config': 'DeploymentConfig', - 'description': 'str', - 'has_been_deployed': 'bool', - 'id': 'str', - 'image': 'str', - 'is_paid': 'bool', - 'keywords': 'list[str]', - 'license': 'str', - 'name': 'str', - 'owner': 'AccountPublic', - 'permissions': 'UserPermission', - 'public': 'bool', - 'sdk': 'SDKEnum', - 'slug': 'str', - 'source': 'str', + 'deployment_config': 'DeploymentConfig' + 'description': 'str' + 'has_been_deployed': 'bool' + 'id': 'str' + 'image': 'str' + 'is_paid': 'bool' + 'keywords': 'List[str]' + 'license': 'str' + 'name': 'str' + 'owner': 'AccountPublic' + 'permissions': 'UserPermission' + 'public': 'bool' + 'sdk': 'SDKEnum' + 'slug': 'str' + 'source': 'str' 'url': 'str' } attribute_map = { - 'deployment_config': 'deployment_config', - 'description': 'description', - 'has_been_deployed': 'has_been_deployed', - 'id': 'id', - 'image': 'image', - 'is_paid': 'is_paid', - 'keywords': 'keywords', - 'license': 'license', - 'name': 'name', - 'owner': 'owner', - 'permissions': 'permissions', - 'public': 'public', - 'sdk': 'sdk', - 'slug': 'slug', - 'source': 'source', + 'deployment_config': 'deployment_config' + 'description': 'description' + 'has_been_deployed': 'has_been_deployed' + 'id': 'id' + 'image': 'image' + 'is_paid': 'is_paid' + 'keywords': 'keywords' + 'license': 'license' + 'name': 'name' + 'owner': 'owner' + 'permissions': 'permissions' + 'public': 'public' + 'sdk': 'sdk' + 'slug': 'slug' + 'source': 'source' 'url': 'url' } @@ -271,7 +271,7 @@ def keywords(self): A list of keywords associated with the application # noqa: E501 :return: The keywords of this Application. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._keywords @@ -282,7 +282,7 @@ def keywords(self, keywords): A list of keywords associated with the application # noqa: E501 :param keywords: The keywords of this Application. # noqa: E501 - :type keywords: list[str] + :type keywords: List[str] """ self._keywords = keywords diff --git a/pollination_sdk/models/application_access_policy.py b/pollination_sdk/models/application_access_policy.py index bf1f859ab..3627b5b24 100644 --- a/pollination_sdk/models/application_access_policy.py +++ b/pollination_sdk/models/application_access_policy.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class ApplicationAccessPolicy(object): and the value is json key in definition. """ openapi_types = { - 'permission': 'Permission', + 'permission': 'Permission' 'subject': 'PolicySubject' } attribute_map = { - 'permission': 'permission', + 'permission': 'permission' 'subject': 'subject' } diff --git a/pollination_sdk/models/application_access_policy_list.py b/pollination_sdk/models/application_access_policy_list.py index 94d2d4750..b370f96de 100644 --- a/pollination_sdk/models/application_access_policy_list.py +++ b/pollination_sdk/models/application_access_policy_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class ApplicationAccessPolicyList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[ApplicationAccessPolicy]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[ApplicationAccessPolicy]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this ApplicationAccessPolicyList. # noqa: E501 - :rtype: list[ApplicationAccessPolicy] + :rtype: List[ApplicationAccessPolicy] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this ApplicationAccessPolicyList. # noqa: E501 - :type resources: list[ApplicationAccessPolicy] + :type resources: List[ApplicationAccessPolicy] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/application_create.py b/pollination_sdk/models/application_create.py index 2ea06a95d..b7dd7ce60 100644 --- a/pollination_sdk/models/application_create.py +++ b/pollination_sdk/models/application_create.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,28 +34,28 @@ class ApplicationCreate(object): and the value is json key in definition. """ openapi_types = { - 'deployment_config': 'DeploymentConfig', - 'description': 'str', - 'image': 'str', - 'is_paid': 'bool', - 'keywords': 'list[str]', - 'license': 'str', - 'name': 'str', - 'public': 'bool', - 'sdk': 'SDKEnum', + 'deployment_config': 'DeploymentConfig' + 'description': 'str' + 'image': 'str' + 'is_paid': 'bool' + 'keywords': 'List[str]' + 'license': 'str' + 'name': 'str' + 'public': 'bool' + 'sdk': 'SDKEnum' 'source': 'str' } attribute_map = { - 'deployment_config': 'deployment_config', - 'description': 'description', - 'image': 'image', - 'is_paid': 'is_paid', - 'keywords': 'keywords', - 'license': 'license', - 'name': 'name', - 'public': 'public', - 'sdk': 'sdk', + 'deployment_config': 'deployment_config' + 'description': 'description' + 'image': 'image' + 'is_paid': 'is_paid' + 'keywords': 'keywords' + 'license': 'license' + 'name': 'name' + 'public': 'public' + 'sdk': 'sdk' 'source': 'source' } @@ -196,7 +196,7 @@ def keywords(self): A list of keywords associated with the application # noqa: E501 :return: The keywords of this ApplicationCreate. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._keywords @@ -207,7 +207,7 @@ def keywords(self, keywords): A list of keywords associated with the application # noqa: E501 :param keywords: The keywords of this ApplicationCreate. # noqa: E501 - :type keywords: list[str] + :type keywords: List[str] """ self._keywords = keywords diff --git a/pollination_sdk/models/application_deployment.py b/pollination_sdk/models/application_deployment.py index 8bef7e515..c7f15dc0c 100644 --- a/pollination_sdk/models/application_deployment.py +++ b/pollination_sdk/models/application_deployment.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,16 +34,16 @@ class ApplicationDeployment(object): and the value is json key in definition. """ openapi_types = { - 'author': 'AccountPublic', - 'ready': 'bool', - 'url': 'str', + 'author': 'AccountPublic' + 'ready': 'bool' + 'url': 'str' 'version': 'ApplicationVersion' } attribute_map = { - 'author': 'author', - 'ready': 'ready', - 'url': 'url', + 'author': 'author' + 'ready': 'ready' + 'url': 'url' 'version': 'version' } diff --git a/pollination_sdk/models/application_list.py b/pollination_sdk/models/application_list.py index 1e9141c38..cca6a14a5 100644 --- a/pollination_sdk/models/application_list.py +++ b/pollination_sdk/models/application_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class ApplicationList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[Application]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[Application]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this ApplicationList. # noqa: E501 - :rtype: list[Application] + :rtype: List[Application] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this ApplicationList. # noqa: E501 - :type resources: list[Application] + :type resources: List[Application] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/application_policy_subject.py b/pollination_sdk/models/application_policy_subject.py index 0e684f737..fe24ade2d 100644 --- a/pollination_sdk/models/application_policy_subject.py +++ b/pollination_sdk/models/application_policy_subject.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class ApplicationPolicySubject(object): and the value is json key in definition. """ openapi_types = { - 'name': 'str', + 'name': 'str' 'subject_type': 'SubjectType' } attribute_map = { - 'name': 'name', + 'name': 'name' 'subject_type': 'subject_type' } diff --git a/pollination_sdk/models/application_sort_key.py b/pollination_sdk/models/application_sort_key.py index cc7479a80..fb563e08f 100644 --- a/pollination_sdk/models/application_sort_key.py +++ b/pollination_sdk/models/application_sort_key.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,9 +29,9 @@ class ApplicationSortKey(object): """ allowed enum values """ - CREATED_AT = "created_at" - UPDATED_AT = "updated_at" - NAME = "name" + CREATED_AT = 'created_at' + UPDATED_AT = 'updated_at' + NAME = 'name' allowable_values = [CREATED_AT, UPDATED_AT, NAME] # noqa: E501 diff --git a/pollination_sdk/models/application_update.py b/pollination_sdk/models/application_update.py index b8eba38b5..1e2d53cec 100644 --- a/pollination_sdk/models/application_update.py +++ b/pollination_sdk/models/application_update.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,22 +34,22 @@ class ApplicationUpdate(object): and the value is json key in definition. """ openapi_types = { - 'deployment_config': 'DeploymentConfig', - 'description': 'str', - 'is_paid': 'bool', - 'keywords': 'list[str]', - 'license': 'str', - 'public': 'bool', + 'deployment_config': 'DeploymentConfigUpdate' + 'description': 'str' + 'is_paid': 'bool' + 'keywords': 'List[str]' + 'license': 'str' + 'public': 'bool' 'source': 'str' } attribute_map = { - 'deployment_config': 'deployment_config', - 'description': 'description', - 'is_paid': 'is_paid', - 'keywords': 'keywords', - 'license': 'license', - 'public': 'public', + 'deployment_config': 'deployment_config' + 'description': 'description' + 'is_paid': 'is_paid' + 'keywords': 'keywords' + 'license': 'license' + 'public': 'public' 'source': 'source' } @@ -90,7 +90,7 @@ def deployment_config(self): The deployment configuration for the application # noqa: E501 :return: The deployment_config of this ApplicationUpdate. # noqa: E501 - :rtype: DeploymentConfig + :rtype: DeploymentConfigUpdate """ return self._deployment_config @@ -101,7 +101,7 @@ def deployment_config(self, deployment_config): The deployment configuration for the application # noqa: E501 :param deployment_config: The deployment_config of this ApplicationUpdate. # noqa: E501 - :type deployment_config: DeploymentConfig + :type deployment_config: DeploymentConfigUpdate """ self._deployment_config = deployment_config @@ -159,7 +159,7 @@ def keywords(self): A list of keywords associated with the application # noqa: E501 :return: The keywords of this ApplicationUpdate. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._keywords @@ -170,7 +170,7 @@ def keywords(self, keywords): A list of keywords associated with the application # noqa: E501 :param keywords: The keywords of this ApplicationUpdate. # noqa: E501 - :type keywords: list[str] + :type keywords: List[str] """ self._keywords = keywords diff --git a/pollination_sdk/models/application_version.py b/pollination_sdk/models/application_version.py index 98b95ad39..87b73239e 100644 --- a/pollination_sdk/models/application_version.py +++ b/pollination_sdk/models/application_version.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class ApplicationVersion(object): and the value is json key in definition. """ openapi_types = { - 'author': 'AccountPublic', - 'build_status': 'BuildStatus', - 'created_at': 'datetime', - 'id': 'str', - 'release_notes': 'str', + 'author': 'AccountPublic' + 'build_status': 'BuildStatus' + 'created_at': 'datetime' + 'id': 'str' + 'release_notes': 'str' 'tag': 'str' } attribute_map = { - 'author': 'author', - 'build_status': 'build_status', - 'created_at': 'created_at', - 'id': 'id', - 'release_notes': 'release_notes', + 'author': 'author' + 'build_status': 'build_status' + 'created_at': 'created_at' + 'id': 'id' + 'release_notes': 'release_notes' 'tag': 'tag' } diff --git a/pollination_sdk/models/application_version_list.py b/pollination_sdk/models/application_version_list.py index db6d46e26..3bfd15cff 100644 --- a/pollination_sdk/models/application_version_list.py +++ b/pollination_sdk/models/application_version_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class ApplicationVersionList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[ApplicationVersion]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[ApplicationVersion]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this ApplicationVersionList. # noqa: E501 - :rtype: list[ApplicationVersion] + :rtype: List[ApplicationVersion] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this ApplicationVersionList. # noqa: E501 - :type resources: list[ApplicationVersion] + :type resources: List[ApplicationVersion] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/baked_recipe.py b/pollination_sdk/models/baked_recipe.py index 41bc3ff76..c03c811b6 100644 --- a/pollination_sdk/models/baked_recipe.py +++ b/pollination_sdk/models/baked_recipe.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,24 +34,24 @@ class BakedRecipe(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'api_version': 'str', - 'dependencies': 'list[Dependency]', - 'digest': 'str', - 'flow': 'list[DAG]', - 'metadata': 'MetaData', - 'templates': 'list[AnyOfTemplateFunctionDAG]', + 'annotations': 'Dict[str, str]' + 'api_version': 'str' + 'dependencies': 'List[Dependency]' + 'digest': 'str' + 'flow': 'List[DAG]' + 'metadata': 'MetaData' + 'templates': 'List[BakedRecipeTemplatesInner]' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'api_version': 'api_version', - 'dependencies': 'dependencies', - 'digest': 'digest', - 'flow': 'flow', - 'metadata': 'metadata', - 'templates': 'templates', + 'annotations': 'annotations' + 'api_version': 'api_version' + 'dependencies': 'dependencies' + 'digest': 'digest' + 'flow': 'flow' + 'metadata': 'metadata' + 'templates': 'templates' 'type': 'type' } @@ -92,7 +92,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this BakedRecipe. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -103,7 +103,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this BakedRecipe. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -139,7 +139,7 @@ def dependencies(self): A list of plugins and other recipes this recipe depends on. # noqa: E501 :return: The dependencies of this BakedRecipe. # noqa: E501 - :rtype: list[Dependency] + :rtype: List[Dependency] """ return self._dependencies @@ -150,7 +150,7 @@ def dependencies(self, dependencies): A list of plugins and other recipes this recipe depends on. # noqa: E501 :param dependencies: The dependencies of this BakedRecipe. # noqa: E501 - :type dependencies: list[Dependency] + :type dependencies: List[Dependency] """ self._dependencies = dependencies @@ -185,7 +185,7 @@ def flow(self): A list of tasks to create a DAG recipe. # noqa: E501 :return: The flow of this BakedRecipe. # noqa: E501 - :rtype: list[DAG] + :rtype: List[DAG] """ return self._flow @@ -196,7 +196,7 @@ def flow(self, flow): A list of tasks to create a DAG recipe. # noqa: E501 :param flow: The flow of this BakedRecipe. # noqa: E501 - :type flow: list[DAG] + :type flow: List[DAG] """ if self.local_vars_configuration.client_side_validation and flow is None: # noqa: E501 raise ValueError("Invalid value for `flow`, must not be `None`") # noqa: E501 @@ -233,7 +233,7 @@ def templates(self): A list of templates. Templates can be Function or a DAG. # noqa: E501 :return: The templates of this BakedRecipe. # noqa: E501 - :rtype: list[AnyOfTemplateFunctionDAG] + :rtype: List[BakedRecipeTemplatesInner] """ return self._templates @@ -244,7 +244,7 @@ def templates(self, templates): A list of templates. Templates can be Function or a DAG. # noqa: E501 :param templates: The templates of this BakedRecipe. # noqa: E501 - :type templates: list[AnyOfTemplateFunctionDAG] + :type templates: List[BakedRecipeTemplatesInner] """ if self.local_vars_configuration.client_side_validation and templates is None: # noqa: E501 raise ValueError("Invalid value for `templates`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/baked_recipe_templates_inner.py b/pollination_sdk/models/baked_recipe_templates_inner.py new file mode 100644 index 000000000..c8e6e0308 --- /dev/null +++ b/pollination_sdk/models/baked_recipe_templates_inner.py @@ -0,0 +1,435 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class BakedRecipeTemplatesInner(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'annotations': 'Dict[str, str]' + 'command': 'str' + 'config': 'PluginConfig' + 'description': 'str' + 'inputs': 'List[DAGInputsInner]' + 'language': 'ScriptingLanguages' + 'name': 'str' + 'outputs': 'List[DAGOutputsInner]' + 'source': 'str' + 'type': 'str' + 'fail_fast': 'bool' + 'tasks': 'List[DAGTask]' + } + + attribute_map = { + 'annotations': 'annotations' + 'command': 'command' + 'config': 'config' + 'description': 'description' + 'inputs': 'inputs' + 'language': 'language' + 'name': 'name' + 'outputs': 'outputs' + 'source': 'source' + 'type': 'type' + 'fail_fast': 'fail_fast' + 'tasks': 'tasks' + } + + def __init__(self, annotations=None, command=None, config=None, description=None, inputs=None, language=None, name=None, outputs=None, source=None, type='DAG', fail_fast=True, tasks=None, local_vars_configuration=None): # noqa: E501 + """BakedRecipeTemplatesInner - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._annotations = None + self._command = None + self._config = None + self._description = None + self._inputs = None + self._language = None + self._name = None + self._outputs = None + self._source = None + self._type = None + self._fail_fast = None + self._tasks = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + if command is not None: + self.command = command + self.config = config + if description is not None: + self.description = description + if inputs is not None: + self.inputs = inputs + if language is not None: + self.language = language + self.name = name + if outputs is not None: + self.outputs = outputs + if source is not None: + self.source = source + if type is not None: + self.type = type + if fail_fast is not None: + self.fail_fast = fail_fast + self.tasks = tasks + + @property + def annotations(self): + """Gets the annotations of this BakedRecipeTemplatesInner. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this BakedRecipeTemplatesInner. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this BakedRecipeTemplatesInner. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this BakedRecipeTemplatesInner. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def command(self): + """Gets the command of this BakedRecipeTemplatesInner. # noqa: E501 + + Full shell command for this function. Each function accepts only one command. The command will be executed as a shell command in plugin. For running several commands after each other use && between the commands or pipe data from one to another using | # noqa: E501 + + :return: The command of this BakedRecipeTemplatesInner. # noqa: E501 + :rtype: str + """ + return self._command + + @command.setter + def command(self, command): + """Sets the command of this BakedRecipeTemplatesInner. + + Full shell command for this function. Each function accepts only one command. The command will be executed as a shell command in plugin. For running several commands after each other use && between the commands or pipe data from one to another using | # noqa: E501 + + :param command: The command of this BakedRecipeTemplatesInner. # noqa: E501 + :type command: str + """ + + self._command = command + + @property + def config(self): + """Gets the config of this BakedRecipeTemplatesInner. # noqa: E501 + + The plugin config to use for this function # noqa: E501 + + :return: The config of this BakedRecipeTemplatesInner. # noqa: E501 + :rtype: PluginConfig + """ + return self._config + + @config.setter + def config(self, config): + """Sets the config of this BakedRecipeTemplatesInner. + + The plugin config to use for this function # noqa: E501 + + :param config: The config of this BakedRecipeTemplatesInner. # noqa: E501 + :type config: PluginConfig + """ + if self.local_vars_configuration.client_side_validation and config is None: # noqa: E501 + raise ValueError("Invalid value for `config`, must not be `None`") # noqa: E501 + + self._config = config + + @property + def description(self): + """Gets the description of this BakedRecipeTemplatesInner. # noqa: E501 + + Function description. A short human readable description for this function. # noqa: E501 + + :return: The description of this BakedRecipeTemplatesInner. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this BakedRecipeTemplatesInner. + + Function description. A short human readable description for this function. # noqa: E501 + + :param description: The description of this BakedRecipeTemplatesInner. # noqa: E501 + :type description: str + """ + + self._description = description + + @property + def inputs(self): + """Gets the inputs of this BakedRecipeTemplatesInner. # noqa: E501 + + Inputs for the DAG. # noqa: E501 + + :return: The inputs of this BakedRecipeTemplatesInner. # noqa: E501 + :rtype: List[DAGInputsInner] + """ + return self._inputs + + @inputs.setter + def inputs(self, inputs): + """Sets the inputs of this BakedRecipeTemplatesInner. + + Inputs for the DAG. # noqa: E501 + + :param inputs: The inputs of this BakedRecipeTemplatesInner. # noqa: E501 + :type inputs: List[DAGInputsInner] + """ + + self._inputs = inputs + + @property + def language(self): + """Gets the language of this BakedRecipeTemplatesInner. # noqa: E501 + + Programming language of the script. Currently only Python is supported. # noqa: E501 + + :return: The language of this BakedRecipeTemplatesInner. # noqa: E501 + :rtype: ScriptingLanguages + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this BakedRecipeTemplatesInner. + + Programming language of the script. Currently only Python is supported. # noqa: E501 + + :param language: The language of this BakedRecipeTemplatesInner. # noqa: E501 + :type language: ScriptingLanguages + """ + + self._language = language + + @property + def name(self): + """Gets the name of this BakedRecipeTemplatesInner. # noqa: E501 + + A unique name for this dag. # noqa: E501 + + :return: The name of this BakedRecipeTemplatesInner. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this BakedRecipeTemplatesInner. + + A unique name for this dag. # noqa: E501 + + :param name: The name of this BakedRecipeTemplatesInner. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def outputs(self): + """Gets the outputs of this BakedRecipeTemplatesInner. # noqa: E501 + + Outputs of the DAG that can be used by other DAGs. # noqa: E501 + + :return: The outputs of this BakedRecipeTemplatesInner. # noqa: E501 + :rtype: List[DAGOutputsInner] + """ + return self._outputs + + @outputs.setter + def outputs(self, outputs): + """Sets the outputs of this BakedRecipeTemplatesInner. + + Outputs of the DAG that can be used by other DAGs. # noqa: E501 + + :param outputs: The outputs of this BakedRecipeTemplatesInner. # noqa: E501 + :type outputs: List[DAGOutputsInner] + """ + + self._outputs = outputs + + @property + def source(self): + """Gets the source of this BakedRecipeTemplatesInner. # noqa: E501 + + Source contains the source code of the script to execute. # noqa: E501 + + :return: The source of this BakedRecipeTemplatesInner. # noqa: E501 + :rtype: str + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this BakedRecipeTemplatesInner. + + Source contains the source code of the script to execute. # noqa: E501 + + :param source: The source of this BakedRecipeTemplatesInner. # noqa: E501 + :type source: str + """ + + self._source = source + + @property + def type(self): + """Gets the type of this BakedRecipeTemplatesInner. # noqa: E501 + + + :return: The type of this BakedRecipeTemplatesInner. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this BakedRecipeTemplatesInner. + + + :param type: The type of this BakedRecipeTemplatesInner. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^DAG$', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^DAG$/`") # noqa: E501 + + self._type = type + + @property + def fail_fast(self): + """Gets the fail_fast of this BakedRecipeTemplatesInner. # noqa: E501 + + Stop scheduling new steps, as soon as it detects that one of the DAG nodes is failed. Default is True. # noqa: E501 + + :return: The fail_fast of this BakedRecipeTemplatesInner. # noqa: E501 + :rtype: bool + """ + return self._fail_fast + + @fail_fast.setter + def fail_fast(self, fail_fast): + """Sets the fail_fast of this BakedRecipeTemplatesInner. + + Stop scheduling new steps, as soon as it detects that one of the DAG nodes is failed. Default is True. # noqa: E501 + + :param fail_fast: The fail_fast of this BakedRecipeTemplatesInner. # noqa: E501 + :type fail_fast: bool + """ + + self._fail_fast = fail_fast + + @property + def tasks(self): + """Gets the tasks of this BakedRecipeTemplatesInner. # noqa: E501 + + Tasks are a list of DAG steps # noqa: E501 + + :return: The tasks of this BakedRecipeTemplatesInner. # noqa: E501 + :rtype: List[DAGTask] + """ + return self._tasks + + @tasks.setter + def tasks(self, tasks): + """Sets the tasks of this BakedRecipeTemplatesInner. + + Tasks are a list of DAG steps # noqa: E501 + + :param tasks: The tasks of this BakedRecipeTemplatesInner. # noqa: E501 + :type tasks: List[DAGTask] + """ + if self.local_vars_configuration.client_side_validation and tasks is None: # noqa: E501 + raise ValueError("Invalid value for `tasks`, must not be `None`") # noqa: E501 + + self._tasks = tasks + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BakedRecipeTemplatesInner): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, BakedRecipeTemplatesInner): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/billing_info.py b/pollination_sdk/models/billing_info.py index 7867fec1c..c9f42f181 100644 --- a/pollination_sdk/models/billing_info.py +++ b/pollination_sdk/models/billing_info.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,28 +34,28 @@ class BillingInfo(object): and the value is json key in definition. """ openapi_types = { - 'cancel_url': 'str', - 'last_payment': 'SubscriptionPayment', - 'next_payment': 'SubscriptionPayment', - 'paused_at': 'datetime', - 'paused_from': 'datetime', - 'paused_reason': 'PausedReason', - 'payment_information': 'PaymentMethod', - 'signup_date': 'datetime', - 'update_url': 'str', + 'cancel_url': 'str' + 'last_payment': 'SubscriptionPayment' + 'next_payment': 'SubscriptionPayment' + 'paused_at': 'datetime' + 'paused_from': 'datetime' + 'paused_reason': 'PausedReason' + 'payment_information': 'PaymentMethod' + 'signup_date': 'datetime' + 'update_url': 'str' 'user_email': 'str' } attribute_map = { - 'cancel_url': 'cancel_url', - 'last_payment': 'last_payment', - 'next_payment': 'next_payment', - 'paused_at': 'paused_at', - 'paused_from': 'paused_from', - 'paused_reason': 'paused_reason', - 'payment_information': 'payment_information', - 'signup_date': 'signup_date', - 'update_url': 'update_url', + 'cancel_url': 'cancel_url' + 'last_payment': 'last_payment' + 'next_payment': 'next_payment' + 'paused_at': 'paused_at' + 'paused_from': 'paused_from' + 'paused_reason': 'paused_reason' + 'payment_information': 'payment_information' + 'signup_date': 'signup_date' + 'update_url': 'update_url' 'user_email': 'user_email' } diff --git a/pollination_sdk/models/billing_option.py b/pollination_sdk/models/billing_option.py index 8c6d4deb9..23b23f1e1 100644 --- a/pollination_sdk/models/billing_option.py +++ b/pollination_sdk/models/billing_option.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,18 +34,18 @@ class BillingOption(object): and the value is json key in definition. """ openapi_types = { - 'billing_period': 'int', - 'billing_type': 'str', - 'id': 'int', - 'name': 'str', - 'recurring_price': 'dict(str, float)' + 'billing_period': 'int' + 'billing_type': 'str' + 'id': 'int' + 'name': 'str' + 'recurring_price': 'Dict[str, float]' } attribute_map = { - 'billing_period': 'billing_period', - 'billing_type': 'billing_type', - 'id': 'id', - 'name': 'name', + 'billing_period': 'billing_period' + 'billing_type': 'billing_type' + 'id': 'id' + 'name': 'name' 'recurring_price': 'recurring_price' } @@ -175,7 +175,7 @@ def recurring_price(self): The price of the billing option # noqa: E501 :return: The recurring_price of this BillingOption. # noqa: E501 - :rtype: dict(str, float) + :rtype: Dict[str, float] """ return self._recurring_price @@ -186,7 +186,7 @@ def recurring_price(self, recurring_price): The price of the billing option # noqa: E501 :param recurring_price: The recurring_price of this BillingOption. # noqa: E501 - :type recurring_price: dict(str, float) + :type recurring_price: Dict[str, float] """ if self.local_vars_configuration.client_side_validation and recurring_price is None: # noqa: E501 raise ValueError("Invalid value for `recurring_price`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/body_cython_function_or_method_owner_plugins_post.py b/pollination_sdk/models/body_cython_function_or_method_owner_plugins_post.py deleted file mode 100644 index 60e9eaba9..000000000 --- a/pollination_sdk/models/body_cython_function_or_method_owner_plugins_post.py +++ /dev/null @@ -1,122 +0,0 @@ -# coding: utf-8 - -""" - pollination-server - - Pollination Server OpenAPI Definition # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: info@pollination.cloud - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - -from pollination_sdk.configuration import Configuration - - -class BodyCythonFunctionOrMethodOwnerPluginsPost(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'package': 'file' - } - - attribute_map = { - 'package': 'package' - } - - def __init__(self, package=None, local_vars_configuration=None): # noqa: E501 - """BodyCythonFunctionOrMethodOwnerPluginsPost - a model defined in OpenAPI""" # noqa: E501 - if local_vars_configuration is None: - local_vars_configuration = Configuration() - self.local_vars_configuration = local_vars_configuration - - self._package = None - self.discriminator = None - - self.package = package - - @property - def package(self): - """Gets the package of this BodyCythonFunctionOrMethodOwnerPluginsPost. # noqa: E501 - - - :return: The package of this BodyCythonFunctionOrMethodOwnerPluginsPost. # noqa: E501 - :rtype: file - """ - return self._package - - @package.setter - def package(self, package): - """Sets the package of this BodyCythonFunctionOrMethodOwnerPluginsPost. - - - :param package: The package of this BodyCythonFunctionOrMethodOwnerPluginsPost. # noqa: E501 - :type package: file - """ - if self.local_vars_configuration.client_side_validation and package is None: # noqa: E501 - raise ValueError("Invalid value for `package`, must not be `None`") # noqa: E501 - - self._package = package - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, BodyCythonFunctionOrMethodOwnerPluginsPost): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, BodyCythonFunctionOrMethodOwnerPluginsPost): - return True - - return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/build_status.py b/pollination_sdk/models/build_status.py index 5d3ad0779..6de0d5569 100644 --- a/pollination_sdk/models/build_status.py +++ b/pollination_sdk/models/build_status.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,16 +34,16 @@ class BuildStatus(object): and the value is json key in definition. """ openapi_types = { - 'created_at': 'datetime', - 'finished_at': 'datetime', - 'started_at': 'datetime', + 'created_at': 'datetime' + 'finished_at': 'datetime' + 'started_at': 'datetime' 'status': 'BuildStatusEnum' } attribute_map = { - 'created_at': 'created_at', - 'finished_at': 'finished_at', - 'started_at': 'started_at', + 'created_at': 'created_at' + 'finished_at': 'finished_at' + 'started_at': 'started_at' 'status': 'status' } diff --git a/pollination_sdk/models/build_status_enum.py b/pollination_sdk/models/build_status_enum.py index 26df94e44..6a1c178d9 100644 --- a/pollination_sdk/models/build_status_enum.py +++ b/pollination_sdk/models/build_status_enum.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,13 +29,13 @@ class BuildStatusEnum(object): """ allowed enum values """ - PENDING = "pending" - RUNNING = "running" - SUCCESS = "success" - FAILURE = "failure" - CANCELLED = "cancelled" - AWAITING_PACKAGE_UPLOAD = "awaiting_package_upload" - UNKNOWN = "unknown" + PENDING = 'pending' + RUNNING = 'running' + SUCCESS = 'success' + FAILURE = 'failure' + CANCELLED = 'cancelled' + AWAITING_PACKAGE_UPLOAD = 'awaiting_package_upload' + UNKNOWN = 'unknown' allowable_values = [PENDING, RUNNING, SUCCESS, FAILURE, CANCELLED, AWAITING_PACKAGE_UPLOAD, UNKNOWN] # noqa: E501 diff --git a/pollination_sdk/models/cad_license_usage.py b/pollination_sdk/models/cad_license_usage.py new file mode 100644 index 000000000..0208fbc3e --- /dev/null +++ b/pollination_sdk/models/cad_license_usage.py @@ -0,0 +1,284 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class CADLicenseUsage(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'action': 'str' + 'app_version': 'str' + 'created_at': 'datetime' + 'product_id': 'str' + 'product_name': 'str' + 'user_id': 'str' + 'user_name': 'str' + } + + attribute_map = { + 'action': 'action' + 'app_version': 'app_version' + 'created_at': 'created_at' + 'product_id': 'product_id' + 'product_name': 'product_name' + 'user_id': 'user_id' + 'user_name': 'user_name' + } + + def __init__(self, action=None, app_version=None, created_at=None, product_id=None, product_name=None, user_id=None, user_name=None, local_vars_configuration=None): # noqa: E501 + """CADLicenseUsage - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._action = None + self._app_version = None + self._created_at = None + self._product_id = None + self._product_name = None + self._user_id = None + self._user_name = None + self.discriminator = None + + self.action = action + self.app_version = app_version + self.created_at = created_at + self.product_id = product_id + self.product_name = product_name + self.user_id = user_id + self.user_name = user_name + + @property + def action(self): + """Gets the action of this CADLicenseUsage. # noqa: E501 + + + :return: The action of this CADLicenseUsage. # noqa: E501 + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this CADLicenseUsage. + + + :param action: The action of this CADLicenseUsage. # noqa: E501 + :type action: str + """ + if self.local_vars_configuration.client_side_validation and action is None: # noqa: E501 + raise ValueError("Invalid value for `action`, must not be `None`") # noqa: E501 + + self._action = action + + @property + def app_version(self): + """Gets the app_version of this CADLicenseUsage. # noqa: E501 + + + :return: The app_version of this CADLicenseUsage. # noqa: E501 + :rtype: str + """ + return self._app_version + + @app_version.setter + def app_version(self, app_version): + """Sets the app_version of this CADLicenseUsage. + + + :param app_version: The app_version of this CADLicenseUsage. # noqa: E501 + :type app_version: str + """ + if self.local_vars_configuration.client_side_validation and app_version is None: # noqa: E501 + raise ValueError("Invalid value for `app_version`, must not be `None`") # noqa: E501 + + self._app_version = app_version + + @property + def created_at(self): + """Gets the created_at of this CADLicenseUsage. # noqa: E501 + + + :return: The created_at of this CADLicenseUsage. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this CADLicenseUsage. + + + :param created_at: The created_at of this CADLicenseUsage. # noqa: E501 + :type created_at: datetime + """ + if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501 + raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 + + self._created_at = created_at + + @property + def product_id(self): + """Gets the product_id of this CADLicenseUsage. # noqa: E501 + + + :return: The product_id of this CADLicenseUsage. # noqa: E501 + :rtype: str + """ + return self._product_id + + @product_id.setter + def product_id(self, product_id): + """Sets the product_id of this CADLicenseUsage. + + + :param product_id: The product_id of this CADLicenseUsage. # noqa: E501 + :type product_id: str + """ + if self.local_vars_configuration.client_side_validation and product_id is None: # noqa: E501 + raise ValueError("Invalid value for `product_id`, must not be `None`") # noqa: E501 + + self._product_id = product_id + + @property + def product_name(self): + """Gets the product_name of this CADLicenseUsage. # noqa: E501 + + + :return: The product_name of this CADLicenseUsage. # noqa: E501 + :rtype: str + """ + return self._product_name + + @product_name.setter + def product_name(self, product_name): + """Sets the product_name of this CADLicenseUsage. + + + :param product_name: The product_name of this CADLicenseUsage. # noqa: E501 + :type product_name: str + """ + if self.local_vars_configuration.client_side_validation and product_name is None: # noqa: E501 + raise ValueError("Invalid value for `product_name`, must not be `None`") # noqa: E501 + + self._product_name = product_name + + @property + def user_id(self): + """Gets the user_id of this CADLicenseUsage. # noqa: E501 + + + :return: The user_id of this CADLicenseUsage. # noqa: E501 + :rtype: str + """ + return self._user_id + + @user_id.setter + def user_id(self, user_id): + """Sets the user_id of this CADLicenseUsage. + + + :param user_id: The user_id of this CADLicenseUsage. # noqa: E501 + :type user_id: str + """ + if self.local_vars_configuration.client_side_validation and user_id is None: # noqa: E501 + raise ValueError("Invalid value for `user_id`, must not be `None`") # noqa: E501 + + self._user_id = user_id + + @property + def user_name(self): + """Gets the user_name of this CADLicenseUsage. # noqa: E501 + + + :return: The user_name of this CADLicenseUsage. # noqa: E501 + :rtype: str + """ + return self._user_name + + @user_name.setter + def user_name(self, user_name): + """Sets the user_name of this CADLicenseUsage. + + + :param user_name: The user_name of this CADLicenseUsage. # noqa: E501 + :type user_name: str + """ + if self.local_vars_configuration.client_side_validation and user_name is None: # noqa: E501 + raise ValueError("Invalid value for `user_name`, must not be `None`") # noqa: E501 + + self._user_name = user_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CADLicenseUsage): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CADLicenseUsage): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/card_type.py b/pollination_sdk/models/card_type.py index ed551b9ad..cbb27380e 100644 --- a/pollination_sdk/models/card_type.py +++ b/pollination_sdk/models/card_type.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,17 +29,18 @@ class CardType(object): """ allowed enum values """ - MASTER = "master" - MASTERCARD = "mastercard" - VISA = "visa" - AMERICAN_EXPRESS = "american_express" - DISCOVER = "discover" - JCB = "jcb" - MAESTRO = "maestro" - DINERS_CLUB = "diners_club" - UNIONPAY = "unionpay" - - allowable_values = [MASTER, MASTERCARD, VISA, AMERICAN_EXPRESS, DISCOVER, JCB, MAESTRO, DINERS_CLUB, UNIONPAY] # noqa: E501 + MASTER = 'master' + MASTERCARD = 'mastercard' + VISA = 'visa' + AMERICAN_EXPRESS = 'american_express' + DISCOVER = 'discover' + JCB = 'jcb' + MAESTRO = 'maestro' + DINERS_CLUB = 'diners_club' + UNKNOWN = 'unknown' + UNION_PAY = 'union_pay' + + allowable_values = [MASTER, MASTERCARD, VISA, AMERICAN_EXPRESS, DISCOVER, JCB, MAESTRO, DINERS_CLUB, UNKNOWN, UNION_PAY] # noqa: E501 """ Attributes: diff --git a/pollination_sdk/models/cloud_job.py b/pollination_sdk/models/cloud_job.py index 878f97aa8..40b9643db 100644 --- a/pollination_sdk/models/cloud_job.py +++ b/pollination_sdk/models/cloud_job.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,22 +34,22 @@ class CloudJob(object): and the value is json key in definition. """ openapi_types = { - 'author': 'AccountPublic', - 'id': 'str', - 'owner': 'AccountPublic', - 'recipe': 'RecipeInterface', - 'resources_duration': 'ResourcesDuration', - 'spec': 'Job', + 'author': 'AccountPublic' + 'id': 'str' + 'owner': 'AccountPublic' + 'recipe': 'RecipeInterface' + 'resources_duration': 'ResourcesDuration' + 'spec': 'Job' 'status': 'JobStatus' } attribute_map = { - 'author': 'author', - 'id': 'id', - 'owner': 'owner', - 'recipe': 'recipe', - 'resources_duration': 'resources_duration', - 'spec': 'spec', + 'author': 'author' + 'id': 'id' + 'owner': 'owner' + 'recipe': 'recipe' + 'resources_duration': 'resources_duration' + 'spec': 'spec' 'status': 'status' } diff --git a/pollination_sdk/models/cloud_job_list.py b/pollination_sdk/models/cloud_job_list.py index 95bf6e6fa..12186b956 100644 --- a/pollination_sdk/models/cloud_job_list.py +++ b/pollination_sdk/models/cloud_job_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class CloudJobList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[CloudJob]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[CloudJob]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this CloudJobList. # noqa: E501 - :rtype: list[CloudJob] + :rtype: List[CloudJob] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this CloudJobList. # noqa: E501 - :type resources: list[CloudJob] + :type resources: List[CloudJob] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/created_content.py b/pollination_sdk/models/created_content.py index 828878619..5af8908e7 100644 --- a/pollination_sdk/models/created_content.py +++ b/pollination_sdk/models/created_content.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class CreatedContent(object): and the value is json key in definition. """ openapi_types = { - 'id': 'str', + 'id': 'str' 'message': 'str' } attribute_map = { - 'id': 'id', + 'id': 'id' 'message': 'message' } diff --git a/pollination_sdk/models/dag.py b/pollination_sdk/models/dag.py index f8bc8f8e2..c5e85ee33 100644 --- a/pollination_sdk/models/dag.py +++ b/pollination_sdk/models/dag.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,22 +34,22 @@ class DAG(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'fail_fast': 'bool', - 'inputs': 'list[AnyOfDAGGenericInputDAGStringInputDAGIntegerInputDAGNumberInputDAGBooleanInputDAGFolderInputDAGFileInputDAGPathInputDAGArrayInputDAGJSONObjectInput]', - 'name': 'str', - 'outputs': 'list[AnyOfDAGGenericOutputDAGStringOutputDAGIntegerOutputDAGNumberOutputDAGBooleanOutputDAGFolderOutputDAGFileOutputDAGPathOutputDAGArrayOutputDAGJSONObjectOutput]', - 'tasks': 'list[DAGTask]', + 'annotations': 'Dict[str, str]' + 'fail_fast': 'bool' + 'inputs': 'List[DAGInputsInner]' + 'name': 'str' + 'outputs': 'List[DAGOutputsInner]' + 'tasks': 'List[DAGTask]' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'fail_fast': 'fail_fast', - 'inputs': 'inputs', - 'name': 'name', - 'outputs': 'outputs', - 'tasks': 'tasks', + 'annotations': 'annotations' + 'fail_fast': 'fail_fast' + 'inputs': 'inputs' + 'name': 'name' + 'outputs': 'outputs' + 'tasks': 'tasks' 'type': 'type' } @@ -88,7 +88,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAG. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -99,7 +99,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAG. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -134,7 +134,7 @@ def inputs(self): Inputs for the DAG. # noqa: E501 :return: The inputs of this DAG. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputDAGStringInputDAGIntegerInputDAGNumberInputDAGBooleanInputDAGFolderInputDAGFileInputDAGPathInputDAGArrayInputDAGJSONObjectInput] + :rtype: List[DAGInputsInner] """ return self._inputs @@ -145,7 +145,7 @@ def inputs(self, inputs): Inputs for the DAG. # noqa: E501 :param inputs: The inputs of this DAG. # noqa: E501 - :type inputs: list[AnyOfDAGGenericInputDAGStringInputDAGIntegerInputDAGNumberInputDAGBooleanInputDAGFolderInputDAGFileInputDAGPathInputDAGArrayInputDAGJSONObjectInput] + :type inputs: List[DAGInputsInner] """ self._inputs = inputs @@ -182,7 +182,7 @@ def outputs(self): Outputs of the DAG that can be used by other DAGs. # noqa: E501 :return: The outputs of this DAG. # noqa: E501 - :rtype: list[AnyOfDAGGenericOutputDAGStringOutputDAGIntegerOutputDAGNumberOutputDAGBooleanOutputDAGFolderOutputDAGFileOutputDAGPathOutputDAGArrayOutputDAGJSONObjectOutput] + :rtype: List[DAGOutputsInner] """ return self._outputs @@ -193,7 +193,7 @@ def outputs(self, outputs): Outputs of the DAG that can be used by other DAGs. # noqa: E501 :param outputs: The outputs of this DAG. # noqa: E501 - :type outputs: list[AnyOfDAGGenericOutputDAGStringOutputDAGIntegerOutputDAGNumberOutputDAGBooleanOutputDAGFolderOutputDAGFileOutputDAGPathOutputDAGArrayOutputDAGJSONObjectOutput] + :type outputs: List[DAGOutputsInner] """ self._outputs = outputs @@ -205,7 +205,7 @@ def tasks(self): Tasks are a list of DAG steps # noqa: E501 :return: The tasks of this DAG. # noqa: E501 - :rtype: list[DAGTask] + :rtype: List[DAGTask] """ return self._tasks @@ -216,7 +216,7 @@ def tasks(self, tasks): Tasks are a list of DAG steps # noqa: E501 :param tasks: The tasks of this DAG. # noqa: E501 - :type tasks: list[DAGTask] + :type tasks: List[DAGTask] """ if self.local_vars_configuration.client_side_validation and tasks is None: # noqa: E501 raise ValueError("Invalid value for `tasks`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/dag_array_input.py b/pollination_sdk/models/dag_array_input.py index ac0e17340..5f1bb4940 100644 --- a/pollination_sdk/models/dag_array_input.py +++ b/pollination_sdk/models/dag_array_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class DAGArrayInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'list[object]', - 'description': 'str', - 'items_type': 'ItemType', - 'name': 'str', - 'required': 'bool', - 'spec': 'object', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'List[object]' + 'description': 'str' + 'items_type': 'ItemType' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'items_type': 'items_type', - 'name': 'name', - 'required': 'required', - 'spec': 'spec', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'items_type': 'items_type' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -99,7 +99,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this DAGArrayInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -110,7 +110,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this DAGArrayInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -122,7 +122,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGArrayInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -133,7 +133,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGArrayInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -145,7 +145,7 @@ def default(self): Default value to use for an input if a value was not supplied. # noqa: E501 :return: The default of this DAGArrayInput. # noqa: E501 - :rtype: list[object] + :rtype: List[object] """ return self._default @@ -156,7 +156,7 @@ def default(self, default): Default value to use for an input if a value was not supplied. # noqa: E501 :param default: The default of this DAGArrayInput. # noqa: E501 - :type default: list[object] + :type default: List[object] """ self._default = default diff --git a/pollination_sdk/models/dag_array_input_alias.py b/pollination_sdk/models/dag_array_input_alias.py index 21daf398e..260a3f8e6 100644 --- a/pollination_sdk/models/dag_array_input_alias.py +++ b/pollination_sdk/models/dag_array_input_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,28 +34,28 @@ class DAGArrayInputAlias(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'default': 'list[object]', - 'description': 'str', - 'handler': 'list[IOAliasHandler]', - 'items_type': 'ItemType', - 'name': 'str', - 'platform': 'list[str]', - 'required': 'bool', - 'spec': 'object', + 'annotations': 'Dict[str, str]' + 'default': 'List[object]' + 'description': 'str' + 'handler': 'List[IOAliasHandler]' + 'items_type': 'ItemType' + 'name': 'str' + 'platform': 'List[str]' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'handler': 'handler', - 'items_type': 'items_type', - 'name': 'name', - 'platform': 'platform', - 'required': 'required', - 'spec': 'spec', + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'handler': 'handler' + 'items_type': 'items_type' + 'name': 'name' + 'platform': 'platform' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -102,7 +102,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGArrayInputAlias. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -113,7 +113,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGArrayInputAlias. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -125,7 +125,7 @@ def default(self): Default value to use for an input if a value was not supplied. # noqa: E501 :return: The default of this DAGArrayInputAlias. # noqa: E501 - :rtype: list[object] + :rtype: List[object] """ return self._default @@ -136,7 +136,7 @@ def default(self, default): Default value to use for an input if a value was not supplied. # noqa: E501 :param default: The default of this DAGArrayInputAlias. # noqa: E501 - :type default: list[object] + :type default: List[object] """ self._default = default @@ -171,7 +171,7 @@ def handler(self): List of process actions to process the input or output value. # noqa: E501 :return: The handler of this DAGArrayInputAlias. # noqa: E501 - :rtype: list[IOAliasHandler] + :rtype: List[IOAliasHandler] """ return self._handler @@ -182,7 +182,7 @@ def handler(self, handler): List of process actions to process the input or output value. # noqa: E501 :param handler: The handler of this DAGArrayInputAlias. # noqa: E501 - :type handler: list[IOAliasHandler] + :type handler: List[IOAliasHandler] """ if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 @@ -244,7 +244,7 @@ def platform(self): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :return: The platform of this DAGArrayInputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._platform @@ -255,7 +255,7 @@ def platform(self, platform): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :param platform: The platform of this DAGArrayInputAlias. # noqa: E501 - :type platform: list[str] + :type platform: List[str] """ if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/dag_array_input_alias_inner.py b/pollination_sdk/models/dag_array_input_alias_inner.py new file mode 100644 index 000000000..a9969e023 --- /dev/null +++ b/pollination_sdk/models/dag_array_input_alias_inner.py @@ -0,0 +1,407 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class DAGArrayInputAliasInner(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'annotations': 'Dict[str, str]' + 'default': 'str' + 'description': 'str' + 'handler': 'List[IOAliasHandler]' + 'name': 'str' + 'platform': 'List[str]' + 'required': 'bool' + 'spec': 'object' + 'type': 'str' + 'extensions': 'List[str]' + 'items_type': 'ItemType' + } + + attribute_map = { + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'handler': 'handler' + 'name': 'name' + 'platform': 'platform' + 'required': 'required' + 'spec': 'spec' + 'type': 'type' + 'extensions': 'extensions' + 'items_type': 'items_type' + } + + def __init__(self, annotations=None, default=None, description=None, handler=None, name=None, platform=None, required=False, spec=None, type='DAGLinkedInputAlias', extensions=None, items_type=None, local_vars_configuration=None): # noqa: E501 + """DAGArrayInputAliasInner - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._annotations = None + self._default = None + self._description = None + self._handler = None + self._name = None + self._platform = None + self._required = None + self._spec = None + self._type = None + self._extensions = None + self._items_type = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + if default is not None: + self.default = default + if description is not None: + self.description = description + self.handler = handler + self.name = name + self.platform = platform + if required is not None: + self.required = required + if spec is not None: + self.spec = spec + if type is not None: + self.type = type + if extensions is not None: + self.extensions = extensions + if items_type is not None: + self.items_type = items_type + + @property + def annotations(self): + """Gets the annotations of this DAGArrayInputAliasInner. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this DAGArrayInputAliasInner. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this DAGArrayInputAliasInner. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this DAGArrayInputAliasInner. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def default(self): + """Gets the default of this DAGArrayInputAliasInner. # noqa: E501 + + Default value for generic input. # noqa: E501 + + :return: The default of this DAGArrayInputAliasInner. # noqa: E501 + :rtype: str + """ + return self._default + + @default.setter + def default(self, default): + """Sets the default of this DAGArrayInputAliasInner. + + Default value for generic input. # noqa: E501 + + :param default: The default of this DAGArrayInputAliasInner. # noqa: E501 + :type default: str + """ + + self._default = default + + @property + def description(self): + """Gets the description of this DAGArrayInputAliasInner. # noqa: E501 + + Optional description for input. # noqa: E501 + + :return: The description of this DAGArrayInputAliasInner. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this DAGArrayInputAliasInner. + + Optional description for input. # noqa: E501 + + :param description: The description of this DAGArrayInputAliasInner. # noqa: E501 + :type description: str + """ + + self._description = description + + @property + def handler(self): + """Gets the handler of this DAGArrayInputAliasInner. # noqa: E501 + + List of process actions to process the input or output value. # noqa: E501 + + :return: The handler of this DAGArrayInputAliasInner. # noqa: E501 + :rtype: List[IOAliasHandler] + """ + return self._handler + + @handler.setter + def handler(self, handler): + """Sets the handler of this DAGArrayInputAliasInner. + + List of process actions to process the input or output value. # noqa: E501 + + :param handler: The handler of this DAGArrayInputAliasInner. # noqa: E501 + :type handler: List[IOAliasHandler] + """ + if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 + raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 + + self._handler = handler + + @property + def name(self): + """Gets the name of this DAGArrayInputAliasInner. # noqa: E501 + + Input name. # noqa: E501 + + :return: The name of this DAGArrayInputAliasInner. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DAGArrayInputAliasInner. + + Input name. # noqa: E501 + + :param name: The name of this DAGArrayInputAliasInner. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def platform(self): + """Gets the platform of this DAGArrayInputAliasInner. # noqa: E501 + + Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 + + :return: The platform of this DAGArrayInputAliasInner. # noqa: E501 + :rtype: List[str] + """ + return self._platform + + @platform.setter + def platform(self, platform): + """Sets the platform of this DAGArrayInputAliasInner. + + Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 + + :param platform: The platform of this DAGArrayInputAliasInner. # noqa: E501 + :type platform: List[str] + """ + if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 + raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 + + self._platform = platform + + @property + def required(self): + """Gets the required of this DAGArrayInputAliasInner. # noqa: E501 + + A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. # noqa: E501 + + :return: The required of this DAGArrayInputAliasInner. # noqa: E501 + :rtype: bool + """ + return self._required + + @required.setter + def required(self, required): + """Sets the required of this DAGArrayInputAliasInner. + + A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. # noqa: E501 + + :param required: The required of this DAGArrayInputAliasInner. # noqa: E501 + :type required: bool + """ + + self._required = required + + @property + def spec(self): + """Gets the spec of this DAGArrayInputAliasInner. # noqa: E501 + + An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. # noqa: E501 + + :return: The spec of this DAGArrayInputAliasInner. # noqa: E501 + :rtype: object + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this DAGArrayInputAliasInner. + + An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. # noqa: E501 + + :param spec: The spec of this DAGArrayInputAliasInner. # noqa: E501 + :type spec: object + """ + + self._spec = spec + + @property + def type(self): + """Gets the type of this DAGArrayInputAliasInner. # noqa: E501 + + + :return: The type of this DAGArrayInputAliasInner. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this DAGArrayInputAliasInner. + + + :param type: The type of this DAGArrayInputAliasInner. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^DAGLinkedInputAlias$', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^DAGLinkedInputAlias$/`") # noqa: E501 + + self._type = type + + @property + def extensions(self): + """Gets the extensions of this DAGArrayInputAliasInner. # noqa: E501 + + Optional list of extensions for path. The check for extension is case-insensitive. The extension will only be validated for file inputs. # noqa: E501 + + :return: The extensions of this DAGArrayInputAliasInner. # noqa: E501 + :rtype: List[str] + """ + return self._extensions + + @extensions.setter + def extensions(self, extensions): + """Sets the extensions of this DAGArrayInputAliasInner. + + Optional list of extensions for path. The check for extension is case-insensitive. The extension will only be validated for file inputs. # noqa: E501 + + :param extensions: The extensions of this DAGArrayInputAliasInner. # noqa: E501 + :type extensions: List[str] + """ + + self._extensions = extensions + + @property + def items_type(self): + """Gets the items_type of this DAGArrayInputAliasInner. # noqa: E501 + + Type of items in an array. All the items in an array must be from the same type. # noqa: E501 + + :return: The items_type of this DAGArrayInputAliasInner. # noqa: E501 + :rtype: ItemType + """ + return self._items_type + + @items_type.setter + def items_type(self, items_type): + """Sets the items_type of this DAGArrayInputAliasInner. + + Type of items in an array. All the items in an array must be from the same type. # noqa: E501 + + :param items_type: The items_type of this DAGArrayInputAliasInner. # noqa: E501 + :type items_type: ItemType + """ + + self._items_type = items_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DAGArrayInputAliasInner): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DAGArrayInputAliasInner): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/dag_array_output.py b/pollination_sdk/models/dag_array_output.py index 35525d301..3eb8415d0 100644 --- a/pollination_sdk/models/dag_array_output.py +++ b/pollination_sdk/models/dag_array_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,28 +34,28 @@ class DAGArrayOutput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias]', - 'annotations': 'dict(str, str)', - 'description': 'str', - '_from': 'AnyOfTaskReferenceFileReference', - 'items_type': 'ItemType', - 'name': 'str', - 'required': 'bool', + 'alias': 'List[DAGArrayOutputAliasInner]' + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'var_from': 'ModelFrom' + 'items_type': 'ItemType' + 'name': 'str' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'description': 'description', - '_from': 'from', - 'items_type': 'items_type', - 'name': 'name', - 'required': 'required', + 'alias': 'alias' + 'annotations': 'annotations' + 'description': 'description' + 'var_from': 'from' + 'items_type': 'items_type' + 'name': 'name' + 'required': 'required' 'type': 'type' } - def __init__(self, alias=None, annotations=None, description=None, _from=None, items_type=None, name=None, required=True, type='DAGArrayOutput', local_vars_configuration=None): # noqa: E501 + def __init__(self, alias=None, annotations=None, description=None, var_from=None, items_type=None, name=None, required=True, type='DAGArrayOutput', local_vars_configuration=None): # noqa: E501 """DAGArrayOutput - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -64,7 +64,7 @@ def __init__(self, alias=None, annotations=None, description=None, _from=None, i self._alias = None self._annotations = None self._description = None - self.__from = None + self._var_from = None self._items_type = None self._name = None self._required = None @@ -77,7 +77,7 @@ def __init__(self, alias=None, annotations=None, description=None, _from=None, i self.annotations = annotations if description is not None: self.description = description - self._from = _from + self.var_from = var_from if items_type is not None: self.items_type = items_type self.name = name @@ -93,7 +93,7 @@ def alias(self): A list of additional processes for loading this output on different platforms. # noqa: E501 :return: The alias of this DAGArrayOutput. # noqa: E501 - :rtype: list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias] + :rtype: List[DAGArrayOutputAliasInner] """ return self._alias @@ -104,7 +104,7 @@ def alias(self, alias): A list of additional processes for loading this output on different platforms. # noqa: E501 :param alias: The alias of this DAGArrayOutput. # noqa: E501 - :type alias: list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias] + :type alias: List[DAGArrayOutputAliasInner] """ self._alias = alias @@ -116,7 +116,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGArrayOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -127,7 +127,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGArrayOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -156,29 +156,27 @@ def description(self, description): self._description = description @property - def _from(self): - """Gets the _from of this DAGArrayOutput. # noqa: E501 + def var_from(self): + """Gets the var_from of this DAGArrayOutput. # noqa: E501 - Reference to a file or a task output. Task output must be file. # noqa: E501 - :return: The _from of this DAGArrayOutput. # noqa: E501 - :rtype: AnyOfTaskReferenceFileReference + :return: The var_from of this DAGArrayOutput. # noqa: E501 + :rtype: ModelFrom """ - return self.__from + return self._var_from - @_from.setter - def _from(self, _from): - """Sets the _from of this DAGArrayOutput. + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGArrayOutput. - Reference to a file or a task output. Task output must be file. # noqa: E501 - :param _from: The _from of this DAGArrayOutput. # noqa: E501 - :type _from: AnyOfTaskReferenceFileReference + :param var_from: The var_from of this DAGArrayOutput. # noqa: E501 + :type var_from: ModelFrom """ - if self.local_vars_configuration.client_side_validation and _from is None: # noqa: E501 - raise ValueError("Invalid value for `_from`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 - self.__from = _from + self._var_from = var_from @property def items_type(self): diff --git a/pollination_sdk/models/dag_array_output_alias.py b/pollination_sdk/models/dag_array_output_alias.py index 542797316..3e3239d61 100644 --- a/pollination_sdk/models/dag_array_output_alias.py +++ b/pollination_sdk/models/dag_array_output_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,30 +34,30 @@ class DAGArrayOutputAlias(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - '_from': 'AnyOfTaskReferenceFileReference', - 'handler': 'list[IOAliasHandler]', - 'items_type': 'ItemType', - 'name': 'str', - 'platform': 'list[str]', - 'required': 'bool', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'var_from': 'ModelFrom' + 'handler': 'List[IOAliasHandler]' + 'items_type': 'ItemType' + 'name': 'str' + 'platform': 'List[str]' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - '_from': 'from', - 'handler': 'handler', - 'items_type': 'items_type', - 'name': 'name', - 'platform': 'platform', - 'required': 'required', + 'annotations': 'annotations' + 'description': 'description' + 'var_from': 'from' + 'handler': 'handler' + 'items_type': 'items_type' + 'name': 'name' + 'platform': 'platform' + 'required': 'required' 'type': 'type' } - def __init__(self, annotations=None, description=None, _from=None, handler=None, items_type=None, name=None, platform=None, required=True, type='DAGArrayOutputAlias', local_vars_configuration=None): # noqa: E501 + def __init__(self, annotations=None, description=None, var_from=None, handler=None, items_type=None, name=None, platform=None, required=True, type='DAGArrayOutputAlias', local_vars_configuration=None): # noqa: E501 """DAGArrayOutputAlias - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -65,7 +65,7 @@ def __init__(self, annotations=None, description=None, _from=None, handler=None, self._annotations = None self._description = None - self.__from = None + self._var_from = None self._handler = None self._items_type = None self._name = None @@ -78,7 +78,7 @@ def __init__(self, annotations=None, description=None, _from=None, handler=None, self.annotations = annotations if description is not None: self.description = description - self._from = _from + self.var_from = var_from self.handler = handler if items_type is not None: self.items_type = items_type @@ -96,7 +96,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGArrayOutputAlias. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -107,7 +107,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGArrayOutputAlias. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -136,29 +136,27 @@ def description(self, description): self._description = description @property - def _from(self): - """Gets the _from of this DAGArrayOutputAlias. # noqa: E501 + def var_from(self): + """Gets the var_from of this DAGArrayOutputAlias. # noqa: E501 - Reference to a file or a task output. Task output must be file. # noqa: E501 - :return: The _from of this DAGArrayOutputAlias. # noqa: E501 - :rtype: AnyOfTaskReferenceFileReference + :return: The var_from of this DAGArrayOutputAlias. # noqa: E501 + :rtype: ModelFrom """ - return self.__from + return self._var_from - @_from.setter - def _from(self, _from): - """Sets the _from of this DAGArrayOutputAlias. + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGArrayOutputAlias. - Reference to a file or a task output. Task output must be file. # noqa: E501 - :param _from: The _from of this DAGArrayOutputAlias. # noqa: E501 - :type _from: AnyOfTaskReferenceFileReference + :param var_from: The var_from of this DAGArrayOutputAlias. # noqa: E501 + :type var_from: ModelFrom """ - if self.local_vars_configuration.client_side_validation and _from is None: # noqa: E501 - raise ValueError("Invalid value for `_from`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 - self.__from = _from + self._var_from = var_from @property def handler(self): @@ -167,7 +165,7 @@ def handler(self): List of process actions to process the input or output value. # noqa: E501 :return: The handler of this DAGArrayOutputAlias. # noqa: E501 - :rtype: list[IOAliasHandler] + :rtype: List[IOAliasHandler] """ return self._handler @@ -178,7 +176,7 @@ def handler(self, handler): List of process actions to process the input or output value. # noqa: E501 :param handler: The handler of this DAGArrayOutputAlias. # noqa: E501 - :type handler: list[IOAliasHandler] + :type handler: List[IOAliasHandler] """ if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 @@ -240,7 +238,7 @@ def platform(self): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :return: The platform of this DAGArrayOutputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._platform @@ -251,7 +249,7 @@ def platform(self, platform): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :param platform: The platform of this DAGArrayOutputAlias. # noqa: E501 - :type platform: list[str] + :type platform: List[str] """ if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/dag_array_output_alias_inner.py b/pollination_sdk/models/dag_array_output_alias_inner.py new file mode 100644 index 000000000..5f035c6ba --- /dev/null +++ b/pollination_sdk/models/dag_array_output_alias_inner.py @@ -0,0 +1,350 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class DAGArrayOutputAliasInner(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'handler': 'List[IOAliasHandler]' + 'name': 'str' + 'platform': 'List[str]' + 'type': 'str' + 'var_from': 'ModelFrom' + 'required': 'bool' + 'items_type': 'ItemType' + } + + attribute_map = { + 'annotations': 'annotations' + 'description': 'description' + 'handler': 'handler' + 'name': 'name' + 'platform': 'platform' + 'type': 'type' + 'var_from': 'from' + 'required': 'required' + 'items_type': 'items_type' + } + + def __init__(self, annotations=None, description=None, handler=None, name=None, platform=None, type='DAGLinkedOutputAlias', var_from=None, required=True, items_type=None, local_vars_configuration=None): # noqa: E501 + """DAGArrayOutputAliasInner - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._annotations = None + self._description = None + self._handler = None + self._name = None + self._platform = None + self._type = None + self._var_from = None + self._required = None + self._items_type = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + if description is not None: + self.description = description + self.handler = handler + self.name = name + self.platform = platform + if type is not None: + self.type = type + self.var_from = var_from + if required is not None: + self.required = required + if items_type is not None: + self.items_type = items_type + + @property + def annotations(self): + """Gets the annotations of this DAGArrayOutputAliasInner. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this DAGArrayOutputAliasInner. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this DAGArrayOutputAliasInner. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this DAGArrayOutputAliasInner. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def description(self): + """Gets the description of this DAGArrayOutputAliasInner. # noqa: E501 + + Optional description for output. # noqa: E501 + + :return: The description of this DAGArrayOutputAliasInner. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this DAGArrayOutputAliasInner. + + Optional description for output. # noqa: E501 + + :param description: The description of this DAGArrayOutputAliasInner. # noqa: E501 + :type description: str + """ + + self._description = description + + @property + def handler(self): + """Gets the handler of this DAGArrayOutputAliasInner. # noqa: E501 + + List of process actions to process the input or output value. # noqa: E501 + + :return: The handler of this DAGArrayOutputAliasInner. # noqa: E501 + :rtype: List[IOAliasHandler] + """ + return self._handler + + @handler.setter + def handler(self, handler): + """Sets the handler of this DAGArrayOutputAliasInner. + + List of process actions to process the input or output value. # noqa: E501 + + :param handler: The handler of this DAGArrayOutputAliasInner. # noqa: E501 + :type handler: List[IOAliasHandler] + """ + if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 + raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 + + self._handler = handler + + @property + def name(self): + """Gets the name of this DAGArrayOutputAliasInner. # noqa: E501 + + Output name. # noqa: E501 + + :return: The name of this DAGArrayOutputAliasInner. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DAGArrayOutputAliasInner. + + Output name. # noqa: E501 + + :param name: The name of this DAGArrayOutputAliasInner. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def platform(self): + """Gets the platform of this DAGArrayOutputAliasInner. # noqa: E501 + + Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 + + :return: The platform of this DAGArrayOutputAliasInner. # noqa: E501 + :rtype: List[str] + """ + return self._platform + + @platform.setter + def platform(self, platform): + """Sets the platform of this DAGArrayOutputAliasInner. + + Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 + + :param platform: The platform of this DAGArrayOutputAliasInner. # noqa: E501 + :type platform: List[str] + """ + if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 + raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 + + self._platform = platform + + @property + def type(self): + """Gets the type of this DAGArrayOutputAliasInner. # noqa: E501 + + + :return: The type of this DAGArrayOutputAliasInner. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this DAGArrayOutputAliasInner. + + + :param type: The type of this DAGArrayOutputAliasInner. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^DAGLinkedOutputAlias$', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^DAGLinkedOutputAlias$/`") # noqa: E501 + + self._type = type + + @property + def var_from(self): + """Gets the var_from of this DAGArrayOutputAliasInner. # noqa: E501 + + + :return: The var_from of this DAGArrayOutputAliasInner. # noqa: E501 + :rtype: ModelFrom + """ + return self._var_from + + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGArrayOutputAliasInner. + + + :param var_from: The var_from of this DAGArrayOutputAliasInner. # noqa: E501 + :type var_from: ModelFrom + """ + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 + + self._var_from = var_from + + @property + def required(self): + """Gets the required of this DAGArrayOutputAliasInner. # noqa: E501 + + A boolean to indicate if an artifact output is required. A False value makes the artifact optional. # noqa: E501 + + :return: The required of this DAGArrayOutputAliasInner. # noqa: E501 + :rtype: bool + """ + return self._required + + @required.setter + def required(self, required): + """Sets the required of this DAGArrayOutputAliasInner. + + A boolean to indicate if an artifact output is required. A False value makes the artifact optional. # noqa: E501 + + :param required: The required of this DAGArrayOutputAliasInner. # noqa: E501 + :type required: bool + """ + + self._required = required + + @property + def items_type(self): + """Gets the items_type of this DAGArrayOutputAliasInner. # noqa: E501 + + Type of items in this array. All the items in an array must be from the same type. # noqa: E501 + + :return: The items_type of this DAGArrayOutputAliasInner. # noqa: E501 + :rtype: ItemType + """ + return self._items_type + + @items_type.setter + def items_type(self, items_type): + """Sets the items_type of this DAGArrayOutputAliasInner. + + Type of items in this array. All the items in an array must be from the same type. # noqa: E501 + + :param items_type: The items_type of this DAGArrayOutputAliasInner. # noqa: E501 + :type items_type: ItemType + """ + + self._items_type = items_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DAGArrayOutputAliasInner): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DAGArrayOutputAliasInner): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/dag_boolean_input.py b/pollination_sdk/models/dag_boolean_input.py index 109dde0ed..fb8ebc6c3 100644 --- a/pollination_sdk/models/dag_boolean_input.py +++ b/pollination_sdk/models/dag_boolean_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,24 +34,24 @@ class DAGBooleanInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'bool', - 'description': 'str', - 'name': 'str', - 'required': 'bool', - 'spec': 'object', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'bool' + 'description': 'str' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'name': 'name', - 'required': 'required', - 'spec': 'spec', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -94,7 +94,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this DAGBooleanInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -105,7 +105,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this DAGBooleanInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -117,7 +117,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGBooleanInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -128,7 +128,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGBooleanInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/dag_boolean_input_alias.py b/pollination_sdk/models/dag_boolean_input_alias.py index 55844aa91..8c553b84e 100644 --- a/pollination_sdk/models/dag_boolean_input_alias.py +++ b/pollination_sdk/models/dag_boolean_input_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class DAGBooleanInputAlias(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'default': 'bool', - 'description': 'str', - 'handler': 'list[IOAliasHandler]', - 'name': 'str', - 'platform': 'list[str]', - 'required': 'bool', - 'spec': 'object', + 'annotations': 'Dict[str, str]' + 'default': 'bool' + 'description': 'str' + 'handler': 'List[IOAliasHandler]' + 'name': 'str' + 'platform': 'List[str]' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'handler': 'handler', - 'name': 'name', - 'platform': 'platform', - 'required': 'required', - 'spec': 'spec', + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'handler': 'handler' + 'name': 'name' + 'platform': 'platform' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -97,7 +97,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGBooleanInputAlias. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -108,7 +108,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGBooleanInputAlias. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -166,7 +166,7 @@ def handler(self): List of process actions to process the input or output value. # noqa: E501 :return: The handler of this DAGBooleanInputAlias. # noqa: E501 - :rtype: list[IOAliasHandler] + :rtype: List[IOAliasHandler] """ return self._handler @@ -177,7 +177,7 @@ def handler(self, handler): List of process actions to process the input or output value. # noqa: E501 :param handler: The handler of this DAGBooleanInputAlias. # noqa: E501 - :type handler: list[IOAliasHandler] + :type handler: List[IOAliasHandler] """ if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 @@ -216,7 +216,7 @@ def platform(self): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :return: The platform of this DAGBooleanInputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._platform @@ -227,7 +227,7 @@ def platform(self, platform): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :param platform: The platform of this DAGBooleanInputAlias. # noqa: E501 - :type platform: list[str] + :type platform: List[str] """ if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/dag_boolean_output.py b/pollination_sdk/models/dag_boolean_output.py index 1e0bab22a..5ef214e1d 100644 --- a/pollination_sdk/models/dag_boolean_output.py +++ b/pollination_sdk/models/dag_boolean_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class DAGBooleanOutput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias]', - 'annotations': 'dict(str, str)', - 'description': 'str', - '_from': 'AnyOfTaskReferenceFileReference', - 'name': 'str', - 'required': 'bool', + 'alias': 'List[DAGArrayOutputAliasInner]' + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'var_from': 'ModelFrom' + 'name': 'str' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'description': 'description', - '_from': 'from', - 'name': 'name', - 'required': 'required', + 'alias': 'alias' + 'annotations': 'annotations' + 'description': 'description' + 'var_from': 'from' + 'name': 'name' + 'required': 'required' 'type': 'type' } - def __init__(self, alias=None, annotations=None, description=None, _from=None, name=None, required=True, type='DAGBooleanOutput', local_vars_configuration=None): # noqa: E501 + def __init__(self, alias=None, annotations=None, description=None, var_from=None, name=None, required=True, type='DAGBooleanOutput', local_vars_configuration=None): # noqa: E501 """DAGBooleanOutput - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -62,7 +62,7 @@ def __init__(self, alias=None, annotations=None, description=None, _from=None, n self._alias = None self._annotations = None self._description = None - self.__from = None + self._var_from = None self._name = None self._required = None self._type = None @@ -74,7 +74,7 @@ def __init__(self, alias=None, annotations=None, description=None, _from=None, n self.annotations = annotations if description is not None: self.description = description - self._from = _from + self.var_from = var_from self.name = name if required is not None: self.required = required @@ -88,7 +88,7 @@ def alias(self): A list of additional processes for loading this output on different platforms. # noqa: E501 :return: The alias of this DAGBooleanOutput. # noqa: E501 - :rtype: list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias] + :rtype: List[DAGArrayOutputAliasInner] """ return self._alias @@ -99,7 +99,7 @@ def alias(self, alias): A list of additional processes for loading this output on different platforms. # noqa: E501 :param alias: The alias of this DAGBooleanOutput. # noqa: E501 - :type alias: list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias] + :type alias: List[DAGArrayOutputAliasInner] """ self._alias = alias @@ -111,7 +111,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGBooleanOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -122,7 +122,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGBooleanOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -151,29 +151,27 @@ def description(self, description): self._description = description @property - def _from(self): - """Gets the _from of this DAGBooleanOutput. # noqa: E501 + def var_from(self): + """Gets the var_from of this DAGBooleanOutput. # noqa: E501 - Reference to a file or a task output. Task output must be file. # noqa: E501 - :return: The _from of this DAGBooleanOutput. # noqa: E501 - :rtype: AnyOfTaskReferenceFileReference + :return: The var_from of this DAGBooleanOutput. # noqa: E501 + :rtype: ModelFrom """ - return self.__from + return self._var_from - @_from.setter - def _from(self, _from): - """Sets the _from of this DAGBooleanOutput. + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGBooleanOutput. - Reference to a file or a task output. Task output must be file. # noqa: E501 - :param _from: The _from of this DAGBooleanOutput. # noqa: E501 - :type _from: AnyOfTaskReferenceFileReference + :param var_from: The var_from of this DAGBooleanOutput. # noqa: E501 + :type var_from: ModelFrom """ - if self.local_vars_configuration.client_side_validation and _from is None: # noqa: E501 - raise ValueError("Invalid value for `_from`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 - self.__from = _from + self._var_from = var_from @property def name(self): diff --git a/pollination_sdk/models/dag_boolean_output_alias.py b/pollination_sdk/models/dag_boolean_output_alias.py index a1462fbf3..b45ed569d 100644 --- a/pollination_sdk/models/dag_boolean_output_alias.py +++ b/pollination_sdk/models/dag_boolean_output_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,28 +34,28 @@ class DAGBooleanOutputAlias(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - '_from': 'AnyOfTaskReferenceFileReference', - 'handler': 'list[IOAliasHandler]', - 'name': 'str', - 'platform': 'list[str]', - 'required': 'bool', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'var_from': 'ModelFrom' + 'handler': 'List[IOAliasHandler]' + 'name': 'str' + 'platform': 'List[str]' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - '_from': 'from', - 'handler': 'handler', - 'name': 'name', - 'platform': 'platform', - 'required': 'required', + 'annotations': 'annotations' + 'description': 'description' + 'var_from': 'from' + 'handler': 'handler' + 'name': 'name' + 'platform': 'platform' + 'required': 'required' 'type': 'type' } - def __init__(self, annotations=None, description=None, _from=None, handler=None, name=None, platform=None, required=True, type='DAGBooleanOutputAlias', local_vars_configuration=None): # noqa: E501 + def __init__(self, annotations=None, description=None, var_from=None, handler=None, name=None, platform=None, required=True, type='DAGBooleanOutputAlias', local_vars_configuration=None): # noqa: E501 """DAGBooleanOutputAlias - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -63,7 +63,7 @@ def __init__(self, annotations=None, description=None, _from=None, handler=None, self._annotations = None self._description = None - self.__from = None + self._var_from = None self._handler = None self._name = None self._platform = None @@ -75,7 +75,7 @@ def __init__(self, annotations=None, description=None, _from=None, handler=None, self.annotations = annotations if description is not None: self.description = description - self._from = _from + self.var_from = var_from self.handler = handler self.name = name self.platform = platform @@ -91,7 +91,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGBooleanOutputAlias. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -102,7 +102,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGBooleanOutputAlias. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -131,29 +131,27 @@ def description(self, description): self._description = description @property - def _from(self): - """Gets the _from of this DAGBooleanOutputAlias. # noqa: E501 + def var_from(self): + """Gets the var_from of this DAGBooleanOutputAlias. # noqa: E501 - Reference to a file or a task output. Task output must be file. # noqa: E501 - :return: The _from of this DAGBooleanOutputAlias. # noqa: E501 - :rtype: AnyOfTaskReferenceFileReference + :return: The var_from of this DAGBooleanOutputAlias. # noqa: E501 + :rtype: ModelFrom """ - return self.__from + return self._var_from - @_from.setter - def _from(self, _from): - """Sets the _from of this DAGBooleanOutputAlias. + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGBooleanOutputAlias. - Reference to a file or a task output. Task output must be file. # noqa: E501 - :param _from: The _from of this DAGBooleanOutputAlias. # noqa: E501 - :type _from: AnyOfTaskReferenceFileReference + :param var_from: The var_from of this DAGBooleanOutputAlias. # noqa: E501 + :type var_from: ModelFrom """ - if self.local_vars_configuration.client_side_validation and _from is None: # noqa: E501 - raise ValueError("Invalid value for `_from`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 - self.__from = _from + self._var_from = var_from @property def handler(self): @@ -162,7 +160,7 @@ def handler(self): List of process actions to process the input or output value. # noqa: E501 :return: The handler of this DAGBooleanOutputAlias. # noqa: E501 - :rtype: list[IOAliasHandler] + :rtype: List[IOAliasHandler] """ return self._handler @@ -173,7 +171,7 @@ def handler(self, handler): List of process actions to process the input or output value. # noqa: E501 :param handler: The handler of this DAGBooleanOutputAlias. # noqa: E501 - :type handler: list[IOAliasHandler] + :type handler: List[IOAliasHandler] """ if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 @@ -212,7 +210,7 @@ def platform(self): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :return: The platform of this DAGBooleanOutputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._platform @@ -223,7 +221,7 @@ def platform(self, platform): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :param platform: The platform of this DAGBooleanOutputAlias. # noqa: E501 - :type platform: list[str] + :type platform: List[str] """ if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/dag_file_input.py b/pollination_sdk/models/dag_file_input.py index 62ad1a340..8eec2b196 100644 --- a/pollination_sdk/models/dag_file_input.py +++ b/pollination_sdk/models/dag_file_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class DAGFileInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'AnyOfHTTPS3ProjectFolder', - 'description': 'str', - 'extensions': 'list[str]', - 'name': 'str', - 'required': 'bool', - 'spec': 'object', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'Default' + 'description': 'str' + 'extensions': 'List[str]' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'extensions': 'extensions', - 'name': 'name', - 'required': 'required', - 'spec': 'spec', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'extensions': 'extensions' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -99,7 +99,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this DAGFileInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -110,7 +110,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this DAGFileInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -122,7 +122,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGFileInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -133,7 +133,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGFileInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -142,10 +142,9 @@ def annotations(self, annotations): def default(self): """Gets the default of this DAGFileInput. # noqa: E501 - The default source for file if the value is not provided. # noqa: E501 :return: The default of this DAGFileInput. # noqa: E501 - :rtype: AnyOfHTTPS3ProjectFolder + :rtype: Default """ return self._default @@ -153,10 +152,9 @@ def default(self): def default(self, default): """Sets the default of this DAGFileInput. - The default source for file if the value is not provided. # noqa: E501 :param default: The default of this DAGFileInput. # noqa: E501 - :type default: AnyOfHTTPS3ProjectFolder + :type default: Default """ self._default = default @@ -191,7 +189,7 @@ def extensions(self): Optional list of extensions for file. The check for extension is case-insensitive. # noqa: E501 :return: The extensions of this DAGFileInput. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._extensions @@ -202,7 +200,7 @@ def extensions(self, extensions): Optional list of extensions for file. The check for extension is case-insensitive. # noqa: E501 :param extensions: The extensions of this DAGFileInput. # noqa: E501 - :type extensions: list[str] + :type extensions: List[str] """ self._extensions = extensions diff --git a/pollination_sdk/models/dag_file_input_alias.py b/pollination_sdk/models/dag_file_input_alias.py index 868f01ccf..65f2cc654 100644 --- a/pollination_sdk/models/dag_file_input_alias.py +++ b/pollination_sdk/models/dag_file_input_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,28 +34,28 @@ class DAGFileInputAlias(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'default': 'AnyOfHTTPS3ProjectFolder', - 'description': 'str', - 'extensions': 'list[str]', - 'handler': 'list[IOAliasHandler]', - 'name': 'str', - 'platform': 'list[str]', - 'required': 'bool', - 'spec': 'object', + 'annotations': 'Dict[str, str]' + 'default': 'Default' + 'description': 'str' + 'extensions': 'List[str]' + 'handler': 'List[IOAliasHandler]' + 'name': 'str' + 'platform': 'List[str]' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'extensions': 'extensions', - 'handler': 'handler', - 'name': 'name', - 'platform': 'platform', - 'required': 'required', - 'spec': 'spec', + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'extensions': 'extensions' + 'handler': 'handler' + 'name': 'name' + 'platform': 'platform' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -102,7 +102,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGFileInputAlias. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -113,7 +113,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGFileInputAlias. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -122,10 +122,9 @@ def annotations(self, annotations): def default(self): """Gets the default of this DAGFileInputAlias. # noqa: E501 - The default source for file if the value is not provided. # noqa: E501 :return: The default of this DAGFileInputAlias. # noqa: E501 - :rtype: AnyOfHTTPS3ProjectFolder + :rtype: Default """ return self._default @@ -133,10 +132,9 @@ def default(self): def default(self, default): """Sets the default of this DAGFileInputAlias. - The default source for file if the value is not provided. # noqa: E501 :param default: The default of this DAGFileInputAlias. # noqa: E501 - :type default: AnyOfHTTPS3ProjectFolder + :type default: Default """ self._default = default @@ -171,7 +169,7 @@ def extensions(self): Optional list of extensions for file. The check for extension is case-insensitive. # noqa: E501 :return: The extensions of this DAGFileInputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._extensions @@ -182,7 +180,7 @@ def extensions(self, extensions): Optional list of extensions for file. The check for extension is case-insensitive. # noqa: E501 :param extensions: The extensions of this DAGFileInputAlias. # noqa: E501 - :type extensions: list[str] + :type extensions: List[str] """ self._extensions = extensions @@ -194,7 +192,7 @@ def handler(self): List of process actions to process the input or output value. # noqa: E501 :return: The handler of this DAGFileInputAlias. # noqa: E501 - :rtype: list[IOAliasHandler] + :rtype: List[IOAliasHandler] """ return self._handler @@ -205,7 +203,7 @@ def handler(self, handler): List of process actions to process the input or output value. # noqa: E501 :param handler: The handler of this DAGFileInputAlias. # noqa: E501 - :type handler: list[IOAliasHandler] + :type handler: List[IOAliasHandler] """ if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 @@ -244,7 +242,7 @@ def platform(self): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :return: The platform of this DAGFileInputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._platform @@ -255,7 +253,7 @@ def platform(self, platform): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :param platform: The platform of this DAGFileInputAlias. # noqa: E501 - :type platform: list[str] + :type platform: List[str] """ if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/dag_file_output.py b/pollination_sdk/models/dag_file_output.py index a0ee6545f..8d0ef01bd 100644 --- a/pollination_sdk/models/dag_file_output.py +++ b/pollination_sdk/models/dag_file_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class DAGFileOutput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias]', - 'annotations': 'dict(str, str)', - 'description': 'str', - '_from': 'AnyOfTaskReferenceFileReference', - 'name': 'str', - 'required': 'bool', + 'alias': 'List[DAGArrayOutputAliasInner]' + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'var_from': 'ModelFrom' + 'name': 'str' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'description': 'description', - '_from': 'from', - 'name': 'name', - 'required': 'required', + 'alias': 'alias' + 'annotations': 'annotations' + 'description': 'description' + 'var_from': 'from' + 'name': 'name' + 'required': 'required' 'type': 'type' } - def __init__(self, alias=None, annotations=None, description=None, _from=None, name=None, required=True, type='DAGFileOutput', local_vars_configuration=None): # noqa: E501 + def __init__(self, alias=None, annotations=None, description=None, var_from=None, name=None, required=True, type='DAGFileOutput', local_vars_configuration=None): # noqa: E501 """DAGFileOutput - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -62,7 +62,7 @@ def __init__(self, alias=None, annotations=None, description=None, _from=None, n self._alias = None self._annotations = None self._description = None - self.__from = None + self._var_from = None self._name = None self._required = None self._type = None @@ -74,7 +74,7 @@ def __init__(self, alias=None, annotations=None, description=None, _from=None, n self.annotations = annotations if description is not None: self.description = description - self._from = _from + self.var_from = var_from self.name = name if required is not None: self.required = required @@ -88,7 +88,7 @@ def alias(self): A list of additional processes for loading this output on different platforms. # noqa: E501 :return: The alias of this DAGFileOutput. # noqa: E501 - :rtype: list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias] + :rtype: List[DAGArrayOutputAliasInner] """ return self._alias @@ -99,7 +99,7 @@ def alias(self, alias): A list of additional processes for loading this output on different platforms. # noqa: E501 :param alias: The alias of this DAGFileOutput. # noqa: E501 - :type alias: list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias] + :type alias: List[DAGArrayOutputAliasInner] """ self._alias = alias @@ -111,7 +111,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGFileOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -122,7 +122,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGFileOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -151,29 +151,27 @@ def description(self, description): self._description = description @property - def _from(self): - """Gets the _from of this DAGFileOutput. # noqa: E501 + def var_from(self): + """Gets the var_from of this DAGFileOutput. # noqa: E501 - Reference to a file or a task output. Task output must be file. # noqa: E501 - :return: The _from of this DAGFileOutput. # noqa: E501 - :rtype: AnyOfTaskReferenceFileReference + :return: The var_from of this DAGFileOutput. # noqa: E501 + :rtype: ModelFrom """ - return self.__from + return self._var_from - @_from.setter - def _from(self, _from): - """Sets the _from of this DAGFileOutput. + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGFileOutput. - Reference to a file or a task output. Task output must be file. # noqa: E501 - :param _from: The _from of this DAGFileOutput. # noqa: E501 - :type _from: AnyOfTaskReferenceFileReference + :param var_from: The var_from of this DAGFileOutput. # noqa: E501 + :type var_from: ModelFrom """ - if self.local_vars_configuration.client_side_validation and _from is None: # noqa: E501 - raise ValueError("Invalid value for `_from`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 - self.__from = _from + self._var_from = var_from @property def name(self): diff --git a/pollination_sdk/models/dag_file_output_alias.py b/pollination_sdk/models/dag_file_output_alias.py index 02f65ff6c..57705780a 100644 --- a/pollination_sdk/models/dag_file_output_alias.py +++ b/pollination_sdk/models/dag_file_output_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,28 +34,28 @@ class DAGFileOutputAlias(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - '_from': 'AnyOfTaskReferenceFileReference', - 'handler': 'list[IOAliasHandler]', - 'name': 'str', - 'platform': 'list[str]', - 'required': 'bool', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'var_from': 'ModelFrom' + 'handler': 'List[IOAliasHandler]' + 'name': 'str' + 'platform': 'List[str]' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - '_from': 'from', - 'handler': 'handler', - 'name': 'name', - 'platform': 'platform', - 'required': 'required', + 'annotations': 'annotations' + 'description': 'description' + 'var_from': 'from' + 'handler': 'handler' + 'name': 'name' + 'platform': 'platform' + 'required': 'required' 'type': 'type' } - def __init__(self, annotations=None, description=None, _from=None, handler=None, name=None, platform=None, required=True, type='DAGFileOutputAlias', local_vars_configuration=None): # noqa: E501 + def __init__(self, annotations=None, description=None, var_from=None, handler=None, name=None, platform=None, required=True, type='DAGFileOutputAlias', local_vars_configuration=None): # noqa: E501 """DAGFileOutputAlias - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -63,7 +63,7 @@ def __init__(self, annotations=None, description=None, _from=None, handler=None, self._annotations = None self._description = None - self.__from = None + self._var_from = None self._handler = None self._name = None self._platform = None @@ -75,7 +75,7 @@ def __init__(self, annotations=None, description=None, _from=None, handler=None, self.annotations = annotations if description is not None: self.description = description - self._from = _from + self.var_from = var_from self.handler = handler self.name = name self.platform = platform @@ -91,7 +91,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGFileOutputAlias. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -102,7 +102,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGFileOutputAlias. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -131,29 +131,27 @@ def description(self, description): self._description = description @property - def _from(self): - """Gets the _from of this DAGFileOutputAlias. # noqa: E501 + def var_from(self): + """Gets the var_from of this DAGFileOutputAlias. # noqa: E501 - Reference to a file or a task output. Task output must be file. # noqa: E501 - :return: The _from of this DAGFileOutputAlias. # noqa: E501 - :rtype: AnyOfTaskReferenceFileReference + :return: The var_from of this DAGFileOutputAlias. # noqa: E501 + :rtype: ModelFrom """ - return self.__from + return self._var_from - @_from.setter - def _from(self, _from): - """Sets the _from of this DAGFileOutputAlias. + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGFileOutputAlias. - Reference to a file or a task output. Task output must be file. # noqa: E501 - :param _from: The _from of this DAGFileOutputAlias. # noqa: E501 - :type _from: AnyOfTaskReferenceFileReference + :param var_from: The var_from of this DAGFileOutputAlias. # noqa: E501 + :type var_from: ModelFrom """ - if self.local_vars_configuration.client_side_validation and _from is None: # noqa: E501 - raise ValueError("Invalid value for `_from`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 - self.__from = _from + self._var_from = var_from @property def handler(self): @@ -162,7 +160,7 @@ def handler(self): List of process actions to process the input or output value. # noqa: E501 :return: The handler of this DAGFileOutputAlias. # noqa: E501 - :rtype: list[IOAliasHandler] + :rtype: List[IOAliasHandler] """ return self._handler @@ -173,7 +171,7 @@ def handler(self, handler): List of process actions to process the input or output value. # noqa: E501 :param handler: The handler of this DAGFileOutputAlias. # noqa: E501 - :type handler: list[IOAliasHandler] + :type handler: List[IOAliasHandler] """ if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 @@ -212,7 +210,7 @@ def platform(self): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :return: The platform of this DAGFileOutputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._platform @@ -223,7 +221,7 @@ def platform(self, platform): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :param platform: The platform of this DAGFileOutputAlias. # noqa: E501 - :type platform: list[str] + :type platform: List[str] """ if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/dag_folder_input.py b/pollination_sdk/models/dag_folder_input.py index 2b6bce95b..f45909350 100644 --- a/pollination_sdk/models/dag_folder_input.py +++ b/pollination_sdk/models/dag_folder_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,24 +34,24 @@ class DAGFolderInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'AnyOfHTTPS3ProjectFolder', - 'description': 'str', - 'name': 'str', - 'required': 'bool', - 'spec': 'object', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'Default' + 'description': 'str' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'name': 'name', - 'required': 'required', - 'spec': 'spec', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -94,7 +94,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this DAGFolderInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -105,7 +105,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this DAGFolderInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -117,7 +117,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGFolderInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -128,7 +128,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGFolderInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -137,10 +137,9 @@ def annotations(self, annotations): def default(self): """Gets the default of this DAGFolderInput. # noqa: E501 - The default source for file if the value is not provided. # noqa: E501 :return: The default of this DAGFolderInput. # noqa: E501 - :rtype: AnyOfHTTPS3ProjectFolder + :rtype: Default """ return self._default @@ -148,10 +147,9 @@ def default(self): def default(self, default): """Sets the default of this DAGFolderInput. - The default source for file if the value is not provided. # noqa: E501 :param default: The default of this DAGFolderInput. # noqa: E501 - :type default: AnyOfHTTPS3ProjectFolder + :type default: Default """ self._default = default diff --git a/pollination_sdk/models/dag_folder_input_alias.py b/pollination_sdk/models/dag_folder_input_alias.py index def8cf7ae..ee296c0ca 100644 --- a/pollination_sdk/models/dag_folder_input_alias.py +++ b/pollination_sdk/models/dag_folder_input_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class DAGFolderInputAlias(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'default': 'AnyOfHTTPS3ProjectFolder', - 'description': 'str', - 'handler': 'list[IOAliasHandler]', - 'name': 'str', - 'platform': 'list[str]', - 'required': 'bool', - 'spec': 'object', + 'annotations': 'Dict[str, str]' + 'default': 'Default' + 'description': 'str' + 'handler': 'List[IOAliasHandler]' + 'name': 'str' + 'platform': 'List[str]' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'handler': 'handler', - 'name': 'name', - 'platform': 'platform', - 'required': 'required', - 'spec': 'spec', + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'handler': 'handler' + 'name': 'name' + 'platform': 'platform' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -97,7 +97,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGFolderInputAlias. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -108,7 +108,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGFolderInputAlias. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -117,10 +117,9 @@ def annotations(self, annotations): def default(self): """Gets the default of this DAGFolderInputAlias. # noqa: E501 - The default source for file if the value is not provided. # noqa: E501 :return: The default of this DAGFolderInputAlias. # noqa: E501 - :rtype: AnyOfHTTPS3ProjectFolder + :rtype: Default """ return self._default @@ -128,10 +127,9 @@ def default(self): def default(self, default): """Sets the default of this DAGFolderInputAlias. - The default source for file if the value is not provided. # noqa: E501 :param default: The default of this DAGFolderInputAlias. # noqa: E501 - :type default: AnyOfHTTPS3ProjectFolder + :type default: Default """ self._default = default @@ -166,7 +164,7 @@ def handler(self): List of process actions to process the input or output value. # noqa: E501 :return: The handler of this DAGFolderInputAlias. # noqa: E501 - :rtype: list[IOAliasHandler] + :rtype: List[IOAliasHandler] """ return self._handler @@ -177,7 +175,7 @@ def handler(self, handler): List of process actions to process the input or output value. # noqa: E501 :param handler: The handler of this DAGFolderInputAlias. # noqa: E501 - :type handler: list[IOAliasHandler] + :type handler: List[IOAliasHandler] """ if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 @@ -216,7 +214,7 @@ def platform(self): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :return: The platform of this DAGFolderInputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._platform @@ -227,7 +225,7 @@ def platform(self, platform): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :param platform: The platform of this DAGFolderInputAlias. # noqa: E501 - :type platform: list[str] + :type platform: List[str] """ if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/dag_folder_output.py b/pollination_sdk/models/dag_folder_output.py index dbe250201..66fd6d394 100644 --- a/pollination_sdk/models/dag_folder_output.py +++ b/pollination_sdk/models/dag_folder_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class DAGFolderOutput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias]', - 'annotations': 'dict(str, str)', - 'description': 'str', - '_from': 'AnyOfTaskReferenceFolderReference', - 'name': 'str', - 'required': 'bool', + 'alias': 'List[DAGArrayOutputAliasInner]' + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'var_from': 'From1' + 'name': 'str' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'description': 'description', - '_from': 'from', - 'name': 'name', - 'required': 'required', + 'alias': 'alias' + 'annotations': 'annotations' + 'description': 'description' + 'var_from': 'from' + 'name': 'name' + 'required': 'required' 'type': 'type' } - def __init__(self, alias=None, annotations=None, description=None, _from=None, name=None, required=True, type='DAGFolderOutput', local_vars_configuration=None): # noqa: E501 + def __init__(self, alias=None, annotations=None, description=None, var_from=None, name=None, required=True, type='DAGFolderOutput', local_vars_configuration=None): # noqa: E501 """DAGFolderOutput - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -62,7 +62,7 @@ def __init__(self, alias=None, annotations=None, description=None, _from=None, n self._alias = None self._annotations = None self._description = None - self.__from = None + self._var_from = None self._name = None self._required = None self._type = None @@ -74,7 +74,7 @@ def __init__(self, alias=None, annotations=None, description=None, _from=None, n self.annotations = annotations if description is not None: self.description = description - self._from = _from + self.var_from = var_from self.name = name if required is not None: self.required = required @@ -88,7 +88,7 @@ def alias(self): A list of additional processes for loading this output on different platforms. # noqa: E501 :return: The alias of this DAGFolderOutput. # noqa: E501 - :rtype: list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias] + :rtype: List[DAGArrayOutputAliasInner] """ return self._alias @@ -99,7 +99,7 @@ def alias(self, alias): A list of additional processes for loading this output on different platforms. # noqa: E501 :param alias: The alias of this DAGFolderOutput. # noqa: E501 - :type alias: list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias] + :type alias: List[DAGArrayOutputAliasInner] """ self._alias = alias @@ -111,7 +111,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGFolderOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -122,7 +122,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGFolderOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -151,29 +151,27 @@ def description(self, description): self._description = description @property - def _from(self): - """Gets the _from of this DAGFolderOutput. # noqa: E501 + def var_from(self): + """Gets the var_from of this DAGFolderOutput. # noqa: E501 - Reference to a folder or a task output. Task output must be folder. # noqa: E501 - :return: The _from of this DAGFolderOutput. # noqa: E501 - :rtype: AnyOfTaskReferenceFolderReference + :return: The var_from of this DAGFolderOutput. # noqa: E501 + :rtype: From1 """ - return self.__from + return self._var_from - @_from.setter - def _from(self, _from): - """Sets the _from of this DAGFolderOutput. + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGFolderOutput. - Reference to a folder or a task output. Task output must be folder. # noqa: E501 - :param _from: The _from of this DAGFolderOutput. # noqa: E501 - :type _from: AnyOfTaskReferenceFolderReference + :param var_from: The var_from of this DAGFolderOutput. # noqa: E501 + :type var_from: From1 """ - if self.local_vars_configuration.client_side_validation and _from is None: # noqa: E501 - raise ValueError("Invalid value for `_from`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 - self.__from = _from + self._var_from = var_from @property def name(self): diff --git a/pollination_sdk/models/dag_folder_output_alias.py b/pollination_sdk/models/dag_folder_output_alias.py index 5d9eef542..e2c2683b5 100644 --- a/pollination_sdk/models/dag_folder_output_alias.py +++ b/pollination_sdk/models/dag_folder_output_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,28 +34,28 @@ class DAGFolderOutputAlias(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - '_from': 'AnyOfTaskReferenceFolderReference', - 'handler': 'list[IOAliasHandler]', - 'name': 'str', - 'platform': 'list[str]', - 'required': 'bool', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'var_from': 'From1' + 'handler': 'List[IOAliasHandler]' + 'name': 'str' + 'platform': 'List[str]' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - '_from': 'from', - 'handler': 'handler', - 'name': 'name', - 'platform': 'platform', - 'required': 'required', + 'annotations': 'annotations' + 'description': 'description' + 'var_from': 'from' + 'handler': 'handler' + 'name': 'name' + 'platform': 'platform' + 'required': 'required' 'type': 'type' } - def __init__(self, annotations=None, description=None, _from=None, handler=None, name=None, platform=None, required=True, type='DAGFolderOutputAlias', local_vars_configuration=None): # noqa: E501 + def __init__(self, annotations=None, description=None, var_from=None, handler=None, name=None, platform=None, required=True, type='DAGFolderOutputAlias', local_vars_configuration=None): # noqa: E501 """DAGFolderOutputAlias - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -63,7 +63,7 @@ def __init__(self, annotations=None, description=None, _from=None, handler=None, self._annotations = None self._description = None - self.__from = None + self._var_from = None self._handler = None self._name = None self._platform = None @@ -75,7 +75,7 @@ def __init__(self, annotations=None, description=None, _from=None, handler=None, self.annotations = annotations if description is not None: self.description = description - self._from = _from + self.var_from = var_from self.handler = handler self.name = name self.platform = platform @@ -91,7 +91,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGFolderOutputAlias. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -102,7 +102,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGFolderOutputAlias. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -131,29 +131,27 @@ def description(self, description): self._description = description @property - def _from(self): - """Gets the _from of this DAGFolderOutputAlias. # noqa: E501 + def var_from(self): + """Gets the var_from of this DAGFolderOutputAlias. # noqa: E501 - Reference to a folder or a task output. Task output must be folder. # noqa: E501 - :return: The _from of this DAGFolderOutputAlias. # noqa: E501 - :rtype: AnyOfTaskReferenceFolderReference + :return: The var_from of this DAGFolderOutputAlias. # noqa: E501 + :rtype: From1 """ - return self.__from + return self._var_from - @_from.setter - def _from(self, _from): - """Sets the _from of this DAGFolderOutputAlias. + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGFolderOutputAlias. - Reference to a folder or a task output. Task output must be folder. # noqa: E501 - :param _from: The _from of this DAGFolderOutputAlias. # noqa: E501 - :type _from: AnyOfTaskReferenceFolderReference + :param var_from: The var_from of this DAGFolderOutputAlias. # noqa: E501 + :type var_from: From1 """ - if self.local_vars_configuration.client_side_validation and _from is None: # noqa: E501 - raise ValueError("Invalid value for `_from`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 - self.__from = _from + self._var_from = var_from @property def handler(self): @@ -162,7 +160,7 @@ def handler(self): List of process actions to process the input or output value. # noqa: E501 :return: The handler of this DAGFolderOutputAlias. # noqa: E501 - :rtype: list[IOAliasHandler] + :rtype: List[IOAliasHandler] """ return self._handler @@ -173,7 +171,7 @@ def handler(self, handler): List of process actions to process the input or output value. # noqa: E501 :param handler: The handler of this DAGFolderOutputAlias. # noqa: E501 - :type handler: list[IOAliasHandler] + :type handler: List[IOAliasHandler] """ if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 @@ -212,7 +210,7 @@ def platform(self): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :return: The platform of this DAGFolderOutputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._platform @@ -223,7 +221,7 @@ def platform(self, platform): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :param platform: The platform of this DAGFolderOutputAlias. # noqa: E501 - :type platform: list[str] + :type platform: List[str] """ if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/dag_generic_input.py b/pollination_sdk/models/dag_generic_input.py index fdecca11a..f7d7d639b 100644 --- a/pollination_sdk/models/dag_generic_input.py +++ b/pollination_sdk/models/dag_generic_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,24 +34,24 @@ class DAGGenericInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'str', - 'description': 'str', - 'name': 'str', - 'required': 'bool', - 'spec': 'object', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'str' + 'description': 'str' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'name': 'name', - 'required': 'required', - 'spec': 'spec', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -94,7 +94,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this DAGGenericInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -105,7 +105,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this DAGGenericInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -117,7 +117,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGGenericInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -128,7 +128,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGGenericInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/dag_generic_input_alias.py b/pollination_sdk/models/dag_generic_input_alias.py index db5143981..de1f8d272 100644 --- a/pollination_sdk/models/dag_generic_input_alias.py +++ b/pollination_sdk/models/dag_generic_input_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class DAGGenericInputAlias(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'default': 'str', - 'description': 'str', - 'handler': 'list[IOAliasHandler]', - 'name': 'str', - 'platform': 'list[str]', - 'required': 'bool', - 'spec': 'object', + 'annotations': 'Dict[str, str]' + 'default': 'str' + 'description': 'str' + 'handler': 'List[IOAliasHandler]' + 'name': 'str' + 'platform': 'List[str]' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'handler': 'handler', - 'name': 'name', - 'platform': 'platform', - 'required': 'required', - 'spec': 'spec', + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'handler': 'handler' + 'name': 'name' + 'platform': 'platform' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -97,7 +97,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGGenericInputAlias. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -108,7 +108,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGGenericInputAlias. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -166,7 +166,7 @@ def handler(self): List of process actions to process the input or output value. # noqa: E501 :return: The handler of this DAGGenericInputAlias. # noqa: E501 - :rtype: list[IOAliasHandler] + :rtype: List[IOAliasHandler] """ return self._handler @@ -177,7 +177,7 @@ def handler(self, handler): List of process actions to process the input or output value. # noqa: E501 :param handler: The handler of this DAGGenericInputAlias. # noqa: E501 - :type handler: list[IOAliasHandler] + :type handler: List[IOAliasHandler] """ if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 @@ -216,7 +216,7 @@ def platform(self): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :return: The platform of this DAGGenericInputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._platform @@ -227,7 +227,7 @@ def platform(self, platform): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :param platform: The platform of this DAGGenericInputAlias. # noqa: E501 - :type platform: list[str] + :type platform: List[str] """ if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/dag_generic_output.py b/pollination_sdk/models/dag_generic_output.py index df4e6849d..1c10a0939 100644 --- a/pollination_sdk/models/dag_generic_output.py +++ b/pollination_sdk/models/dag_generic_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,24 +34,24 @@ class DAGGenericOutput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias]', - 'annotations': 'dict(str, str)', - 'description': 'str', - '_from': 'object', - 'name': 'str', + 'alias': 'List[DAGArrayOutputAliasInner]' + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'var_from': 'object' + 'name': 'str' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'description': 'description', - '_from': 'from', - 'name': 'name', + 'alias': 'alias' + 'annotations': 'annotations' + 'description': 'description' + 'var_from': 'from' + 'name': 'name' 'type': 'type' } - def __init__(self, alias=None, annotations=None, description=None, _from=None, name=None, type='DAGGenericOutput', local_vars_configuration=None): # noqa: E501 + def __init__(self, alias=None, annotations=None, description=None, var_from=None, name=None, type='DAGGenericOutput', local_vars_configuration=None): # noqa: E501 """DAGGenericOutput - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -60,7 +60,7 @@ def __init__(self, alias=None, annotations=None, description=None, _from=None, n self._alias = None self._annotations = None self._description = None - self.__from = None + self._var_from = None self._name = None self._type = None self.discriminator = None @@ -71,7 +71,7 @@ def __init__(self, alias=None, annotations=None, description=None, _from=None, n self.annotations = annotations if description is not None: self.description = description - self._from = _from + self.var_from = var_from self.name = name if type is not None: self.type = type @@ -83,7 +83,7 @@ def alias(self): A list of additional processes for loading this output on different platforms. # noqa: E501 :return: The alias of this DAGGenericOutput. # noqa: E501 - :rtype: list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias] + :rtype: List[DAGArrayOutputAliasInner] """ return self._alias @@ -94,7 +94,7 @@ def alias(self, alias): A list of additional processes for loading this output on different platforms. # noqa: E501 :param alias: The alias of this DAGGenericOutput. # noqa: E501 - :type alias: list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias] + :type alias: List[DAGArrayOutputAliasInner] """ self._alias = alias @@ -106,7 +106,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGGenericOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -117,7 +117,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGGenericOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -146,27 +146,25 @@ def description(self, description): self._description = description @property - def _from(self): - """Gets the _from of this DAGGenericOutput. # noqa: E501 + def var_from(self): + """Gets the var_from of this DAGGenericOutput. # noqa: E501 - Reference to a file or a task output. Task output must be file. # noqa: E501 - :return: The _from of this DAGGenericOutput. # noqa: E501 + :return: The var_from of this DAGGenericOutput. # noqa: E501 :rtype: object """ - return self.__from + return self._var_from - @_from.setter - def _from(self, _from): - """Sets the _from of this DAGGenericOutput. + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGGenericOutput. - Reference to a file or a task output. Task output must be file. # noqa: E501 - :param _from: The _from of this DAGGenericOutput. # noqa: E501 - :type _from: object + :param var_from: The var_from of this DAGGenericOutput. # noqa: E501 + :type var_from: object """ - self.__from = _from + self._var_from = var_from @property def name(self): diff --git a/pollination_sdk/models/dag_generic_output_alias.py b/pollination_sdk/models/dag_generic_output_alias.py index 4900a80c4..c4d601326 100644 --- a/pollination_sdk/models/dag_generic_output_alias.py +++ b/pollination_sdk/models/dag_generic_output_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class DAGGenericOutputAlias(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'handler': 'list[IOAliasHandler]', - 'name': 'str', - 'platform': 'list[str]', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'handler': 'List[IOAliasHandler]' + 'name': 'str' + 'platform': 'List[str]' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'handler': 'handler', - 'name': 'name', - 'platform': 'platform', + 'annotations': 'annotations' + 'description': 'description' + 'handler': 'handler' + 'name': 'name' + 'platform': 'platform' 'type': 'type' } @@ -82,7 +82,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGGenericOutputAlias. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -93,7 +93,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGGenericOutputAlias. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -128,7 +128,7 @@ def handler(self): List of process actions to process the input or output value. # noqa: E501 :return: The handler of this DAGGenericOutputAlias. # noqa: E501 - :rtype: list[IOAliasHandler] + :rtype: List[IOAliasHandler] """ return self._handler @@ -139,7 +139,7 @@ def handler(self, handler): List of process actions to process the input or output value. # noqa: E501 :param handler: The handler of this DAGGenericOutputAlias. # noqa: E501 - :type handler: list[IOAliasHandler] + :type handler: List[IOAliasHandler] """ if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 @@ -178,7 +178,7 @@ def platform(self): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :return: The platform of this DAGGenericOutputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._platform @@ -189,7 +189,7 @@ def platform(self, platform): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :param platform: The platform of this DAGGenericOutputAlias. # noqa: E501 - :type platform: list[str] + :type platform: List[str] """ if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/dag_inputs_inner.py b/pollination_sdk/models/dag_inputs_inner.py new file mode 100644 index 000000000..3aec157da --- /dev/null +++ b/pollination_sdk/models/dag_inputs_inner.py @@ -0,0 +1,377 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class DAGInputsInner(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'object' + 'description': 'str' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' + 'type': 'str' + 'extensions': 'List[str]' + 'items_type': 'ItemType' + } + + attribute_map = { + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' + 'type': 'type' + 'extensions': 'extensions' + 'items_type': 'items_type' + } + + def __init__(self, alias=None, annotations=None, default=None, description=None, name=None, required=False, spec=None, type='DAGJSONObjectInput', extensions=None, items_type=None, local_vars_configuration=None): # noqa: E501 + """DAGInputsInner - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._alias = None + self._annotations = None + self._default = None + self._description = None + self._name = None + self._required = None + self._spec = None + self._type = None + self._extensions = None + self._items_type = None + self.discriminator = None + + if alias is not None: + self.alias = alias + if annotations is not None: + self.annotations = annotations + if default is not None: + self.default = default + if description is not None: + self.description = description + self.name = name + if required is not None: + self.required = required + if spec is not None: + self.spec = spec + if type is not None: + self.type = type + if extensions is not None: + self.extensions = extensions + if items_type is not None: + self.items_type = items_type + + @property + def alias(self): + """Gets the alias of this DAGInputsInner. # noqa: E501 + + A list of aliases for this input in different platforms. # noqa: E501 + + :return: The alias of this DAGInputsInner. # noqa: E501 + :rtype: List[DAGArrayInputAliasInner] + """ + return self._alias + + @alias.setter + def alias(self, alias): + """Sets the alias of this DAGInputsInner. + + A list of aliases for this input in different platforms. # noqa: E501 + + :param alias: The alias of this DAGInputsInner. # noqa: E501 + :type alias: List[DAGArrayInputAliasInner] + """ + + self._alias = alias + + @property + def annotations(self): + """Gets the annotations of this DAGInputsInner. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this DAGInputsInner. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this DAGInputsInner. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this DAGInputsInner. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def default(self): + """Gets the default of this DAGInputsInner. # noqa: E501 + + Default value to use for an input if a value was not supplied. # noqa: E501 + + :return: The default of this DAGInputsInner. # noqa: E501 + :rtype: object + """ + return self._default + + @default.setter + def default(self, default): + """Sets the default of this DAGInputsInner. + + Default value to use for an input if a value was not supplied. # noqa: E501 + + :param default: The default of this DAGInputsInner. # noqa: E501 + :type default: object + """ + + self._default = default + + @property + def description(self): + """Gets the description of this DAGInputsInner. # noqa: E501 + + Optional description for input. # noqa: E501 + + :return: The description of this DAGInputsInner. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this DAGInputsInner. + + Optional description for input. # noqa: E501 + + :param description: The description of this DAGInputsInner. # noqa: E501 + :type description: str + """ + + self._description = description + + @property + def name(self): + """Gets the name of this DAGInputsInner. # noqa: E501 + + Input name. # noqa: E501 + + :return: The name of this DAGInputsInner. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DAGInputsInner. + + Input name. # noqa: E501 + + :param name: The name of this DAGInputsInner. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def required(self): + """Gets the required of this DAGInputsInner. # noqa: E501 + + A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. # noqa: E501 + + :return: The required of this DAGInputsInner. # noqa: E501 + :rtype: bool + """ + return self._required + + @required.setter + def required(self, required): + """Sets the required of this DAGInputsInner. + + A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. # noqa: E501 + + :param required: The required of this DAGInputsInner. # noqa: E501 + :type required: bool + """ + + self._required = required + + @property + def spec(self): + """Gets the spec of this DAGInputsInner. # noqa: E501 + + An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. # noqa: E501 + + :return: The spec of this DAGInputsInner. # noqa: E501 + :rtype: object + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this DAGInputsInner. + + An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. # noqa: E501 + + :param spec: The spec of this DAGInputsInner. # noqa: E501 + :type spec: object + """ + + self._spec = spec + + @property + def type(self): + """Gets the type of this DAGInputsInner. # noqa: E501 + + + :return: The type of this DAGInputsInner. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this DAGInputsInner. + + + :param type: The type of this DAGInputsInner. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^DAGJSONObjectInput$', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^DAGJSONObjectInput$/`") # noqa: E501 + + self._type = type + + @property + def extensions(self): + """Gets the extensions of this DAGInputsInner. # noqa: E501 + + Optional list of extensions for path. The check for extension is case-insensitive. The extension will only be validated for file inputs. # noqa: E501 + + :return: The extensions of this DAGInputsInner. # noqa: E501 + :rtype: List[str] + """ + return self._extensions + + @extensions.setter + def extensions(self, extensions): + """Sets the extensions of this DAGInputsInner. + + Optional list of extensions for path. The check for extension is case-insensitive. The extension will only be validated for file inputs. # noqa: E501 + + :param extensions: The extensions of this DAGInputsInner. # noqa: E501 + :type extensions: List[str] + """ + + self._extensions = extensions + + @property + def items_type(self): + """Gets the items_type of this DAGInputsInner. # noqa: E501 + + Type of items in an array. All the items in an array must be from the same type. # noqa: E501 + + :return: The items_type of this DAGInputsInner. # noqa: E501 + :rtype: ItemType + """ + return self._items_type + + @items_type.setter + def items_type(self, items_type): + """Sets the items_type of this DAGInputsInner. + + Type of items in an array. All the items in an array must be from the same type. # noqa: E501 + + :param items_type: The items_type of this DAGInputsInner. # noqa: E501 + :type items_type: ItemType + """ + + self._items_type = items_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DAGInputsInner): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DAGInputsInner): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/dag_integer_input.py b/pollination_sdk/models/dag_integer_input.py index d6f43e490..e583ec1e0 100644 --- a/pollination_sdk/models/dag_integer_input.py +++ b/pollination_sdk/models/dag_integer_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,24 +34,24 @@ class DAGIntegerInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'int', - 'description': 'str', - 'name': 'str', - 'required': 'bool', - 'spec': 'object', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'int' + 'description': 'str' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'name': 'name', - 'required': 'required', - 'spec': 'spec', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -94,7 +94,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this DAGIntegerInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -105,7 +105,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this DAGIntegerInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -117,7 +117,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGIntegerInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -128,7 +128,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGIntegerInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/dag_integer_input_alias.py b/pollination_sdk/models/dag_integer_input_alias.py index c42c6c777..6c17875fd 100644 --- a/pollination_sdk/models/dag_integer_input_alias.py +++ b/pollination_sdk/models/dag_integer_input_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class DAGIntegerInputAlias(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'default': 'int', - 'description': 'str', - 'handler': 'list[IOAliasHandler]', - 'name': 'str', - 'platform': 'list[str]', - 'required': 'bool', - 'spec': 'object', + 'annotations': 'Dict[str, str]' + 'default': 'int' + 'description': 'str' + 'handler': 'List[IOAliasHandler]' + 'name': 'str' + 'platform': 'List[str]' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'handler': 'handler', - 'name': 'name', - 'platform': 'platform', - 'required': 'required', - 'spec': 'spec', + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'handler': 'handler' + 'name': 'name' + 'platform': 'platform' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -97,7 +97,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGIntegerInputAlias. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -108,7 +108,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGIntegerInputAlias. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -166,7 +166,7 @@ def handler(self): List of process actions to process the input or output value. # noqa: E501 :return: The handler of this DAGIntegerInputAlias. # noqa: E501 - :rtype: list[IOAliasHandler] + :rtype: List[IOAliasHandler] """ return self._handler @@ -177,7 +177,7 @@ def handler(self, handler): List of process actions to process the input or output value. # noqa: E501 :param handler: The handler of this DAGIntegerInputAlias. # noqa: E501 - :type handler: list[IOAliasHandler] + :type handler: List[IOAliasHandler] """ if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 @@ -216,7 +216,7 @@ def platform(self): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :return: The platform of this DAGIntegerInputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._platform @@ -227,7 +227,7 @@ def platform(self, platform): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :param platform: The platform of this DAGIntegerInputAlias. # noqa: E501 - :type platform: list[str] + :type platform: List[str] """ if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/dag_integer_output.py b/pollination_sdk/models/dag_integer_output.py index 1611db6c0..638e2af63 100644 --- a/pollination_sdk/models/dag_integer_output.py +++ b/pollination_sdk/models/dag_integer_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class DAGIntegerOutput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias]', - 'annotations': 'dict(str, str)', - 'description': 'str', - '_from': 'AnyOfTaskReferenceFileReference', - 'name': 'str', - 'required': 'bool', + 'alias': 'List[DAGArrayOutputAliasInner]' + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'var_from': 'ModelFrom' + 'name': 'str' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'description': 'description', - '_from': 'from', - 'name': 'name', - 'required': 'required', + 'alias': 'alias' + 'annotations': 'annotations' + 'description': 'description' + 'var_from': 'from' + 'name': 'name' + 'required': 'required' 'type': 'type' } - def __init__(self, alias=None, annotations=None, description=None, _from=None, name=None, required=True, type='DAGIntegerOutput', local_vars_configuration=None): # noqa: E501 + def __init__(self, alias=None, annotations=None, description=None, var_from=None, name=None, required=True, type='DAGIntegerOutput', local_vars_configuration=None): # noqa: E501 """DAGIntegerOutput - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -62,7 +62,7 @@ def __init__(self, alias=None, annotations=None, description=None, _from=None, n self._alias = None self._annotations = None self._description = None - self.__from = None + self._var_from = None self._name = None self._required = None self._type = None @@ -74,7 +74,7 @@ def __init__(self, alias=None, annotations=None, description=None, _from=None, n self.annotations = annotations if description is not None: self.description = description - self._from = _from + self.var_from = var_from self.name = name if required is not None: self.required = required @@ -88,7 +88,7 @@ def alias(self): A list of additional processes for loading this output on different platforms. # noqa: E501 :return: The alias of this DAGIntegerOutput. # noqa: E501 - :rtype: list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias] + :rtype: List[DAGArrayOutputAliasInner] """ return self._alias @@ -99,7 +99,7 @@ def alias(self, alias): A list of additional processes for loading this output on different platforms. # noqa: E501 :param alias: The alias of this DAGIntegerOutput. # noqa: E501 - :type alias: list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias] + :type alias: List[DAGArrayOutputAliasInner] """ self._alias = alias @@ -111,7 +111,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGIntegerOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -122,7 +122,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGIntegerOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -151,29 +151,27 @@ def description(self, description): self._description = description @property - def _from(self): - """Gets the _from of this DAGIntegerOutput. # noqa: E501 + def var_from(self): + """Gets the var_from of this DAGIntegerOutput. # noqa: E501 - Reference to a file or a task output. Task output must be file. # noqa: E501 - :return: The _from of this DAGIntegerOutput. # noqa: E501 - :rtype: AnyOfTaskReferenceFileReference + :return: The var_from of this DAGIntegerOutput. # noqa: E501 + :rtype: ModelFrom """ - return self.__from + return self._var_from - @_from.setter - def _from(self, _from): - """Sets the _from of this DAGIntegerOutput. + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGIntegerOutput. - Reference to a file or a task output. Task output must be file. # noqa: E501 - :param _from: The _from of this DAGIntegerOutput. # noqa: E501 - :type _from: AnyOfTaskReferenceFileReference + :param var_from: The var_from of this DAGIntegerOutput. # noqa: E501 + :type var_from: ModelFrom """ - if self.local_vars_configuration.client_side_validation and _from is None: # noqa: E501 - raise ValueError("Invalid value for `_from`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 - self.__from = _from + self._var_from = var_from @property def name(self): diff --git a/pollination_sdk/models/dag_integer_output_alias.py b/pollination_sdk/models/dag_integer_output_alias.py index d9ac88ca6..62276d3ac 100644 --- a/pollination_sdk/models/dag_integer_output_alias.py +++ b/pollination_sdk/models/dag_integer_output_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,28 +34,28 @@ class DAGIntegerOutputAlias(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - '_from': 'AnyOfTaskReferenceFileReference', - 'handler': 'list[IOAliasHandler]', - 'name': 'str', - 'platform': 'list[str]', - 'required': 'bool', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'var_from': 'ModelFrom' + 'handler': 'List[IOAliasHandler]' + 'name': 'str' + 'platform': 'List[str]' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - '_from': 'from', - 'handler': 'handler', - 'name': 'name', - 'platform': 'platform', - 'required': 'required', + 'annotations': 'annotations' + 'description': 'description' + 'var_from': 'from' + 'handler': 'handler' + 'name': 'name' + 'platform': 'platform' + 'required': 'required' 'type': 'type' } - def __init__(self, annotations=None, description=None, _from=None, handler=None, name=None, platform=None, required=True, type='DAGIntegerOutputAlias', local_vars_configuration=None): # noqa: E501 + def __init__(self, annotations=None, description=None, var_from=None, handler=None, name=None, platform=None, required=True, type='DAGIntegerOutputAlias', local_vars_configuration=None): # noqa: E501 """DAGIntegerOutputAlias - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -63,7 +63,7 @@ def __init__(self, annotations=None, description=None, _from=None, handler=None, self._annotations = None self._description = None - self.__from = None + self._var_from = None self._handler = None self._name = None self._platform = None @@ -75,7 +75,7 @@ def __init__(self, annotations=None, description=None, _from=None, handler=None, self.annotations = annotations if description is not None: self.description = description - self._from = _from + self.var_from = var_from self.handler = handler self.name = name self.platform = platform @@ -91,7 +91,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGIntegerOutputAlias. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -102,7 +102,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGIntegerOutputAlias. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -131,29 +131,27 @@ def description(self, description): self._description = description @property - def _from(self): - """Gets the _from of this DAGIntegerOutputAlias. # noqa: E501 + def var_from(self): + """Gets the var_from of this DAGIntegerOutputAlias. # noqa: E501 - Reference to a file or a task output. Task output must be file. # noqa: E501 - :return: The _from of this DAGIntegerOutputAlias. # noqa: E501 - :rtype: AnyOfTaskReferenceFileReference + :return: The var_from of this DAGIntegerOutputAlias. # noqa: E501 + :rtype: ModelFrom """ - return self.__from + return self._var_from - @_from.setter - def _from(self, _from): - """Sets the _from of this DAGIntegerOutputAlias. + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGIntegerOutputAlias. - Reference to a file or a task output. Task output must be file. # noqa: E501 - :param _from: The _from of this DAGIntegerOutputAlias. # noqa: E501 - :type _from: AnyOfTaskReferenceFileReference + :param var_from: The var_from of this DAGIntegerOutputAlias. # noqa: E501 + :type var_from: ModelFrom """ - if self.local_vars_configuration.client_side_validation and _from is None: # noqa: E501 - raise ValueError("Invalid value for `_from`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 - self.__from = _from + self._var_from = var_from @property def handler(self): @@ -162,7 +160,7 @@ def handler(self): List of process actions to process the input or output value. # noqa: E501 :return: The handler of this DAGIntegerOutputAlias. # noqa: E501 - :rtype: list[IOAliasHandler] + :rtype: List[IOAliasHandler] """ return self._handler @@ -173,7 +171,7 @@ def handler(self, handler): List of process actions to process the input or output value. # noqa: E501 :param handler: The handler of this DAGIntegerOutputAlias. # noqa: E501 - :type handler: list[IOAliasHandler] + :type handler: List[IOAliasHandler] """ if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 @@ -212,7 +210,7 @@ def platform(self): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :return: The platform of this DAGIntegerOutputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._platform @@ -223,7 +221,7 @@ def platform(self, platform): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :param platform: The platform of this DAGIntegerOutputAlias. # noqa: E501 - :type platform: list[str] + :type platform: List[str] """ if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/dag_linked_input_alias.py b/pollination_sdk/models/dag_linked_input_alias.py index 2d8effc17..2a73b72dd 100644 --- a/pollination_sdk/models/dag_linked_input_alias.py +++ b/pollination_sdk/models/dag_linked_input_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class DAGLinkedInputAlias(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'default': 'str', - 'description': 'str', - 'handler': 'list[IOAliasHandler]', - 'name': 'str', - 'platform': 'list[str]', - 'required': 'bool', - 'spec': 'object', + 'annotations': 'Dict[str, str]' + 'default': 'str' + 'description': 'str' + 'handler': 'List[IOAliasHandler]' + 'name': 'str' + 'platform': 'List[str]' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'handler': 'handler', - 'name': 'name', - 'platform': 'platform', - 'required': 'required', - 'spec': 'spec', + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'handler': 'handler' + 'name': 'name' + 'platform': 'platform' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -97,7 +97,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGLinkedInputAlias. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -108,7 +108,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGLinkedInputAlias. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -166,7 +166,7 @@ def handler(self): List of process actions to process the input or output value. # noqa: E501 :return: The handler of this DAGLinkedInputAlias. # noqa: E501 - :rtype: list[IOAliasHandler] + :rtype: List[IOAliasHandler] """ return self._handler @@ -177,7 +177,7 @@ def handler(self, handler): List of process actions to process the input or output value. # noqa: E501 :param handler: The handler of this DAGLinkedInputAlias. # noqa: E501 - :type handler: list[IOAliasHandler] + :type handler: List[IOAliasHandler] """ if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 @@ -216,7 +216,7 @@ def platform(self): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :return: The platform of this DAGLinkedInputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._platform @@ -227,7 +227,7 @@ def platform(self, platform): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :param platform: The platform of this DAGLinkedInputAlias. # noqa: E501 - :type platform: list[str] + :type platform: List[str] """ if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/dag_linked_output_alias.py b/pollination_sdk/models/dag_linked_output_alias.py index 502a008d9..6fb716a45 100644 --- a/pollination_sdk/models/dag_linked_output_alias.py +++ b/pollination_sdk/models/dag_linked_output_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class DAGLinkedOutputAlias(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'handler': 'list[IOAliasHandler]', - 'name': 'str', - 'platform': 'list[str]', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'handler': 'List[IOAliasHandler]' + 'name': 'str' + 'platform': 'List[str]' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'handler': 'handler', - 'name': 'name', - 'platform': 'platform', + 'annotations': 'annotations' + 'description': 'description' + 'handler': 'handler' + 'name': 'name' + 'platform': 'platform' 'type': 'type' } @@ -82,7 +82,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGLinkedOutputAlias. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -93,7 +93,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGLinkedOutputAlias. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -128,7 +128,7 @@ def handler(self): List of process actions to process the input or output value. # noqa: E501 :return: The handler of this DAGLinkedOutputAlias. # noqa: E501 - :rtype: list[IOAliasHandler] + :rtype: List[IOAliasHandler] """ return self._handler @@ -139,7 +139,7 @@ def handler(self, handler): List of process actions to process the input or output value. # noqa: E501 :param handler: The handler of this DAGLinkedOutputAlias. # noqa: E501 - :type handler: list[IOAliasHandler] + :type handler: List[IOAliasHandler] """ if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 @@ -178,7 +178,7 @@ def platform(self): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :return: The platform of this DAGLinkedOutputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._platform @@ -189,7 +189,7 @@ def platform(self, platform): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :param platform: The platform of this DAGLinkedOutputAlias. # noqa: E501 - :type platform: list[str] + :type platform: List[str] """ if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/dag_number_input.py b/pollination_sdk/models/dag_number_input.py index f7fbfe8a8..ba5a2b828 100644 --- a/pollination_sdk/models/dag_number_input.py +++ b/pollination_sdk/models/dag_number_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,24 +34,24 @@ class DAGNumberInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'float', - 'description': 'str', - 'name': 'str', - 'required': 'bool', - 'spec': 'object', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'float' + 'description': 'str' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'name': 'name', - 'required': 'required', - 'spec': 'spec', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -94,7 +94,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this DAGNumberInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -105,7 +105,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this DAGNumberInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -117,7 +117,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGNumberInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -128,7 +128,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGNumberInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/dag_number_input_alias.py b/pollination_sdk/models/dag_number_input_alias.py index 87b9d2407..561ff8bad 100644 --- a/pollination_sdk/models/dag_number_input_alias.py +++ b/pollination_sdk/models/dag_number_input_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class DAGNumberInputAlias(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'default': 'float', - 'description': 'str', - 'handler': 'list[IOAliasHandler]', - 'name': 'str', - 'platform': 'list[str]', - 'required': 'bool', - 'spec': 'object', + 'annotations': 'Dict[str, str]' + 'default': 'float' + 'description': 'str' + 'handler': 'List[IOAliasHandler]' + 'name': 'str' + 'platform': 'List[str]' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'handler': 'handler', - 'name': 'name', - 'platform': 'platform', - 'required': 'required', - 'spec': 'spec', + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'handler': 'handler' + 'name': 'name' + 'platform': 'platform' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -97,7 +97,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGNumberInputAlias. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -108,7 +108,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGNumberInputAlias. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -166,7 +166,7 @@ def handler(self): List of process actions to process the input or output value. # noqa: E501 :return: The handler of this DAGNumberInputAlias. # noqa: E501 - :rtype: list[IOAliasHandler] + :rtype: List[IOAliasHandler] """ return self._handler @@ -177,7 +177,7 @@ def handler(self, handler): List of process actions to process the input or output value. # noqa: E501 :param handler: The handler of this DAGNumberInputAlias. # noqa: E501 - :type handler: list[IOAliasHandler] + :type handler: List[IOAliasHandler] """ if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 @@ -216,7 +216,7 @@ def platform(self): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :return: The platform of this DAGNumberInputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._platform @@ -227,7 +227,7 @@ def platform(self, platform): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :param platform: The platform of this DAGNumberInputAlias. # noqa: E501 - :type platform: list[str] + :type platform: List[str] """ if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/dag_number_output.py b/pollination_sdk/models/dag_number_output.py index c8f5a4ec3..ca5ca2565 100644 --- a/pollination_sdk/models/dag_number_output.py +++ b/pollination_sdk/models/dag_number_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class DAGNumberOutput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias]', - 'annotations': 'dict(str, str)', - 'description': 'str', - '_from': 'AnyOfTaskReferenceFileReference', - 'name': 'str', - 'required': 'bool', + 'alias': 'List[DAGArrayOutputAliasInner]' + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'var_from': 'ModelFrom' + 'name': 'str' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'description': 'description', - '_from': 'from', - 'name': 'name', - 'required': 'required', + 'alias': 'alias' + 'annotations': 'annotations' + 'description': 'description' + 'var_from': 'from' + 'name': 'name' + 'required': 'required' 'type': 'type' } - def __init__(self, alias=None, annotations=None, description=None, _from=None, name=None, required=True, type='DAGNumberOutput', local_vars_configuration=None): # noqa: E501 + def __init__(self, alias=None, annotations=None, description=None, var_from=None, name=None, required=True, type='DAGNumberOutput', local_vars_configuration=None): # noqa: E501 """DAGNumberOutput - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -62,7 +62,7 @@ def __init__(self, alias=None, annotations=None, description=None, _from=None, n self._alias = None self._annotations = None self._description = None - self.__from = None + self._var_from = None self._name = None self._required = None self._type = None @@ -74,7 +74,7 @@ def __init__(self, alias=None, annotations=None, description=None, _from=None, n self.annotations = annotations if description is not None: self.description = description - self._from = _from + self.var_from = var_from self.name = name if required is not None: self.required = required @@ -88,7 +88,7 @@ def alias(self): A list of additional processes for loading this output on different platforms. # noqa: E501 :return: The alias of this DAGNumberOutput. # noqa: E501 - :rtype: list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias] + :rtype: List[DAGArrayOutputAliasInner] """ return self._alias @@ -99,7 +99,7 @@ def alias(self, alias): A list of additional processes for loading this output on different platforms. # noqa: E501 :param alias: The alias of this DAGNumberOutput. # noqa: E501 - :type alias: list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias] + :type alias: List[DAGArrayOutputAliasInner] """ self._alias = alias @@ -111,7 +111,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGNumberOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -122,7 +122,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGNumberOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -151,29 +151,27 @@ def description(self, description): self._description = description @property - def _from(self): - """Gets the _from of this DAGNumberOutput. # noqa: E501 + def var_from(self): + """Gets the var_from of this DAGNumberOutput. # noqa: E501 - Reference to a file or a task output. Task output must be file. # noqa: E501 - :return: The _from of this DAGNumberOutput. # noqa: E501 - :rtype: AnyOfTaskReferenceFileReference + :return: The var_from of this DAGNumberOutput. # noqa: E501 + :rtype: ModelFrom """ - return self.__from + return self._var_from - @_from.setter - def _from(self, _from): - """Sets the _from of this DAGNumberOutput. + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGNumberOutput. - Reference to a file or a task output. Task output must be file. # noqa: E501 - :param _from: The _from of this DAGNumberOutput. # noqa: E501 - :type _from: AnyOfTaskReferenceFileReference + :param var_from: The var_from of this DAGNumberOutput. # noqa: E501 + :type var_from: ModelFrom """ - if self.local_vars_configuration.client_side_validation and _from is None: # noqa: E501 - raise ValueError("Invalid value for `_from`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 - self.__from = _from + self._var_from = var_from @property def name(self): diff --git a/pollination_sdk/models/dag_number_output_alias.py b/pollination_sdk/models/dag_number_output_alias.py index e2a3d5f80..6c45b2540 100644 --- a/pollination_sdk/models/dag_number_output_alias.py +++ b/pollination_sdk/models/dag_number_output_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,28 +34,28 @@ class DAGNumberOutputAlias(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - '_from': 'AnyOfTaskReferenceFileReference', - 'handler': 'list[IOAliasHandler]', - 'name': 'str', - 'platform': 'list[str]', - 'required': 'bool', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'var_from': 'ModelFrom' + 'handler': 'List[IOAliasHandler]' + 'name': 'str' + 'platform': 'List[str]' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - '_from': 'from', - 'handler': 'handler', - 'name': 'name', - 'platform': 'platform', - 'required': 'required', + 'annotations': 'annotations' + 'description': 'description' + 'var_from': 'from' + 'handler': 'handler' + 'name': 'name' + 'platform': 'platform' + 'required': 'required' 'type': 'type' } - def __init__(self, annotations=None, description=None, _from=None, handler=None, name=None, platform=None, required=True, type='DAGNumberOutputAlias', local_vars_configuration=None): # noqa: E501 + def __init__(self, annotations=None, description=None, var_from=None, handler=None, name=None, platform=None, required=True, type='DAGNumberOutputAlias', local_vars_configuration=None): # noqa: E501 """DAGNumberOutputAlias - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -63,7 +63,7 @@ def __init__(self, annotations=None, description=None, _from=None, handler=None, self._annotations = None self._description = None - self.__from = None + self._var_from = None self._handler = None self._name = None self._platform = None @@ -75,7 +75,7 @@ def __init__(self, annotations=None, description=None, _from=None, handler=None, self.annotations = annotations if description is not None: self.description = description - self._from = _from + self.var_from = var_from self.handler = handler self.name = name self.platform = platform @@ -91,7 +91,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGNumberOutputAlias. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -102,7 +102,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGNumberOutputAlias. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -131,29 +131,27 @@ def description(self, description): self._description = description @property - def _from(self): - """Gets the _from of this DAGNumberOutputAlias. # noqa: E501 + def var_from(self): + """Gets the var_from of this DAGNumberOutputAlias. # noqa: E501 - Reference to a file or a task output. Task output must be file. # noqa: E501 - :return: The _from of this DAGNumberOutputAlias. # noqa: E501 - :rtype: AnyOfTaskReferenceFileReference + :return: The var_from of this DAGNumberOutputAlias. # noqa: E501 + :rtype: ModelFrom """ - return self.__from + return self._var_from - @_from.setter - def _from(self, _from): - """Sets the _from of this DAGNumberOutputAlias. + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGNumberOutputAlias. - Reference to a file or a task output. Task output must be file. # noqa: E501 - :param _from: The _from of this DAGNumberOutputAlias. # noqa: E501 - :type _from: AnyOfTaskReferenceFileReference + :param var_from: The var_from of this DAGNumberOutputAlias. # noqa: E501 + :type var_from: ModelFrom """ - if self.local_vars_configuration.client_side_validation and _from is None: # noqa: E501 - raise ValueError("Invalid value for `_from`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 - self.__from = _from + self._var_from = var_from @property def handler(self): @@ -162,7 +160,7 @@ def handler(self): List of process actions to process the input or output value. # noqa: E501 :return: The handler of this DAGNumberOutputAlias. # noqa: E501 - :rtype: list[IOAliasHandler] + :rtype: List[IOAliasHandler] """ return self._handler @@ -173,7 +171,7 @@ def handler(self, handler): List of process actions to process the input or output value. # noqa: E501 :param handler: The handler of this DAGNumberOutputAlias. # noqa: E501 - :type handler: list[IOAliasHandler] + :type handler: List[IOAliasHandler] """ if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 @@ -212,7 +210,7 @@ def platform(self): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :return: The platform of this DAGNumberOutputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._platform @@ -223,7 +221,7 @@ def platform(self, platform): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :param platform: The platform of this DAGNumberOutputAlias. # noqa: E501 - :type platform: list[str] + :type platform: List[str] """ if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/dag_outputs_inner.py b/pollination_sdk/models/dag_outputs_inner.py new file mode 100644 index 000000000..0a074b6b8 --- /dev/null +++ b/pollination_sdk/models/dag_outputs_inner.py @@ -0,0 +1,320 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class DAGOutputsInner(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'alias': 'List[DAGArrayOutputAliasInner]' + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'var_from': 'ModelFrom' + 'name': 'str' + 'type': 'str' + 'required': 'bool' + 'items_type': 'ItemType' + } + + attribute_map = { + 'alias': 'alias' + 'annotations': 'annotations' + 'description': 'description' + 'var_from': 'from' + 'name': 'name' + 'type': 'type' + 'required': 'required' + 'items_type': 'items_type' + } + + def __init__(self, alias=None, annotations=None, description=None, var_from=None, name=None, type='DAGJSONObjectOutput', required=True, items_type=None, local_vars_configuration=None): # noqa: E501 + """DAGOutputsInner - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._alias = None + self._annotations = None + self._description = None + self._var_from = None + self._name = None + self._type = None + self._required = None + self._items_type = None + self.discriminator = None + + if alias is not None: + self.alias = alias + if annotations is not None: + self.annotations = annotations + if description is not None: + self.description = description + self.var_from = var_from + self.name = name + if type is not None: + self.type = type + if required is not None: + self.required = required + if items_type is not None: + self.items_type = items_type + + @property + def alias(self): + """Gets the alias of this DAGOutputsInner. # noqa: E501 + + A list of additional processes for loading this output on different platforms. # noqa: E501 + + :return: The alias of this DAGOutputsInner. # noqa: E501 + :rtype: List[DAGArrayOutputAliasInner] + """ + return self._alias + + @alias.setter + def alias(self, alias): + """Sets the alias of this DAGOutputsInner. + + A list of additional processes for loading this output on different platforms. # noqa: E501 + + :param alias: The alias of this DAGOutputsInner. # noqa: E501 + :type alias: List[DAGArrayOutputAliasInner] + """ + + self._alias = alias + + @property + def annotations(self): + """Gets the annotations of this DAGOutputsInner. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this DAGOutputsInner. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this DAGOutputsInner. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this DAGOutputsInner. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def description(self): + """Gets the description of this DAGOutputsInner. # noqa: E501 + + Optional description for output. # noqa: E501 + + :return: The description of this DAGOutputsInner. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this DAGOutputsInner. + + Optional description for output. # noqa: E501 + + :param description: The description of this DAGOutputsInner. # noqa: E501 + :type description: str + """ + + self._description = description + + @property + def var_from(self): + """Gets the var_from of this DAGOutputsInner. # noqa: E501 + + + :return: The var_from of this DAGOutputsInner. # noqa: E501 + :rtype: ModelFrom + """ + return self._var_from + + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGOutputsInner. + + + :param var_from: The var_from of this DAGOutputsInner. # noqa: E501 + :type var_from: ModelFrom + """ + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 + + self._var_from = var_from + + @property + def name(self): + """Gets the name of this DAGOutputsInner. # noqa: E501 + + Output name. # noqa: E501 + + :return: The name of this DAGOutputsInner. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DAGOutputsInner. + + Output name. # noqa: E501 + + :param name: The name of this DAGOutputsInner. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def type(self): + """Gets the type of this DAGOutputsInner. # noqa: E501 + + + :return: The type of this DAGOutputsInner. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this DAGOutputsInner. + + + :param type: The type of this DAGOutputsInner. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^DAGJSONObjectOutput$', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^DAGJSONObjectOutput$/`") # noqa: E501 + + self._type = type + + @property + def required(self): + """Gets the required of this DAGOutputsInner. # noqa: E501 + + A boolean to indicate if an artifact output is required. A False value makes the artifact optional. # noqa: E501 + + :return: The required of this DAGOutputsInner. # noqa: E501 + :rtype: bool + """ + return self._required + + @required.setter + def required(self, required): + """Sets the required of this DAGOutputsInner. + + A boolean to indicate if an artifact output is required. A False value makes the artifact optional. # noqa: E501 + + :param required: The required of this DAGOutputsInner. # noqa: E501 + :type required: bool + """ + + self._required = required + + @property + def items_type(self): + """Gets the items_type of this DAGOutputsInner. # noqa: E501 + + Type of items in this array. All the items in an array must be from the same type. # noqa: E501 + + :return: The items_type of this DAGOutputsInner. # noqa: E501 + :rtype: ItemType + """ + return self._items_type + + @items_type.setter + def items_type(self, items_type): + """Sets the items_type of this DAGOutputsInner. + + Type of items in this array. All the items in an array must be from the same type. # noqa: E501 + + :param items_type: The items_type of this DAGOutputsInner. # noqa: E501 + :type items_type: ItemType + """ + + self._items_type = items_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DAGOutputsInner): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DAGOutputsInner): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/dag_path_input.py b/pollination_sdk/models/dag_path_input.py index 86c531a7c..47543cc9a 100644 --- a/pollination_sdk/models/dag_path_input.py +++ b/pollination_sdk/models/dag_path_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class DAGPathInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'AnyOfHTTPS3ProjectFolder', - 'description': 'str', - 'extensions': 'list[str]', - 'name': 'str', - 'required': 'bool', - 'spec': 'object', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'Default' + 'description': 'str' + 'extensions': 'List[str]' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'extensions': 'extensions', - 'name': 'name', - 'required': 'required', - 'spec': 'spec', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'extensions': 'extensions' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -99,7 +99,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this DAGPathInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -110,7 +110,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this DAGPathInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -122,7 +122,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGPathInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -133,7 +133,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGPathInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -142,10 +142,9 @@ def annotations(self, annotations): def default(self): """Gets the default of this DAGPathInput. # noqa: E501 - The default source for file if the value is not provided. # noqa: E501 :return: The default of this DAGPathInput. # noqa: E501 - :rtype: AnyOfHTTPS3ProjectFolder + :rtype: Default """ return self._default @@ -153,10 +152,9 @@ def default(self): def default(self, default): """Sets the default of this DAGPathInput. - The default source for file if the value is not provided. # noqa: E501 :param default: The default of this DAGPathInput. # noqa: E501 - :type default: AnyOfHTTPS3ProjectFolder + :type default: Default """ self._default = default @@ -191,7 +189,7 @@ def extensions(self): Optional list of extensions for path. The check for extension is case-insensitive. The extension will only be validated for file inputs. # noqa: E501 :return: The extensions of this DAGPathInput. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._extensions @@ -202,7 +200,7 @@ def extensions(self, extensions): Optional list of extensions for path. The check for extension is case-insensitive. The extension will only be validated for file inputs. # noqa: E501 :param extensions: The extensions of this DAGPathInput. # noqa: E501 - :type extensions: list[str] + :type extensions: List[str] """ self._extensions = extensions diff --git a/pollination_sdk/models/dag_path_input_alias.py b/pollination_sdk/models/dag_path_input_alias.py index e15c30361..24706626b 100644 --- a/pollination_sdk/models/dag_path_input_alias.py +++ b/pollination_sdk/models/dag_path_input_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,28 +34,28 @@ class DAGPathInputAlias(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'default': 'AnyOfHTTPS3ProjectFolder', - 'description': 'str', - 'extensions': 'list[str]', - 'handler': 'list[IOAliasHandler]', - 'name': 'str', - 'platform': 'list[str]', - 'required': 'bool', - 'spec': 'object', + 'annotations': 'Dict[str, str]' + 'default': 'Default' + 'description': 'str' + 'extensions': 'List[str]' + 'handler': 'List[IOAliasHandler]' + 'name': 'str' + 'platform': 'List[str]' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'extensions': 'extensions', - 'handler': 'handler', - 'name': 'name', - 'platform': 'platform', - 'required': 'required', - 'spec': 'spec', + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'extensions': 'extensions' + 'handler': 'handler' + 'name': 'name' + 'platform': 'platform' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -102,7 +102,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGPathInputAlias. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -113,7 +113,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGPathInputAlias. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -122,10 +122,9 @@ def annotations(self, annotations): def default(self): """Gets the default of this DAGPathInputAlias. # noqa: E501 - The default source for file if the value is not provided. # noqa: E501 :return: The default of this DAGPathInputAlias. # noqa: E501 - :rtype: AnyOfHTTPS3ProjectFolder + :rtype: Default """ return self._default @@ -133,10 +132,9 @@ def default(self): def default(self, default): """Sets the default of this DAGPathInputAlias. - The default source for file if the value is not provided. # noqa: E501 :param default: The default of this DAGPathInputAlias. # noqa: E501 - :type default: AnyOfHTTPS3ProjectFolder + :type default: Default """ self._default = default @@ -171,7 +169,7 @@ def extensions(self): Optional list of extensions for path. The check for extension is case-insensitive. The extension will only be validated for file inputs. # noqa: E501 :return: The extensions of this DAGPathInputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._extensions @@ -182,7 +180,7 @@ def extensions(self, extensions): Optional list of extensions for path. The check for extension is case-insensitive. The extension will only be validated for file inputs. # noqa: E501 :param extensions: The extensions of this DAGPathInputAlias. # noqa: E501 - :type extensions: list[str] + :type extensions: List[str] """ self._extensions = extensions @@ -194,7 +192,7 @@ def handler(self): List of process actions to process the input or output value. # noqa: E501 :return: The handler of this DAGPathInputAlias. # noqa: E501 - :rtype: list[IOAliasHandler] + :rtype: List[IOAliasHandler] """ return self._handler @@ -205,7 +203,7 @@ def handler(self, handler): List of process actions to process the input or output value. # noqa: E501 :param handler: The handler of this DAGPathInputAlias. # noqa: E501 - :type handler: list[IOAliasHandler] + :type handler: List[IOAliasHandler] """ if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 @@ -244,7 +242,7 @@ def platform(self): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :return: The platform of this DAGPathInputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._platform @@ -255,7 +253,7 @@ def platform(self, platform): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :param platform: The platform of this DAGPathInputAlias. # noqa: E501 - :type platform: list[str] + :type platform: List[str] """ if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/dag_path_output.py b/pollination_sdk/models/dag_path_output.py index 5ac07fcea..88bbbfe5e 100644 --- a/pollination_sdk/models/dag_path_output.py +++ b/pollination_sdk/models/dag_path_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class DAGPathOutput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias]', - 'annotations': 'dict(str, str)', - 'description': 'str', - '_from': 'AnyOfTaskReferenceFileReferenceFolderReference', - 'name': 'str', - 'required': 'bool', + 'alias': 'List[DAGArrayOutputAliasInner]' + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'var_from': 'From2' + 'name': 'str' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'description': 'description', - '_from': 'from', - 'name': 'name', - 'required': 'required', + 'alias': 'alias' + 'annotations': 'annotations' + 'description': 'description' + 'var_from': 'from' + 'name': 'name' + 'required': 'required' 'type': 'type' } - def __init__(self, alias=None, annotations=None, description=None, _from=None, name=None, required=True, type='DAGPathOutput', local_vars_configuration=None): # noqa: E501 + def __init__(self, alias=None, annotations=None, description=None, var_from=None, name=None, required=True, type='DAGPathOutput', local_vars_configuration=None): # noqa: E501 """DAGPathOutput - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -62,7 +62,7 @@ def __init__(self, alias=None, annotations=None, description=None, _from=None, n self._alias = None self._annotations = None self._description = None - self.__from = None + self._var_from = None self._name = None self._required = None self._type = None @@ -74,7 +74,7 @@ def __init__(self, alias=None, annotations=None, description=None, _from=None, n self.annotations = annotations if description is not None: self.description = description - self._from = _from + self.var_from = var_from self.name = name if required is not None: self.required = required @@ -88,7 +88,7 @@ def alias(self): A list of additional processes for loading this output on different platforms. # noqa: E501 :return: The alias of this DAGPathOutput. # noqa: E501 - :rtype: list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias] + :rtype: List[DAGArrayOutputAliasInner] """ return self._alias @@ -99,7 +99,7 @@ def alias(self, alias): A list of additional processes for loading this output on different platforms. # noqa: E501 :param alias: The alias of this DAGPathOutput. # noqa: E501 - :type alias: list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias] + :type alias: List[DAGArrayOutputAliasInner] """ self._alias = alias @@ -111,7 +111,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGPathOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -122,7 +122,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGPathOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -151,29 +151,27 @@ def description(self, description): self._description = description @property - def _from(self): - """Gets the _from of this DAGPathOutput. # noqa: E501 + def var_from(self): + """Gets the var_from of this DAGPathOutput. # noqa: E501 - Reference to a file, folder or a task output. Task output must either be a file or a folder. # noqa: E501 - :return: The _from of this DAGPathOutput. # noqa: E501 - :rtype: AnyOfTaskReferenceFileReferenceFolderReference + :return: The var_from of this DAGPathOutput. # noqa: E501 + :rtype: From2 """ - return self.__from + return self._var_from - @_from.setter - def _from(self, _from): - """Sets the _from of this DAGPathOutput. + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGPathOutput. - Reference to a file, folder or a task output. Task output must either be a file or a folder. # noqa: E501 - :param _from: The _from of this DAGPathOutput. # noqa: E501 - :type _from: AnyOfTaskReferenceFileReferenceFolderReference + :param var_from: The var_from of this DAGPathOutput. # noqa: E501 + :type var_from: From2 """ - if self.local_vars_configuration.client_side_validation and _from is None: # noqa: E501 - raise ValueError("Invalid value for `_from`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 - self.__from = _from + self._var_from = var_from @property def name(self): diff --git a/pollination_sdk/models/dag_path_output_alias.py b/pollination_sdk/models/dag_path_output_alias.py index eeff6ce86..1a8a4f719 100644 --- a/pollination_sdk/models/dag_path_output_alias.py +++ b/pollination_sdk/models/dag_path_output_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,28 +34,28 @@ class DAGPathOutputAlias(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - '_from': 'AnyOfTaskReferenceFileReferenceFolderReference', - 'handler': 'list[IOAliasHandler]', - 'name': 'str', - 'platform': 'list[str]', - 'required': 'bool', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'var_from': 'From2' + 'handler': 'List[IOAliasHandler]' + 'name': 'str' + 'platform': 'List[str]' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - '_from': 'from', - 'handler': 'handler', - 'name': 'name', - 'platform': 'platform', - 'required': 'required', + 'annotations': 'annotations' + 'description': 'description' + 'var_from': 'from' + 'handler': 'handler' + 'name': 'name' + 'platform': 'platform' + 'required': 'required' 'type': 'type' } - def __init__(self, annotations=None, description=None, _from=None, handler=None, name=None, platform=None, required=True, type='DAGPathOutputAlias', local_vars_configuration=None): # noqa: E501 + def __init__(self, annotations=None, description=None, var_from=None, handler=None, name=None, platform=None, required=True, type='DAGPathOutputAlias', local_vars_configuration=None): # noqa: E501 """DAGPathOutputAlias - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -63,7 +63,7 @@ def __init__(self, annotations=None, description=None, _from=None, handler=None, self._annotations = None self._description = None - self.__from = None + self._var_from = None self._handler = None self._name = None self._platform = None @@ -75,7 +75,7 @@ def __init__(self, annotations=None, description=None, _from=None, handler=None, self.annotations = annotations if description is not None: self.description = description - self._from = _from + self.var_from = var_from self.handler = handler self.name = name self.platform = platform @@ -91,7 +91,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGPathOutputAlias. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -102,7 +102,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGPathOutputAlias. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -131,29 +131,27 @@ def description(self, description): self._description = description @property - def _from(self): - """Gets the _from of this DAGPathOutputAlias. # noqa: E501 + def var_from(self): + """Gets the var_from of this DAGPathOutputAlias. # noqa: E501 - Reference to a file, folder or a task output. Task output must either be a file or a folder. # noqa: E501 - :return: The _from of this DAGPathOutputAlias. # noqa: E501 - :rtype: AnyOfTaskReferenceFileReferenceFolderReference + :return: The var_from of this DAGPathOutputAlias. # noqa: E501 + :rtype: From2 """ - return self.__from + return self._var_from - @_from.setter - def _from(self, _from): - """Sets the _from of this DAGPathOutputAlias. + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGPathOutputAlias. - Reference to a file, folder or a task output. Task output must either be a file or a folder. # noqa: E501 - :param _from: The _from of this DAGPathOutputAlias. # noqa: E501 - :type _from: AnyOfTaskReferenceFileReferenceFolderReference + :param var_from: The var_from of this DAGPathOutputAlias. # noqa: E501 + :type var_from: From2 """ - if self.local_vars_configuration.client_side_validation and _from is None: # noqa: E501 - raise ValueError("Invalid value for `_from`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 - self.__from = _from + self._var_from = var_from @property def handler(self): @@ -162,7 +160,7 @@ def handler(self): List of process actions to process the input or output value. # noqa: E501 :return: The handler of this DAGPathOutputAlias. # noqa: E501 - :rtype: list[IOAliasHandler] + :rtype: List[IOAliasHandler] """ return self._handler @@ -173,7 +171,7 @@ def handler(self, handler): List of process actions to process the input or output value. # noqa: E501 :param handler: The handler of this DAGPathOutputAlias. # noqa: E501 - :type handler: list[IOAliasHandler] + :type handler: List[IOAliasHandler] """ if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 @@ -212,7 +210,7 @@ def platform(self): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :return: The platform of this DAGPathOutputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._platform @@ -223,7 +221,7 @@ def platform(self, platform): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :param platform: The platform of this DAGPathOutputAlias. # noqa: E501 - :type platform: list[str] + :type platform: List[str] """ if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/dag_string_input.py b/pollination_sdk/models/dag_string_input.py index d6bddb686..c7f8f75fc 100644 --- a/pollination_sdk/models/dag_string_input.py +++ b/pollination_sdk/models/dag_string_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,24 +34,24 @@ class DAGStringInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'str', - 'description': 'str', - 'name': 'str', - 'required': 'bool', - 'spec': 'object', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'str' + 'description': 'str' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'name': 'name', - 'required': 'required', - 'spec': 'spec', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -94,7 +94,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this DAGStringInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -105,7 +105,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this DAGStringInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -117,7 +117,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGStringInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -128,7 +128,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGStringInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/dag_string_input_alias.py b/pollination_sdk/models/dag_string_input_alias.py index 368a2577e..74989c4b8 100644 --- a/pollination_sdk/models/dag_string_input_alias.py +++ b/pollination_sdk/models/dag_string_input_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class DAGStringInputAlias(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'default': 'str', - 'description': 'str', - 'handler': 'list[IOAliasHandler]', - 'name': 'str', - 'platform': 'list[str]', - 'required': 'bool', - 'spec': 'object', + 'annotations': 'Dict[str, str]' + 'default': 'str' + 'description': 'str' + 'handler': 'List[IOAliasHandler]' + 'name': 'str' + 'platform': 'List[str]' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'handler': 'handler', - 'name': 'name', - 'platform': 'platform', - 'required': 'required', - 'spec': 'spec', + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'handler': 'handler' + 'name': 'name' + 'platform': 'platform' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -97,7 +97,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGStringInputAlias. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -108,7 +108,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGStringInputAlias. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -166,7 +166,7 @@ def handler(self): List of process actions to process the input or output value. # noqa: E501 :return: The handler of this DAGStringInputAlias. # noqa: E501 - :rtype: list[IOAliasHandler] + :rtype: List[IOAliasHandler] """ return self._handler @@ -177,7 +177,7 @@ def handler(self, handler): List of process actions to process the input or output value. # noqa: E501 :param handler: The handler of this DAGStringInputAlias. # noqa: E501 - :type handler: list[IOAliasHandler] + :type handler: List[IOAliasHandler] """ if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 @@ -216,7 +216,7 @@ def platform(self): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :return: The platform of this DAGStringInputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._platform @@ -227,7 +227,7 @@ def platform(self, platform): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :param platform: The platform of this DAGStringInputAlias. # noqa: E501 - :type platform: list[str] + :type platform: List[str] """ if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/dag_string_output.py b/pollination_sdk/models/dag_string_output.py index f9982a4c1..09f5a09ca 100644 --- a/pollination_sdk/models/dag_string_output.py +++ b/pollination_sdk/models/dag_string_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class DAGStringOutput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias]', - 'annotations': 'dict(str, str)', - 'description': 'str', - '_from': 'AnyOfTaskReferenceFileReference', - 'name': 'str', - 'required': 'bool', + 'alias': 'List[DAGArrayOutputAliasInner]' + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'var_from': 'ModelFrom' + 'name': 'str' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'description': 'description', - '_from': 'from', - 'name': 'name', - 'required': 'required', + 'alias': 'alias' + 'annotations': 'annotations' + 'description': 'description' + 'var_from': 'from' + 'name': 'name' + 'required': 'required' 'type': 'type' } - def __init__(self, alias=None, annotations=None, description=None, _from=None, name=None, required=True, type='DAGStringOutput', local_vars_configuration=None): # noqa: E501 + def __init__(self, alias=None, annotations=None, description=None, var_from=None, name=None, required=True, type='DAGStringOutput', local_vars_configuration=None): # noqa: E501 """DAGStringOutput - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -62,7 +62,7 @@ def __init__(self, alias=None, annotations=None, description=None, _from=None, n self._alias = None self._annotations = None self._description = None - self.__from = None + self._var_from = None self._name = None self._required = None self._type = None @@ -74,7 +74,7 @@ def __init__(self, alias=None, annotations=None, description=None, _from=None, n self.annotations = annotations if description is not None: self.description = description - self._from = _from + self.var_from = var_from self.name = name if required is not None: self.required = required @@ -88,7 +88,7 @@ def alias(self): A list of additional processes for loading this output on different platforms. # noqa: E501 :return: The alias of this DAGStringOutput. # noqa: E501 - :rtype: list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias] + :rtype: List[DAGArrayOutputAliasInner] """ return self._alias @@ -99,7 +99,7 @@ def alias(self, alias): A list of additional processes for loading this output on different platforms. # noqa: E501 :param alias: The alias of this DAGStringOutput. # noqa: E501 - :type alias: list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias] + :type alias: List[DAGArrayOutputAliasInner] """ self._alias = alias @@ -111,7 +111,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGStringOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -122,7 +122,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGStringOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -151,29 +151,27 @@ def description(self, description): self._description = description @property - def _from(self): - """Gets the _from of this DAGStringOutput. # noqa: E501 + def var_from(self): + """Gets the var_from of this DAGStringOutput. # noqa: E501 - Reference to a file or a task output. Task output must be file. # noqa: E501 - :return: The _from of this DAGStringOutput. # noqa: E501 - :rtype: AnyOfTaskReferenceFileReference + :return: The var_from of this DAGStringOutput. # noqa: E501 + :rtype: ModelFrom """ - return self.__from + return self._var_from - @_from.setter - def _from(self, _from): - """Sets the _from of this DAGStringOutput. + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGStringOutput. - Reference to a file or a task output. Task output must be file. # noqa: E501 - :param _from: The _from of this DAGStringOutput. # noqa: E501 - :type _from: AnyOfTaskReferenceFileReference + :param var_from: The var_from of this DAGStringOutput. # noqa: E501 + :type var_from: ModelFrom """ - if self.local_vars_configuration.client_side_validation and _from is None: # noqa: E501 - raise ValueError("Invalid value for `_from`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 - self.__from = _from + self._var_from = var_from @property def name(self): diff --git a/pollination_sdk/models/dag_string_output_alias.py b/pollination_sdk/models/dag_string_output_alias.py index e07ab2807..4c97e3837 100644 --- a/pollination_sdk/models/dag_string_output_alias.py +++ b/pollination_sdk/models/dag_string_output_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,28 +34,28 @@ class DAGStringOutputAlias(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - '_from': 'AnyOfTaskReferenceFileReference', - 'handler': 'list[IOAliasHandler]', - 'name': 'str', - 'platform': 'list[str]', - 'required': 'bool', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'var_from': 'ModelFrom' + 'handler': 'List[IOAliasHandler]' + 'name': 'str' + 'platform': 'List[str]' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - '_from': 'from', - 'handler': 'handler', - 'name': 'name', - 'platform': 'platform', - 'required': 'required', + 'annotations': 'annotations' + 'description': 'description' + 'var_from': 'from' + 'handler': 'handler' + 'name': 'name' + 'platform': 'platform' + 'required': 'required' 'type': 'type' } - def __init__(self, annotations=None, description=None, _from=None, handler=None, name=None, platform=None, required=True, type='DAGStringOutputAlias', local_vars_configuration=None): # noqa: E501 + def __init__(self, annotations=None, description=None, var_from=None, handler=None, name=None, platform=None, required=True, type='DAGStringOutputAlias', local_vars_configuration=None): # noqa: E501 """DAGStringOutputAlias - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -63,7 +63,7 @@ def __init__(self, annotations=None, description=None, _from=None, handler=None, self._annotations = None self._description = None - self.__from = None + self._var_from = None self._handler = None self._name = None self._platform = None @@ -75,7 +75,7 @@ def __init__(self, annotations=None, description=None, _from=None, handler=None, self.annotations = annotations if description is not None: self.description = description - self._from = _from + self.var_from = var_from self.handler = handler self.name = name self.platform = platform @@ -91,7 +91,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGStringOutputAlias. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -102,7 +102,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGStringOutputAlias. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -131,29 +131,27 @@ def description(self, description): self._description = description @property - def _from(self): - """Gets the _from of this DAGStringOutputAlias. # noqa: E501 + def var_from(self): + """Gets the var_from of this DAGStringOutputAlias. # noqa: E501 - Reference to a file or a task output. Task output must be file. # noqa: E501 - :return: The _from of this DAGStringOutputAlias. # noqa: E501 - :rtype: AnyOfTaskReferenceFileReference + :return: The var_from of this DAGStringOutputAlias. # noqa: E501 + :rtype: ModelFrom """ - return self.__from + return self._var_from - @_from.setter - def _from(self, _from): - """Sets the _from of this DAGStringOutputAlias. + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGStringOutputAlias. - Reference to a file or a task output. Task output must be file. # noqa: E501 - :param _from: The _from of this DAGStringOutputAlias. # noqa: E501 - :type _from: AnyOfTaskReferenceFileReference + :param var_from: The var_from of this DAGStringOutputAlias. # noqa: E501 + :type var_from: ModelFrom """ - if self.local_vars_configuration.client_side_validation and _from is None: # noqa: E501 - raise ValueError("Invalid value for `_from`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 - self.__from = _from + self._var_from = var_from @property def handler(self): @@ -162,7 +160,7 @@ def handler(self): List of process actions to process the input or output value. # noqa: E501 :return: The handler of this DAGStringOutputAlias. # noqa: E501 - :rtype: list[IOAliasHandler] + :rtype: List[IOAliasHandler] """ return self._handler @@ -173,7 +171,7 @@ def handler(self, handler): List of process actions to process the input or output value. # noqa: E501 :param handler: The handler of this DAGStringOutputAlias. # noqa: E501 - :type handler: list[IOAliasHandler] + :type handler: List[IOAliasHandler] """ if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 @@ -212,7 +210,7 @@ def platform(self): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :return: The platform of this DAGStringOutputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._platform @@ -223,7 +221,7 @@ def platform(self, platform): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :param platform: The platform of this DAGStringOutputAlias. # noqa: E501 - :type platform: list[str] + :type platform: List[str] """ if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/dag_task.py b/pollination_sdk/models/dag_task.py index ee417cf8a..39b2a0aa1 100644 --- a/pollination_sdk/models/dag_task.py +++ b/pollination_sdk/models/dag_task.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class DAGTask(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'arguments': 'list[AnyOfTaskArgumentTaskPathArgument]', - 'loop': 'DAGTaskLoop', - 'name': 'str', - 'needs': 'list[str]', - 'returns': 'list[AnyOfTaskReturnTaskPathReturn]', - 'sub_folder': 'str', - 'template': 'str', + 'annotations': 'Dict[str, str]' + 'arguments': 'List[DAGTaskArgumentsInner]' + 'loop': 'DAGTaskLoop' + 'name': 'str' + 'needs': 'List[str]' + 'returns': 'List[DAGTaskReturnsInner]' + 'sub_folder': 'str' + 'template': 'str' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'arguments': 'arguments', - 'loop': 'loop', - 'name': 'name', - 'needs': 'needs', - 'returns': 'returns', - 'sub_folder': 'sub_folder', - 'template': 'template', + 'annotations': 'annotations' + 'arguments': 'arguments' + 'loop': 'loop' + 'name': 'name' + 'needs': 'needs' + 'returns': 'returns' + 'sub_folder': 'sub_folder' + 'template': 'template' 'type': 'type' } @@ -98,7 +98,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGTask. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -109,7 +109,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGTask. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -121,7 +121,7 @@ def arguments(self): The input arguments for this task. # noqa: E501 :return: The arguments of this DAGTask. # noqa: E501 - :rtype: list[AnyOfTaskArgumentTaskPathArgument] + :rtype: List[DAGTaskArgumentsInner] """ return self._arguments @@ -132,7 +132,7 @@ def arguments(self, arguments): The input arguments for this task. # noqa: E501 :param arguments: The arguments of this DAGTask. # noqa: E501 - :type arguments: list[AnyOfTaskArgumentTaskPathArgument] + :type arguments: List[DAGTaskArgumentsInner] """ self._arguments = arguments @@ -192,7 +192,7 @@ def needs(self): List of DAG tasks that this task depends on and needs to be executed before this task. # noqa: E501 :return: The needs of this DAGTask. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._needs @@ -203,7 +203,7 @@ def needs(self, needs): List of DAG tasks that this task depends on and needs to be executed before this task. # noqa: E501 :param needs: The needs of this DAGTask. # noqa: E501 - :type needs: list[str] + :type needs: List[str] """ self._needs = needs @@ -215,7 +215,7 @@ def returns(self): List of task returns. # noqa: E501 :return: The returns of this DAGTask. # noqa: E501 - :rtype: list[AnyOfTaskReturnTaskPathReturn] + :rtype: List[DAGTaskReturnsInner] """ return self._returns @@ -226,7 +226,7 @@ def returns(self, returns): List of task returns. # noqa: E501 :param returns: The returns of this DAGTask. # noqa: E501 - :type returns: list[AnyOfTaskReturnTaskPathReturn] + :type returns: List[DAGTaskReturnsInner] """ self._returns = returns diff --git a/pollination_sdk/models/dag_task_arguments_inner.py b/pollination_sdk/models/dag_task_arguments_inner.py new file mode 100644 index 000000000..bbdd8483c --- /dev/null +++ b/pollination_sdk/models/dag_task_arguments_inner.py @@ -0,0 +1,236 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class DAGTaskArgumentsInner(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'annotations': 'Dict[str, str]' + 'var_from': 'From5' + 'name': 'str' + 'type': 'str' + 'sub_path': 'str' + } + + attribute_map = { + 'annotations': 'annotations' + 'var_from': 'from' + 'name': 'name' + 'type': 'type' + 'sub_path': 'sub_path' + } + + def __init__(self, annotations=None, var_from=None, name=None, type='TaskPathArgument', sub_path=None, local_vars_configuration=None): # noqa: E501 + """DAGTaskArgumentsInner - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._annotations = None + self._var_from = None + self._name = None + self._type = None + self._sub_path = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + self.var_from = var_from + self.name = name + if type is not None: + self.type = type + if sub_path is not None: + self.sub_path = sub_path + + @property + def annotations(self): + """Gets the annotations of this DAGTaskArgumentsInner. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this DAGTaskArgumentsInner. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this DAGTaskArgumentsInner. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this DAGTaskArgumentsInner. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def var_from(self): + """Gets the var_from of this DAGTaskArgumentsInner. # noqa: E501 + + + :return: The var_from of this DAGTaskArgumentsInner. # noqa: E501 + :rtype: From5 + """ + return self._var_from + + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGTaskArgumentsInner. + + + :param var_from: The var_from of this DAGTaskArgumentsInner. # noqa: E501 + :type var_from: From5 + """ + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 + + self._var_from = var_from + + @property + def name(self): + """Gets the name of this DAGTaskArgumentsInner. # noqa: E501 + + Argument name. The name must match one of the input names from Task's template which can be a function or DAG. # noqa: E501 + + :return: The name of this DAGTaskArgumentsInner. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DAGTaskArgumentsInner. + + Argument name. The name must match one of the input names from Task's template which can be a function or DAG. # noqa: E501 + + :param name: The name of this DAGTaskArgumentsInner. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def type(self): + """Gets the type of this DAGTaskArgumentsInner. # noqa: E501 + + + :return: The type of this DAGTaskArgumentsInner. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this DAGTaskArgumentsInner. + + + :param type: The type of this DAGTaskArgumentsInner. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^TaskPathArgument$', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^TaskPathArgument$/`") # noqa: E501 + + self._type = type + + @property + def sub_path(self): + """Gets the sub_path of this DAGTaskArgumentsInner. # noqa: E501 + + A sub_path inside the path that is provided in the ``from`` field. Use sub_path to only access part of the Path that is needed instead of copying all the files and folders inside the path. # noqa: E501 + + :return: The sub_path of this DAGTaskArgumentsInner. # noqa: E501 + :rtype: str + """ + return self._sub_path + + @sub_path.setter + def sub_path(self, sub_path): + """Sets the sub_path of this DAGTaskArgumentsInner. + + A sub_path inside the path that is provided in the ``from`` field. Use sub_path to only access part of the Path that is needed instead of copying all the files and folders inside the path. # noqa: E501 + + :param sub_path: The sub_path of this DAGTaskArgumentsInner. # noqa: E501 + :type sub_path: str + """ + + self._sub_path = sub_path + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DAGTaskArgumentsInner): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DAGTaskArgumentsInner): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/dag_task_loop.py b/pollination_sdk/models/dag_task_loop.py index a29347d8e..2cd4602f4 100644 --- a/pollination_sdk/models/dag_task_loop.py +++ b/pollination_sdk/models/dag_task_loop.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,32 +34,32 @@ class DAGTaskLoop(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - '_from': 'AnyOfInputReferenceTaskReferenceValueListReference', + 'annotations': 'Dict[str, str]' + 'var_from': 'From3' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - '_from': 'from', + 'annotations': 'annotations' + 'var_from': 'from' 'type': 'type' } - def __init__(self, annotations=None, _from=None, type='DAGTaskLoop', local_vars_configuration=None): # noqa: E501 + def __init__(self, annotations=None, var_from=None, type='DAGTaskLoop', local_vars_configuration=None): # noqa: E501 """DAGTaskLoop - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._annotations = None - self.__from = None + self._var_from = None self._type = None self.discriminator = None if annotations is not None: self.annotations = annotations - if _from is not None: - self._from = _from + if var_from is not None: + self.var_from = var_from if type is not None: self.type = type @@ -70,7 +70,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGTaskLoop. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -81,33 +81,31 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGTaskLoop. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @property - def _from(self): - """Gets the _from of this DAGTaskLoop. # noqa: E501 + def var_from(self): + """Gets the var_from of this DAGTaskLoop. # noqa: E501 - The task or DAG parameter to loop over (must be iterable). # noqa: E501 - :return: The _from of this DAGTaskLoop. # noqa: E501 - :rtype: AnyOfInputReferenceTaskReferenceValueListReference + :return: The var_from of this DAGTaskLoop. # noqa: E501 + :rtype: From3 """ - return self.__from + return self._var_from - @_from.setter - def _from(self, _from): - """Sets the _from of this DAGTaskLoop. + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGTaskLoop. - The task or DAG parameter to loop over (must be iterable). # noqa: E501 - :param _from: The _from of this DAGTaskLoop. # noqa: E501 - :type _from: AnyOfInputReferenceTaskReferenceValueListReference + :param var_from: The var_from of this DAGTaskLoop. # noqa: E501 + :type var_from: From3 """ - self.__from = _from + self._var_from = var_from @property def type(self): diff --git a/pollination_sdk/models/dag_task_returns_inner.py b/pollination_sdk/models/dag_task_returns_inner.py new file mode 100644 index 000000000..68a40a5ef --- /dev/null +++ b/pollination_sdk/models/dag_task_returns_inner.py @@ -0,0 +1,266 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class DAGTaskReturnsInner(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'name': 'str' + 'type': 'str' + 'path': 'str' + 'required': 'bool' + } + + attribute_map = { + 'annotations': 'annotations' + 'description': 'description' + 'name': 'name' + 'type': 'type' + 'path': 'path' + 'required': 'required' + } + + def __init__(self, annotations=None, description=None, name=None, type='TaskPathReturn', path=None, required=True, local_vars_configuration=None): # noqa: E501 + """DAGTaskReturnsInner - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._annotations = None + self._description = None + self._name = None + self._type = None + self._path = None + self._required = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + if description is not None: + self.description = description + self.name = name + if type is not None: + self.type = type + self.path = path + if required is not None: + self.required = required + + @property + def annotations(self): + """Gets the annotations of this DAGTaskReturnsInner. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this DAGTaskReturnsInner. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this DAGTaskReturnsInner. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this DAGTaskReturnsInner. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def description(self): + """Gets the description of this DAGTaskReturnsInner. # noqa: E501 + + Optional description for output. # noqa: E501 + + :return: The description of this DAGTaskReturnsInner. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this DAGTaskReturnsInner. + + Optional description for output. # noqa: E501 + + :param description: The description of this DAGTaskReturnsInner. # noqa: E501 + :type description: str + """ + + self._description = description + + @property + def name(self): + """Gets the name of this DAGTaskReturnsInner. # noqa: E501 + + Output name. # noqa: E501 + + :return: The name of this DAGTaskReturnsInner. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DAGTaskReturnsInner. + + Output name. # noqa: E501 + + :param name: The name of this DAGTaskReturnsInner. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def type(self): + """Gets the type of this DAGTaskReturnsInner. # noqa: E501 + + + :return: The type of this DAGTaskReturnsInner. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this DAGTaskReturnsInner. + + + :param type: The type of this DAGTaskReturnsInner. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^TaskPathReturn$', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^TaskPathReturn$/`") # noqa: E501 + + self._type = type + + @property + def path(self): + """Gets the path of this DAGTaskReturnsInner. # noqa: E501 + + Path to the output artifact relative to where the function command is executed. # noqa: E501 + + :return: The path of this DAGTaskReturnsInner. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this DAGTaskReturnsInner. + + Path to the output artifact relative to where the function command is executed. # noqa: E501 + + :param path: The path of this DAGTaskReturnsInner. # noqa: E501 + :type path: str + """ + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 + + self._path = path + + @property + def required(self): + """Gets the required of this DAGTaskReturnsInner. # noqa: E501 + + A boolean to indicate if an artifact output is required. A False value makes the artifact optional. # noqa: E501 + + :return: The required of this DAGTaskReturnsInner. # noqa: E501 + :rtype: bool + """ + return self._required + + @required.setter + def required(self, required): + """Sets the required of this DAGTaskReturnsInner. + + A boolean to indicate if an artifact output is required. A False value makes the artifact optional. # noqa: E501 + + :param required: The required of this DAGTaskReturnsInner. # noqa: E501 + :type required: bool + """ + + self._required = required + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DAGTaskReturnsInner): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DAGTaskReturnsInner): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/dagjson_object_input.py b/pollination_sdk/models/dagjson_object_input.py index e53e52328..af4de42f6 100644 --- a/pollination_sdk/models/dagjson_object_input.py +++ b/pollination_sdk/models/dagjson_object_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,24 +34,24 @@ class DAGJSONObjectInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'object', - 'description': 'str', - 'name': 'str', - 'required': 'bool', - 'spec': 'object', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'object' + 'description': 'str' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'name': 'name', - 'required': 'required', - 'spec': 'spec', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -94,7 +94,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this DAGJSONObjectInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -105,7 +105,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this DAGJSONObjectInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -117,7 +117,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGJSONObjectInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -128,7 +128,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGJSONObjectInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/dagjson_object_input_alias.py b/pollination_sdk/models/dagjson_object_input_alias.py index 3a932c6c0..944407166 100644 --- a/pollination_sdk/models/dagjson_object_input_alias.py +++ b/pollination_sdk/models/dagjson_object_input_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class DAGJSONObjectInputAlias(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'default': 'object', - 'description': 'str', - 'handler': 'list[IOAliasHandler]', - 'name': 'str', - 'platform': 'list[str]', - 'required': 'bool', - 'spec': 'object', + 'annotations': 'Dict[str, str]' + 'default': 'object' + 'description': 'str' + 'handler': 'List[IOAliasHandler]' + 'name': 'str' + 'platform': 'List[str]' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'handler': 'handler', - 'name': 'name', - 'platform': 'platform', - 'required': 'required', - 'spec': 'spec', + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'handler': 'handler' + 'name': 'name' + 'platform': 'platform' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -97,7 +97,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGJSONObjectInputAlias. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -108,7 +108,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGJSONObjectInputAlias. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -166,7 +166,7 @@ def handler(self): List of process actions to process the input or output value. # noqa: E501 :return: The handler of this DAGJSONObjectInputAlias. # noqa: E501 - :rtype: list[IOAliasHandler] + :rtype: List[IOAliasHandler] """ return self._handler @@ -177,7 +177,7 @@ def handler(self, handler): List of process actions to process the input or output value. # noqa: E501 :param handler: The handler of this DAGJSONObjectInputAlias. # noqa: E501 - :type handler: list[IOAliasHandler] + :type handler: List[IOAliasHandler] """ if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 @@ -216,7 +216,7 @@ def platform(self): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :return: The platform of this DAGJSONObjectInputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._platform @@ -227,7 +227,7 @@ def platform(self, platform): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :param platform: The platform of this DAGJSONObjectInputAlias. # noqa: E501 - :type platform: list[str] + :type platform: List[str] """ if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/dagjson_object_output.py b/pollination_sdk/models/dagjson_object_output.py index 4c4a0f0d3..6e6cbf38b 100644 --- a/pollination_sdk/models/dagjson_object_output.py +++ b/pollination_sdk/models/dagjson_object_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class DAGJSONObjectOutput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias]', - 'annotations': 'dict(str, str)', - 'description': 'str', - '_from': 'AnyOfTaskReferenceFileReference', - 'name': 'str', - 'required': 'bool', + 'alias': 'List[DAGArrayOutputAliasInner]' + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'var_from': 'ModelFrom' + 'name': 'str' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'description': 'description', - '_from': 'from', - 'name': 'name', - 'required': 'required', + 'alias': 'alias' + 'annotations': 'annotations' + 'description': 'description' + 'var_from': 'from' + 'name': 'name' + 'required': 'required' 'type': 'type' } - def __init__(self, alias=None, annotations=None, description=None, _from=None, name=None, required=True, type='DAGJSONObjectOutput', local_vars_configuration=None): # noqa: E501 + def __init__(self, alias=None, annotations=None, description=None, var_from=None, name=None, required=True, type='DAGJSONObjectOutput', local_vars_configuration=None): # noqa: E501 """DAGJSONObjectOutput - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -62,7 +62,7 @@ def __init__(self, alias=None, annotations=None, description=None, _from=None, n self._alias = None self._annotations = None self._description = None - self.__from = None + self._var_from = None self._name = None self._required = None self._type = None @@ -74,7 +74,7 @@ def __init__(self, alias=None, annotations=None, description=None, _from=None, n self.annotations = annotations if description is not None: self.description = description - self._from = _from + self.var_from = var_from self.name = name if required is not None: self.required = required @@ -88,7 +88,7 @@ def alias(self): A list of additional processes for loading this output on different platforms. # noqa: E501 :return: The alias of this DAGJSONObjectOutput. # noqa: E501 - :rtype: list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias] + :rtype: List[DAGArrayOutputAliasInner] """ return self._alias @@ -99,7 +99,7 @@ def alias(self, alias): A list of additional processes for loading this output on different platforms. # noqa: E501 :param alias: The alias of this DAGJSONObjectOutput. # noqa: E501 - :type alias: list[AnyOfDAGGenericOutputAliasDAGStringOutputAliasDAGIntegerOutputAliasDAGNumberOutputAliasDAGBooleanOutputAliasDAGFolderOutputAliasDAGFileOutputAliasDAGPathOutputAliasDAGArrayOutputAliasDAGJSONObjectOutputAliasDAGLinkedOutputAlias] + :type alias: List[DAGArrayOutputAliasInner] """ self._alias = alias @@ -111,7 +111,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGJSONObjectOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -122,7 +122,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGJSONObjectOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -151,29 +151,27 @@ def description(self, description): self._description = description @property - def _from(self): - """Gets the _from of this DAGJSONObjectOutput. # noqa: E501 + def var_from(self): + """Gets the var_from of this DAGJSONObjectOutput. # noqa: E501 - Reference to a file or a task output. Task output must be file. # noqa: E501 - :return: The _from of this DAGJSONObjectOutput. # noqa: E501 - :rtype: AnyOfTaskReferenceFileReference + :return: The var_from of this DAGJSONObjectOutput. # noqa: E501 + :rtype: ModelFrom """ - return self.__from + return self._var_from - @_from.setter - def _from(self, _from): - """Sets the _from of this DAGJSONObjectOutput. + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGJSONObjectOutput. - Reference to a file or a task output. Task output must be file. # noqa: E501 - :param _from: The _from of this DAGJSONObjectOutput. # noqa: E501 - :type _from: AnyOfTaskReferenceFileReference + :param var_from: The var_from of this DAGJSONObjectOutput. # noqa: E501 + :type var_from: ModelFrom """ - if self.local_vars_configuration.client_side_validation and _from is None: # noqa: E501 - raise ValueError("Invalid value for `_from`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 - self.__from = _from + self._var_from = var_from @property def name(self): diff --git a/pollination_sdk/models/dagjson_object_output_alias.py b/pollination_sdk/models/dagjson_object_output_alias.py index 99ae418dc..53fa87a1f 100644 --- a/pollination_sdk/models/dagjson_object_output_alias.py +++ b/pollination_sdk/models/dagjson_object_output_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,28 +34,28 @@ class DAGJSONObjectOutputAlias(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - '_from': 'AnyOfTaskReferenceFileReference', - 'handler': 'list[IOAliasHandler]', - 'name': 'str', - 'platform': 'list[str]', - 'required': 'bool', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'var_from': 'ModelFrom' + 'handler': 'List[IOAliasHandler]' + 'name': 'str' + 'platform': 'List[str]' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - '_from': 'from', - 'handler': 'handler', - 'name': 'name', - 'platform': 'platform', - 'required': 'required', + 'annotations': 'annotations' + 'description': 'description' + 'var_from': 'from' + 'handler': 'handler' + 'name': 'name' + 'platform': 'platform' + 'required': 'required' 'type': 'type' } - def __init__(self, annotations=None, description=None, _from=None, handler=None, name=None, platform=None, required=True, type='DAGJSONObjectOutputAlias', local_vars_configuration=None): # noqa: E501 + def __init__(self, annotations=None, description=None, var_from=None, handler=None, name=None, platform=None, required=True, type='DAGJSONObjectOutputAlias', local_vars_configuration=None): # noqa: E501 """DAGJSONObjectOutputAlias - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -63,7 +63,7 @@ def __init__(self, annotations=None, description=None, _from=None, handler=None, self._annotations = None self._description = None - self.__from = None + self._var_from = None self._handler = None self._name = None self._platform = None @@ -75,7 +75,7 @@ def __init__(self, annotations=None, description=None, _from=None, handler=None, self.annotations = annotations if description is not None: self.description = description - self._from = _from + self.var_from = var_from self.handler = handler self.name = name self.platform = platform @@ -91,7 +91,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DAGJSONObjectOutputAlias. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -102,7 +102,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DAGJSONObjectOutputAlias. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -131,29 +131,27 @@ def description(self, description): self._description = description @property - def _from(self): - """Gets the _from of this DAGJSONObjectOutputAlias. # noqa: E501 + def var_from(self): + """Gets the var_from of this DAGJSONObjectOutputAlias. # noqa: E501 - Reference to a file or a task output. Task output must be file. # noqa: E501 - :return: The _from of this DAGJSONObjectOutputAlias. # noqa: E501 - :rtype: AnyOfTaskReferenceFileReference + :return: The var_from of this DAGJSONObjectOutputAlias. # noqa: E501 + :rtype: ModelFrom """ - return self.__from + return self._var_from - @_from.setter - def _from(self, _from): - """Sets the _from of this DAGJSONObjectOutputAlias. + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this DAGJSONObjectOutputAlias. - Reference to a file or a task output. Task output must be file. # noqa: E501 - :param _from: The _from of this DAGJSONObjectOutputAlias. # noqa: E501 - :type _from: AnyOfTaskReferenceFileReference + :param var_from: The var_from of this DAGJSONObjectOutputAlias. # noqa: E501 + :type var_from: ModelFrom """ - if self.local_vars_configuration.client_side_validation and _from is None: # noqa: E501 - raise ValueError("Invalid value for `_from`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 - self.__from = _from + self._var_from = var_from @property def handler(self): @@ -162,7 +160,7 @@ def handler(self): List of process actions to process the input or output value. # noqa: E501 :return: The handler of this DAGJSONObjectOutputAlias. # noqa: E501 - :rtype: list[IOAliasHandler] + :rtype: List[IOAliasHandler] """ return self._handler @@ -173,7 +171,7 @@ def handler(self, handler): List of process actions to process the input or output value. # noqa: E501 :param handler: The handler of this DAGJSONObjectOutputAlias. # noqa: E501 - :type handler: list[IOAliasHandler] + :type handler: List[IOAliasHandler] """ if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 @@ -212,7 +210,7 @@ def platform(self): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :return: The platform of this DAGJSONObjectOutputAlias. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._platform @@ -223,7 +221,7 @@ def platform(self, platform): Name of the client platform (e.g. Grasshopper, Revit, etc). The value can be any strings as long as it has been agreed between client-side developer and author of the recipe. # noqa: E501 :param platform: The platform of this DAGJSONObjectOutputAlias. # noqa: E501 - :type platform: list[str] + :type platform: List[str] """ if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/daily_usage.py b/pollination_sdk/models/daily_usage.py index 1405a6cd0..7a0db674f 100644 --- a/pollination_sdk/models/daily_usage.py +++ b/pollination_sdk/models/daily_usage.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,29 +34,29 @@ class DailyUsage(object): and the value is json key in definition. """ openapi_types = { - 'cpu': 'float', - 'date': 'datetime', - 'failed': 'int', - 'memory': 'float', + 'cpu': 'float' + 'var_date': 'datetime' + 'failed': 'int' + 'memory': 'float' 'succeeded': 'int' } attribute_map = { - 'cpu': 'cpu', - 'date': 'date', - 'failed': 'failed', - 'memory': 'memory', + 'cpu': 'cpu' + 'var_date': 'date' + 'failed': 'failed' + 'memory': 'memory' 'succeeded': 'succeeded' } - def __init__(self, cpu=0, date=None, failed=0, memory=0, succeeded=0, local_vars_configuration=None): # noqa: E501 + def __init__(self, cpu=0, var_date=None, failed=0, memory=0, succeeded=0, local_vars_configuration=None): # noqa: E501 """DailyUsage - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._cpu = None - self._date = None + self._var_date = None self._failed = None self._memory = None self._succeeded = None @@ -64,7 +64,7 @@ def __init__(self, cpu=0, date=None, failed=0, memory=0, succeeded=0, local_vars if cpu is not None: self.cpu = cpu - self.date = date + self.var_date = var_date if failed is not None: self.failed = failed if memory is not None: @@ -96,29 +96,29 @@ def cpu(self, cpu): self._cpu = cpu @property - def date(self): - """Gets the date of this DailyUsage. # noqa: E501 + def var_date(self): + """Gets the var_date of this DailyUsage. # noqa: E501 The day this usage was aggregated for # noqa: E501 - :return: The date of this DailyUsage. # noqa: E501 + :return: The var_date of this DailyUsage. # noqa: E501 :rtype: datetime """ - return self._date + return self._var_date - @date.setter - def date(self, date): - """Sets the date of this DailyUsage. + @var_date.setter + def var_date(self, var_date): + """Sets the var_date of this DailyUsage. The day this usage was aggregated for # noqa: E501 - :param date: The date of this DailyUsage. # noqa: E501 - :type date: datetime + :param var_date: The var_date of this DailyUsage. # noqa: E501 + :type var_date: datetime """ - if self.local_vars_configuration.client_side_validation and date is None: # noqa: E501 - raise ValueError("Invalid value for `date`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and var_date is None: # noqa: E501 + raise ValueError("Invalid value for `var_date`, must not be `None`") # noqa: E501 - self._date = date + self._var_date = var_date @property def failed(self): diff --git a/pollination_sdk/models/default.py b/pollination_sdk/models/default.py new file mode 100644 index 000000000..84f848833 --- /dev/null +++ b/pollination_sdk/models/default.py @@ -0,0 +1,324 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class Default(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'annotations': 'Dict[str, str]' + 'type': 'str' + 'url': 'str' + 'bucket': 'str' + 'credentials_path': 'str' + 'endpoint': 'str' + 'key': 'str' + 'path': 'str' + } + + attribute_map = { + 'annotations': 'annotations' + 'type': 'type' + 'url': 'url' + 'bucket': 'bucket' + 'credentials_path': 'credentials_path' + 'endpoint': 'endpoint' + 'key': 'key' + 'path': 'path' + } + + def __init__(self, annotations=None, type='ProjectFolder', url=None, bucket=None, credentials_path=None, endpoint=None, key=None, path=None, local_vars_configuration=None): # noqa: E501 + """Default - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._annotations = None + self._type = None + self._url = None + self._bucket = None + self._credentials_path = None + self._endpoint = None + self._key = None + self._path = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + if type is not None: + self.type = type + self.url = url + self.bucket = bucket + if credentials_path is not None: + self.credentials_path = credentials_path + self.endpoint = endpoint + self.key = key + if path is not None: + self.path = path + + @property + def annotations(self): + """Gets the annotations of this Default. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this Default. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this Default. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this Default. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def type(self): + """Gets the type of this Default. # noqa: E501 + + + :return: The type of this Default. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this Default. + + + :param type: The type of this Default. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^ProjectFolder$', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^ProjectFolder$/`") # noqa: E501 + + self._type = type + + @property + def url(self): + """Gets the url of this Default. # noqa: E501 + + For a HTTP endpoint this can be http://climate.onebuilding.org. # noqa: E501 + + :return: The url of this Default. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this Default. + + For a HTTP endpoint this can be http://climate.onebuilding.org. # noqa: E501 + + :param url: The url of this Default. # noqa: E501 + :type url: str + """ + if self.local_vars_configuration.client_side_validation and url is None: # noqa: E501 + raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501 + + self._url = url + + @property + def bucket(self): + """Gets the bucket of this Default. # noqa: E501 + + The name of the S3 bucket on the host server. # noqa: E501 + + :return: The bucket of this Default. # noqa: E501 + :rtype: str + """ + return self._bucket + + @bucket.setter + def bucket(self, bucket): + """Sets the bucket of this Default. + + The name of the S3 bucket on the host server. # noqa: E501 + + :param bucket: The bucket of this Default. # noqa: E501 + :type bucket: str + """ + if self.local_vars_configuration.client_side_validation and bucket is None: # noqa: E501 + raise ValueError("Invalid value for `bucket`, must not be `None`") # noqa: E501 + + self._bucket = bucket + + @property + def credentials_path(self): + """Gets the credentials_path of this Default. # noqa: E501 + + Path to the file holding the AccessKey and SecretAccessKey to authenticate to the bucket. Assumes public bucket access if none are specified. # noqa: E501 + + :return: The credentials_path of this Default. # noqa: E501 + :rtype: str + """ + return self._credentials_path + + @credentials_path.setter + def credentials_path(self, credentials_path): + """Sets the credentials_path of this Default. + + Path to the file holding the AccessKey and SecretAccessKey to authenticate to the bucket. Assumes public bucket access if none are specified. # noqa: E501 + + :param credentials_path: The credentials_path of this Default. # noqa: E501 + :type credentials_path: str + """ + + self._credentials_path = credentials_path + + @property + def endpoint(self): + """Gets the endpoint of this Default. # noqa: E501 + + The HTTP endpoint to reach the S3 bucket. # noqa: E501 + + :return: The endpoint of this Default. # noqa: E501 + :rtype: str + """ + return self._endpoint + + @endpoint.setter + def endpoint(self, endpoint): + """Sets the endpoint of this Default. + + The HTTP endpoint to reach the S3 bucket. # noqa: E501 + + :param endpoint: The endpoint of this Default. # noqa: E501 + :type endpoint: str + """ + if self.local_vars_configuration.client_side_validation and endpoint is None: # noqa: E501 + raise ValueError("Invalid value for `endpoint`, must not be `None`") # noqa: E501 + + self._endpoint = endpoint + + @property + def key(self): + """Gets the key of this Default. # noqa: E501 + + The path inside the bucket to source artifacts from. # noqa: E501 + + :return: The key of this Default. # noqa: E501 + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this Default. + + The path inside the bucket to source artifacts from. # noqa: E501 + + :param key: The key of this Default. # noqa: E501 + :type key: str + """ + if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501 + raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 + + self._key = key + + @property + def path(self): + """Gets the path of this Default. # noqa: E501 + + The path to a folder where files and folders can be sourced. For a local filesystem this can be \"C:\\Users\\me\\jobs\\test\". # noqa: E501 + + :return: The path of this Default. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this Default. + + The path to a folder where files and folders can be sourced. For a local filesystem this can be \"C:\\Users\\me\\jobs\\test\". # noqa: E501 + + :param path: The path of this Default. # noqa: E501 + :type path: str + """ + + self._path = path + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Default): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, Default): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/dependency.py b/pollination_sdk/models/dependency.py index e8a53b2c9..1fd5ab783 100644 --- a/pollination_sdk/models/dependency.py +++ b/pollination_sdk/models/dependency.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,24 +34,24 @@ class Dependency(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'str', - 'annotations': 'dict(str, str)', - 'hash': 'str', - 'kind': 'DependencyKind', - 'name': 'str', - 'source': 'str', - 'tag': 'str', + 'alias': 'str' + 'annotations': 'Dict[str, str]' + 'hash': 'str' + 'kind': 'DependencyKind' + 'name': 'str' + 'source': 'str' + 'tag': 'str' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'hash': 'hash', - 'kind': 'kind', - 'name': 'name', - 'source': 'source', - 'tag': 'tag', + 'alias': 'alias' + 'annotations': 'annotations' + 'hash': 'hash' + 'kind': 'kind' + 'name': 'name' + 'source': 'source' + 'tag': 'tag' 'type': 'type' } @@ -114,7 +114,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this Dependency. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -125,7 +125,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this Dependency. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/dependency_kind.py b/pollination_sdk/models/dependency_kind.py index 256ae0247..1f00881dc 100644 --- a/pollination_sdk/models/dependency_kind.py +++ b/pollination_sdk/models/dependency_kind.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,8 +29,8 @@ class DependencyKind(object): """ allowed enum values """ - RECIPE = "recipe" - PLUGIN = "plugin" + RECIPE = 'recipe' + PLUGIN = 'plugin' allowable_values = [RECIPE, PLUGIN] # noqa: E501 diff --git a/pollination_sdk/models/deployment_config.py b/pollination_sdk/models/deployment_config.py index 17e1409ad..7449c6f66 100644 --- a/pollination_sdk/models/deployment_config.py +++ b/pollination_sdk/models/deployment_config.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,18 +34,18 @@ class DeploymentConfig(object): and the value is json key in definition. """ openapi_types = { - 'cpu_limit': 'int', - 'entrypoint_file': 'str', - 'login_required': 'bool', - 'memory_limit': 'int', + 'cpu_limit': 'int' + 'entrypoint_file': 'str' + 'login_required': 'bool' + 'memory_limit': 'int' 'scale_to_zero': 'bool' } attribute_map = { - 'cpu_limit': 'cpu_limit', - 'entrypoint_file': 'entrypoint_file', - 'login_required': 'login_required', - 'memory_limit': 'memory_limit', + 'cpu_limit': 'cpu_limit' + 'entrypoint_file': 'entrypoint_file' + 'login_required': 'login_required' + 'memory_limit': 'memory_limit' 'scale_to_zero': 'scale_to_zero' } diff --git a/pollination_sdk/models/deployment_config_update.py b/pollination_sdk/models/deployment_config_update.py new file mode 100644 index 000000000..6a2826331 --- /dev/null +++ b/pollination_sdk/models/deployment_config_update.py @@ -0,0 +1,235 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class DeploymentConfigUpdate(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'cpu_limit': 'int' + 'entrypoint_file': 'str' + 'login_required': 'bool' + 'memory_limit': 'int' + 'scale_to_zero': 'bool' + } + + attribute_map = { + 'cpu_limit': 'cpu_limit' + 'entrypoint_file': 'entrypoint_file' + 'login_required': 'login_required' + 'memory_limit': 'memory_limit' + 'scale_to_zero': 'scale_to_zero' + } + + def __init__(self, cpu_limit=None, entrypoint_file=None, login_required=None, memory_limit=None, scale_to_zero=None, local_vars_configuration=None): # noqa: E501 + """DeploymentConfigUpdate - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._cpu_limit = None + self._entrypoint_file = None + self._login_required = None + self._memory_limit = None + self._scale_to_zero = None + self.discriminator = None + + if cpu_limit is not None: + self.cpu_limit = cpu_limit + if entrypoint_file is not None: + self.entrypoint_file = entrypoint_file + if login_required is not None: + self.login_required = login_required + if memory_limit is not None: + self.memory_limit = memory_limit + if scale_to_zero is not None: + self.scale_to_zero = scale_to_zero + + @property + def cpu_limit(self): + """Gets the cpu_limit of this DeploymentConfigUpdate. # noqa: E501 + + The maximum number of CPU cores that can be used by the application. # noqa: E501 + + :return: The cpu_limit of this DeploymentConfigUpdate. # noqa: E501 + :rtype: int + """ + return self._cpu_limit + + @cpu_limit.setter + def cpu_limit(self, cpu_limit): + """Sets the cpu_limit of this DeploymentConfigUpdate. + + The maximum number of CPU cores that can be used by the application. # noqa: E501 + + :param cpu_limit: The cpu_limit of this DeploymentConfigUpdate. # noqa: E501 + :type cpu_limit: int + """ + + self._cpu_limit = cpu_limit + + @property + def entrypoint_file(self): + """Gets the entrypoint_file of this DeploymentConfigUpdate. # noqa: E501 + + The Streamlit python file to use as an entrypoint to the app # noqa: E501 + + :return: The entrypoint_file of this DeploymentConfigUpdate. # noqa: E501 + :rtype: str + """ + return self._entrypoint_file + + @entrypoint_file.setter + def entrypoint_file(self, entrypoint_file): + """Sets the entrypoint_file of this DeploymentConfigUpdate. + + The Streamlit python file to use as an entrypoint to the app # noqa: E501 + + :param entrypoint_file: The entrypoint_file of this DeploymentConfigUpdate. # noqa: E501 + :type entrypoint_file: str + """ + + self._entrypoint_file = entrypoint_file + + @property + def login_required(self): + """Gets the login_required of this DeploymentConfigUpdate. # noqa: E501 + + Whether the application requires login. # noqa: E501 + + :return: The login_required of this DeploymentConfigUpdate. # noqa: E501 + :rtype: bool + """ + return self._login_required + + @login_required.setter + def login_required(self, login_required): + """Sets the login_required of this DeploymentConfigUpdate. + + Whether the application requires login. # noqa: E501 + + :param login_required: The login_required of this DeploymentConfigUpdate. # noqa: E501 + :type login_required: bool + """ + + self._login_required = login_required + + @property + def memory_limit(self): + """Gets the memory_limit of this DeploymentConfigUpdate. # noqa: E501 + + The maximum amount of memory that can be used by the application. # noqa: E501 + + :return: The memory_limit of this DeploymentConfigUpdate. # noqa: E501 + :rtype: int + """ + return self._memory_limit + + @memory_limit.setter + def memory_limit(self, memory_limit): + """Sets the memory_limit of this DeploymentConfigUpdate. + + The maximum amount of memory that can be used by the application. # noqa: E501 + + :param memory_limit: The memory_limit of this DeploymentConfigUpdate. # noqa: E501 + :type memory_limit: int + """ + + self._memory_limit = memory_limit + + @property + def scale_to_zero(self): + """Gets the scale_to_zero of this DeploymentConfigUpdate. # noqa: E501 + + A boolean toggle to scale deployments down to zero replicas when not used. # noqa: E501 + + :return: The scale_to_zero of this DeploymentConfigUpdate. # noqa: E501 + :rtype: bool + """ + return self._scale_to_zero + + @scale_to_zero.setter + def scale_to_zero(self, scale_to_zero): + """Sets the scale_to_zero of this DeploymentConfigUpdate. + + A boolean toggle to scale deployments down to zero replicas when not used. # noqa: E501 + + :param scale_to_zero: The scale_to_zero of this DeploymentConfigUpdate. # noqa: E501 + :type scale_to_zero: bool + """ + + self._scale_to_zero = scale_to_zero + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeploymentConfigUpdate): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DeploymentConfigUpdate): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/docker_config.py b/pollination_sdk/models/docker_config.py index 3667ef015..ade1a33c5 100644 --- a/pollination_sdk/models/docker_config.py +++ b/pollination_sdk/models/docker_config.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,18 +34,18 @@ class DockerConfig(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'image': 'str', - 'registry': 'str', - 'type': 'str', + 'annotations': 'Dict[str, str]' + 'image': 'str' + 'registry': 'str' + 'type': 'str' 'workdir': 'str' } attribute_map = { - 'annotations': 'annotations', - 'image': 'image', - 'registry': 'registry', - 'type': 'type', + 'annotations': 'annotations' + 'image': 'image' + 'registry': 'registry' + 'type': 'type' 'workdir': 'workdir' } @@ -78,7 +78,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this DockerConfig. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -89,7 +89,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this DockerConfig. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/file_meta.py b/pollination_sdk/models/file_meta.py index 1f67387e0..053f89c27 100644 --- a/pollination_sdk/models/file_meta.py +++ b/pollination_sdk/models/file_meta.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,18 +34,18 @@ class FileMeta(object): and the value is json key in definition. """ openapi_types = { - 'file_name': 'str', - 'file_type': 'str', - 'key': 'str', - 'last_modified': 'datetime', + 'file_name': 'str' + 'file_type': 'str' + 'key': 'str' + 'last_modified': 'datetime' 'size': 'int' } attribute_map = { - 'file_name': 'file_name', - 'file_type': 'file_type', - 'key': 'key', - 'last_modified': 'last_modified', + 'file_name': 'file_name' + 'file_type': 'file_type' + 'key': 'key' + 'last_modified': 'last_modified' 'size': 'size' } diff --git a/pollination_sdk/models/file_meta_list.py b/pollination_sdk/models/file_meta_list.py index 3883fa780..a8d1cbc49 100644 --- a/pollination_sdk/models/file_meta_list.py +++ b/pollination_sdk/models/file_meta_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class FileMetaList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[FileMeta]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[FileMeta]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this FileMetaList. # noqa: E501 - :rtype: list[FileMeta] + :rtype: List[FileMeta] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this FileMetaList. # noqa: E501 - :type resources: list[FileMeta] + :type resources: List[FileMeta] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/file_reference.py b/pollination_sdk/models/file_reference.py index cc8256fc5..5ec69b6ca 100644 --- a/pollination_sdk/models/file_reference.py +++ b/pollination_sdk/models/file_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class FileReference(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'path': 'str', + 'annotations': 'Dict[str, str]' + 'path': 'str' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'path': 'path', + 'annotations': 'annotations' + 'path': 'path' 'type': 'type' } @@ -69,7 +69,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this FileReference. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -80,7 +80,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this FileReference. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/folder_reference.py b/pollination_sdk/models/folder_reference.py index 3acdbed84..d9b3b3656 100644 --- a/pollination_sdk/models/folder_reference.py +++ b/pollination_sdk/models/folder_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class FolderReference(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'path': 'str', + 'annotations': 'Dict[str, str]' + 'path': 'str' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'path': 'path', + 'annotations': 'annotations' + 'path': 'path' 'type': 'type' } @@ -69,7 +69,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this FolderReference. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -80,7 +80,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this FolderReference. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/from1.py b/pollination_sdk/models/from1.py new file mode 100644 index 000000000..058e5e908 --- /dev/null +++ b/pollination_sdk/models/from1.py @@ -0,0 +1,239 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class From1(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'annotations': 'Dict[str, str]' + 'name': 'str' + 'type': 'str' + 'variable': 'str' + 'path': 'str' + } + + attribute_map = { + 'annotations': 'annotations' + 'name': 'name' + 'type': 'type' + 'variable': 'variable' + 'path': 'path' + } + + def __init__(self, annotations=None, name=None, type='FolderReference', variable=None, path=None, local_vars_configuration=None): # noqa: E501 + """From1 - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._annotations = None + self._name = None + self._type = None + self._variable = None + self._path = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + self.name = name + if type is not None: + self.type = type + self.variable = variable + self.path = path + + @property + def annotations(self): + """Gets the annotations of this From1. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this From1. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this From1. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this From1. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def name(self): + """Gets the name of this From1. # noqa: E501 + + The name of the task to pull output data from. # noqa: E501 + + :return: The name of this From1. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this From1. + + The name of the task to pull output data from. # noqa: E501 + + :param name: The name of this From1. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def type(self): + """Gets the type of this From1. # noqa: E501 + + + :return: The type of this From1. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this From1. + + + :param type: The type of this From1. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^FolderReference$', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^FolderReference$/`") # noqa: E501 + + self._type = type + + @property + def variable(self): + """Gets the variable of this From1. # noqa: E501 + + The name of the variable. # noqa: E501 + + :return: The variable of this From1. # noqa: E501 + :rtype: str + """ + return self._variable + + @variable.setter + def variable(self, variable): + """Sets the variable of this From1. + + The name of the variable. # noqa: E501 + + :param variable: The variable of this From1. # noqa: E501 + :type variable: str + """ + if self.local_vars_configuration.client_side_validation and variable is None: # noqa: E501 + raise ValueError("Invalid value for `variable`, must not be `None`") # noqa: E501 + + self._variable = variable + + @property + def path(self): + """Gets the path of this From1. # noqa: E501 + + Relative path to a folder. # noqa: E501 + + :return: The path of this From1. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this From1. + + Relative path to a folder. # noqa: E501 + + :param path: The path of this From1. # noqa: E501 + :type path: str + """ + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 + + self._path = path + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, From1): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, From1): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/from2.py b/pollination_sdk/models/from2.py new file mode 100644 index 000000000..14fa16d2a --- /dev/null +++ b/pollination_sdk/models/from2.py @@ -0,0 +1,239 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class From2(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'annotations': 'Dict[str, str]' + 'name': 'str' + 'type': 'str' + 'variable': 'str' + 'path': 'str' + } + + attribute_map = { + 'annotations': 'annotations' + 'name': 'name' + 'type': 'type' + 'variable': 'variable' + 'path': 'path' + } + + def __init__(self, annotations=None, name=None, type='FolderReference', variable=None, path=None, local_vars_configuration=None): # noqa: E501 + """From2 - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._annotations = None + self._name = None + self._type = None + self._variable = None + self._path = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + self.name = name + if type is not None: + self.type = type + self.variable = variable + self.path = path + + @property + def annotations(self): + """Gets the annotations of this From2. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this From2. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this From2. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this From2. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def name(self): + """Gets the name of this From2. # noqa: E501 + + The name of the task to pull output data from. # noqa: E501 + + :return: The name of this From2. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this From2. + + The name of the task to pull output data from. # noqa: E501 + + :param name: The name of this From2. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def type(self): + """Gets the type of this From2. # noqa: E501 + + + :return: The type of this From2. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this From2. + + + :param type: The type of this From2. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^FolderReference$', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^FolderReference$/`") # noqa: E501 + + self._type = type + + @property + def variable(self): + """Gets the variable of this From2. # noqa: E501 + + The name of the variable. # noqa: E501 + + :return: The variable of this From2. # noqa: E501 + :rtype: str + """ + return self._variable + + @variable.setter + def variable(self, variable): + """Sets the variable of this From2. + + The name of the variable. # noqa: E501 + + :param variable: The variable of this From2. # noqa: E501 + :type variable: str + """ + if self.local_vars_configuration.client_side_validation and variable is None: # noqa: E501 + raise ValueError("Invalid value for `variable`, must not be `None`") # noqa: E501 + + self._variable = variable + + @property + def path(self): + """Gets the path of this From2. # noqa: E501 + + Relative path to a folder. # noqa: E501 + + :return: The path of this From2. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this From2. + + Relative path to a folder. # noqa: E501 + + :param path: The path of this From2. # noqa: E501 + :type path: str + """ + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 + + self._path = path + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, From2): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, From2): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/from3.py b/pollination_sdk/models/from3.py new file mode 100644 index 000000000..9bb49caaf --- /dev/null +++ b/pollination_sdk/models/from3.py @@ -0,0 +1,239 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class From3(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'annotations': 'Dict[str, str]' + 'type': 'str' + 'variable': 'str' + 'name': 'str' + 'value': 'List[object]' + } + + attribute_map = { + 'annotations': 'annotations' + 'type': 'type' + 'variable': 'variable' + 'name': 'name' + 'value': 'value' + } + + def __init__(self, annotations=None, type='ValueListReference', variable=None, name=None, value=None, local_vars_configuration=None): # noqa: E501 + """From3 - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._annotations = None + self._type = None + self._variable = None + self._name = None + self._value = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + if type is not None: + self.type = type + self.variable = variable + self.name = name + self.value = value + + @property + def annotations(self): + """Gets the annotations of this From3. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this From3. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this From3. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this From3. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def type(self): + """Gets the type of this From3. # noqa: E501 + + + :return: The type of this From3. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this From3. + + + :param type: The type of this From3. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^ValueListReference$', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^ValueListReference$/`") # noqa: E501 + + self._type = type + + @property + def variable(self): + """Gets the variable of this From3. # noqa: E501 + + The name of the variable. # noqa: E501 + + :return: The variable of this From3. # noqa: E501 + :rtype: str + """ + return self._variable + + @variable.setter + def variable(self, variable): + """Sets the variable of this From3. + + The name of the variable. # noqa: E501 + + :param variable: The variable of this From3. # noqa: E501 + :type variable: str + """ + if self.local_vars_configuration.client_side_validation and variable is None: # noqa: E501 + raise ValueError("Invalid value for `variable`, must not be `None`") # noqa: E501 + + self._variable = variable + + @property + def name(self): + """Gets the name of this From3. # noqa: E501 + + The name of the task to pull output data from. # noqa: E501 + + :return: The name of this From3. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this From3. + + The name of the task to pull output data from. # noqa: E501 + + :param name: The name of this From3. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def value(self): + """Gets the value of this From3. # noqa: E501 + + A fixed value for this reference. # noqa: E501 + + :return: The value of this From3. # noqa: E501 + :rtype: List[object] + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this From3. + + A fixed value for this reference. # noqa: E501 + + :param value: The value of this From3. # noqa: E501 + :type value: List[object] + """ + if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 + raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, From3): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, From3): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/from4.py b/pollination_sdk/models/from4.py new file mode 100644 index 000000000..853b13452 --- /dev/null +++ b/pollination_sdk/models/from4.py @@ -0,0 +1,235 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class From4(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'annotations': 'Dict[str, str]' + 'type': 'str' + 'variable': 'str' + 'name': 'str' + 'value': 'object' + } + + attribute_map = { + 'annotations': 'annotations' + 'type': 'type' + 'variable': 'variable' + 'name': 'name' + 'value': 'value' + } + + def __init__(self, annotations=None, type='ValueReference', variable=None, name=None, value=None, local_vars_configuration=None): # noqa: E501 + """From4 - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._annotations = None + self._type = None + self._variable = None + self._name = None + self._value = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + if type is not None: + self.type = type + self.variable = variable + self.name = name + self.value = value + + @property + def annotations(self): + """Gets the annotations of this From4. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this From4. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this From4. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this From4. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def type(self): + """Gets the type of this From4. # noqa: E501 + + + :return: The type of this From4. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this From4. + + + :param type: The type of this From4. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^ValueReference$', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^ValueReference$/`") # noqa: E501 + + self._type = type + + @property + def variable(self): + """Gets the variable of this From4. # noqa: E501 + + The name of the looped item variable (use dot notation for nested json values) # noqa: E501 + + :return: The variable of this From4. # noqa: E501 + :rtype: str + """ + return self._variable + + @variable.setter + def variable(self, variable): + """Sets the variable of this From4. + + The name of the looped item variable (use dot notation for nested json values) # noqa: E501 + + :param variable: The variable of this From4. # noqa: E501 + :type variable: str + """ + if self.local_vars_configuration.client_side_validation and variable is None: # noqa: E501 + raise ValueError("Invalid value for `variable`, must not be `None`") # noqa: E501 + + self._variable = variable + + @property + def name(self): + """Gets the name of this From4. # noqa: E501 + + The name of the task to pull output data from. # noqa: E501 + + :return: The name of this From4. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this From4. + + The name of the task to pull output data from. # noqa: E501 + + :param name: The name of this From4. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def value(self): + """Gets the value of this From4. # noqa: E501 + + + :return: The value of this From4. # noqa: E501 + :rtype: object + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this From4. + + + :param value: The value of this From4. # noqa: E501 + :type value: object + """ + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, From4): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, From4): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/from5.py b/pollination_sdk/models/from5.py new file mode 100644 index 000000000..9a90ac52a --- /dev/null +++ b/pollination_sdk/models/from5.py @@ -0,0 +1,239 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class From5(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'annotations': 'Dict[str, str]' + 'type': 'str' + 'variable': 'str' + 'name': 'str' + 'path': 'str' + } + + attribute_map = { + 'annotations': 'annotations' + 'type': 'type' + 'variable': 'variable' + 'name': 'name' + 'path': 'path' + } + + def __init__(self, annotations=None, type='ValueFolderReference', variable=None, name=None, path=None, local_vars_configuration=None): # noqa: E501 + """From5 - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._annotations = None + self._type = None + self._variable = None + self._name = None + self._path = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + if type is not None: + self.type = type + self.variable = variable + self.name = name + self.path = path + + @property + def annotations(self): + """Gets the annotations of this From5. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this From5. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this From5. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this From5. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def type(self): + """Gets the type of this From5. # noqa: E501 + + + :return: The type of this From5. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this From5. + + + :param type: The type of this From5. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^ValueFolderReference$', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^ValueFolderReference$/`") # noqa: E501 + + self._type = type + + @property + def variable(self): + """Gets the variable of this From5. # noqa: E501 + + The name of the variable. # noqa: E501 + + :return: The variable of this From5. # noqa: E501 + :rtype: str + """ + return self._variable + + @variable.setter + def variable(self, variable): + """Sets the variable of this From5. + + The name of the variable. # noqa: E501 + + :param variable: The variable of this From5. # noqa: E501 + :type variable: str + """ + if self.local_vars_configuration.client_side_validation and variable is None: # noqa: E501 + raise ValueError("Invalid value for `variable`, must not be `None`") # noqa: E501 + + self._variable = variable + + @property + def name(self): + """Gets the name of this From5. # noqa: E501 + + The name of the task to pull output data from. # noqa: E501 + + :return: The name of this From5. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this From5. + + The name of the task to pull output data from. # noqa: E501 + + :param name: The name of this From5. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def path(self): + """Gets the path of this From5. # noqa: E501 + + A fixed value for this reference. # noqa: E501 + + :return: The path of this From5. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this From5. + + A fixed value for this reference. # noqa: E501 + + :param path: The path of this From5. # noqa: E501 + :type path: str + """ + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 + + self._path = path + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, From5): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, From5): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/function.py b/pollination_sdk/models/function.py index 10e9de88d..be1735ad4 100644 --- a/pollination_sdk/models/function.py +++ b/pollination_sdk/models/function.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class Function(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'command': 'str', - 'description': 'str', - 'inputs': 'list[AnyOfFunctionStringInputFunctionIntegerInputFunctionNumberInputFunctionBooleanInputFunctionFolderInputFunctionFileInputFunctionPathInputFunctionArrayInputFunctionJSONObjectInput]', - 'language': 'ScriptingLanguages', - 'name': 'str', - 'outputs': 'list[AnyOfFunctionStringOutputFunctionIntegerOutputFunctionNumberOutputFunctionBooleanOutputFunctionFolderOutputFunctionFileOutputFunctionPathOutputFunctionArrayOutputFunctionJSONObjectOutput]', - 'source': 'str', + 'annotations': 'Dict[str, str]' + 'command': 'str' + 'description': 'str' + 'inputs': 'List[FunctionInputsInner]' + 'language': 'ScriptingLanguages' + 'name': 'str' + 'outputs': 'List[FunctionOutputsInner]' + 'source': 'str' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'command': 'command', - 'description': 'description', - 'inputs': 'inputs', - 'language': 'language', - 'name': 'name', - 'outputs': 'outputs', - 'source': 'source', + 'annotations': 'annotations' + 'command': 'command' + 'description': 'description' + 'inputs': 'inputs' + 'language': 'language' + 'name': 'name' + 'outputs': 'outputs' + 'source': 'source' 'type': 'type' } @@ -99,7 +99,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this Function. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -110,7 +110,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this Function. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -168,7 +168,7 @@ def inputs(self): Input arguments for this function. # noqa: E501 :return: The inputs of this Function. # noqa: E501 - :rtype: list[AnyOfFunctionStringInputFunctionIntegerInputFunctionNumberInputFunctionBooleanInputFunctionFolderInputFunctionFileInputFunctionPathInputFunctionArrayInputFunctionJSONObjectInput] + :rtype: List[FunctionInputsInner] """ return self._inputs @@ -179,7 +179,7 @@ def inputs(self, inputs): Input arguments for this function. # noqa: E501 :param inputs: The inputs of this Function. # noqa: E501 - :type inputs: list[AnyOfFunctionStringInputFunctionIntegerInputFunctionNumberInputFunctionBooleanInputFunctionFolderInputFunctionFileInputFunctionPathInputFunctionArrayInputFunctionJSONObjectInput] + :type inputs: List[FunctionInputsInner] """ self._inputs = inputs @@ -239,7 +239,7 @@ def outputs(self): List of output arguments. # noqa: E501 :return: The outputs of this Function. # noqa: E501 - :rtype: list[AnyOfFunctionStringOutputFunctionIntegerOutputFunctionNumberOutputFunctionBooleanOutputFunctionFolderOutputFunctionFileOutputFunctionPathOutputFunctionArrayOutputFunctionJSONObjectOutput] + :rtype: List[FunctionOutputsInner] """ return self._outputs @@ -250,7 +250,7 @@ def outputs(self, outputs): List of output arguments. # noqa: E501 :param outputs: The outputs of this Function. # noqa: E501 - :type outputs: list[AnyOfFunctionStringOutputFunctionIntegerOutputFunctionNumberOutputFunctionBooleanOutputFunctionFolderOutputFunctionFileOutputFunctionPathOutputFunctionArrayOutputFunctionJSONObjectOutput] + :type outputs: List[FunctionOutputsInner] """ self._outputs = outputs diff --git a/pollination_sdk/models/function_array_input.py b/pollination_sdk/models/function_array_input.py index 499c6fd31..a69e5ebd2 100644 --- a/pollination_sdk/models/function_array_input.py +++ b/pollination_sdk/models/function_array_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class FunctionArrayInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'list[object]', - 'description': 'str', - 'items_type': 'ItemType', - 'name': 'str', - 'required': 'bool', - 'spec': 'object', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'List[object]' + 'description': 'str' + 'items_type': 'ItemType' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'items_type': 'items_type', - 'name': 'name', - 'required': 'required', - 'spec': 'spec', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'items_type': 'items_type' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -99,7 +99,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this FunctionArrayInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -110,7 +110,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this FunctionArrayInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -122,7 +122,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this FunctionArrayInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -133,7 +133,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this FunctionArrayInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -145,7 +145,7 @@ def default(self): Default value to use for an input if a value was not supplied. # noqa: E501 :return: The default of this FunctionArrayInput. # noqa: E501 - :rtype: list[object] + :rtype: List[object] """ return self._default @@ -156,7 +156,7 @@ def default(self, default): Default value to use for an input if a value was not supplied. # noqa: E501 :param default: The default of this FunctionArrayInput. # noqa: E501 - :type default: list[object] + :type default: List[object] """ self._default = default diff --git a/pollination_sdk/models/function_array_output.py b/pollination_sdk/models/function_array_output.py index bb0ec3efa..8dde11731 100644 --- a/pollination_sdk/models/function_array_output.py +++ b/pollination_sdk/models/function_array_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,22 +34,22 @@ class FunctionArrayOutput(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'items_type': 'ItemType', - 'name': 'str', - 'path': 'str', - 'required': 'bool', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'items_type': 'ItemType' + 'name': 'str' + 'path': 'str' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'items_type': 'items_type', - 'name': 'name', - 'path': 'path', - 'required': 'required', + 'annotations': 'annotations' + 'description': 'description' + 'items_type': 'items_type' + 'name': 'name' + 'path': 'path' + 'required': 'required' 'type': 'type' } @@ -88,7 +88,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this FunctionArrayOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -99,7 +99,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this FunctionArrayOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/function_boolean_input.py b/pollination_sdk/models/function_boolean_input.py index 3ad7cb3fb..38eb303e5 100644 --- a/pollination_sdk/models/function_boolean_input.py +++ b/pollination_sdk/models/function_boolean_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,24 +34,24 @@ class FunctionBooleanInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'bool', - 'description': 'str', - 'name': 'str', - 'required': 'bool', - 'spec': 'object', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'bool' + 'description': 'str' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'name': 'name', - 'required': 'required', - 'spec': 'spec', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -94,7 +94,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this FunctionBooleanInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -105,7 +105,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this FunctionBooleanInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -117,7 +117,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this FunctionBooleanInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -128,7 +128,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this FunctionBooleanInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/function_boolean_output.py b/pollination_sdk/models/function_boolean_output.py index 285831996..ad8bdc14b 100644 --- a/pollination_sdk/models/function_boolean_output.py +++ b/pollination_sdk/models/function_boolean_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class FunctionBooleanOutput(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'name': 'str', - 'path': 'str', - 'required': 'bool', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'name': 'str' + 'path': 'str' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'name': 'name', - 'path': 'path', - 'required': 'required', + 'annotations': 'annotations' + 'description': 'description' + 'name': 'name' + 'path': 'path' + 'required': 'required' 'type': 'type' } @@ -83,7 +83,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this FunctionBooleanOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -94,7 +94,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this FunctionBooleanOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/function_file_input.py b/pollination_sdk/models/function_file_input.py index ba0c4bacc..47f6b03fd 100644 --- a/pollination_sdk/models/function_file_input.py +++ b/pollination_sdk/models/function_file_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,28 +34,28 @@ class FunctionFileInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'AnyOfHTTPS3ProjectFolder', - 'description': 'str', - 'extensions': 'list[str]', - 'name': 'str', - 'path': 'str', - 'required': 'bool', - 'spec': 'object', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'Default' + 'description': 'str' + 'extensions': 'List[str]' + 'name': 'str' + 'path': 'str' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'extensions': 'extensions', - 'name': 'name', - 'path': 'path', - 'required': 'required', - 'spec': 'spec', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'extensions': 'extensions' + 'name': 'name' + 'path': 'path' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -103,7 +103,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this FunctionFileInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -114,7 +114,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this FunctionFileInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -126,7 +126,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this FunctionFileInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -137,7 +137,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this FunctionFileInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -146,10 +146,9 @@ def annotations(self, annotations): def default(self): """Gets the default of this FunctionFileInput. # noqa: E501 - The default source for file if the value is not provided. # noqa: E501 :return: The default of this FunctionFileInput. # noqa: E501 - :rtype: AnyOfHTTPS3ProjectFolder + :rtype: Default """ return self._default @@ -157,10 +156,9 @@ def default(self): def default(self, default): """Sets the default of this FunctionFileInput. - The default source for file if the value is not provided. # noqa: E501 :param default: The default of this FunctionFileInput. # noqa: E501 - :type default: AnyOfHTTPS3ProjectFolder + :type default: Default """ self._default = default @@ -195,7 +193,7 @@ def extensions(self): Optional list of extensions for file. The check for extension is case-insensitive. # noqa: E501 :return: The extensions of this FunctionFileInput. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._extensions @@ -206,7 +204,7 @@ def extensions(self, extensions): Optional list of extensions for file. The check for extension is case-insensitive. # noqa: E501 :param extensions: The extensions of this FunctionFileInput. # noqa: E501 - :type extensions: list[str] + :type extensions: List[str] """ self._extensions = extensions diff --git a/pollination_sdk/models/function_file_output.py b/pollination_sdk/models/function_file_output.py index e8d9f2d77..2e7ec3f26 100644 --- a/pollination_sdk/models/function_file_output.py +++ b/pollination_sdk/models/function_file_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class FunctionFileOutput(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'name': 'str', - 'path': 'str', - 'required': 'bool', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'name': 'str' + 'path': 'str' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'name': 'name', - 'path': 'path', - 'required': 'required', + 'annotations': 'annotations' + 'description': 'description' + 'name': 'name' + 'path': 'path' + 'required': 'required' 'type': 'type' } @@ -83,7 +83,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this FunctionFileOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -94,7 +94,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this FunctionFileOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/function_folder_input.py b/pollination_sdk/models/function_folder_input.py index 7fc44372f..307d58dd5 100644 --- a/pollination_sdk/models/function_folder_input.py +++ b/pollination_sdk/models/function_folder_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class FunctionFolderInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'AnyOfHTTPS3ProjectFolder', - 'description': 'str', - 'name': 'str', - 'path': 'str', - 'required': 'bool', - 'spec': 'object', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'Default' + 'description': 'str' + 'name': 'str' + 'path': 'str' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'name': 'name', - 'path': 'path', - 'required': 'required', - 'spec': 'spec', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'path': 'path' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -98,7 +98,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this FunctionFolderInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -109,7 +109,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this FunctionFolderInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -121,7 +121,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this FunctionFolderInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -132,7 +132,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this FunctionFolderInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -141,10 +141,9 @@ def annotations(self, annotations): def default(self): """Gets the default of this FunctionFolderInput. # noqa: E501 - The default source for file if the value is not provided. # noqa: E501 :return: The default of this FunctionFolderInput. # noqa: E501 - :rtype: AnyOfHTTPS3ProjectFolder + :rtype: Default """ return self._default @@ -152,10 +151,9 @@ def default(self): def default(self, default): """Sets the default of this FunctionFolderInput. - The default source for file if the value is not provided. # noqa: E501 :param default: The default of this FunctionFolderInput. # noqa: E501 - :type default: AnyOfHTTPS3ProjectFolder + :type default: Default """ self._default = default diff --git a/pollination_sdk/models/function_folder_output.py b/pollination_sdk/models/function_folder_output.py index d7283cd8b..c3c1f042e 100644 --- a/pollination_sdk/models/function_folder_output.py +++ b/pollination_sdk/models/function_folder_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class FunctionFolderOutput(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'name': 'str', - 'path': 'str', - 'required': 'bool', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'name': 'str' + 'path': 'str' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'name': 'name', - 'path': 'path', - 'required': 'required', + 'annotations': 'annotations' + 'description': 'description' + 'name': 'name' + 'path': 'path' + 'required': 'required' 'type': 'type' } @@ -83,7 +83,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this FunctionFolderOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -94,7 +94,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this FunctionFolderOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/function_inputs_inner.py b/pollination_sdk/models/function_inputs_inner.py new file mode 100644 index 000000000..acc5724b0 --- /dev/null +++ b/pollination_sdk/models/function_inputs_inner.py @@ -0,0 +1,406 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class FunctionInputsInner(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'object' + 'description': 'str' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' + 'type': 'str' + 'path': 'str' + 'extensions': 'List[str]' + 'items_type': 'ItemType' + } + + attribute_map = { + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' + 'type': 'type' + 'path': 'path' + 'extensions': 'extensions' + 'items_type': 'items_type' + } + + def __init__(self, alias=None, annotations=None, default=None, description=None, name=None, required=False, spec=None, type='FunctionJSONObjectInput', path=None, extensions=None, items_type=None, local_vars_configuration=None): # noqa: E501 + """FunctionInputsInner - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._alias = None + self._annotations = None + self._default = None + self._description = None + self._name = None + self._required = None + self._spec = None + self._type = None + self._path = None + self._extensions = None + self._items_type = None + self.discriminator = None + + if alias is not None: + self.alias = alias + if annotations is not None: + self.annotations = annotations + if default is not None: + self.default = default + if description is not None: + self.description = description + self.name = name + if required is not None: + self.required = required + if spec is not None: + self.spec = spec + if type is not None: + self.type = type + self.path = path + if extensions is not None: + self.extensions = extensions + if items_type is not None: + self.items_type = items_type + + @property + def alias(self): + """Gets the alias of this FunctionInputsInner. # noqa: E501 + + A list of aliases for this input in different platforms. # noqa: E501 + + :return: The alias of this FunctionInputsInner. # noqa: E501 + :rtype: List[DAGArrayInputAliasInner] + """ + return self._alias + + @alias.setter + def alias(self, alias): + """Sets the alias of this FunctionInputsInner. + + A list of aliases for this input in different platforms. # noqa: E501 + + :param alias: The alias of this FunctionInputsInner. # noqa: E501 + :type alias: List[DAGArrayInputAliasInner] + """ + + self._alias = alias + + @property + def annotations(self): + """Gets the annotations of this FunctionInputsInner. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this FunctionInputsInner. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this FunctionInputsInner. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this FunctionInputsInner. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def default(self): + """Gets the default of this FunctionInputsInner. # noqa: E501 + + Default value to use for an input if a value was not supplied. # noqa: E501 + + :return: The default of this FunctionInputsInner. # noqa: E501 + :rtype: object + """ + return self._default + + @default.setter + def default(self, default): + """Sets the default of this FunctionInputsInner. + + Default value to use for an input if a value was not supplied. # noqa: E501 + + :param default: The default of this FunctionInputsInner. # noqa: E501 + :type default: object + """ + + self._default = default + + @property + def description(self): + """Gets the description of this FunctionInputsInner. # noqa: E501 + + Optional description for input. # noqa: E501 + + :return: The description of this FunctionInputsInner. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this FunctionInputsInner. + + Optional description for input. # noqa: E501 + + :param description: The description of this FunctionInputsInner. # noqa: E501 + :type description: str + """ + + self._description = description + + @property + def name(self): + """Gets the name of this FunctionInputsInner. # noqa: E501 + + Input name. # noqa: E501 + + :return: The name of this FunctionInputsInner. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this FunctionInputsInner. + + Input name. # noqa: E501 + + :param name: The name of this FunctionInputsInner. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def required(self): + """Gets the required of this FunctionInputsInner. # noqa: E501 + + A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. # noqa: E501 + + :return: The required of this FunctionInputsInner. # noqa: E501 + :rtype: bool + """ + return self._required + + @required.setter + def required(self, required): + """Sets the required of this FunctionInputsInner. + + A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. # noqa: E501 + + :param required: The required of this FunctionInputsInner. # noqa: E501 + :type required: bool + """ + + self._required = required + + @property + def spec(self): + """Gets the spec of this FunctionInputsInner. # noqa: E501 + + An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. # noqa: E501 + + :return: The spec of this FunctionInputsInner. # noqa: E501 + :rtype: object + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this FunctionInputsInner. + + An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. # noqa: E501 + + :param spec: The spec of this FunctionInputsInner. # noqa: E501 + :type spec: object + """ + + self._spec = spec + + @property + def type(self): + """Gets the type of this FunctionInputsInner. # noqa: E501 + + + :return: The type of this FunctionInputsInner. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this FunctionInputsInner. + + + :param type: The type of this FunctionInputsInner. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^FunctionJSONObjectInput$', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^FunctionJSONObjectInput$/`") # noqa: E501 + + self._type = type + + @property + def path(self): + """Gets the path of this FunctionInputsInner. # noqa: E501 + + Path to the target location that the input will be copied to. This path is relative to the working directory where the command is executed. # noqa: E501 + + :return: The path of this FunctionInputsInner. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this FunctionInputsInner. + + Path to the target location that the input will be copied to. This path is relative to the working directory where the command is executed. # noqa: E501 + + :param path: The path of this FunctionInputsInner. # noqa: E501 + :type path: str + """ + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 + + self._path = path + + @property + def extensions(self): + """Gets the extensions of this FunctionInputsInner. # noqa: E501 + + Optional list of extensions for file. The check for extension is case-insensitive. # noqa: E501 + + :return: The extensions of this FunctionInputsInner. # noqa: E501 + :rtype: List[str] + """ + return self._extensions + + @extensions.setter + def extensions(self, extensions): + """Sets the extensions of this FunctionInputsInner. + + Optional list of extensions for file. The check for extension is case-insensitive. # noqa: E501 + + :param extensions: The extensions of this FunctionInputsInner. # noqa: E501 + :type extensions: List[str] + """ + + self._extensions = extensions + + @property + def items_type(self): + """Gets the items_type of this FunctionInputsInner. # noqa: E501 + + Type of items in an array. All the items in an array must be from the same type. # noqa: E501 + + :return: The items_type of this FunctionInputsInner. # noqa: E501 + :rtype: ItemType + """ + return self._items_type + + @items_type.setter + def items_type(self, items_type): + """Sets the items_type of this FunctionInputsInner. + + Type of items in an array. All the items in an array must be from the same type. # noqa: E501 + + :param items_type: The items_type of this FunctionInputsInner. # noqa: E501 + :type items_type: ItemType + """ + + self._items_type = items_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FunctionInputsInner): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, FunctionInputsInner): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/function_integer_input.py b/pollination_sdk/models/function_integer_input.py index 8cca750e5..7252ac011 100644 --- a/pollination_sdk/models/function_integer_input.py +++ b/pollination_sdk/models/function_integer_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,24 +34,24 @@ class FunctionIntegerInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'int', - 'description': 'str', - 'name': 'str', - 'required': 'bool', - 'spec': 'object', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'int' + 'description': 'str' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'name': 'name', - 'required': 'required', - 'spec': 'spec', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -94,7 +94,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this FunctionIntegerInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -105,7 +105,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this FunctionIntegerInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -117,7 +117,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this FunctionIntegerInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -128,7 +128,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this FunctionIntegerInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/function_integer_output.py b/pollination_sdk/models/function_integer_output.py index a7aa63f0f..c4f023faf 100644 --- a/pollination_sdk/models/function_integer_output.py +++ b/pollination_sdk/models/function_integer_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class FunctionIntegerOutput(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'name': 'str', - 'path': 'str', - 'required': 'bool', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'name': 'str' + 'path': 'str' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'name': 'name', - 'path': 'path', - 'required': 'required', + 'annotations': 'annotations' + 'description': 'description' + 'name': 'name' + 'path': 'path' + 'required': 'required' 'type': 'type' } @@ -83,7 +83,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this FunctionIntegerOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -94,7 +94,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this FunctionIntegerOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/function_json_object_input.py b/pollination_sdk/models/function_json_object_input.py index 09409cb4b..976355b96 100644 --- a/pollination_sdk/models/function_json_object_input.py +++ b/pollination_sdk/models/function_json_object_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,24 +34,24 @@ class FunctionJSONObjectInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'object', - 'description': 'str', - 'name': 'str', - 'required': 'bool', - 'spec': 'object', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'object' + 'description': 'str' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'name': 'name', - 'required': 'required', - 'spec': 'spec', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -94,7 +94,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this FunctionJSONObjectInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -105,7 +105,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this FunctionJSONObjectInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -117,7 +117,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this FunctionJSONObjectInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -128,7 +128,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this FunctionJSONObjectInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/function_json_object_output.py b/pollination_sdk/models/function_json_object_output.py index 174ea1236..fb7ba1464 100644 --- a/pollination_sdk/models/function_json_object_output.py +++ b/pollination_sdk/models/function_json_object_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class FunctionJSONObjectOutput(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'name': 'str', - 'path': 'str', - 'required': 'bool', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'name': 'str' + 'path': 'str' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'name': 'name', - 'path': 'path', - 'required': 'required', + 'annotations': 'annotations' + 'description': 'description' + 'name': 'name' + 'path': 'path' + 'required': 'required' 'type': 'type' } @@ -83,7 +83,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this FunctionJSONObjectOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -94,7 +94,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this FunctionJSONObjectOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/function_number_input.py b/pollination_sdk/models/function_number_input.py index 718a87f0c..973c53eef 100644 --- a/pollination_sdk/models/function_number_input.py +++ b/pollination_sdk/models/function_number_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,24 +34,24 @@ class FunctionNumberInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'float', - 'description': 'str', - 'name': 'str', - 'required': 'bool', - 'spec': 'object', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'float' + 'description': 'str' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'name': 'name', - 'required': 'required', - 'spec': 'spec', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -94,7 +94,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this FunctionNumberInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -105,7 +105,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this FunctionNumberInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -117,7 +117,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this FunctionNumberInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -128,7 +128,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this FunctionNumberInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/function_number_output.py b/pollination_sdk/models/function_number_output.py index d4d6ea971..987b4d4cc 100644 --- a/pollination_sdk/models/function_number_output.py +++ b/pollination_sdk/models/function_number_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class FunctionNumberOutput(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'name': 'str', - 'path': 'str', - 'required': 'bool', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'name': 'str' + 'path': 'str' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'name': 'name', - 'path': 'path', - 'required': 'required', + 'annotations': 'annotations' + 'description': 'description' + 'name': 'name' + 'path': 'path' + 'required': 'required' 'type': 'type' } @@ -83,7 +83,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this FunctionNumberOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -94,7 +94,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this FunctionNumberOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/function_outputs_inner.py b/pollination_sdk/models/function_outputs_inner.py new file mode 100644 index 000000000..33f83d174 --- /dev/null +++ b/pollination_sdk/models/function_outputs_inner.py @@ -0,0 +1,294 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class FunctionOutputsInner(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'name': 'str' + 'path': 'str' + 'required': 'bool' + 'type': 'str' + 'items_type': 'ItemType' + } + + attribute_map = { + 'annotations': 'annotations' + 'description': 'description' + 'name': 'name' + 'path': 'path' + 'required': 'required' + 'type': 'type' + 'items_type': 'items_type' + } + + def __init__(self, annotations=None, description=None, name=None, path=None, required=True, type='FunctionJSONObjectOutput', items_type=None, local_vars_configuration=None): # noqa: E501 + """FunctionOutputsInner - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._annotations = None + self._description = None + self._name = None + self._path = None + self._required = None + self._type = None + self._items_type = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + if description is not None: + self.description = description + self.name = name + self.path = path + if required is not None: + self.required = required + if type is not None: + self.type = type + if items_type is not None: + self.items_type = items_type + + @property + def annotations(self): + """Gets the annotations of this FunctionOutputsInner. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this FunctionOutputsInner. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this FunctionOutputsInner. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this FunctionOutputsInner. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def description(self): + """Gets the description of this FunctionOutputsInner. # noqa: E501 + + Optional description for output. # noqa: E501 + + :return: The description of this FunctionOutputsInner. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this FunctionOutputsInner. + + Optional description for output. # noqa: E501 + + :param description: The description of this FunctionOutputsInner. # noqa: E501 + :type description: str + """ + + self._description = description + + @property + def name(self): + """Gets the name of this FunctionOutputsInner. # noqa: E501 + + Output name. # noqa: E501 + + :return: The name of this FunctionOutputsInner. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this FunctionOutputsInner. + + Output name. # noqa: E501 + + :param name: The name of this FunctionOutputsInner. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def path(self): + """Gets the path of this FunctionOutputsInner. # noqa: E501 + + Path to the output file relative to where the function command is executed. # noqa: E501 + + :return: The path of this FunctionOutputsInner. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this FunctionOutputsInner. + + Path to the output file relative to where the function command is executed. # noqa: E501 + + :param path: The path of this FunctionOutputsInner. # noqa: E501 + :type path: str + """ + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 + + self._path = path + + @property + def required(self): + """Gets the required of this FunctionOutputsInner. # noqa: E501 + + A boolean to indicate if an artifact output is required. A False value makes the artifact optional. # noqa: E501 + + :return: The required of this FunctionOutputsInner. # noqa: E501 + :rtype: bool + """ + return self._required + + @required.setter + def required(self, required): + """Sets the required of this FunctionOutputsInner. + + A boolean to indicate if an artifact output is required. A False value makes the artifact optional. # noqa: E501 + + :param required: The required of this FunctionOutputsInner. # noqa: E501 + :type required: bool + """ + + self._required = required + + @property + def type(self): + """Gets the type of this FunctionOutputsInner. # noqa: E501 + + + :return: The type of this FunctionOutputsInner. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this FunctionOutputsInner. + + + :param type: The type of this FunctionOutputsInner. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^FunctionJSONObjectOutput$', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^FunctionJSONObjectOutput$/`") # noqa: E501 + + self._type = type + + @property + def items_type(self): + """Gets the items_type of this FunctionOutputsInner. # noqa: E501 + + Type of items in this array. All the items in an array must be from the same type. # noqa: E501 + + :return: The items_type of this FunctionOutputsInner. # noqa: E501 + :rtype: ItemType + """ + return self._items_type + + @items_type.setter + def items_type(self, items_type): + """Sets the items_type of this FunctionOutputsInner. + + Type of items in this array. All the items in an array must be from the same type. # noqa: E501 + + :param items_type: The items_type of this FunctionOutputsInner. # noqa: E501 + :type items_type: ItemType + """ + + self._items_type = items_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FunctionOutputsInner): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, FunctionOutputsInner): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/function_path_input.py b/pollination_sdk/models/function_path_input.py index 7484b4336..5aba1d050 100644 --- a/pollination_sdk/models/function_path_input.py +++ b/pollination_sdk/models/function_path_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,28 +34,28 @@ class FunctionPathInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'AnyOfHTTPS3ProjectFolder', - 'description': 'str', - 'extensions': 'list[str]', - 'name': 'str', - 'path': 'str', - 'required': 'bool', - 'spec': 'object', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'Default' + 'description': 'str' + 'extensions': 'List[str]' + 'name': 'str' + 'path': 'str' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'extensions': 'extensions', - 'name': 'name', - 'path': 'path', - 'required': 'required', - 'spec': 'spec', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'extensions': 'extensions' + 'name': 'name' + 'path': 'path' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -103,7 +103,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this FunctionPathInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -114,7 +114,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this FunctionPathInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -126,7 +126,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this FunctionPathInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -137,7 +137,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this FunctionPathInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -146,10 +146,9 @@ def annotations(self, annotations): def default(self): """Gets the default of this FunctionPathInput. # noqa: E501 - The default source for file if the value is not provided. # noqa: E501 :return: The default of this FunctionPathInput. # noqa: E501 - :rtype: AnyOfHTTPS3ProjectFolder + :rtype: Default """ return self._default @@ -157,10 +156,9 @@ def default(self): def default(self, default): """Sets the default of this FunctionPathInput. - The default source for file if the value is not provided. # noqa: E501 :param default: The default of this FunctionPathInput. # noqa: E501 - :type default: AnyOfHTTPS3ProjectFolder + :type default: Default """ self._default = default @@ -195,7 +193,7 @@ def extensions(self): Optional list of extensions for file. The check for extension is case-insensitive. # noqa: E501 :return: The extensions of this FunctionPathInput. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._extensions @@ -206,7 +204,7 @@ def extensions(self, extensions): Optional list of extensions for file. The check for extension is case-insensitive. # noqa: E501 :param extensions: The extensions of this FunctionPathInput. # noqa: E501 - :type extensions: list[str] + :type extensions: List[str] """ self._extensions = extensions diff --git a/pollination_sdk/models/function_path_output.py b/pollination_sdk/models/function_path_output.py index 83083cead..35f6d6292 100644 --- a/pollination_sdk/models/function_path_output.py +++ b/pollination_sdk/models/function_path_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class FunctionPathOutput(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'name': 'str', - 'path': 'str', - 'required': 'bool', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'name': 'str' + 'path': 'str' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'name': 'name', - 'path': 'path', - 'required': 'required', + 'annotations': 'annotations' + 'description': 'description' + 'name': 'name' + 'path': 'path' + 'required': 'required' 'type': 'type' } @@ -83,7 +83,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this FunctionPathOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -94,7 +94,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this FunctionPathOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/function_string_input.py b/pollination_sdk/models/function_string_input.py index 0544af93b..291e75823 100644 --- a/pollination_sdk/models/function_string_input.py +++ b/pollination_sdk/models/function_string_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,24 +34,24 @@ class FunctionStringInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'str', - 'description': 'str', - 'name': 'str', - 'required': 'bool', - 'spec': 'object', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'str' + 'description': 'str' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'name': 'name', - 'required': 'required', - 'spec': 'spec', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' 'type': 'type' } @@ -94,7 +94,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this FunctionStringInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -105,7 +105,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this FunctionStringInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -117,7 +117,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this FunctionStringInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -128,7 +128,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this FunctionStringInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/function_string_output.py b/pollination_sdk/models/function_string_output.py index b275b7f8c..8ceeb38e7 100644 --- a/pollination_sdk/models/function_string_output.py +++ b/pollination_sdk/models/function_string_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class FunctionStringOutput(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'name': 'str', - 'path': 'str', - 'required': 'bool', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'name': 'str' + 'path': 'str' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'name': 'name', - 'path': 'path', - 'required': 'required', + 'annotations': 'annotations' + 'description': 'description' + 'name': 'name' + 'path': 'path' + 'required': 'required' 'type': 'type' } @@ -83,7 +83,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this FunctionStringOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -94,7 +94,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this FunctionStringOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/http.py b/pollination_sdk/models/http.py index e9449e89a..20480d1c2 100644 --- a/pollination_sdk/models/http.py +++ b/pollination_sdk/models/http.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class HTTP(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'type': 'str', + 'annotations': 'Dict[str, str]' + 'type': 'str' 'url': 'str' } attribute_map = { - 'annotations': 'annotations', - 'type': 'type', + 'annotations': 'annotations' + 'type': 'type' 'url': 'url' } @@ -69,7 +69,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this HTTP. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -80,7 +80,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this HTTP. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/http_validation_error.py b/pollination_sdk/models/http_validation_error.py index abad4a32e..d44b7f586 100644 --- a/pollination_sdk/models/http_validation_error.py +++ b/pollination_sdk/models/http_validation_error.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,7 +34,7 @@ class HTTPValidationError(object): and the value is json key in definition. """ openapi_types = { - 'detail': 'list[ValidationError]' + 'detail': 'List[ValidationError]' } attribute_map = { @@ -59,7 +59,7 @@ def detail(self): :return: The detail of this HTTPValidationError. # noqa: E501 - :rtype: list[ValidationError] + :rtype: List[ValidationError] """ return self._detail @@ -69,7 +69,7 @@ def detail(self, detail): :param detail: The detail of this HTTPValidationError. # noqa: E501 - :type detail: list[ValidationError] + :type detail: List[ValidationError] """ self._detail = detail diff --git a/pollination_sdk/models/input_file_reference.py b/pollination_sdk/models/input_file_reference.py index fe252b887..f09f30ee1 100644 --- a/pollination_sdk/models/input_file_reference.py +++ b/pollination_sdk/models/input_file_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class InputFileReference(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'type': 'str', + 'annotations': 'Dict[str, str]' + 'type': 'str' 'variable': 'str' } attribute_map = { - 'annotations': 'annotations', - 'type': 'type', + 'annotations': 'annotations' + 'type': 'type' 'variable': 'variable' } @@ -69,7 +69,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this InputFileReference. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -80,7 +80,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this InputFileReference. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/input_folder_reference.py b/pollination_sdk/models/input_folder_reference.py index 99797a83d..954624197 100644 --- a/pollination_sdk/models/input_folder_reference.py +++ b/pollination_sdk/models/input_folder_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class InputFolderReference(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'type': 'str', + 'annotations': 'Dict[str, str]' + 'type': 'str' 'variable': 'str' } attribute_map = { - 'annotations': 'annotations', - 'type': 'type', + 'annotations': 'annotations' + 'type': 'type' 'variable': 'variable' } @@ -69,7 +69,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this InputFolderReference. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -80,7 +80,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this InputFolderReference. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/input_path_reference.py b/pollination_sdk/models/input_path_reference.py index f6af7bd56..cb0c2f9aa 100644 --- a/pollination_sdk/models/input_path_reference.py +++ b/pollination_sdk/models/input_path_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class InputPathReference(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'type': 'str', + 'annotations': 'Dict[str, str]' + 'type': 'str' 'variable': 'str' } attribute_map = { - 'annotations': 'annotations', - 'type': 'type', + 'annotations': 'annotations' + 'type': 'type' 'variable': 'variable' } @@ -69,7 +69,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this InputPathReference. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -80,7 +80,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this InputPathReference. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/input_reference.py b/pollination_sdk/models/input_reference.py index d4d65ab4a..cecf248e7 100644 --- a/pollination_sdk/models/input_reference.py +++ b/pollination_sdk/models/input_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class InputReference(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'type': 'str', + 'annotations': 'Dict[str, str]' + 'type': 'str' 'variable': 'str' } attribute_map = { - 'annotations': 'annotations', - 'type': 'type', + 'annotations': 'annotations' + 'type': 'type' 'variable': 'variable' } @@ -69,7 +69,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this InputReference. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -80,7 +80,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this InputReference. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/io_alias_handler.py b/pollination_sdk/models/io_alias_handler.py index a1b5873a7..dbc3ec66f 100644 --- a/pollination_sdk/models/io_alias_handler.py +++ b/pollination_sdk/models/io_alias_handler.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class IOAliasHandler(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'function': 'str', - 'index': 'int', - 'language': 'str', - 'module': 'str', + 'annotations': 'Dict[str, str]' + 'function': 'str' + 'index': 'int' + 'language': 'str' + 'module': 'str' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'function': 'function', - 'index': 'index', - 'language': 'language', - 'module': 'module', + 'annotations': 'annotations' + 'function': 'function' + 'index': 'index' + 'language': 'language' + 'module': 'module' 'type': 'type' } @@ -82,7 +82,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this IOAliasHandler. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -93,7 +93,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this IOAliasHandler. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/item_reference.py b/pollination_sdk/models/item_reference.py index fa74d4ff7..a1ad600c9 100644 --- a/pollination_sdk/models/item_reference.py +++ b/pollination_sdk/models/item_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class ItemReference(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'type': 'str', + 'annotations': 'Dict[str, str]' + 'type': 'str' 'variable': 'str' } attribute_map = { - 'annotations': 'annotations', - 'type': 'type', + 'annotations': 'annotations' + 'type': 'type' 'variable': 'variable' } @@ -70,7 +70,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this ItemReference. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -81,7 +81,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this ItemReference. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/item_type.py b/pollination_sdk/models/item_type.py index c54284385..e7f1f7588 100644 --- a/pollination_sdk/models/item_type.py +++ b/pollination_sdk/models/item_type.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,13 +29,13 @@ class ItemType(object): """ allowed enum values """ - GENERIC = "Generic" - STRING = "String" - INTEGER = "Integer" - NUMBER = "Number" - BOOLEAN = "Boolean" - ARRAY = "Array" - JSONOBJECT = "JSONObject" + GENERIC = 'Generic' + STRING = 'String' + INTEGER = 'Integer' + NUMBER = 'Number' + BOOLEAN = 'Boolean' + ARRAY = 'Array' + JSONOBJECT = 'JSONObject' allowable_values = [GENERIC, STRING, INTEGER, NUMBER, BOOLEAN, ARRAY, JSONOBJECT] # noqa: E501 diff --git a/pollination_sdk/models/job.py b/pollination_sdk/models/job.py index 935ab38a6..66e9fc43e 100644 --- a/pollination_sdk/models/job.py +++ b/pollination_sdk/models/job.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,24 +34,24 @@ class Job(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'api_version': 'str', - 'arguments': 'list[list[AnyOfJobArgumentJobPathArgument]]', - 'description': 'str', - 'labels': 'dict(str, str)', - 'name': 'str', - 'source': 'str', + 'annotations': 'Dict[str, str]' + 'api_version': 'str' + 'arguments': 'List[List[JobArgumentsInnerInner]]' + 'description': 'str' + 'labels': 'Dict[str, str]' + 'name': 'str' + 'source': 'str' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'api_version': 'api_version', - 'arguments': 'arguments', - 'description': 'description', - 'labels': 'labels', - 'name': 'name', - 'source': 'source', + 'annotations': 'annotations' + 'api_version': 'api_version' + 'arguments': 'arguments' + 'description': 'description' + 'labels': 'labels' + 'name': 'name' + 'source': 'source' 'type': 'type' } @@ -94,7 +94,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this Job. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -105,7 +105,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this Job. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -141,7 +141,7 @@ def arguments(self): Input arguments for this job. # noqa: E501 :return: The arguments of this Job. # noqa: E501 - :rtype: list[list[AnyOfJobArgumentJobPathArgument]] + :rtype: List[List[JobArgumentsInnerInner]] """ return self._arguments @@ -152,7 +152,7 @@ def arguments(self, arguments): Input arguments for this job. # noqa: E501 :param arguments: The arguments of this Job. # noqa: E501 - :type arguments: list[list[AnyOfJobArgumentJobPathArgument]] + :type arguments: List[List[JobArgumentsInnerInner]] """ self._arguments = arguments @@ -187,7 +187,7 @@ def labels(self): Optional user data as a dictionary. User data is for user reference only and will not be used in the execution of the job. # noqa: E501 :return: The labels of this Job. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._labels @@ -198,7 +198,7 @@ def labels(self, labels): Optional user data as a dictionary. User data is for user reference only and will not be used in the execution of the job. # noqa: E501 :param labels: The labels of this Job. # noqa: E501 - :type labels: dict(str, str) + :type labels: Dict[str, str] """ self._labels = labels diff --git a/pollination_sdk/models/job_argument.py b/pollination_sdk/models/job_argument.py index 17bdfc5a6..ab4abebc3 100644 --- a/pollination_sdk/models/job_argument.py +++ b/pollination_sdk/models/job_argument.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,16 +34,16 @@ class JobArgument(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'name': 'str', - 'type': 'str', + 'annotations': 'Dict[str, str]' + 'name': 'str' + 'type': 'str' 'value': 'object' } attribute_map = { - 'annotations': 'annotations', - 'name': 'name', - 'type': 'type', + 'annotations': 'annotations' + 'name': 'name' + 'type': 'type' 'value': 'value' } @@ -73,7 +73,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this JobArgument. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -84,7 +84,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this JobArgument. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -142,7 +142,6 @@ def type(self, type): def value(self): """Gets the value of this JobArgument. # noqa: E501 - The value of the job argument. # noqa: E501 :return: The value of this JobArgument. # noqa: E501 :rtype: object @@ -153,7 +152,6 @@ def value(self): def value(self, value): """Sets the value of this JobArgument. - The value of the job argument. # noqa: E501 :param value: The value of this JobArgument. # noqa: E501 :type value: object diff --git a/pollination_sdk/models/job_arguments_inner_inner.py b/pollination_sdk/models/job_arguments_inner_inner.py new file mode 100644 index 000000000..f649f5f84 --- /dev/null +++ b/pollination_sdk/models/job_arguments_inner_inner.py @@ -0,0 +1,233 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class JobArgumentsInnerInner(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'annotations': 'Dict[str, str]' + 'name': 'str' + 'type': 'str' + 'value': 'object' + 'source': 'Source' + } + + attribute_map = { + 'annotations': 'annotations' + 'name': 'name' + 'type': 'type' + 'value': 'value' + 'source': 'source' + } + + def __init__(self, annotations=None, name=None, type='JobPathArgument', value=None, source=None, local_vars_configuration=None): # noqa: E501 + """JobArgumentsInnerInner - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._annotations = None + self._name = None + self._type = None + self._value = None + self._source = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + self.name = name + if type is not None: + self.type = type + self.value = value + self.source = source + + @property + def annotations(self): + """Gets the annotations of this JobArgumentsInnerInner. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this JobArgumentsInnerInner. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this JobArgumentsInnerInner. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this JobArgumentsInnerInner. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def name(self): + """Gets the name of this JobArgumentsInnerInner. # noqa: E501 + + Argument name. The name must match one of the input names from Job's template which can be a function or DAG. # noqa: E501 + + :return: The name of this JobArgumentsInnerInner. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this JobArgumentsInnerInner. + + Argument name. The name must match one of the input names from Job's template which can be a function or DAG. # noqa: E501 + + :param name: The name of this JobArgumentsInnerInner. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def type(self): + """Gets the type of this JobArgumentsInnerInner. # noqa: E501 + + + :return: The type of this JobArgumentsInnerInner. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this JobArgumentsInnerInner. + + + :param type: The type of this JobArgumentsInnerInner. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^JobPathArgument$', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^JobPathArgument$/`") # noqa: E501 + + self._type = type + + @property + def value(self): + """Gets the value of this JobArgumentsInnerInner. # noqa: E501 + + + :return: The value of this JobArgumentsInnerInner. # noqa: E501 + :rtype: object + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this JobArgumentsInnerInner. + + + :param value: The value of this JobArgumentsInnerInner. # noqa: E501 + :type value: object + """ + + self._value = value + + @property + def source(self): + """Gets the source of this JobArgumentsInnerInner. # noqa: E501 + + + :return: The source of this JobArgumentsInnerInner. # noqa: E501 + :rtype: Source + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this JobArgumentsInnerInner. + + + :param source: The source of this JobArgumentsInnerInner. # noqa: E501 + :type source: Source + """ + if self.local_vars_configuration.client_side_validation and source is None: # noqa: E501 + raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 + + self._source = source + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, JobArgumentsInnerInner): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, JobArgumentsInnerInner): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/job_compute_usage.py b/pollination_sdk/models/job_compute_usage.py new file mode 100644 index 000000000..9f0b207be --- /dev/null +++ b/pollination_sdk/models/job_compute_usage.py @@ -0,0 +1,416 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class JobComputeUsage(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'account_name': 'str' + 'author_email': 'str' + 'author_name': 'str' + 'cpu_usage_hours': 'float' + 'finished_at': 'datetime' + 'job_id': 'str' + 'project_name': 'str' + 'recipe_name': 'str' + 'runs_cancelled': 'int' + 'runs_failed': 'int' + 'runs_succeeded': 'int' + 'started_at': 'datetime' + } + + attribute_map = { + 'account_name': 'account_name' + 'author_email': 'author_email' + 'author_name': 'author_name' + 'cpu_usage_hours': 'cpu_usage_hours' + 'finished_at': 'finished_at' + 'job_id': 'job_id' + 'project_name': 'project_name' + 'recipe_name': 'recipe_name' + 'runs_cancelled': 'runs_cancelled' + 'runs_failed': 'runs_failed' + 'runs_succeeded': 'runs_succeeded' + 'started_at': 'started_at' + } + + def __init__(self, account_name=None, author_email=None, author_name=None, cpu_usage_hours=None, finished_at=None, job_id=None, project_name=None, recipe_name=None, runs_cancelled=0, runs_failed=0, runs_succeeded=0, started_at=None, local_vars_configuration=None): # noqa: E501 + """JobComputeUsage - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._account_name = None + self._author_email = None + self._author_name = None + self._cpu_usage_hours = None + self._finished_at = None + self._job_id = None + self._project_name = None + self._recipe_name = None + self._runs_cancelled = None + self._runs_failed = None + self._runs_succeeded = None + self._started_at = None + self.discriminator = None + + self.account_name = account_name + self.author_email = author_email + self.author_name = author_name + self.cpu_usage_hours = cpu_usage_hours + self.finished_at = finished_at + self.job_id = job_id + self.project_name = project_name + self.recipe_name = recipe_name + if runs_cancelled is not None: + self.runs_cancelled = runs_cancelled + if runs_failed is not None: + self.runs_failed = runs_failed + if runs_succeeded is not None: + self.runs_succeeded = runs_succeeded + self.started_at = started_at + + @property + def account_name(self): + """Gets the account_name of this JobComputeUsage. # noqa: E501 + + + :return: The account_name of this JobComputeUsage. # noqa: E501 + :rtype: str + """ + return self._account_name + + @account_name.setter + def account_name(self, account_name): + """Sets the account_name of this JobComputeUsage. + + + :param account_name: The account_name of this JobComputeUsage. # noqa: E501 + :type account_name: str + """ + if self.local_vars_configuration.client_side_validation and account_name is None: # noqa: E501 + raise ValueError("Invalid value for `account_name`, must not be `None`") # noqa: E501 + + self._account_name = account_name + + @property + def author_email(self): + """Gets the author_email of this JobComputeUsage. # noqa: E501 + + + :return: The author_email of this JobComputeUsage. # noqa: E501 + :rtype: str + """ + return self._author_email + + @author_email.setter + def author_email(self, author_email): + """Sets the author_email of this JobComputeUsage. + + + :param author_email: The author_email of this JobComputeUsage. # noqa: E501 + :type author_email: str + """ + if self.local_vars_configuration.client_side_validation and author_email is None: # noqa: E501 + raise ValueError("Invalid value for `author_email`, must not be `None`") # noqa: E501 + + self._author_email = author_email + + @property + def author_name(self): + """Gets the author_name of this JobComputeUsage. # noqa: E501 + + + :return: The author_name of this JobComputeUsage. # noqa: E501 + :rtype: str + """ + return self._author_name + + @author_name.setter + def author_name(self, author_name): + """Sets the author_name of this JobComputeUsage. + + + :param author_name: The author_name of this JobComputeUsage. # noqa: E501 + :type author_name: str + """ + if self.local_vars_configuration.client_side_validation and author_name is None: # noqa: E501 + raise ValueError("Invalid value for `author_name`, must not be `None`") # noqa: E501 + + self._author_name = author_name + + @property + def cpu_usage_hours(self): + """Gets the cpu_usage_hours of this JobComputeUsage. # noqa: E501 + + + :return: The cpu_usage_hours of this JobComputeUsage. # noqa: E501 + :rtype: float + """ + return self._cpu_usage_hours + + @cpu_usage_hours.setter + def cpu_usage_hours(self, cpu_usage_hours): + """Sets the cpu_usage_hours of this JobComputeUsage. + + + :param cpu_usage_hours: The cpu_usage_hours of this JobComputeUsage. # noqa: E501 + :type cpu_usage_hours: float + """ + if self.local_vars_configuration.client_side_validation and cpu_usage_hours is None: # noqa: E501 + raise ValueError("Invalid value for `cpu_usage_hours`, must not be `None`") # noqa: E501 + + self._cpu_usage_hours = cpu_usage_hours + + @property + def finished_at(self): + """Gets the finished_at of this JobComputeUsage. # noqa: E501 + + + :return: The finished_at of this JobComputeUsage. # noqa: E501 + :rtype: datetime + """ + return self._finished_at + + @finished_at.setter + def finished_at(self, finished_at): + """Sets the finished_at of this JobComputeUsage. + + + :param finished_at: The finished_at of this JobComputeUsage. # noqa: E501 + :type finished_at: datetime + """ + if self.local_vars_configuration.client_side_validation and finished_at is None: # noqa: E501 + raise ValueError("Invalid value for `finished_at`, must not be `None`") # noqa: E501 + + self._finished_at = finished_at + + @property + def job_id(self): + """Gets the job_id of this JobComputeUsage. # noqa: E501 + + + :return: The job_id of this JobComputeUsage. # noqa: E501 + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this JobComputeUsage. + + + :param job_id: The job_id of this JobComputeUsage. # noqa: E501 + :type job_id: str + """ + if self.local_vars_configuration.client_side_validation and job_id is None: # noqa: E501 + raise ValueError("Invalid value for `job_id`, must not be `None`") # noqa: E501 + + self._job_id = job_id + + @property + def project_name(self): + """Gets the project_name of this JobComputeUsage. # noqa: E501 + + + :return: The project_name of this JobComputeUsage. # noqa: E501 + :rtype: str + """ + return self._project_name + + @project_name.setter + def project_name(self, project_name): + """Sets the project_name of this JobComputeUsage. + + + :param project_name: The project_name of this JobComputeUsage. # noqa: E501 + :type project_name: str + """ + if self.local_vars_configuration.client_side_validation and project_name is None: # noqa: E501 + raise ValueError("Invalid value for `project_name`, must not be `None`") # noqa: E501 + + self._project_name = project_name + + @property + def recipe_name(self): + """Gets the recipe_name of this JobComputeUsage. # noqa: E501 + + + :return: The recipe_name of this JobComputeUsage. # noqa: E501 + :rtype: str + """ + return self._recipe_name + + @recipe_name.setter + def recipe_name(self, recipe_name): + """Sets the recipe_name of this JobComputeUsage. + + + :param recipe_name: The recipe_name of this JobComputeUsage. # noqa: E501 + :type recipe_name: str + """ + if self.local_vars_configuration.client_side_validation and recipe_name is None: # noqa: E501 + raise ValueError("Invalid value for `recipe_name`, must not be `None`") # noqa: E501 + + self._recipe_name = recipe_name + + @property + def runs_cancelled(self): + """Gets the runs_cancelled of this JobComputeUsage. # noqa: E501 + + + :return: The runs_cancelled of this JobComputeUsage. # noqa: E501 + :rtype: int + """ + return self._runs_cancelled + + @runs_cancelled.setter + def runs_cancelled(self, runs_cancelled): + """Sets the runs_cancelled of this JobComputeUsage. + + + :param runs_cancelled: The runs_cancelled of this JobComputeUsage. # noqa: E501 + :type runs_cancelled: int + """ + + self._runs_cancelled = runs_cancelled + + @property + def runs_failed(self): + """Gets the runs_failed of this JobComputeUsage. # noqa: E501 + + + :return: The runs_failed of this JobComputeUsage. # noqa: E501 + :rtype: int + """ + return self._runs_failed + + @runs_failed.setter + def runs_failed(self, runs_failed): + """Sets the runs_failed of this JobComputeUsage. + + + :param runs_failed: The runs_failed of this JobComputeUsage. # noqa: E501 + :type runs_failed: int + """ + + self._runs_failed = runs_failed + + @property + def runs_succeeded(self): + """Gets the runs_succeeded of this JobComputeUsage. # noqa: E501 + + + :return: The runs_succeeded of this JobComputeUsage. # noqa: E501 + :rtype: int + """ + return self._runs_succeeded + + @runs_succeeded.setter + def runs_succeeded(self, runs_succeeded): + """Sets the runs_succeeded of this JobComputeUsage. + + + :param runs_succeeded: The runs_succeeded of this JobComputeUsage. # noqa: E501 + :type runs_succeeded: int + """ + + self._runs_succeeded = runs_succeeded + + @property + def started_at(self): + """Gets the started_at of this JobComputeUsage. # noqa: E501 + + + :return: The started_at of this JobComputeUsage. # noqa: E501 + :rtype: datetime + """ + return self._started_at + + @started_at.setter + def started_at(self, started_at): + """Sets the started_at of this JobComputeUsage. + + + :param started_at: The started_at of this JobComputeUsage. # noqa: E501 + :type started_at: datetime + """ + if self.local_vars_configuration.client_side_validation and started_at is None: # noqa: E501 + raise ValueError("Invalid value for `started_at`, must not be `None`") # noqa: E501 + + self._started_at = started_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, JobComputeUsage): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, JobComputeUsage): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/job_path_argument.py b/pollination_sdk/models/job_path_argument.py index 26185e4df..c4aaa897f 100644 --- a/pollination_sdk/models/job_path_argument.py +++ b/pollination_sdk/models/job_path_argument.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,16 +34,16 @@ class JobPathArgument(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'name': 'str', - 'source': 'AnyOfHTTPS3ProjectFolder', + 'annotations': 'Dict[str, str]' + 'name': 'str' + 'source': 'Source' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'name': 'name', - 'source': 'source', + 'annotations': 'annotations' + 'name': 'name' + 'source': 'source' 'type': 'type' } @@ -73,7 +73,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this JobPathArgument. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -84,7 +84,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this JobPathArgument. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -118,10 +118,9 @@ def name(self, name): def source(self): """Gets the source of this JobPathArgument. # noqa: E501 - The path to source the file from. # noqa: E501 :return: The source of this JobPathArgument. # noqa: E501 - :rtype: AnyOfHTTPS3ProjectFolder + :rtype: Source """ return self._source @@ -129,10 +128,9 @@ def source(self): def source(self, source): """Sets the source of this JobPathArgument. - The path to source the file from. # noqa: E501 :param source: The source of this JobPathArgument. # noqa: E501 - :type source: AnyOfHTTPS3ProjectFolder + :type source: Source """ if self.local_vars_configuration.client_side_validation and source is None: # noqa: E501 raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/job_status.py b/pollination_sdk/models/job_status.py index 7c502bdf4..6fb7948dc 100644 --- a/pollination_sdk/models/job_status.py +++ b/pollination_sdk/models/job_status.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,36 +34,36 @@ class JobStatus(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'api_version': 'str', - 'finished_at': 'datetime', - 'id': 'str', - 'message': 'str', - 'runs_cancelled': 'int', - 'runs_completed': 'int', - 'runs_failed': 'int', - 'runs_pending': 'int', - 'runs_running': 'int', - 'source': 'str', - 'started_at': 'datetime', - 'status': 'JobStatusEnum', + 'annotations': 'Dict[str, str]' + 'api_version': 'str' + 'finished_at': 'datetime' + 'id': 'str' + 'message': 'str' + 'runs_cancelled': 'int' + 'runs_completed': 'int' + 'runs_failed': 'int' + 'runs_pending': 'int' + 'runs_running': 'int' + 'source': 'str' + 'started_at': 'datetime' + 'status': 'JobStatusEnum' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'api_version': 'api_version', - 'finished_at': 'finished_at', - 'id': 'id', - 'message': 'message', - 'runs_cancelled': 'runs_cancelled', - 'runs_completed': 'runs_completed', - 'runs_failed': 'runs_failed', - 'runs_pending': 'runs_pending', - 'runs_running': 'runs_running', - 'source': 'source', - 'started_at': 'started_at', - 'status': 'status', + 'annotations': 'annotations' + 'api_version': 'api_version' + 'finished_at': 'finished_at' + 'id': 'id' + 'message': 'message' + 'runs_cancelled': 'runs_cancelled' + 'runs_completed': 'runs_completed' + 'runs_failed': 'runs_failed' + 'runs_pending': 'runs_pending' + 'runs_running': 'runs_running' + 'source': 'source' + 'started_at': 'started_at' + 'status': 'status' 'type': 'type' } @@ -123,7 +123,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this JobStatus. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -134,7 +134,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this JobStatus. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/job_status_enum.py b/pollination_sdk/models/job_status_enum.py index 28b7eb111..0d56188f9 100644 --- a/pollination_sdk/models/job_status_enum.py +++ b/pollination_sdk/models/job_status_enum.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,15 +29,15 @@ class JobStatusEnum(object): """ allowed enum values """ - CREATED = "Created" - PRE_PROCESSING = "Pre-Processing" - RUNNING = "Running" - FAILED = "Failed" - CANCELLED = "Cancelled" - COMPLETED = "Completed" - UNKNOWN = "Unknown" - - allowable_values = [CREATED, PRE_PROCESSING, RUNNING, FAILED, CANCELLED, COMPLETED, UNKNOWN] # noqa: E501 + CREATED = 'Created' + PRE_MINUS_PROCESSING = 'Pre-Processing' + RUNNING = 'Running' + FAILED = 'Failed' + CANCELLED = 'Cancelled' + COMPLETED = 'Completed' + UNKNOWN = 'Unknown' + + allowable_values = [CREATED, PRE_MINUS_PROCESSING, RUNNING, FAILED, CANCELLED, COMPLETED, UNKNOWN] # noqa: E501 """ Attributes: diff --git a/pollination_sdk/models/key_request.py b/pollination_sdk/models/key_request.py index 688e377a7..9d7fe1bee 100644 --- a/pollination_sdk/models/key_request.py +++ b/pollination_sdk/models/key_request.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/pollination_sdk/models/license.py b/pollination_sdk/models/license.py index 65fe06a22..67bcd0d2e 100644 --- a/pollination_sdk/models/license.py +++ b/pollination_sdk/models/license.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,16 +34,16 @@ class License(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'name': 'str', - 'type': 'str', + 'annotations': 'Dict[str, str]' + 'name': 'str' + 'type': 'str' 'url': 'str' } attribute_map = { - 'annotations': 'annotations', - 'name': 'name', - 'type': 'type', + 'annotations': 'annotations' + 'name': 'name' + 'type': 'type' 'url': 'url' } @@ -74,7 +74,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this License. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -85,7 +85,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this License. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/license_pool_access_policy.py b/pollination_sdk/models/license_pool_access_policy.py index 11eb9ab3d..88a302c92 100644 --- a/pollination_sdk/models/license_pool_access_policy.py +++ b/pollination_sdk/models/license_pool_access_policy.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class LicensePoolAccessPolicy(object): and the value is json key in definition. """ openapi_types = { - 'permission': 'Permission', + 'permission': 'Permission' 'subject': 'PolicySubject' } attribute_map = { - 'permission': 'permission', + 'permission': 'permission' 'subject': 'subject' } diff --git a/pollination_sdk/models/license_pool_access_policy_list.py b/pollination_sdk/models/license_pool_access_policy_list.py index 500c2cb87..bb9cdb1bf 100644 --- a/pollination_sdk/models/license_pool_access_policy_list.py +++ b/pollination_sdk/models/license_pool_access_policy_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,7 +34,7 @@ class LicensePoolAccessPolicyList(object): and the value is json key in definition. """ openapi_types = { - 'resources': 'list[LicensePoolAccessPolicy]' + 'resources': 'List[LicensePoolAccessPolicy]' } attribute_map = { @@ -60,7 +60,7 @@ def resources(self): The list of policies granting access to the pool # noqa: E501 :return: The resources of this LicensePoolAccessPolicyList. # noqa: E501 - :rtype: list[LicensePoolAccessPolicy] + :rtype: List[LicensePoolAccessPolicy] """ return self._resources @@ -71,7 +71,7 @@ def resources(self, resources): The list of policies granting access to the pool # noqa: E501 :param resources: The resources of this LicensePoolAccessPolicyList. # noqa: E501 - :type resources: list[LicensePoolAccessPolicy] + :type resources: List[LicensePoolAccessPolicy] """ self._resources = resources diff --git a/pollination_sdk/models/license_pool_list.py b/pollination_sdk/models/license_pool_list.py index e2a87d08e..fc2053fa5 100644 --- a/pollination_sdk/models/license_pool_list.py +++ b/pollination_sdk/models/license_pool_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,7 +34,7 @@ class LicensePoolList(object): and the value is json key in definition. """ openapi_types = { - 'resources': 'list[LicensePoolPublic]' + 'resources': 'List[LicensePoolPublic]' } attribute_map = { @@ -58,7 +58,7 @@ def resources(self): :return: The resources of this LicensePoolList. # noqa: E501 - :rtype: list[LicensePoolPublic] + :rtype: List[LicensePoolPublic] """ return self._resources @@ -68,7 +68,7 @@ def resources(self, resources): :param resources: The resources of this LicensePoolList. # noqa: E501 - :type resources: list[LicensePoolPublic] + :type resources: List[LicensePoolPublic] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/license_pool_policy_subject.py b/pollination_sdk/models/license_pool_policy_subject.py index 7c9122ef2..4048cbb9e 100644 --- a/pollination_sdk/models/license_pool_policy_subject.py +++ b/pollination_sdk/models/license_pool_policy_subject.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class LicensePoolPolicySubject(object): and the value is json key in definition. """ openapi_types = { - 'name': 'str', + 'name': 'str' 'subject_type': 'SubjectType' } attribute_map = { - 'name': 'name', + 'name': 'name' 'subject_type': 'subject_type' } diff --git a/pollination_sdk/models/license_pool_policy_subject_list.py b/pollination_sdk/models/license_pool_policy_subject_list.py index 8c163b95d..061954059 100644 --- a/pollination_sdk/models/license_pool_policy_subject_list.py +++ b/pollination_sdk/models/license_pool_policy_subject_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,7 +34,7 @@ class LicensePoolPolicySubjectList(object): and the value is json key in definition. """ openapi_types = { - 'resources': 'list[LicensePoolPolicySubject]' + 'resources': 'List[LicensePoolPolicySubject]' } attribute_map = { @@ -60,7 +60,7 @@ def resources(self): The list of subjects which currently have access to the pool # noqa: E501 :return: The resources of this LicensePoolPolicySubjectList. # noqa: E501 - :rtype: list[LicensePoolPolicySubject] + :rtype: List[LicensePoolPolicySubject] """ return self._resources @@ -71,7 +71,7 @@ def resources(self, resources): The list of subjects which currently have access to the pool # noqa: E501 :param resources: The resources of this LicensePoolPolicySubjectList. # noqa: E501 - :type resources: list[LicensePoolPolicySubject] + :type resources: List[LicensePoolPolicySubject] """ self._resources = resources diff --git a/pollination_sdk/models/license_pool_public.py b/pollination_sdk/models/license_pool_public.py index 427b39dc1..3e1045a23 100644 --- a/pollination_sdk/models/license_pool_public.py +++ b/pollination_sdk/models/license_pool_public.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class LicensePoolPublic(object): and the value is json key in definition. """ openapi_types = { - 'accessors': 'list[Accessor]', - 'allowed_activations': 'int', - 'description': 'str', - 'id': 'str', - 'license_id': 'str', - 'owner': 'AccountPublic', - 'permissions': 'UserPermission', - 'product': 'str', + 'accessors': 'List[Accessor]' + 'allowed_activations': 'int' + 'description': 'str' + 'id': 'str' + 'license_id': 'str' + 'owner': 'AccountPublic' + 'permissions': 'UserPermission' + 'product': 'str' 'total_activations': 'int' } attribute_map = { - 'accessors': 'accessors', - 'allowed_activations': 'allowed_activations', - 'description': 'description', - 'id': 'id', - 'license_id': 'license_id', - 'owner': 'owner', - 'permissions': 'permissions', - 'product': 'product', + 'accessors': 'accessors' + 'allowed_activations': 'allowed_activations' + 'description': 'description' + 'id': 'id' + 'license_id': 'license_id' + 'owner': 'owner' + 'permissions': 'permissions' + 'product': 'product' 'total_activations': 'total_activations' } @@ -93,7 +93,7 @@ def accessors(self): The entities that can access the license though the pool # noqa: E501 :return: The accessors of this LicensePoolPublic. # noqa: E501 - :rtype: list[Accessor] + :rtype: List[Accessor] """ return self._accessors @@ -104,7 +104,7 @@ def accessors(self, accessors): The entities that can access the license though the pool # noqa: E501 :param accessors: The accessors of this LicensePoolPublic. # noqa: E501 - :type accessors: list[Accessor] + :type accessors: List[Accessor] """ self._accessors = accessors diff --git a/pollination_sdk/models/license_pool_update.py b/pollination_sdk/models/license_pool_update.py index 1f680f997..8267fff7f 100644 --- a/pollination_sdk/models/license_pool_update.py +++ b/pollination_sdk/models/license_pool_update.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/pollination_sdk/models/license_public.py b/pollination_sdk/models/license_public.py index feb7d0db4..40b45778c 100644 --- a/pollination_sdk/models/license_public.py +++ b/pollination_sdk/models/license_public.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,42 +34,42 @@ class LicensePublic(object): and the value is json key in definition. """ openapi_types = { - 'allowed_activations': 'int', - 'created_at': 'datetime', - 'id': 'str', - 'key': 'str', - 'lease_duration': 'int', - 'metadata': 'list[Metadata]', - 'notes': 'str', - 'product_id': 'str', - 'revoked': 'bool', - 'server_sync_grace_period': 'int', - 'server_sync_interval': 'int', - 'suspended': 'bool', - 'total_activations': 'int', - 'total_deactivations': 'int', - 'type': 'LicenseType', - 'updated_at': 'datetime', + 'allowed_activations': 'int' + 'created_at': 'datetime' + 'id': 'str' + 'key': 'str' + 'lease_duration': 'int' + 'metadata': 'List[Metadata]' + 'notes': 'str' + 'product_id': 'str' + 'revoked': 'bool' + 'server_sync_grace_period': 'int' + 'server_sync_interval': 'int' + 'suspended': 'bool' + 'total_activations': 'int' + 'total_deactivations': 'int' + 'type': 'LicenseType' + 'updated_at': 'datetime' 'validity': 'int' } attribute_map = { - 'allowed_activations': 'allowed_activations', - 'created_at': 'created_at', - 'id': 'id', - 'key': 'key', - 'lease_duration': 'lease_duration', - 'metadata': 'metadata', - 'notes': 'notes', - 'product_id': 'product_id', - 'revoked': 'revoked', - 'server_sync_grace_period': 'server_sync_grace_period', - 'server_sync_interval': 'server_sync_interval', - 'suspended': 'suspended', - 'total_activations': 'total_activations', - 'total_deactivations': 'total_deactivations', - 'type': 'type', - 'updated_at': 'updated_at', + 'allowed_activations': 'allowed_activations' + 'created_at': 'created_at' + 'id': 'id' + 'key': 'key' + 'lease_duration': 'lease_duration' + 'metadata': 'metadata' + 'notes': 'notes' + 'product_id': 'product_id' + 'revoked': 'revoked' + 'server_sync_grace_period': 'server_sync_grace_period' + 'server_sync_interval': 'server_sync_interval' + 'suspended': 'suspended' + 'total_activations': 'total_activations' + 'total_deactivations': 'total_deactivations' + 'type': 'type' + 'updated_at': 'updated_at' 'validity': 'validity' } @@ -240,7 +240,7 @@ def metadata(self): :return: The metadata of this LicensePublic. # noqa: E501 - :rtype: list[Metadata] + :rtype: List[Metadata] """ return self._metadata @@ -250,7 +250,7 @@ def metadata(self, metadata): :param metadata: The metadata of this LicensePublic. # noqa: E501 - :type metadata: list[Metadata] + :type metadata: List[Metadata] """ if self.local_vars_configuration.client_side_validation and metadata is None: # noqa: E501 raise ValueError("Invalid value for `metadata`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/license_type.py b/pollination_sdk/models/license_type.py index 9db7865e0..75ca14b9e 100644 --- a/pollination_sdk/models/license_type.py +++ b/pollination_sdk/models/license_type.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,11 +29,11 @@ class LicenseType(object): """ allowed enum values """ - NODE_LOCKED = "node-locked" - HOSTED_FLOATING = "hosted-floating" - ON_PREMISE_FLOATING = "on-premise-floating" + NODE_MINUS_LOCKED = 'node-locked' + HOSTED_MINUS_FLOATING = 'hosted-floating' + ON_MINUS_PREMISE_MINUS_FLOATING = 'on-premise-floating' - allowable_values = [NODE_LOCKED, HOSTED_FLOATING, ON_PREMISE_FLOATING] # noqa: E501 + allowable_values = [NODE_MINUS_LOCKED, HOSTED_MINUS_FLOATING, ON_MINUS_PREMISE_MINUS_FLOATING] # noqa: E501 """ Attributes: diff --git a/pollination_sdk/models/local_config.py b/pollination_sdk/models/local_config.py index f1f1f9476..1af49e91f 100644 --- a/pollination_sdk/models/local_config.py +++ b/pollination_sdk/models/local_config.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class LocalConfig(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', + 'annotations': 'Dict[str, str]' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', + 'annotations': 'annotations' 'type': 'type' } @@ -65,7 +65,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this LocalConfig. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -76,7 +76,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this LocalConfig. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/location.py b/pollination_sdk/models/location.py index 89583ef17..259f3d4e3 100644 --- a/pollination_sdk/models/location.py +++ b/pollination_sdk/models/location.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class Location(object): and the value is json key in definition. """ openapi_types = { - 'city': 'str', - 'country_code': 'str', - 'country_name': 'str', - 'ip_address': 'str', - 'latitude': 'float', + 'city': 'str' + 'country_code': 'str' + 'country_name': 'str' + 'ip_address': 'str' + 'latitude': 'float' 'longitude': 'float' } attribute_map = { - 'city': 'city', - 'country_code': 'country_code', - 'country_name': 'country_name', - 'ip_address': 'ip_address', - 'latitude': 'latitude', + 'city': 'city' + 'country_code': 'country_code' + 'country_name': 'country_name' + 'ip_address': 'ip_address' + 'latitude': 'latitude' 'longitude': 'longitude' } diff --git a/pollination_sdk/models/maintainer.py b/pollination_sdk/models/maintainer.py index f9c1b0831..df5abe85a 100644 --- a/pollination_sdk/models/maintainer.py +++ b/pollination_sdk/models/maintainer.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,16 +34,16 @@ class Maintainer(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'email': 'str', - 'name': 'str', + 'annotations': 'Dict[str, str]' + 'email': 'str' + 'name': 'str' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'email': 'email', - 'name': 'name', + 'annotations': 'annotations' + 'email': 'email' + 'name': 'name' 'type': 'type' } @@ -74,7 +74,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this Maintainer. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -85,7 +85,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this Maintainer. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/manifest.py b/pollination_sdk/models/manifest.py new file mode 100644 index 000000000..7313365f7 --- /dev/null +++ b/pollination_sdk/models/manifest.py @@ -0,0 +1,325 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class Manifest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'annotations': 'Dict[str, str]' + 'api_version': 'str' + 'dependencies': 'List[Dependency]' + 'flow': 'List[DAG]' + 'metadata': 'MetaData' + 'type': 'str' + 'config': 'PluginConfig' + 'functions': 'List[Function]' + } + + attribute_map = { + 'annotations': 'annotations' + 'api_version': 'api_version' + 'dependencies': 'dependencies' + 'flow': 'flow' + 'metadata': 'metadata' + 'type': 'type' + 'config': 'config' + 'functions': 'functions' + } + + def __init__(self, annotations=None, api_version='v1beta1', dependencies=None, flow=None, metadata=None, type='Plugin', config=None, functions=None, local_vars_configuration=None): # noqa: E501 + """Manifest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._annotations = None + self._api_version = None + self._dependencies = None + self._flow = None + self._metadata = None + self._type = None + self._config = None + self._functions = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + if api_version is not None: + self.api_version = api_version + if dependencies is not None: + self.dependencies = dependencies + self.flow = flow + self.metadata = metadata + if type is not None: + self.type = type + self.config = config + self.functions = functions + + @property + def annotations(self): + """Gets the annotations of this Manifest. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this Manifest. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this Manifest. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this Manifest. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def api_version(self): + """Gets the api_version of this Manifest. # noqa: E501 + + + :return: The api_version of this Manifest. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this Manifest. + + + :param api_version: The api_version of this Manifest. # noqa: E501 + :type api_version: str + """ + if (self.local_vars_configuration.client_side_validation and + api_version is not None and not re.search(r'^v1beta1$', api_version)): # noqa: E501 + raise ValueError(r"Invalid value for `api_version`, must be a follow pattern or equal to `/^v1beta1$/`") # noqa: E501 + + self._api_version = api_version + + @property + def dependencies(self): + """Gets the dependencies of this Manifest. # noqa: E501 + + A list of plugins and other recipes this recipe depends on. # noqa: E501 + + :return: The dependencies of this Manifest. # noqa: E501 + :rtype: List[Dependency] + """ + return self._dependencies + + @dependencies.setter + def dependencies(self, dependencies): + """Sets the dependencies of this Manifest. + + A list of plugins and other recipes this recipe depends on. # noqa: E501 + + :param dependencies: The dependencies of this Manifest. # noqa: E501 + :type dependencies: List[Dependency] + """ + + self._dependencies = dependencies + + @property + def flow(self): + """Gets the flow of this Manifest. # noqa: E501 + + A list of tasks to create a DAG recipe. # noqa: E501 + + :return: The flow of this Manifest. # noqa: E501 + :rtype: List[DAG] + """ + return self._flow + + @flow.setter + def flow(self, flow): + """Sets the flow of this Manifest. + + A list of tasks to create a DAG recipe. # noqa: E501 + + :param flow: The flow of this Manifest. # noqa: E501 + :type flow: List[DAG] + """ + if self.local_vars_configuration.client_side_validation and flow is None: # noqa: E501 + raise ValueError("Invalid value for `flow`, must not be `None`") # noqa: E501 + + self._flow = flow + + @property + def metadata(self): + """Gets the metadata of this Manifest. # noqa: E501 + + The Plugin metadata information # noqa: E501 + + :return: The metadata of this Manifest. # noqa: E501 + :rtype: MetaData + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this Manifest. + + The Plugin metadata information # noqa: E501 + + :param metadata: The metadata of this Manifest. # noqa: E501 + :type metadata: MetaData + """ + if self.local_vars_configuration.client_side_validation and metadata is None: # noqa: E501 + raise ValueError("Invalid value for `metadata`, must not be `None`") # noqa: E501 + + self._metadata = metadata + + @property + def type(self): + """Gets the type of this Manifest. # noqa: E501 + + + :return: The type of this Manifest. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this Manifest. + + + :param type: The type of this Manifest. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^Plugin', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^Plugin/`") # noqa: E501 + + self._type = type + + @property + def config(self): + """Gets the config of this Manifest. # noqa: E501 + + The configuration information to run this plugin # noqa: E501 + + :return: The config of this Manifest. # noqa: E501 + :rtype: PluginConfig + """ + return self._config + + @config.setter + def config(self, config): + """Sets the config of this Manifest. + + The configuration information to run this plugin # noqa: E501 + + :param config: The config of this Manifest. # noqa: E501 + :type config: PluginConfig + """ + if self.local_vars_configuration.client_side_validation and config is None: # noqa: E501 + raise ValueError("Invalid value for `config`, must not be `None`") # noqa: E501 + + self._config = config + + @property + def functions(self): + """Gets the functions of this Manifest. # noqa: E501 + + List of Plugin functions # noqa: E501 + + :return: The functions of this Manifest. # noqa: E501 + :rtype: List[Function] + """ + return self._functions + + @functions.setter + def functions(self, functions): + """Sets the functions of this Manifest. + + List of Plugin functions # noqa: E501 + + :param functions: The functions of this Manifest. # noqa: E501 + :type functions: List[Function] + """ + if self.local_vars_configuration.client_side_validation and functions is None: # noqa: E501 + raise ValueError("Invalid value for `functions`, must not be `None`") # noqa: E501 + + self._functions = functions + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Manifest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, Manifest): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/meta_data.py b/pollination_sdk/models/meta_data.py index 4e06e032e..a74879df0 100644 --- a/pollination_sdk/models/meta_data.py +++ b/pollination_sdk/models/meta_data.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,34 +34,34 @@ class MetaData(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'app_version': 'str', - 'deprecated': 'bool', - 'description': 'str', - 'home': 'str', - 'icon': 'str', - 'keywords': 'list[str]', - 'license': 'License', - 'maintainers': 'list[Maintainer]', - 'name': 'str', - 'sources': 'list[str]', - 'tag': 'str', + 'annotations': 'Dict[str, str]' + 'app_version': 'str' + 'deprecated': 'bool' + 'description': 'str' + 'home': 'str' + 'icon': 'str' + 'keywords': 'List[str]' + 'license': 'License' + 'maintainers': 'List[Maintainer]' + 'name': 'str' + 'sources': 'List[str]' + 'tag': 'str' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'app_version': 'app_version', - 'deprecated': 'deprecated', - 'description': 'description', - 'home': 'home', - 'icon': 'icon', - 'keywords': 'keywords', - 'license': 'license', - 'maintainers': 'maintainers', - 'name': 'name', - 'sources': 'sources', - 'tag': 'tag', + 'annotations': 'annotations' + 'app_version': 'app_version' + 'deprecated': 'deprecated' + 'description': 'description' + 'home': 'home' + 'icon': 'icon' + 'keywords': 'keywords' + 'license': 'license' + 'maintainers': 'maintainers' + 'name': 'name' + 'sources': 'sources' + 'tag': 'tag' 'type': 'type' } @@ -118,7 +118,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this MetaData. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -129,7 +129,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this MetaData. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -256,7 +256,7 @@ def keywords(self): A list of keywords to search the package by # noqa: E501 :return: The keywords of this MetaData. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._keywords @@ -267,7 +267,7 @@ def keywords(self, keywords): A list of keywords to search the package by # noqa: E501 :param keywords: The keywords of this MetaData. # noqa: E501 - :type keywords: list[str] + :type keywords: List[str] """ self._keywords = keywords @@ -302,7 +302,7 @@ def maintainers(self): A list of maintainers for the package # noqa: E501 :return: The maintainers of this MetaData. # noqa: E501 - :rtype: list[Maintainer] + :rtype: List[Maintainer] """ return self._maintainers @@ -313,7 +313,7 @@ def maintainers(self, maintainers): A list of maintainers for the package # noqa: E501 :param maintainers: The maintainers of this MetaData. # noqa: E501 - :type maintainers: list[Maintainer] + :type maintainers: List[Maintainer] """ self._maintainers = maintainers @@ -350,7 +350,7 @@ def sources(self): A list of URLs to source code for this project # noqa: E501 :return: The sources of this MetaData. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._sources @@ -361,7 +361,7 @@ def sources(self, sources): A list of URLs to source code for this project # noqa: E501 :param sources: The sources of this MetaData. # noqa: E501 - :type sources: list[str] + :type sources: List[str] """ self._sources = sources diff --git a/pollination_sdk/models/metadata.py b/pollination_sdk/models/metadata.py index 8dfcc9bf1..a454c6ba3 100644 --- a/pollination_sdk/models/metadata.py +++ b/pollination_sdk/models/metadata.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,16 +34,16 @@ class Metadata(object): and the value is json key in definition. """ openapi_types = { - 'id': 'str', - 'key': 'str', - 'value': 'str', + 'id': 'str' + 'key': 'str' + 'value': 'str' 'visible': 'bool' } attribute_map = { - 'id': 'id', - 'key': 'key', - 'value': 'value', + 'id': 'id' + 'key': 'key' + 'value': 'value' 'visible': 'visible' } diff --git a/pollination_sdk/models/model_from.py b/pollination_sdk/models/model_from.py new file mode 100644 index 000000000..018bc0c0d --- /dev/null +++ b/pollination_sdk/models/model_from.py @@ -0,0 +1,239 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class ModelFrom(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'annotations': 'Dict[str, str]' + 'name': 'str' + 'type': 'str' + 'variable': 'str' + 'path': 'str' + } + + attribute_map = { + 'annotations': 'annotations' + 'name': 'name' + 'type': 'type' + 'variable': 'variable' + 'path': 'path' + } + + def __init__(self, annotations=None, name=None, type='FileReference', variable=None, path=None, local_vars_configuration=None): # noqa: E501 + """ModelFrom - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._annotations = None + self._name = None + self._type = None + self._variable = None + self._path = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + self.name = name + if type is not None: + self.type = type + self.variable = variable + self.path = path + + @property + def annotations(self): + """Gets the annotations of this ModelFrom. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this ModelFrom. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this ModelFrom. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this ModelFrom. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def name(self): + """Gets the name of this ModelFrom. # noqa: E501 + + The name of the task to pull output data from. # noqa: E501 + + :return: The name of this ModelFrom. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ModelFrom. + + The name of the task to pull output data from. # noqa: E501 + + :param name: The name of this ModelFrom. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def type(self): + """Gets the type of this ModelFrom. # noqa: E501 + + + :return: The type of this ModelFrom. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ModelFrom. + + + :param type: The type of this ModelFrom. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^FileReference$', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^FileReference$/`") # noqa: E501 + + self._type = type + + @property + def variable(self): + """Gets the variable of this ModelFrom. # noqa: E501 + + The name of the variable. # noqa: E501 + + :return: The variable of this ModelFrom. # noqa: E501 + :rtype: str + """ + return self._variable + + @variable.setter + def variable(self, variable): + """Sets the variable of this ModelFrom. + + The name of the variable. # noqa: E501 + + :param variable: The variable of this ModelFrom. # noqa: E501 + :type variable: str + """ + if self.local_vars_configuration.client_side_validation and variable is None: # noqa: E501 + raise ValueError("Invalid value for `variable`, must not be `None`") # noqa: E501 + + self._variable = variable + + @property + def path(self): + """Gets the path of this ModelFrom. # noqa: E501 + + Relative path to a file. # noqa: E501 + + :return: The path of this ModelFrom. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this ModelFrom. + + Relative path to a file. # noqa: E501 + + :param path: The path of this ModelFrom. # noqa: E501 + :type path: str + """ + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 + + self._path = path + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ModelFrom): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ModelFrom): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/new_application_version.py b/pollination_sdk/models/new_application_version.py index 5c25b0fbf..257432a71 100644 --- a/pollination_sdk/models/new_application_version.py +++ b/pollination_sdk/models/new_application_version.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class NewApplicationVersion(object): and the value is json key in definition. """ openapi_types = { - 'release_notes': 'str', + 'release_notes': 'str' 'tag': 'str' } attribute_map = { - 'release_notes': 'release_notes', + 'release_notes': 'release_notes' 'tag': 'tag' } diff --git a/pollination_sdk/models/new_plugin_package.py b/pollination_sdk/models/new_plugin_package.py index 7df50b1f5..0b95c2348 100644 --- a/pollination_sdk/models/new_plugin_package.py +++ b/pollination_sdk/models/new_plugin_package.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class NewPluginPackage(object): and the value is json key in definition. """ openapi_types = { - 'manifest': 'Plugin', + 'manifest': 'Plugin' 'readme': 'str' } attribute_map = { - 'manifest': 'manifest', + 'manifest': 'manifest' 'readme': 'readme' } diff --git a/pollination_sdk/models/new_recipe_package.py b/pollination_sdk/models/new_recipe_package.py index 0f19df337..6b2dc3c8d 100644 --- a/pollination_sdk/models/new_recipe_package.py +++ b/pollination_sdk/models/new_recipe_package.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class NewRecipePackage(object): and the value is json key in definition. """ openapi_types = { - 'manifest': 'Recipe', + 'manifest': 'Recipe' 'readme': 'str' } attribute_map = { - 'manifest': 'manifest', + 'manifest': 'manifest' 'readme': 'readme' } diff --git a/pollination_sdk/models/organization.py b/pollination_sdk/models/organization.py index 6c862626f..2cdaad771 100644 --- a/pollination_sdk/models/organization.py +++ b/pollination_sdk/models/organization.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,28 +34,28 @@ class Organization(object): and the value is json key in definition. """ openapi_types = { - 'account_name': 'str', - 'contact_email': 'str', - 'description': 'str', - 'id': 'str', - 'member_count': 'int', - 'name': 'str', - 'owner': 'AccountPublic', - 'picture_url': 'str', - 'role': 'OrganizationRoleEnum', + 'account_name': 'str' + 'contact_email': 'str' + 'description': 'str' + 'id': 'str' + 'member_count': 'int' + 'name': 'str' + 'owner': 'AccountPublic' + 'picture_url': 'str' + 'role': 'OrganizationRoleEnum' 'team_count': 'int' } attribute_map = { - 'account_name': 'account_name', - 'contact_email': 'contact_email', - 'description': 'description', - 'id': 'id', - 'member_count': 'member_count', - 'name': 'name', - 'owner': 'owner', - 'picture_url': 'picture_url', - 'role': 'role', + 'account_name': 'account_name' + 'contact_email': 'contact_email' + 'description': 'description' + 'id': 'id' + 'member_count': 'member_count' + 'name': 'name' + 'owner': 'owner' + 'picture_url': 'picture_url' + 'role': 'role' 'team_count': 'team_count' } diff --git a/pollination_sdk/models/organization_create.py b/pollination_sdk/models/organization_create.py index ee1fb0c0a..103562738 100644 --- a/pollination_sdk/models/organization_create.py +++ b/pollination_sdk/models/organization_create.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,18 +34,18 @@ class OrganizationCreate(object): and the value is json key in definition. """ openapi_types = { - 'account_name': 'str', - 'contact_email': 'str', - 'description': 'str', - 'name': 'str', + 'account_name': 'str' + 'contact_email': 'str' + 'description': 'str' + 'name': 'str' 'picture_url': 'str' } attribute_map = { - 'account_name': 'account_name', - 'contact_email': 'contact_email', - 'description': 'description', - 'name': 'name', + 'account_name': 'account_name' + 'contact_email': 'contact_email' + 'description': 'description' + 'name': 'name' 'picture_url': 'picture_url' } diff --git a/pollination_sdk/models/organization_list.py b/pollination_sdk/models/organization_list.py index 05f3171f3..b42202060 100644 --- a/pollination_sdk/models/organization_list.py +++ b/pollination_sdk/models/organization_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class OrganizationList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[Organization]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[Organization]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this OrganizationList. # noqa: E501 - :rtype: list[Organization] + :rtype: List[Organization] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this OrganizationList. # noqa: E501 - :type resources: list[Organization] + :type resources: List[Organization] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/organization_member.py b/pollination_sdk/models/organization_member.py index dd7e0d281..02f7db074 100644 --- a/pollination_sdk/models/organization_member.py +++ b/pollination_sdk/models/organization_member.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class OrganizationMember(object): and the value is json key in definition. """ openapi_types = { - 'role': 'OrganizationRoleEnum', + 'role': 'OrganizationRoleEnum' 'user': 'UserPublic' } attribute_map = { - 'role': 'role', + 'role': 'role' 'user': 'user' } diff --git a/pollination_sdk/models/organization_member_list.py b/pollination_sdk/models/organization_member_list.py index f01d34f81..15b5685bc 100644 --- a/pollination_sdk/models/organization_member_list.py +++ b/pollination_sdk/models/organization_member_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class OrganizationMemberList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[OrganizationMember]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[OrganizationMember]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this OrganizationMemberList. # noqa: E501 - :rtype: list[OrganizationMember] + :rtype: List[OrganizationMember] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this OrganizationMemberList. # noqa: E501 - :type resources: list[OrganizationMember] + :type resources: List[OrganizationMember] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/organization_member_usage.py b/pollination_sdk/models/organization_member_usage.py new file mode 100644 index 000000000..818afb6e0 --- /dev/null +++ b/pollination_sdk/models/organization_member_usage.py @@ -0,0 +1,337 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class OrganizationMemberUsage(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'created_at': 'datetime' + 'deleted': 'bool' + 'deleted_at': 'datetime' + 'display_name': 'str' + 'email': 'str' + 'permission': 'str' + 'updated_at': 'datetime' + 'user_id': 'str' + 'username': 'str' + } + + attribute_map = { + 'created_at': 'created_at' + 'deleted': 'deleted' + 'deleted_at': 'deleted_at' + 'display_name': 'display_name' + 'email': 'email' + 'permission': 'permission' + 'updated_at': 'updated_at' + 'user_id': 'user_id' + 'username': 'username' + } + + def __init__(self, created_at=None, deleted=None, deleted_at=None, display_name=None, email=None, permission=None, updated_at=None, user_id=None, username=None, local_vars_configuration=None): # noqa: E501 + """OrganizationMemberUsage - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._created_at = None + self._deleted = None + self._deleted_at = None + self._display_name = None + self._email = None + self._permission = None + self._updated_at = None + self._user_id = None + self._username = None + self.discriminator = None + + self.created_at = created_at + self.deleted = deleted + if deleted_at is not None: + self.deleted_at = deleted_at + self.display_name = display_name + self.email = email + self.permission = permission + self.updated_at = updated_at + self.user_id = user_id + self.username = username + + @property + def created_at(self): + """Gets the created_at of this OrganizationMemberUsage. # noqa: E501 + + + :return: The created_at of this OrganizationMemberUsage. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this OrganizationMemberUsage. + + + :param created_at: The created_at of this OrganizationMemberUsage. # noqa: E501 + :type created_at: datetime + """ + if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501 + raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 + + self._created_at = created_at + + @property + def deleted(self): + """Gets the deleted of this OrganizationMemberUsage. # noqa: E501 + + + :return: The deleted of this OrganizationMemberUsage. # noqa: E501 + :rtype: bool + """ + return self._deleted + + @deleted.setter + def deleted(self, deleted): + """Sets the deleted of this OrganizationMemberUsage. + + + :param deleted: The deleted of this OrganizationMemberUsage. # noqa: E501 + :type deleted: bool + """ + if self.local_vars_configuration.client_side_validation and deleted is None: # noqa: E501 + raise ValueError("Invalid value for `deleted`, must not be `None`") # noqa: E501 + + self._deleted = deleted + + @property + def deleted_at(self): + """Gets the deleted_at of this OrganizationMemberUsage. # noqa: E501 + + + :return: The deleted_at of this OrganizationMemberUsage. # noqa: E501 + :rtype: datetime + """ + return self._deleted_at + + @deleted_at.setter + def deleted_at(self, deleted_at): + """Sets the deleted_at of this OrganizationMemberUsage. + + + :param deleted_at: The deleted_at of this OrganizationMemberUsage. # noqa: E501 + :type deleted_at: datetime + """ + + self._deleted_at = deleted_at + + @property + def display_name(self): + """Gets the display_name of this OrganizationMemberUsage. # noqa: E501 + + + :return: The display_name of this OrganizationMemberUsage. # noqa: E501 + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """Sets the display_name of this OrganizationMemberUsage. + + + :param display_name: The display_name of this OrganizationMemberUsage. # noqa: E501 + :type display_name: str + """ + if self.local_vars_configuration.client_side_validation and display_name is None: # noqa: E501 + raise ValueError("Invalid value for `display_name`, must not be `None`") # noqa: E501 + + self._display_name = display_name + + @property + def email(self): + """Gets the email of this OrganizationMemberUsage. # noqa: E501 + + + :return: The email of this OrganizationMemberUsage. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this OrganizationMemberUsage. + + + :param email: The email of this OrganizationMemberUsage. # noqa: E501 + :type email: str + """ + if self.local_vars_configuration.client_side_validation and email is None: # noqa: E501 + raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 + + self._email = email + + @property + def permission(self): + """Gets the permission of this OrganizationMemberUsage. # noqa: E501 + + + :return: The permission of this OrganizationMemberUsage. # noqa: E501 + :rtype: str + """ + return self._permission + + @permission.setter + def permission(self, permission): + """Sets the permission of this OrganizationMemberUsage. + + + :param permission: The permission of this OrganizationMemberUsage. # noqa: E501 + :type permission: str + """ + if self.local_vars_configuration.client_side_validation and permission is None: # noqa: E501 + raise ValueError("Invalid value for `permission`, must not be `None`") # noqa: E501 + + self._permission = permission + + @property + def updated_at(self): + """Gets the updated_at of this OrganizationMemberUsage. # noqa: E501 + + + :return: The updated_at of this OrganizationMemberUsage. # noqa: E501 + :rtype: datetime + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this OrganizationMemberUsage. + + + :param updated_at: The updated_at of this OrganizationMemberUsage. # noqa: E501 + :type updated_at: datetime + """ + if self.local_vars_configuration.client_side_validation and updated_at is None: # noqa: E501 + raise ValueError("Invalid value for `updated_at`, must not be `None`") # noqa: E501 + + self._updated_at = updated_at + + @property + def user_id(self): + """Gets the user_id of this OrganizationMemberUsage. # noqa: E501 + + + :return: The user_id of this OrganizationMemberUsage. # noqa: E501 + :rtype: str + """ + return self._user_id + + @user_id.setter + def user_id(self, user_id): + """Sets the user_id of this OrganizationMemberUsage. + + + :param user_id: The user_id of this OrganizationMemberUsage. # noqa: E501 + :type user_id: str + """ + if self.local_vars_configuration.client_side_validation and user_id is None: # noqa: E501 + raise ValueError("Invalid value for `user_id`, must not be `None`") # noqa: E501 + + self._user_id = user_id + + @property + def username(self): + """Gets the username of this OrganizationMemberUsage. # noqa: E501 + + + :return: The username of this OrganizationMemberUsage. # noqa: E501 + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this OrganizationMemberUsage. + + + :param username: The username of this OrganizationMemberUsage. # noqa: E501 + :type username: str + """ + if self.local_vars_configuration.client_side_validation and username is None: # noqa: E501 + raise ValueError("Invalid value for `username`, must not be `None`") # noqa: E501 + + self._username = username + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OrganizationMemberUsage): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, OrganizationMemberUsage): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/organization_role_enum.py b/pollination_sdk/models/organization_role_enum.py index a6bebe03b..7fc188252 100644 --- a/pollination_sdk/models/organization_role_enum.py +++ b/pollination_sdk/models/organization_role_enum.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,8 +29,8 @@ class OrganizationRoleEnum(object): """ allowed enum values """ - OWNER = "owner" - MEMBER = "member" + OWNER = 'owner' + MEMBER = 'member' allowable_values = [OWNER, MEMBER] # noqa: E501 diff --git a/pollination_sdk/models/organization_update.py b/pollination_sdk/models/organization_update.py index 9865feea8..b99c88206 100644 --- a/pollination_sdk/models/organization_update.py +++ b/pollination_sdk/models/organization_update.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,18 +34,18 @@ class OrganizationUpdate(object): and the value is json key in definition. """ openapi_types = { - 'account_name': 'str', - 'contact_email': 'str', - 'description': 'str', - 'name': 'str', + 'account_name': 'str' + 'contact_email': 'str' + 'description': 'str' + 'name': 'str' 'picture_url': 'str' } attribute_map = { - 'account_name': 'account_name', - 'contact_email': 'contact_email', - 'description': 'description', - 'name': 'name', + 'account_name': 'account_name' + 'contact_email': 'contact_email' + 'description': 'description' + 'name': 'name' 'picture_url': 'picture_url' } diff --git a/pollination_sdk/models/package_sort_key.py b/pollination_sdk/models/package_sort_key.py index 43c357199..daa93dfa9 100644 --- a/pollination_sdk/models/package_sort_key.py +++ b/pollination_sdk/models/package_sort_key.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,9 +29,9 @@ class PackageSortKey(object): """ allowed enum values """ - CREATED_AT = "created_at" - UPDATED_AT = "updated_at" - TAG = "tag" + CREATED_AT = 'created_at' + UPDATED_AT = 'updated_at' + TAG = 'tag' allowable_values = [CREATED_AT, UPDATED_AT, TAG] # noqa: E501 diff --git a/pollination_sdk/models/package_version.py b/pollination_sdk/models/package_version.py index 3518f712d..b04bc7dc1 100644 --- a/pollination_sdk/models/package_version.py +++ b/pollination_sdk/models/package_version.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,48 +34,48 @@ class PackageVersion(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'app_version': 'str', - 'created': 'datetime', - 'deprecated': 'bool', - 'description': 'str', - 'digest': 'str', - 'home': 'str', - 'icon': 'str', - 'keywords': 'list[str]', - 'kind': 'str', - 'license': 'License', - 'maintainers': 'list[Maintainer]', - 'manifest': 'AnyOfRecipePlugin', - 'name': 'str', - 'readme': 'str', - 'slug': 'str', - 'sources': 'list[str]', - 'tag': 'str', - 'type': 'str', + 'annotations': 'Dict[str, str]' + 'app_version': 'str' + 'created': 'datetime' + 'deprecated': 'bool' + 'description': 'str' + 'digest': 'str' + 'home': 'str' + 'icon': 'str' + 'keywords': 'List[str]' + 'kind': 'str' + 'license': 'License' + 'maintainers': 'List[Maintainer]' + 'manifest': 'Manifest' + 'name': 'str' + 'readme': 'str' + 'slug': 'str' + 'sources': 'List[str]' + 'tag': 'str' + 'type': 'str' 'url': 'str' } attribute_map = { - 'annotations': 'annotations', - 'app_version': 'app_version', - 'created': 'created', - 'deprecated': 'deprecated', - 'description': 'description', - 'digest': 'digest', - 'home': 'home', - 'icon': 'icon', - 'keywords': 'keywords', - 'kind': 'kind', - 'license': 'license', - 'maintainers': 'maintainers', - 'manifest': 'manifest', - 'name': 'name', - 'readme': 'readme', - 'slug': 'slug', - 'sources': 'sources', - 'tag': 'tag', - 'type': 'type', + 'annotations': 'annotations' + 'app_version': 'app_version' + 'created': 'created' + 'deprecated': 'deprecated' + 'description': 'description' + 'digest': 'digest' + 'home': 'home' + 'icon': 'icon' + 'keywords': 'keywords' + 'kind': 'kind' + 'license': 'license' + 'maintainers': 'maintainers' + 'manifest': 'manifest' + 'name': 'name' + 'readme': 'readme' + 'slug': 'slug' + 'sources': 'sources' + 'tag': 'tag' + 'type': 'type' 'url': 'url' } @@ -150,7 +150,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this PackageVersion. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -161,7 +161,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this PackageVersion. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -334,7 +334,7 @@ def keywords(self): A list of keywords to search the package by # noqa: E501 :return: The keywords of this PackageVersion. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._keywords @@ -345,7 +345,7 @@ def keywords(self, keywords): A list of keywords to search the package by # noqa: E501 :param keywords: The keywords of this PackageVersion. # noqa: E501 - :type keywords: list[str] + :type keywords: List[str] """ self._keywords = keywords @@ -403,7 +403,7 @@ def maintainers(self): A list of maintainers for the package # noqa: E501 :return: The maintainers of this PackageVersion. # noqa: E501 - :rtype: list[Maintainer] + :rtype: List[Maintainer] """ return self._maintainers @@ -414,7 +414,7 @@ def maintainers(self, maintainers): A list of maintainers for the package # noqa: E501 :param maintainers: The maintainers of this PackageVersion. # noqa: E501 - :type maintainers: list[Maintainer] + :type maintainers: List[Maintainer] """ self._maintainers = maintainers @@ -423,10 +423,9 @@ def maintainers(self, maintainers): def manifest(self): """Gets the manifest of this PackageVersion. # noqa: E501 - The package Recipe or Plugin manifest # noqa: E501 :return: The manifest of this PackageVersion. # noqa: E501 - :rtype: AnyOfRecipePlugin + :rtype: Manifest """ return self._manifest @@ -434,10 +433,9 @@ def manifest(self): def manifest(self, manifest): """Sets the manifest of this PackageVersion. - The package Recipe or Plugin manifest # noqa: E501 :param manifest: The manifest of this PackageVersion. # noqa: E501 - :type manifest: AnyOfRecipePlugin + :type manifest: Manifest """ self._manifest = manifest @@ -520,7 +518,7 @@ def sources(self): A list of URLs to source code for this project # noqa: E501 :return: The sources of this PackageVersion. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._sources @@ -531,7 +529,7 @@ def sources(self, sources): A list of URLs to source code for this project # noqa: E501 :param sources: The sources of this PackageVersion. # noqa: E501 - :type sources: list[str] + :type sources: List[str] """ self._sources = sources diff --git a/pollination_sdk/models/paused_reason.py b/pollination_sdk/models/paused_reason.py index 4912c1133..d21a7b226 100644 --- a/pollination_sdk/models/paused_reason.py +++ b/pollination_sdk/models/paused_reason.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,8 +29,8 @@ class PausedReason(object): """ allowed enum values """ - VOLUNTARY = "voluntary" - DELINQUENT = "delinquent" + VOLUNTARY = 'voluntary' + DELINQUENT = 'delinquent' allowable_values = [VOLUNTARY, DELINQUENT] # noqa: E501 diff --git a/pollination_sdk/models/pay_link.py b/pollination_sdk/models/pay_link.py index 61660ee00..499123ff7 100644 --- a/pollination_sdk/models/pay_link.py +++ b/pollination_sdk/models/pay_link.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/pollination_sdk/models/payment.py b/pollination_sdk/models/payment.py index 8207cf1d5..a38a1e012 100644 --- a/pollination_sdk/models/payment.py +++ b/pollination_sdk/models/payment.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,24 +34,24 @@ class Payment(object): and the value is json key in definition. """ openapi_types = { - 'amount': 'int', - 'currency': 'str', - 'id': 'int', - 'is_one_off_charge': 'bool', - 'is_paid': 'bool', - 'payout_date': 'date', - 'receipt_url': 'str', + 'amount': 'int' + 'currency': 'str' + 'id': 'int' + 'is_one_off_charge': 'bool' + 'is_paid': 'bool' + 'payout_date': 'date' + 'receipt_url': 'str' 'subscription_id': 'int' } attribute_map = { - 'amount': 'amount', - 'currency': 'currency', - 'id': 'id', - 'is_one_off_charge': 'is_one_off_charge', - 'is_paid': 'is_paid', - 'payout_date': 'payout_date', - 'receipt_url': 'receipt_url', + 'amount': 'amount' + 'currency': 'currency' + 'id': 'id' + 'is_one_off_charge': 'is_one_off_charge' + 'is_paid': 'is_paid' + 'payout_date': 'payout_date' + 'receipt_url': 'receipt_url' 'subscription_id': 'subscription_id' } diff --git a/pollination_sdk/models/payment_method.py b/pollination_sdk/models/payment_method.py index ec1c5fdc4..7de3d4649 100644 --- a/pollination_sdk/models/payment_method.py +++ b/pollination_sdk/models/payment_method.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,16 +34,16 @@ class PaymentMethod(object): and the value is json key in definition. """ openapi_types = { - 'card_type': 'CardType', - 'expiry_date': 'str', - 'last_four_digits': 'str', + 'card_type': 'CardType' + 'expiry_date': 'str' + 'last_four_digits': 'str' 'payment_method': 'PaymentMethodEnum' } attribute_map = { - 'card_type': 'card_type', - 'expiry_date': 'expiry_date', - 'last_four_digits': 'last_four_digits', + 'card_type': 'card_type' + 'expiry_date': 'expiry_date' + 'last_four_digits': 'last_four_digits' 'payment_method': 'payment_method' } diff --git a/pollination_sdk/models/payment_method_enum.py b/pollination_sdk/models/payment_method_enum.py index 7ccba567a..57fa5bf4b 100644 --- a/pollination_sdk/models/payment_method_enum.py +++ b/pollination_sdk/models/payment_method_enum.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,9 +29,9 @@ class PaymentMethodEnum(object): """ allowed enum values """ - CARD = "card" - PAYPAL = "paypal" - PAYPAL = "PayPal" + CARD = 'card' + PAYPAL = 'paypal' + PAYPAL = 'PayPal' allowable_values = [CARD, PAYPAL, PAYPAL] # noqa: E501 diff --git a/pollination_sdk/models/permission.py b/pollination_sdk/models/permission.py index c2bce6e89..151e30407 100644 --- a/pollination_sdk/models/permission.py +++ b/pollination_sdk/models/permission.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,9 +29,9 @@ class Permission(object): """ allowed enum values """ - ADMIN = "admin" - WRITE = "write" - READ = "read" + ADMIN = 'admin' + WRITE = 'write' + READ = 'read' allowable_values = [ADMIN, WRITE, READ] # noqa: E501 diff --git a/pollination_sdk/models/plan_type.py b/pollination_sdk/models/plan_type.py index 29f277866..04ded02c2 100644 --- a/pollination_sdk/models/plan_type.py +++ b/pollination_sdk/models/plan_type.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,15 +29,15 @@ class PlanType(object): """ allowed enum values """ - CLOUD = "cloud" - RHINO_PLUGIN = "rhino-plugin" - REVIT_PLUGIN = "revit-plugin" - BUNDLED_PLUGIN = "bundled-plugin" - APPLICATION = "application" - SEAT = "seat" - CLOUD_COMPUTE = "cloud-compute" - - allowable_values = [CLOUD, RHINO_PLUGIN, REVIT_PLUGIN, BUNDLED_PLUGIN, APPLICATION, SEAT, CLOUD_COMPUTE] # noqa: E501 + CLOUD = 'cloud' + RHINO_MINUS_PLUGIN = 'rhino-plugin' + REVIT_MINUS_PLUGIN = 'revit-plugin' + BUNDLED_MINUS_PLUGIN = 'bundled-plugin' + APPLICATION = 'application' + SEAT = 'seat' + CLOUD_MINUS_COMPUTE = 'cloud-compute' + + allowable_values = [CLOUD, RHINO_MINUS_PLUGIN, REVIT_MINUS_PLUGIN, BUNDLED_MINUS_PLUGIN, APPLICATION, SEAT, CLOUD_MINUS_COMPUTE] # noqa: E501 """ Attributes: diff --git a/pollination_sdk/models/plugin.py b/pollination_sdk/models/plugin.py index a407fbc56..faeda03dc 100644 --- a/pollination_sdk/models/plugin.py +++ b/pollination_sdk/models/plugin.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class Plugin(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'api_version': 'str', - 'config': 'PluginConfig', - 'functions': 'list[Function]', - 'metadata': 'MetaData', + 'annotations': 'Dict[str, str]' + 'api_version': 'str' + 'config': 'PluginConfig' + 'functions': 'List[Function]' + 'metadata': 'MetaData' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'api_version': 'api_version', - 'config': 'config', - 'functions': 'functions', - 'metadata': 'metadata', + 'annotations': 'annotations' + 'api_version': 'api_version' + 'config': 'config' + 'functions': 'functions' + 'metadata': 'metadata' 'type': 'type' } @@ -82,7 +82,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this Plugin. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -93,7 +93,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this Plugin. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -154,7 +154,7 @@ def functions(self): List of Plugin functions # noqa: E501 :return: The functions of this Plugin. # noqa: E501 - :rtype: list[Function] + :rtype: List[Function] """ return self._functions @@ -165,7 +165,7 @@ def functions(self, functions): List of Plugin functions # noqa: E501 :param functions: The functions of this Plugin. # noqa: E501 - :type functions: list[Function] + :type functions: List[Function] """ if self.local_vars_configuration.client_side_validation and functions is None: # noqa: E501 raise ValueError("Invalid value for `functions`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/plugin_config.py b/pollination_sdk/models/plugin_config.py index 091d5d78f..a268816a9 100644 --- a/pollination_sdk/models/plugin_config.py +++ b/pollination_sdk/models/plugin_config.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,16 +34,16 @@ class PluginConfig(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'docker': 'DockerConfig', - 'local': 'LocalConfig', + 'annotations': 'Dict[str, str]' + 'docker': 'DockerConfig' + 'local': 'LocalConfig' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'docker': 'docker', - 'local': 'local', + 'annotations': 'annotations' + 'docker': 'docker' + 'local': 'local' 'type': 'type' } @@ -74,7 +74,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this PluginConfig. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -85,7 +85,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this PluginConfig. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/plugin_package.py b/pollination_sdk/models/plugin_package.py index 9689964ab..a9760807a 100644 --- a/pollination_sdk/models/plugin_package.py +++ b/pollination_sdk/models/plugin_package.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,24 +34,24 @@ class PluginPackage(object): and the value is json key in definition. """ openapi_types = { - 'created_at': 'datetime', - 'description': 'str', - 'digest': 'str', - 'icon': 'str', - 'keywords': 'list[str]', - 'manifest': 'Plugin', - 'readme': 'str', + 'created_at': 'datetime' + 'description': 'str' + 'digest': 'str' + 'icon': 'str' + 'keywords': 'List[str]' + 'manifest': 'Plugin' + 'readme': 'str' 'tag': 'str' } attribute_map = { - 'created_at': 'created_at', - 'description': 'description', - 'digest': 'digest', - 'icon': 'icon', - 'keywords': 'keywords', - 'manifest': 'manifest', - 'readme': 'readme', + 'created_at': 'created_at' + 'description': 'description' + 'digest': 'digest' + 'icon': 'icon' + 'keywords': 'keywords' + 'manifest': 'manifest' + 'readme': 'readme' 'tag': 'tag' } @@ -186,7 +186,7 @@ def keywords(self): keywords # noqa: E501 :return: The keywords of this PluginPackage. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._keywords @@ -197,7 +197,7 @@ def keywords(self, keywords): keywords # noqa: E501 :param keywords: The keywords of this PluginPackage. # noqa: E501 - :type keywords: list[str] + :type keywords: List[str] """ self._keywords = keywords diff --git a/pollination_sdk/models/plugin_package_list.py b/pollination_sdk/models/plugin_package_list.py index 21c669896..c323b0e93 100644 --- a/pollination_sdk/models/plugin_package_list.py +++ b/pollination_sdk/models/plugin_package_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class PluginPackageList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[PluginPackage]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[PluginPackage]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this PluginPackageList. # noqa: E501 - :rtype: list[PluginPackage] + :rtype: List[PluginPackage] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this PluginPackageList. # noqa: E501 - :type resources: list[PluginPackage] + :type resources: List[PluginPackage] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/policy_subject.py b/pollination_sdk/models/policy_subject.py index 1beb5c289..c75f9f283 100644 --- a/pollination_sdk/models/policy_subject.py +++ b/pollination_sdk/models/policy_subject.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class PolicySubject(object): and the value is json key in definition. """ openapi_types = { - 'name': 'str', + 'name': 'str' 'subject_type': 'SubjectType' } attribute_map = { - 'name': 'name', + 'name': 'name' 'subject_type': 'subject_type' } diff --git a/pollination_sdk/models/project.py b/pollination_sdk/models/project.py index d034dd0b4..e8b3c2b6b 100644 --- a/pollination_sdk/models/project.py +++ b/pollination_sdk/models/project.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,24 +34,24 @@ class Project(object): and the value is json key in definition. """ openapi_types = { - 'description': 'str', - 'id': 'str', - 'name': 'str', - 'owner': 'AccountPublic', - 'permissions': 'UserPermission', - 'public': 'bool', - 'slug': 'str', + 'description': 'str' + 'id': 'str' + 'name': 'str' + 'owner': 'AccountPublic' + 'permissions': 'UserPermission' + 'public': 'bool' + 'slug': 'str' 'usage': 'Usage' } attribute_map = { - 'description': 'description', - 'id': 'id', - 'name': 'name', - 'owner': 'owner', - 'permissions': 'permissions', - 'public': 'public', - 'slug': 'slug', + 'description': 'description' + 'id': 'id' + 'name': 'name' + 'owner': 'owner' + 'permissions': 'permissions' + 'public': 'public' + 'slug': 'slug' 'usage': 'usage' } diff --git a/pollination_sdk/models/project_access_policy.py b/pollination_sdk/models/project_access_policy.py index 3ce02d2a5..1f526c111 100644 --- a/pollination_sdk/models/project_access_policy.py +++ b/pollination_sdk/models/project_access_policy.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class ProjectAccessPolicy(object): and the value is json key in definition. """ openapi_types = { - 'permission': 'Permission', + 'permission': 'Permission' 'subject': 'PolicySubject' } attribute_map = { - 'permission': 'permission', + 'permission': 'permission' 'subject': 'subject' } diff --git a/pollination_sdk/models/project_access_policy_list.py b/pollination_sdk/models/project_access_policy_list.py index 47c4166f0..8649f7d1a 100644 --- a/pollination_sdk/models/project_access_policy_list.py +++ b/pollination_sdk/models/project_access_policy_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class ProjectAccessPolicyList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[ProjectAccessPolicy]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[ProjectAccessPolicy]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this ProjectAccessPolicyList. # noqa: E501 - :rtype: list[ProjectAccessPolicy] + :rtype: List[ProjectAccessPolicy] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this ProjectAccessPolicyList. # noqa: E501 - :type resources: list[ProjectAccessPolicy] + :type resources: List[ProjectAccessPolicy] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/project_create.py b/pollination_sdk/models/project_create.py index b7fcc0b19..d00cd2b13 100644 --- a/pollination_sdk/models/project_create.py +++ b/pollination_sdk/models/project_create.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class ProjectCreate(object): and the value is json key in definition. """ openapi_types = { - 'description': 'str', - 'name': 'str', + 'description': 'str' + 'name': 'str' 'public': 'bool' } attribute_map = { - 'description': 'description', - 'name': 'name', + 'description': 'description' + 'name': 'name' 'public': 'public' } diff --git a/pollination_sdk/models/project_folder.py b/pollination_sdk/models/project_folder.py index a8eebc595..1a38c4c7d 100644 --- a/pollination_sdk/models/project_folder.py +++ b/pollination_sdk/models/project_folder.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class ProjectFolder(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'path': 'str', + 'annotations': 'Dict[str, str]' + 'path': 'str' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'path': 'path', + 'annotations': 'annotations' + 'path': 'path' 'type': 'type' } @@ -70,7 +70,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this ProjectFolder. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -81,7 +81,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this ProjectFolder. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/project_list.py b/pollination_sdk/models/project_list.py index 326f64df3..c94acec4e 100644 --- a/pollination_sdk/models/project_list.py +++ b/pollination_sdk/models/project_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class ProjectList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[Project]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[Project]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this ProjectList. # noqa: E501 - :rtype: list[Project] + :rtype: List[Project] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this ProjectList. # noqa: E501 - :type resources: list[Project] + :type resources: List[Project] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/project_policy_subject.py b/pollination_sdk/models/project_policy_subject.py index 401c02d30..f2b014f8e 100644 --- a/pollination_sdk/models/project_policy_subject.py +++ b/pollination_sdk/models/project_policy_subject.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class ProjectPolicySubject(object): and the value is json key in definition. """ openapi_types = { - 'name': 'str', + 'name': 'str' 'subject_type': 'SubjectType' } attribute_map = { - 'name': 'name', + 'name': 'name' 'subject_type': 'subject_type' } diff --git a/pollination_sdk/models/project_recipe_filter.py b/pollination_sdk/models/project_recipe_filter.py index 0ca9a93b6..f8e3eb6f2 100644 --- a/pollination_sdk/models/project_recipe_filter.py +++ b/pollination_sdk/models/project_recipe_filter.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class ProjectRecipeFilter(object): and the value is json key in definition. """ openapi_types = { - 'name': 'str', - 'owner': 'str', + 'name': 'str' + 'owner': 'str' 'tag': 'str' } attribute_map = { - 'name': 'name', - 'owner': 'owner', + 'name': 'name' + 'owner': 'owner' 'tag': 'tag' } diff --git a/pollination_sdk/models/project_recipe_filter_list.py b/pollination_sdk/models/project_recipe_filter_list.py index a18cd06f3..309df8d30 100644 --- a/pollination_sdk/models/project_recipe_filter_list.py +++ b/pollination_sdk/models/project_recipe_filter_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class ProjectRecipeFilterList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[ProjectRecipeFilter]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[ProjectRecipeFilter]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this ProjectRecipeFilterList. # noqa: E501 - :rtype: list[ProjectRecipeFilter] + :rtype: List[ProjectRecipeFilter] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this ProjectRecipeFilterList. # noqa: E501 - :type resources: list[ProjectRecipeFilter] + :type resources: List[ProjectRecipeFilter] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/project_sort_key.py b/pollination_sdk/models/project_sort_key.py index 32fed6c91..85d788fd5 100644 --- a/pollination_sdk/models/project_sort_key.py +++ b/pollination_sdk/models/project_sort_key.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,9 +29,9 @@ class ProjectSortKey(object): """ allowed enum values """ - CREATED_AT = "created_at" - UPDATED_AT = "updated_at" - NAME = "name" + CREATED_AT = 'created_at' + UPDATED_AT = 'updated_at' + NAME = 'name' allowable_values = [CREATED_AT, UPDATED_AT, NAME] # noqa: E501 diff --git a/pollination_sdk/models/project_update.py b/pollination_sdk/models/project_update.py index c532046e7..4020c93ef 100644 --- a/pollination_sdk/models/project_update.py +++ b/pollination_sdk/models/project_update.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class ProjectUpdate(object): and the value is json key in definition. """ openapi_types = { - 'description': 'str', - 'name': 'str', + 'description': 'str' + 'name': 'str' 'public': 'bool' } attribute_map = { - 'description': 'description', - 'name': 'name', + 'description': 'description' + 'name': 'name' 'public': 'public' } diff --git a/pollination_sdk/models/public_account_list.py b/pollination_sdk/models/public_account_list.py index edc378d24..ef022c16a 100644 --- a/pollination_sdk/models/public_account_list.py +++ b/pollination_sdk/models/public_account_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class PublicAccountList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[AccountPublic]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[AccountPublic]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this PublicAccountList. # noqa: E501 - :rtype: list[AccountPublic] + :rtype: List[AccountPublic] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this PublicAccountList. # noqa: E501 - :type resources: list[AccountPublic] + :type resources: List[AccountPublic] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/quota.py b/pollination_sdk/models/quota.py index a4dc349cf..dccf49b2c 100644 --- a/pollination_sdk/models/quota.py +++ b/pollination_sdk/models/quota.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,32 +34,32 @@ class Quota(object): and the value is json key in definition. """ openapi_types = { - 'description': 'str', - 'display_name': 'str', - 'enforced': 'bool', - 'exceeded': 'bool', - 'id': 'str', - 'limit': 'float', - 'owner': 'AccountPublic', - 'period_start': 'datetime', - 'resets': 'bool', - 'type': 'QuotaType', - 'unit': 'str', + 'description': 'str' + 'display_name': 'str' + 'enforced': 'bool' + 'exceeded': 'bool' + 'id': 'str' + 'limit': 'float' + 'owner': 'AccountPublic' + 'period_start': 'datetime' + 'resets': 'bool' + 'type': 'QuotaType' + 'unit': 'str' 'usage': 'float' } attribute_map = { - 'description': 'description', - 'display_name': 'display_name', - 'enforced': 'enforced', - 'exceeded': 'exceeded', - 'id': 'id', - 'limit': 'limit', - 'owner': 'owner', - 'period_start': 'period_start', - 'resets': 'resets', - 'type': 'type', - 'unit': 'unit', + 'description': 'description' + 'display_name': 'display_name' + 'enforced': 'enforced' + 'exceeded': 'exceeded' + 'id': 'id' + 'limit': 'limit' + 'owner': 'owner' + 'period_start': 'period_start' + 'resets': 'resets' + 'type': 'type' + 'unit': 'unit' 'usage': 'usage' } diff --git a/pollination_sdk/models/quota_list.py b/pollination_sdk/models/quota_list.py index f44bfe5f2..7ed007ba6 100644 --- a/pollination_sdk/models/quota_list.py +++ b/pollination_sdk/models/quota_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class QuotaList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[Quota]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[Quota]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this QuotaList. # noqa: E501 - :rtype: list[Quota] + :rtype: List[Quota] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this QuotaList. # noqa: E501 - :type resources: list[Quota] + :type resources: List[Quota] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/quota_plan.py b/pollination_sdk/models/quota_plan.py index bd789d44e..80d4a7bd8 100644 --- a/pollination_sdk/models/quota_plan.py +++ b/pollination_sdk/models/quota_plan.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,24 +34,24 @@ class QuotaPlan(object): and the value is json key in definition. """ openapi_types = { - 'description': 'str', - 'display_name': 'str', - 'enforced': 'bool', - 'limit': 'float', - 'max_limit': 'float', - 'resets': 'bool', - 'type': 'QuotaType', + 'description': 'str' + 'display_name': 'str' + 'enforced': 'bool' + 'limit': 'float' + 'max_limit': 'float' + 'resets': 'bool' + 'type': 'QuotaType' 'unit': 'str' } attribute_map = { - 'description': 'description', - 'display_name': 'display_name', - 'enforced': 'enforced', - 'limit': 'limit', - 'max_limit': 'max_limit', - 'resets': 'resets', - 'type': 'type', + 'description': 'description' + 'display_name': 'display_name' + 'enforced': 'enforced' + 'limit': 'limit' + 'max_limit': 'max_limit' + 'resets': 'resets' + 'type': 'type' 'unit': 'unit' } diff --git a/pollination_sdk/models/quota_type.py b/pollination_sdk/models/quota_type.py index 0485c9eb6..e2e5fabdc 100644 --- a/pollination_sdk/models/quota_type.py +++ b/pollination_sdk/models/quota_type.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,21 +29,22 @@ class QuotaType(object): """ allowed enum values """ - STORAGE = "storage" - COMPUTE_HOURS = "compute_hours" - PARALLEL_WORKFLOW_CONTAINERS = "parallel_workflow_containers" - PRIVATE_REPOSITORIES = "private_repositories" - PRIVATE_PROJECTS = "private_projects" - TEAMS = "teams" - MEMBERS = "members" - CPU_LIMIT = "cpu_limit" - MEMORY_LIMIT = "memory_limit" - RHINO_PLUGIN_LICENSE = "rhino_plugin_license" - REVIT_PLUGIN_LICENSE = "revit_plugin_license" - APPLICATION_CPU = "application_cpu" - APPLICATION_MEMORY = "application_memory" - - allowable_values = [STORAGE, COMPUTE_HOURS, PARALLEL_WORKFLOW_CONTAINERS, PRIVATE_REPOSITORIES, PRIVATE_PROJECTS, TEAMS, MEMBERS, CPU_LIMIT, MEMORY_LIMIT, RHINO_PLUGIN_LICENSE, REVIT_PLUGIN_LICENSE, APPLICATION_CPU, APPLICATION_MEMORY] # noqa: E501 + STORAGE = 'storage' + COMPUTE_HOURS = 'compute_hours' + PARALLEL_WORKFLOW_CONTAINERS = 'parallel_workflow_containers' + RUNS_PER_STUDY = 'runs_per_study' + PRIVATE_REPOSITORIES = 'private_repositories' + PRIVATE_PROJECTS = 'private_projects' + TEAMS = 'teams' + MEMBERS = 'members' + CPU_LIMIT = 'cpu_limit' + MEMORY_LIMIT = 'memory_limit' + RHINO_PLUGIN_LICENSE = 'rhino_plugin_license' + REVIT_PLUGIN_LICENSE = 'revit_plugin_license' + APPLICATION_CPU = 'application_cpu' + APPLICATION_MEMORY = 'application_memory' + + allowable_values = [STORAGE, COMPUTE_HOURS, PARALLEL_WORKFLOW_CONTAINERS, RUNS_PER_STUDY, PRIVATE_REPOSITORIES, PRIVATE_PROJECTS, TEAMS, MEMBERS, CPU_LIMIT, MEMORY_LIMIT, RHINO_PLUGIN_LICENSE, REVIT_PLUGIN_LICENSE, APPLICATION_CPU, APPLICATION_MEMORY] # noqa: E501 """ Attributes: diff --git a/pollination_sdk/models/recipe.py b/pollination_sdk/models/recipe.py index 86f31ef96..6f2f6129d 100644 --- a/pollination_sdk/models/recipe.py +++ b/pollination_sdk/models/recipe.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class Recipe(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'api_version': 'str', - 'dependencies': 'list[Dependency]', - 'flow': 'list[DAG]', - 'metadata': 'MetaData', + 'annotations': 'Dict[str, str]' + 'api_version': 'str' + 'dependencies': 'List[Dependency]' + 'flow': 'List[DAG]' + 'metadata': 'MetaData' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'api_version': 'api_version', - 'dependencies': 'dependencies', - 'flow': 'flow', - 'metadata': 'metadata', + 'annotations': 'annotations' + 'api_version': 'api_version' + 'dependencies': 'dependencies' + 'flow': 'flow' + 'metadata': 'metadata' 'type': 'type' } @@ -84,7 +84,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this Recipe. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -95,7 +95,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this Recipe. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -131,7 +131,7 @@ def dependencies(self): A list of plugins and other recipes this recipe depends on. # noqa: E501 :return: The dependencies of this Recipe. # noqa: E501 - :rtype: list[Dependency] + :rtype: List[Dependency] """ return self._dependencies @@ -142,7 +142,7 @@ def dependencies(self, dependencies): A list of plugins and other recipes this recipe depends on. # noqa: E501 :param dependencies: The dependencies of this Recipe. # noqa: E501 - :type dependencies: list[Dependency] + :type dependencies: List[Dependency] """ self._dependencies = dependencies @@ -154,7 +154,7 @@ def flow(self): A list of tasks to create a DAG recipe. # noqa: E501 :return: The flow of this Recipe. # noqa: E501 - :rtype: list[DAG] + :rtype: List[DAG] """ return self._flow @@ -165,7 +165,7 @@ def flow(self, flow): A list of tasks to create a DAG recipe. # noqa: E501 :param flow: The flow of this Recipe. # noqa: E501 - :type flow: list[DAG] + :type flow: List[DAG] """ if self.local_vars_configuration.client_side_validation and flow is None: # noqa: E501 raise ValueError("Invalid value for `flow`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/recipe_interface.py b/pollination_sdk/models/recipe_interface.py index f8d67833b..f79789279 100644 --- a/pollination_sdk/models/recipe_interface.py +++ b/pollination_sdk/models/recipe_interface.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,22 +34,22 @@ class RecipeInterface(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'api_version': 'str', - 'inputs': 'list[AnyOfDAGGenericInputDAGStringInputDAGIntegerInputDAGNumberInputDAGBooleanInputDAGFolderInputDAGFileInputDAGPathInputDAGArrayInputDAGJSONObjectInput]', - 'metadata': 'MetaData', - 'outputs': 'list[AnyOfDAGGenericOutputDAGStringOutputDAGIntegerOutputDAGNumberOutputDAGBooleanOutputDAGFolderOutputDAGFileOutputDAGPathOutputDAGArrayOutputDAGJSONObjectOutput]', - 'source': 'str', + 'annotations': 'Dict[str, str]' + 'api_version': 'str' + 'inputs': 'List[DAGInputsInner]' + 'metadata': 'MetaData' + 'outputs': 'List[DAGOutputsInner]' + 'source': 'str' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'api_version': 'api_version', - 'inputs': 'inputs', - 'metadata': 'metadata', - 'outputs': 'outputs', - 'source': 'source', + 'annotations': 'annotations' + 'api_version': 'api_version' + 'inputs': 'inputs' + 'metadata': 'metadata' + 'outputs': 'outputs' + 'source': 'source' 'type': 'type' } @@ -89,7 +89,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this RecipeInterface. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -100,7 +100,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this RecipeInterface. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -136,7 +136,7 @@ def inputs(self): A list of recipe inputs. # noqa: E501 :return: The inputs of this RecipeInterface. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputDAGStringInputDAGIntegerInputDAGNumberInputDAGBooleanInputDAGFolderInputDAGFileInputDAGPathInputDAGArrayInputDAGJSONObjectInput] + :rtype: List[DAGInputsInner] """ return self._inputs @@ -147,7 +147,7 @@ def inputs(self, inputs): A list of recipe inputs. # noqa: E501 :param inputs: The inputs of this RecipeInterface. # noqa: E501 - :type inputs: list[AnyOfDAGGenericInputDAGStringInputDAGIntegerInputDAGNumberInputDAGBooleanInputDAGFolderInputDAGFileInputDAGPathInputDAGArrayInputDAGJSONObjectInput] + :type inputs: List[DAGInputsInner] """ self._inputs = inputs @@ -184,7 +184,7 @@ def outputs(self): A list of recipe outputs. # noqa: E501 :return: The outputs of this RecipeInterface. # noqa: E501 - :rtype: list[AnyOfDAGGenericOutputDAGStringOutputDAGIntegerOutputDAGNumberOutputDAGBooleanOutputDAGFolderOutputDAGFileOutputDAGPathOutputDAGArrayOutputDAGJSONObjectOutput] + :rtype: List[DAGOutputsInner] """ return self._outputs @@ -195,7 +195,7 @@ def outputs(self, outputs): A list of recipe outputs. # noqa: E501 :param outputs: The outputs of this RecipeInterface. # noqa: E501 - :type outputs: list[AnyOfDAGGenericOutputDAGStringOutputDAGIntegerOutputDAGNumberOutputDAGBooleanOutputDAGFolderOutputDAGFileOutputDAGPathOutputDAGArrayOutputDAGJSONObjectOutput] + :type outputs: List[DAGOutputsInner] """ self._outputs = outputs diff --git a/pollination_sdk/models/recipe_interface_list.py b/pollination_sdk/models/recipe_interface_list.py index d631262bb..a8f1bb214 100644 --- a/pollination_sdk/models/recipe_interface_list.py +++ b/pollination_sdk/models/recipe_interface_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class RecipeInterfaceList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[RecipeInterface]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[RecipeInterface]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this RecipeInterfaceList. # noqa: E501 - :rtype: list[RecipeInterface] + :rtype: List[RecipeInterface] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this RecipeInterfaceList. # noqa: E501 - :type resources: list[RecipeInterface] + :type resources: List[RecipeInterface] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/recipe_package.py b/pollination_sdk/models/recipe_package.py index 37baea8d1..489be3832 100644 --- a/pollination_sdk/models/recipe_package.py +++ b/pollination_sdk/models/recipe_package.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,24 +34,24 @@ class RecipePackage(object): and the value is json key in definition. """ openapi_types = { - 'created_at': 'datetime', - 'description': 'str', - 'digest': 'str', - 'icon': 'str', - 'keywords': 'list[str]', - 'manifest': 'RecipeInterface', - 'readme': 'str', + 'created_at': 'datetime' + 'description': 'str' + 'digest': 'str' + 'icon': 'str' + 'keywords': 'List[str]' + 'manifest': 'RecipeInterface' + 'readme': 'str' 'tag': 'str' } attribute_map = { - 'created_at': 'created_at', - 'description': 'description', - 'digest': 'digest', - 'icon': 'icon', - 'keywords': 'keywords', - 'manifest': 'manifest', - 'readme': 'readme', + 'created_at': 'created_at' + 'description': 'description' + 'digest': 'digest' + 'icon': 'icon' + 'keywords': 'keywords' + 'manifest': 'manifest' + 'readme': 'readme' 'tag': 'tag' } @@ -186,7 +186,7 @@ def keywords(self): keywords # noqa: E501 :return: The keywords of this RecipePackage. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._keywords @@ -197,7 +197,7 @@ def keywords(self, keywords): keywords # noqa: E501 :param keywords: The keywords of this RecipePackage. # noqa: E501 - :type keywords: list[str] + :type keywords: List[str] """ self._keywords = keywords diff --git a/pollination_sdk/models/recipe_package_list.py b/pollination_sdk/models/recipe_package_list.py index 95668e137..72699e8a3 100644 --- a/pollination_sdk/models/recipe_package_list.py +++ b/pollination_sdk/models/recipe_package_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class RecipePackageList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[RecipePackage]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[RecipePackage]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this RecipePackageList. # noqa: E501 - :rtype: list[RecipePackage] + :rtype: List[RecipePackage] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this RecipePackageList. # noqa: E501 - :type resources: list[RecipePackage] + :type resources: List[RecipePackage] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/report_cad_license_usage.py b/pollination_sdk/models/report_cad_license_usage.py new file mode 100644 index 000000000..2d6ac1e43 --- /dev/null +++ b/pollination_sdk/models/report_cad_license_usage.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class ReportCADLicenseUsage(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'account_id': 'str' + 'created_at': 'datetime' + 'data': 'List[CADLicenseUsage]' + 'from_date': 'date' + 'to_date': 'date' + } + + attribute_map = { + 'account_id': 'account_id' + 'created_at': 'created_at' + 'data': 'data' + 'from_date': 'from_date' + 'to_date': 'to_date' + } + + def __init__(self, account_id=None, created_at=None, data=None, from_date=None, to_date=None, local_vars_configuration=None): # noqa: E501 + """ReportCADLicenseUsage - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._account_id = None + self._created_at = None + self._data = None + self._from_date = None + self._to_date = None + self.discriminator = None + + self.account_id = account_id + if created_at is not None: + self.created_at = created_at + self.data = data + if from_date is not None: + self.from_date = from_date + if to_date is not None: + self.to_date = to_date + + @property + def account_id(self): + """Gets the account_id of this ReportCADLicenseUsage. # noqa: E501 + + + :return: The account_id of this ReportCADLicenseUsage. # noqa: E501 + :rtype: str + """ + return self._account_id + + @account_id.setter + def account_id(self, account_id): + """Sets the account_id of this ReportCADLicenseUsage. + + + :param account_id: The account_id of this ReportCADLicenseUsage. # noqa: E501 + :type account_id: str + """ + if self.local_vars_configuration.client_side_validation and account_id is None: # noqa: E501 + raise ValueError("Invalid value for `account_id`, must not be `None`") # noqa: E501 + + self._account_id = account_id + + @property + def created_at(self): + """Gets the created_at of this ReportCADLicenseUsage. # noqa: E501 + + + :return: The created_at of this ReportCADLicenseUsage. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this ReportCADLicenseUsage. + + + :param created_at: The created_at of this ReportCADLicenseUsage. # noqa: E501 + :type created_at: datetime + """ + + self._created_at = created_at + + @property + def data(self): + """Gets the data of this ReportCADLicenseUsage. # noqa: E501 + + + :return: The data of this ReportCADLicenseUsage. # noqa: E501 + :rtype: List[CADLicenseUsage] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ReportCADLicenseUsage. + + + :param data: The data of this ReportCADLicenseUsage. # noqa: E501 + :type data: List[CADLicenseUsage] + """ + if self.local_vars_configuration.client_side_validation and data is None: # noqa: E501 + raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 + + self._data = data + + @property + def from_date(self): + """Gets the from_date of this ReportCADLicenseUsage. # noqa: E501 + + + :return: The from_date of this ReportCADLicenseUsage. # noqa: E501 + :rtype: date + """ + return self._from_date + + @from_date.setter + def from_date(self, from_date): + """Sets the from_date of this ReportCADLicenseUsage. + + + :param from_date: The from_date of this ReportCADLicenseUsage. # noqa: E501 + :type from_date: date + """ + + self._from_date = from_date + + @property + def to_date(self): + """Gets the to_date of this ReportCADLicenseUsage. # noqa: E501 + + + :return: The to_date of this ReportCADLicenseUsage. # noqa: E501 + :rtype: date + """ + return self._to_date + + @to_date.setter + def to_date(self, to_date): + """Sets the to_date of this ReportCADLicenseUsage. + + + :param to_date: The to_date of this ReportCADLicenseUsage. # noqa: E501 + :type to_date: date + """ + + self._to_date = to_date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ReportCADLicenseUsage): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ReportCADLicenseUsage): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/report_compute_usage.py b/pollination_sdk/models/report_compute_usage.py new file mode 100644 index 000000000..66220f018 --- /dev/null +++ b/pollination_sdk/models/report_compute_usage.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class ReportComputeUsage(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'account_id': 'str' + 'created_at': 'datetime' + 'data': 'List[JobComputeUsage]' + 'from_date': 'date' + 'to_date': 'date' + } + + attribute_map = { + 'account_id': 'account_id' + 'created_at': 'created_at' + 'data': 'data' + 'from_date': 'from_date' + 'to_date': 'to_date' + } + + def __init__(self, account_id=None, created_at=None, data=None, from_date=None, to_date=None, local_vars_configuration=None): # noqa: E501 + """ReportComputeUsage - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._account_id = None + self._created_at = None + self._data = None + self._from_date = None + self._to_date = None + self.discriminator = None + + self.account_id = account_id + if created_at is not None: + self.created_at = created_at + self.data = data + if from_date is not None: + self.from_date = from_date + if to_date is not None: + self.to_date = to_date + + @property + def account_id(self): + """Gets the account_id of this ReportComputeUsage. # noqa: E501 + + + :return: The account_id of this ReportComputeUsage. # noqa: E501 + :rtype: str + """ + return self._account_id + + @account_id.setter + def account_id(self, account_id): + """Sets the account_id of this ReportComputeUsage. + + + :param account_id: The account_id of this ReportComputeUsage. # noqa: E501 + :type account_id: str + """ + if self.local_vars_configuration.client_side_validation and account_id is None: # noqa: E501 + raise ValueError("Invalid value for `account_id`, must not be `None`") # noqa: E501 + + self._account_id = account_id + + @property + def created_at(self): + """Gets the created_at of this ReportComputeUsage. # noqa: E501 + + + :return: The created_at of this ReportComputeUsage. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this ReportComputeUsage. + + + :param created_at: The created_at of this ReportComputeUsage. # noqa: E501 + :type created_at: datetime + """ + + self._created_at = created_at + + @property + def data(self): + """Gets the data of this ReportComputeUsage. # noqa: E501 + + + :return: The data of this ReportComputeUsage. # noqa: E501 + :rtype: List[JobComputeUsage] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ReportComputeUsage. + + + :param data: The data of this ReportComputeUsage. # noqa: E501 + :type data: List[JobComputeUsage] + """ + if self.local_vars_configuration.client_side_validation and data is None: # noqa: E501 + raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 + + self._data = data + + @property + def from_date(self): + """Gets the from_date of this ReportComputeUsage. # noqa: E501 + + + :return: The from_date of this ReportComputeUsage. # noqa: E501 + :rtype: date + """ + return self._from_date + + @from_date.setter + def from_date(self, from_date): + """Sets the from_date of this ReportComputeUsage. + + + :param from_date: The from_date of this ReportComputeUsage. # noqa: E501 + :type from_date: date + """ + + self._from_date = from_date + + @property + def to_date(self): + """Gets the to_date of this ReportComputeUsage. # noqa: E501 + + + :return: The to_date of this ReportComputeUsage. # noqa: E501 + :rtype: date + """ + return self._to_date + + @to_date.setter + def to_date(self, to_date): + """Sets the to_date of this ReportComputeUsage. + + + :param to_date: The to_date of this ReportComputeUsage. # noqa: E501 + :type to_date: date + """ + + self._to_date = to_date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ReportComputeUsage): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ReportComputeUsage): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/report_organization_member_usage.py b/pollination_sdk/models/report_organization_member_usage.py new file mode 100644 index 000000000..1f4e92ebd --- /dev/null +++ b/pollination_sdk/models/report_organization_member_usage.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class ReportOrganizationMemberUsage(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'account_id': 'str' + 'created_at': 'datetime' + 'data': 'List[OrganizationMemberUsage]' + 'from_date': 'date' + 'to_date': 'date' + } + + attribute_map = { + 'account_id': 'account_id' + 'created_at': 'created_at' + 'data': 'data' + 'from_date': 'from_date' + 'to_date': 'to_date' + } + + def __init__(self, account_id=None, created_at=None, data=None, from_date=None, to_date=None, local_vars_configuration=None): # noqa: E501 + """ReportOrganizationMemberUsage - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._account_id = None + self._created_at = None + self._data = None + self._from_date = None + self._to_date = None + self.discriminator = None + + self.account_id = account_id + if created_at is not None: + self.created_at = created_at + self.data = data + if from_date is not None: + self.from_date = from_date + if to_date is not None: + self.to_date = to_date + + @property + def account_id(self): + """Gets the account_id of this ReportOrganizationMemberUsage. # noqa: E501 + + + :return: The account_id of this ReportOrganizationMemberUsage. # noqa: E501 + :rtype: str + """ + return self._account_id + + @account_id.setter + def account_id(self, account_id): + """Sets the account_id of this ReportOrganizationMemberUsage. + + + :param account_id: The account_id of this ReportOrganizationMemberUsage. # noqa: E501 + :type account_id: str + """ + if self.local_vars_configuration.client_side_validation and account_id is None: # noqa: E501 + raise ValueError("Invalid value for `account_id`, must not be `None`") # noqa: E501 + + self._account_id = account_id + + @property + def created_at(self): + """Gets the created_at of this ReportOrganizationMemberUsage. # noqa: E501 + + + :return: The created_at of this ReportOrganizationMemberUsage. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this ReportOrganizationMemberUsage. + + + :param created_at: The created_at of this ReportOrganizationMemberUsage. # noqa: E501 + :type created_at: datetime + """ + + self._created_at = created_at + + @property + def data(self): + """Gets the data of this ReportOrganizationMemberUsage. # noqa: E501 + + + :return: The data of this ReportOrganizationMemberUsage. # noqa: E501 + :rtype: List[OrganizationMemberUsage] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ReportOrganizationMemberUsage. + + + :param data: The data of this ReportOrganizationMemberUsage. # noqa: E501 + :type data: List[OrganizationMemberUsage] + """ + if self.local_vars_configuration.client_side_validation and data is None: # noqa: E501 + raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 + + self._data = data + + @property + def from_date(self): + """Gets the from_date of this ReportOrganizationMemberUsage. # noqa: E501 + + + :return: The from_date of this ReportOrganizationMemberUsage. # noqa: E501 + :rtype: date + """ + return self._from_date + + @from_date.setter + def from_date(self, from_date): + """Sets the from_date of this ReportOrganizationMemberUsage. + + + :param from_date: The from_date of this ReportOrganizationMemberUsage. # noqa: E501 + :type from_date: date + """ + + self._from_date = from_date + + @property + def to_date(self): + """Gets the to_date of this ReportOrganizationMemberUsage. # noqa: E501 + + + :return: The to_date of this ReportOrganizationMemberUsage. # noqa: E501 + :rtype: date + """ + return self._to_date + + @to_date.setter + def to_date(self, to_date): + """Sets the to_date of this ReportOrganizationMemberUsage. + + + :param to_date: The to_date of this ReportOrganizationMemberUsage. # noqa: E501 + :type to_date: date + """ + + self._to_date = to_date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ReportOrganizationMemberUsage): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ReportOrganizationMemberUsage): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/repository.py b/pollination_sdk/models/repository.py index b32007256..bf3d2ea61 100644 --- a/pollination_sdk/models/repository.py +++ b/pollination_sdk/models/repository.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,28 +34,28 @@ class Repository(object): and the value is json key in definition. """ openapi_types = { - 'description': 'str', - 'icon': 'str', - 'id': 'str', - 'keywords': 'list[str]', - 'latest_tag': 'str', - 'name': 'str', - 'owner': 'AccountPublic', - 'permissions': 'RepositoryUserPermissions', - 'public': 'bool', + 'description': 'str' + 'icon': 'str' + 'id': 'str' + 'keywords': 'List[str]' + 'latest_tag': 'str' + 'name': 'str' + 'owner': 'AccountPublic' + 'permissions': 'RepositoryUserPermissions' + 'public': 'bool' 'slug': 'str' } attribute_map = { - 'description': 'description', - 'icon': 'icon', - 'id': 'id', - 'keywords': 'keywords', - 'latest_tag': 'latest_tag', - 'name': 'name', - 'owner': 'owner', - 'permissions': 'permissions', - 'public': 'public', + 'description': 'description' + 'icon': 'icon' + 'id': 'id' + 'keywords': 'keywords' + 'latest_tag': 'latest_tag' + 'name': 'name' + 'owner': 'owner' + 'permissions': 'permissions' + 'public': 'public' 'slug': 'slug' } @@ -172,7 +172,7 @@ def keywords(self): A list of keywords to index the repository by # noqa: E501 :return: The keywords of this Repository. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._keywords @@ -183,7 +183,7 @@ def keywords(self, keywords): A list of keywords to index the repository by # noqa: E501 :param keywords: The keywords of this Repository. # noqa: E501 - :type keywords: list[str] + :type keywords: List[str] """ self._keywords = keywords diff --git a/pollination_sdk/models/repository_access_policy.py b/pollination_sdk/models/repository_access_policy.py index 7479a31b2..42d37f29d 100644 --- a/pollination_sdk/models/repository_access_policy.py +++ b/pollination_sdk/models/repository_access_policy.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class RepositoryAccessPolicy(object): and the value is json key in definition. """ openapi_types = { - 'permission': 'Permission', + 'permission': 'Permission' 'subject': 'PolicySubject' } attribute_map = { - 'permission': 'permission', + 'permission': 'permission' 'subject': 'subject' } diff --git a/pollination_sdk/models/repository_access_policy_list.py b/pollination_sdk/models/repository_access_policy_list.py index 2af01ae6b..0f111a3b3 100644 --- a/pollination_sdk/models/repository_access_policy_list.py +++ b/pollination_sdk/models/repository_access_policy_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class RepositoryAccessPolicyList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[RepositoryAccessPolicy]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[RepositoryAccessPolicy]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this RepositoryAccessPolicyList. # noqa: E501 - :rtype: list[RepositoryAccessPolicy] + :rtype: List[RepositoryAccessPolicy] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this RepositoryAccessPolicyList. # noqa: E501 - :type resources: list[RepositoryAccessPolicy] + :type resources: List[RepositoryAccessPolicy] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/repository_create.py b/pollination_sdk/models/repository_create.py index 8699231ed..5782b2d57 100644 --- a/pollination_sdk/models/repository_create.py +++ b/pollination_sdk/models/repository_create.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,18 +34,18 @@ class RepositoryCreate(object): and the value is json key in definition. """ openapi_types = { - 'description': 'str', - 'icon': 'str', - 'keywords': 'list[str]', - 'name': 'str', + 'description': 'str' + 'icon': 'str' + 'keywords': 'List[str]' + 'name': 'str' 'public': 'bool' } attribute_map = { - 'description': 'description', - 'icon': 'icon', - 'keywords': 'keywords', - 'name': 'name', + 'description': 'description' + 'icon': 'icon' + 'keywords': 'keywords' + 'name': 'name' 'public': 'public' } @@ -125,7 +125,7 @@ def keywords(self): A list of keywords to index the repository by # noqa: E501 :return: The keywords of this RepositoryCreate. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._keywords @@ -136,7 +136,7 @@ def keywords(self, keywords): A list of keywords to index the repository by # noqa: E501 :param keywords: The keywords of this RepositoryCreate. # noqa: E501 - :type keywords: list[str] + :type keywords: List[str] """ self._keywords = keywords diff --git a/pollination_sdk/models/repository_index.py b/pollination_sdk/models/repository_index.py index a7acd3fb5..ee99511c2 100644 --- a/pollination_sdk/models/repository_index.py +++ b/pollination_sdk/models/repository_index.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,22 +34,22 @@ class RepositoryIndex(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'api_version': 'str', - 'generated': 'datetime', - 'metadata': 'RepositoryMetadata', - 'plugin': 'dict(str, list[PackageVersion])', - 'recipe': 'dict(str, list[PackageVersion])', + 'annotations': 'Dict[str, str]' + 'api_version': 'str' + 'generated': 'datetime' + 'metadata': 'RepositoryMetadata' + 'plugin': 'Dict[str, List[PackageVersion]]' + 'recipe': 'Dict[str, List[PackageVersion]]' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'api_version': 'api_version', - 'generated': 'generated', - 'metadata': 'metadata', - 'plugin': 'plugin', - 'recipe': 'recipe', + 'annotations': 'annotations' + 'api_version': 'api_version' + 'generated': 'generated' + 'metadata': 'metadata' + 'plugin': 'plugin' + 'recipe': 'recipe' 'type': 'type' } @@ -90,7 +90,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this RepositoryIndex. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -101,7 +101,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this RepositoryIndex. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -183,7 +183,7 @@ def plugin(self): A dict of plugins accessible by name. Each name key points to a list of plugin versions # noqa: E501 :return: The plugin of this RepositoryIndex. # noqa: E501 - :rtype: dict(str, list[PackageVersion]) + :rtype: Dict[str, List[PackageVersion]] """ return self._plugin @@ -194,7 +194,7 @@ def plugin(self, plugin): A dict of plugins accessible by name. Each name key points to a list of plugin versions # noqa: E501 :param plugin: The plugin of this RepositoryIndex. # noqa: E501 - :type plugin: dict(str, list[PackageVersion]) + :type plugin: Dict[str, List[PackageVersion]] """ self._plugin = plugin @@ -206,7 +206,7 @@ def recipe(self): A dict of recipes accessible by name. Each name key points to a list of recipesversions # noqa: E501 :return: The recipe of this RepositoryIndex. # noqa: E501 - :rtype: dict(str, list[PackageVersion]) + :rtype: Dict[str, List[PackageVersion]] """ return self._recipe @@ -217,7 +217,7 @@ def recipe(self, recipe): A dict of recipes accessible by name. Each name key points to a list of recipesversions # noqa: E501 :param recipe: The recipe of this RepositoryIndex. # noqa: E501 - :type recipe: dict(str, list[PackageVersion]) + :type recipe: Dict[str, List[PackageVersion]] """ self._recipe = recipe diff --git a/pollination_sdk/models/repository_list.py b/pollination_sdk/models/repository_list.py index 8d1c724d8..b01ea563a 100644 --- a/pollination_sdk/models/repository_list.py +++ b/pollination_sdk/models/repository_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class RepositoryList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[Repository]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[Repository]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this RepositoryList. # noqa: E501 - :rtype: list[Repository] + :rtype: List[Repository] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this RepositoryList. # noqa: E501 - :type resources: list[Repository] + :type resources: List[Repository] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/repository_metadata.py b/pollination_sdk/models/repository_metadata.py index 933ef0356..64b31a4d2 100644 --- a/pollination_sdk/models/repository_metadata.py +++ b/pollination_sdk/models/repository_metadata.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,22 +34,22 @@ class RepositoryMetadata(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'name': 'str', - 'plugin_count': 'int', - 'recipe_count': 'int', - 'source': 'str', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'name': 'str' + 'plugin_count': 'int' + 'recipe_count': 'int' + 'source': 'str' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'name': 'name', - 'plugin_count': 'plugin_count', - 'recipe_count': 'recipe_count', - 'source': 'source', + 'annotations': 'annotations' + 'description': 'description' + 'name': 'name' + 'plugin_count': 'plugin_count' + 'recipe_count': 'recipe_count' + 'source': 'source' 'type': 'type' } @@ -90,7 +90,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this RepositoryMetadata. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -101,7 +101,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this RepositoryMetadata. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/repository_policy_subject.py b/pollination_sdk/models/repository_policy_subject.py index f27350032..fb0b3da3c 100644 --- a/pollination_sdk/models/repository_policy_subject.py +++ b/pollination_sdk/models/repository_policy_subject.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class RepositoryPolicySubject(object): and the value is json key in definition. """ openapi_types = { - 'name': 'str', + 'name': 'str' 'subject_type': 'SubjectType' } attribute_map = { - 'name': 'name', + 'name': 'name' 'subject_type': 'subject_type' } diff --git a/pollination_sdk/models/repository_sort_key.py b/pollination_sdk/models/repository_sort_key.py index 01dfc0f12..55238155a 100644 --- a/pollination_sdk/models/repository_sort_key.py +++ b/pollination_sdk/models/repository_sort_key.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,10 +29,10 @@ class RepositorySortKey(object): """ allowed enum values """ - CREATED_AT = "created_at" - UPDATED_AT = "updated_at" - NAME = "name" - LATEST_TAG = "latest_tag" + CREATED_AT = 'created_at' + UPDATED_AT = 'updated_at' + NAME = 'name' + LATEST_TAG = 'latest_tag' allowable_values = [CREATED_AT, UPDATED_AT, NAME, LATEST_TAG] # noqa: E501 diff --git a/pollination_sdk/models/repository_update.py b/pollination_sdk/models/repository_update.py index b26eeaf71..688f14ee6 100644 --- a/pollination_sdk/models/repository_update.py +++ b/pollination_sdk/models/repository_update.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,16 +34,16 @@ class RepositoryUpdate(object): and the value is json key in definition. """ openapi_types = { - 'description': 'str', - 'icon': 'str', - 'keywords': 'list[str]', + 'description': 'str' + 'icon': 'str' + 'keywords': 'List[str]' 'public': 'bool' } attribute_map = { - 'description': 'description', - 'icon': 'icon', - 'keywords': 'keywords', + 'description': 'description' + 'icon': 'icon' + 'keywords': 'keywords' 'public': 'public' } @@ -121,7 +121,7 @@ def keywords(self): A list of keywords to index the repository by # noqa: E501 :return: The keywords of this RepositoryUpdate. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._keywords @@ -132,7 +132,7 @@ def keywords(self, keywords): A list of keywords to index the repository by # noqa: E501 :param keywords: The keywords of this RepositoryUpdate. # noqa: E501 - :type keywords: list[str] + :type keywords: List[str] """ self._keywords = keywords diff --git a/pollination_sdk/models/repository_user_permissions.py b/pollination_sdk/models/repository_user_permissions.py index 522c8f00e..e11d42d14 100644 --- a/pollination_sdk/models/repository_user_permissions.py +++ b/pollination_sdk/models/repository_user_permissions.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class RepositoryUserPermissions(object): and the value is json key in definition. """ openapi_types = { - 'admin': 'bool', - 'read': 'bool', + 'admin': 'bool' + 'read': 'bool' 'write': 'bool' } attribute_map = { - 'admin': 'admin', - 'read': 'read', + 'admin': 'admin' + 'read': 'read' 'write': 'write' } diff --git a/pollination_sdk/models/resources_duration.py b/pollination_sdk/models/resources_duration.py index bfbfdfa00..590003124 100644 --- a/pollination_sdk/models/resources_duration.py +++ b/pollination_sdk/models/resources_duration.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class ResourcesDuration(object): and the value is json key in definition. """ openapi_types = { - 'cpu': 'int', + 'cpu': 'int' 'memory': 'int' } attribute_map = { - 'cpu': 'cpu', + 'cpu': 'cpu' 'memory': 'memory' } diff --git a/pollination_sdk/models/response_get_package_json.py b/pollination_sdk/models/response_get_package_json.py new file mode 100644 index 000000000..333d7360e --- /dev/null +++ b/pollination_sdk/models/response_get_package_json.py @@ -0,0 +1,381 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class ResponseGetPackageJson(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'annotations': 'Dict[str, str]' + 'api_version': 'str' + 'dependencies': 'List[Dependency]' + 'flow': 'List[DAG]' + 'metadata': 'MetaData' + 'type': 'str' + 'config': 'PluginConfig' + 'functions': 'List[Function]' + 'digest': 'str' + 'templates': 'List[BakedRecipeTemplatesInner]' + } + + attribute_map = { + 'annotations': 'annotations' + 'api_version': 'api_version' + 'dependencies': 'dependencies' + 'flow': 'flow' + 'metadata': 'metadata' + 'type': 'type' + 'config': 'config' + 'functions': 'functions' + 'digest': 'digest' + 'templates': 'templates' + } + + def __init__(self, annotations=None, api_version='v1beta1', dependencies=None, flow=None, metadata=None, type='BakedRecipe', config=None, functions=None, digest=None, templates=None, local_vars_configuration=None): # noqa: E501 + """ResponseGetPackageJson - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._annotations = None + self._api_version = None + self._dependencies = None + self._flow = None + self._metadata = None + self._type = None + self._config = None + self._functions = None + self._digest = None + self._templates = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + if api_version is not None: + self.api_version = api_version + if dependencies is not None: + self.dependencies = dependencies + self.flow = flow + self.metadata = metadata + if type is not None: + self.type = type + self.config = config + self.functions = functions + self.digest = digest + self.templates = templates + + @property + def annotations(self): + """Gets the annotations of this ResponseGetPackageJson. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this ResponseGetPackageJson. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this ResponseGetPackageJson. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this ResponseGetPackageJson. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def api_version(self): + """Gets the api_version of this ResponseGetPackageJson. # noqa: E501 + + + :return: The api_version of this ResponseGetPackageJson. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this ResponseGetPackageJson. + + + :param api_version: The api_version of this ResponseGetPackageJson. # noqa: E501 + :type api_version: str + """ + if (self.local_vars_configuration.client_side_validation and + api_version is not None and not re.search(r'^v1beta1$', api_version)): # noqa: E501 + raise ValueError(r"Invalid value for `api_version`, must be a follow pattern or equal to `/^v1beta1$/`") # noqa: E501 + + self._api_version = api_version + + @property + def dependencies(self): + """Gets the dependencies of this ResponseGetPackageJson. # noqa: E501 + + A list of plugins and other recipes this recipe depends on. # noqa: E501 + + :return: The dependencies of this ResponseGetPackageJson. # noqa: E501 + :rtype: List[Dependency] + """ + return self._dependencies + + @dependencies.setter + def dependencies(self, dependencies): + """Sets the dependencies of this ResponseGetPackageJson. + + A list of plugins and other recipes this recipe depends on. # noqa: E501 + + :param dependencies: The dependencies of this ResponseGetPackageJson. # noqa: E501 + :type dependencies: List[Dependency] + """ + + self._dependencies = dependencies + + @property + def flow(self): + """Gets the flow of this ResponseGetPackageJson. # noqa: E501 + + A list of tasks to create a DAG recipe. # noqa: E501 + + :return: The flow of this ResponseGetPackageJson. # noqa: E501 + :rtype: List[DAG] + """ + return self._flow + + @flow.setter + def flow(self, flow): + """Sets the flow of this ResponseGetPackageJson. + + A list of tasks to create a DAG recipe. # noqa: E501 + + :param flow: The flow of this ResponseGetPackageJson. # noqa: E501 + :type flow: List[DAG] + """ + if self.local_vars_configuration.client_side_validation and flow is None: # noqa: E501 + raise ValueError("Invalid value for `flow`, must not be `None`") # noqa: E501 + + self._flow = flow + + @property + def metadata(self): + """Gets the metadata of this ResponseGetPackageJson. # noqa: E501 + + Recipe metadata information. # noqa: E501 + + :return: The metadata of this ResponseGetPackageJson. # noqa: E501 + :rtype: MetaData + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this ResponseGetPackageJson. + + Recipe metadata information. # noqa: E501 + + :param metadata: The metadata of this ResponseGetPackageJson. # noqa: E501 + :type metadata: MetaData + """ + if self.local_vars_configuration.client_side_validation and metadata is None: # noqa: E501 + raise ValueError("Invalid value for `metadata`, must not be `None`") # noqa: E501 + + self._metadata = metadata + + @property + def type(self): + """Gets the type of this ResponseGetPackageJson. # noqa: E501 + + + :return: The type of this ResponseGetPackageJson. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ResponseGetPackageJson. + + + :param type: The type of this ResponseGetPackageJson. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^BakedRecipe$', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^BakedRecipe$/`") # noqa: E501 + + self._type = type + + @property + def config(self): + """Gets the config of this ResponseGetPackageJson. # noqa: E501 + + The configuration information to run this plugin # noqa: E501 + + :return: The config of this ResponseGetPackageJson. # noqa: E501 + :rtype: PluginConfig + """ + return self._config + + @config.setter + def config(self, config): + """Sets the config of this ResponseGetPackageJson. + + The configuration information to run this plugin # noqa: E501 + + :param config: The config of this ResponseGetPackageJson. # noqa: E501 + :type config: PluginConfig + """ + if self.local_vars_configuration.client_side_validation and config is None: # noqa: E501 + raise ValueError("Invalid value for `config`, must not be `None`") # noqa: E501 + + self._config = config + + @property + def functions(self): + """Gets the functions of this ResponseGetPackageJson. # noqa: E501 + + List of Plugin functions # noqa: E501 + + :return: The functions of this ResponseGetPackageJson. # noqa: E501 + :rtype: List[Function] + """ + return self._functions + + @functions.setter + def functions(self, functions): + """Sets the functions of this ResponseGetPackageJson. + + List of Plugin functions # noqa: E501 + + :param functions: The functions of this ResponseGetPackageJson. # noqa: E501 + :type functions: List[Function] + """ + if self.local_vars_configuration.client_side_validation and functions is None: # noqa: E501 + raise ValueError("Invalid value for `functions`, must not be `None`") # noqa: E501 + + self._functions = functions + + @property + def digest(self): + """Gets the digest of this ResponseGetPackageJson. # noqa: E501 + + + :return: The digest of this ResponseGetPackageJson. # noqa: E501 + :rtype: str + """ + return self._digest + + @digest.setter + def digest(self, digest): + """Sets the digest of this ResponseGetPackageJson. + + + :param digest: The digest of this ResponseGetPackageJson. # noqa: E501 + :type digest: str + """ + if self.local_vars_configuration.client_side_validation and digest is None: # noqa: E501 + raise ValueError("Invalid value for `digest`, must not be `None`") # noqa: E501 + + self._digest = digest + + @property + def templates(self): + """Gets the templates of this ResponseGetPackageJson. # noqa: E501 + + A list of templates. Templates can be Function or a DAG. # noqa: E501 + + :return: The templates of this ResponseGetPackageJson. # noqa: E501 + :rtype: List[BakedRecipeTemplatesInner] + """ + return self._templates + + @templates.setter + def templates(self, templates): + """Sets the templates of this ResponseGetPackageJson. + + A list of templates. Templates can be Function or a DAG. # noqa: E501 + + :param templates: The templates of this ResponseGetPackageJson. # noqa: E501 + :type templates: List[BakedRecipeTemplatesInner] + """ + if self.local_vars_configuration.client_side_validation and templates is None: # noqa: E501 + raise ValueError("Invalid value for `templates`, must not be `None`") # noqa: E501 + + self._templates = templates + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResponseGetPackageJson): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ResponseGetPackageJson): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/retry_config.py b/pollination_sdk/models/retry_config.py index 6458acc31..6ca9c47d3 100644 --- a/pollination_sdk/models/retry_config.py +++ b/pollination_sdk/models/retry_config.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/pollination_sdk/models/role_enum.py b/pollination_sdk/models/role_enum.py index 0c6e2b398..e4b8e8f6b 100644 --- a/pollination_sdk/models/role_enum.py +++ b/pollination_sdk/models/role_enum.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,8 +29,8 @@ class RoleEnum(object): """ allowed enum values """ - OWNER = "owner" - MEMBER = "member" + OWNER = 'owner' + MEMBER = 'member' allowable_values = [OWNER, MEMBER] # noqa: E501 diff --git a/pollination_sdk/models/run.py b/pollination_sdk/models/run.py index 565a5b6ca..0c84f4bd3 100644 --- a/pollination_sdk/models/run.py +++ b/pollination_sdk/models/run.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,22 +34,22 @@ class Run(object): and the value is json key in definition. """ openapi_types = { - 'author': 'AccountPublic', - 'generation': 'float', - 'id': 'str', - 'meta': 'RunMeta', - 'owner': 'AccountPublic', - 'recipe': 'RecipeInterface', + 'author': 'AccountPublic' + 'generation': 'float' + 'id': 'str' + 'meta': 'RunMeta' + 'owner': 'AccountPublic' + 'recipe': 'RecipeInterface' 'status': 'RunStatus' } attribute_map = { - 'author': 'author', - 'generation': 'generation', - 'id': 'id', - 'meta': 'meta', - 'owner': 'owner', - 'recipe': 'recipe', + 'author': 'author' + 'generation': 'generation' + 'id': 'id' + 'meta': 'meta' + 'owner': 'owner' + 'recipe': 'recipe' 'status': 'status' } diff --git a/pollination_sdk/models/run_list.py b/pollination_sdk/models/run_list.py index ae225a2a9..3f0e3f24d 100644 --- a/pollination_sdk/models/run_list.py +++ b/pollination_sdk/models/run_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class RunList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[Run]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[Run]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this RunList. # noqa: E501 - :rtype: list[Run] + :rtype: List[Run] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this RunList. # noqa: E501 - :type resources: list[Run] + :type resources: List[Run] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/run_meta.py b/pollination_sdk/models/run_meta.py index 4484347c4..343e83388 100644 --- a/pollination_sdk/models/run_meta.py +++ b/pollination_sdk/models/run_meta.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class RunMeta(object): and the value is json key in definition. """ openapi_types = { - 'progress': 'RunProgress', + 'progress': 'RunProgress' 'resources_duration': 'ResourcesDuration' } attribute_map = { - 'progress': 'progress', + 'progress': 'progress' 'resources_duration': 'resources_duration' } diff --git a/pollination_sdk/models/run_progress.py b/pollination_sdk/models/run_progress.py index 2075e88de..aa8740a52 100644 --- a/pollination_sdk/models/run_progress.py +++ b/pollination_sdk/models/run_progress.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class RunProgress(object): and the value is json key in definition. """ openapi_types = { - 'completed': 'int', - 'running': 'int', + 'completed': 'int' + 'running': 'int' 'total': 'int' } attribute_map = { - 'completed': 'completed', - 'running': 'running', + 'completed': 'completed' + 'running': 'running' 'total': 'total' } diff --git a/pollination_sdk/models/run_result_list.py b/pollination_sdk/models/run_result_list.py index 0558c08f9..987813a30 100644 --- a/pollination_sdk/models/run_result_list.py +++ b/pollination_sdk/models/run_result_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class RunResultList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[list[AnyOfStepStringInputStepIntegerInputStepNumberInputStepBooleanInputStepFolderInputStepFileInputStepPathInputStepArrayInputStepJSONObjectInputStepStringOutputStepIntegerOutputStepNumberOutputStepBooleanOutputStepFolderOutputStepFileOutputStepPathOutputStepArrayOutputStepJSONObjectOutput]]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[List[RunResultListResourcesInnerInner]]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this RunResultList. # noqa: E501 - :rtype: list[list[AnyOfStepStringInputStepIntegerInputStepNumberInputStepBooleanInputStepFolderInputStepFileInputStepPathInputStepArrayInputStepJSONObjectInputStepStringOutputStepIntegerOutputStepNumberOutputStepBooleanOutputStepFolderOutputStepFileOutputStepPathOutputStepArrayOutputStepJSONObjectOutput]] + :rtype: List[List[RunResultListResourcesInnerInner]] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this RunResultList. # noqa: E501 - :type resources: list[list[AnyOfStepStringInputStepIntegerInputStepNumberInputStepBooleanInputStepFolderInputStepFileInputStepPathInputStepArrayInputStepJSONObjectInputStepStringOutputStepIntegerOutputStepNumberOutputStepBooleanOutputStepFolderOutputStepFileOutputStepPathOutputStepArrayOutputStepJSONObjectOutput]] + :type resources: List[List[RunResultListResourcesInnerInner]] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/run_result_list_resources_inner_inner.py b/pollination_sdk/models/run_result_list_resources_inner_inner.py new file mode 100644 index 000000000..bb70f9763 --- /dev/null +++ b/pollination_sdk/models/run_result_list_resources_inner_inner.py @@ -0,0 +1,460 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class RunResultListResourcesInnerInner(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'object' + 'description': 'str' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' + 'type': 'str' + 'value': 'object' + 'path': 'str' + 'source': 'Source' + 'extensions': 'List[str]' + 'items_type': 'ItemType' + } + + attribute_map = { + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' + 'type': 'type' + 'value': 'value' + 'path': 'path' + 'source': 'source' + 'extensions': 'extensions' + 'items_type': 'items_type' + } + + def __init__(self, alias=None, annotations=None, default=None, description=None, name=None, required=True, spec=None, type='StepJSONObjectOutput', value=None, path=None, source=None, extensions=None, items_type=None, local_vars_configuration=None): # noqa: E501 + """RunResultListResourcesInnerInner - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._alias = None + self._annotations = None + self._default = None + self._description = None + self._name = None + self._required = None + self._spec = None + self._type = None + self._value = None + self._path = None + self._source = None + self._extensions = None + self._items_type = None + self.discriminator = None + + if alias is not None: + self.alias = alias + if annotations is not None: + self.annotations = annotations + if default is not None: + self.default = default + if description is not None: + self.description = description + self.name = name + if required is not None: + self.required = required + if spec is not None: + self.spec = spec + if type is not None: + self.type = type + self.value = value + self.path = path + self.source = source + if extensions is not None: + self.extensions = extensions + if items_type is not None: + self.items_type = items_type + + @property + def alias(self): + """Gets the alias of this RunResultListResourcesInnerInner. # noqa: E501 + + A list of aliases for this input in different platforms. # noqa: E501 + + :return: The alias of this RunResultListResourcesInnerInner. # noqa: E501 + :rtype: List[DAGArrayInputAliasInner] + """ + return self._alias + + @alias.setter + def alias(self, alias): + """Sets the alias of this RunResultListResourcesInnerInner. + + A list of aliases for this input in different platforms. # noqa: E501 + + :param alias: The alias of this RunResultListResourcesInnerInner. # noqa: E501 + :type alias: List[DAGArrayInputAliasInner] + """ + + self._alias = alias + + @property + def annotations(self): + """Gets the annotations of this RunResultListResourcesInnerInner. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this RunResultListResourcesInnerInner. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this RunResultListResourcesInnerInner. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this RunResultListResourcesInnerInner. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def default(self): + """Gets the default of this RunResultListResourcesInnerInner. # noqa: E501 + + Default value to use for an input if a value was not supplied. # noqa: E501 + + :return: The default of this RunResultListResourcesInnerInner. # noqa: E501 + :rtype: object + """ + return self._default + + @default.setter + def default(self, default): + """Sets the default of this RunResultListResourcesInnerInner. + + Default value to use for an input if a value was not supplied. # noqa: E501 + + :param default: The default of this RunResultListResourcesInnerInner. # noqa: E501 + :type default: object + """ + + self._default = default + + @property + def description(self): + """Gets the description of this RunResultListResourcesInnerInner. # noqa: E501 + + Optional description for output. # noqa: E501 + + :return: The description of this RunResultListResourcesInnerInner. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this RunResultListResourcesInnerInner. + + Optional description for output. # noqa: E501 + + :param description: The description of this RunResultListResourcesInnerInner. # noqa: E501 + :type description: str + """ + + self._description = description + + @property + def name(self): + """Gets the name of this RunResultListResourcesInnerInner. # noqa: E501 + + Output name. # noqa: E501 + + :return: The name of this RunResultListResourcesInnerInner. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this RunResultListResourcesInnerInner. + + Output name. # noqa: E501 + + :param name: The name of this RunResultListResourcesInnerInner. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def required(self): + """Gets the required of this RunResultListResourcesInnerInner. # noqa: E501 + + A boolean to indicate if an artifact output is required. A False value makes the artifact optional. # noqa: E501 + + :return: The required of this RunResultListResourcesInnerInner. # noqa: E501 + :rtype: bool + """ + return self._required + + @required.setter + def required(self, required): + """Sets the required of this RunResultListResourcesInnerInner. + + A boolean to indicate if an artifact output is required. A False value makes the artifact optional. # noqa: E501 + + :param required: The required of this RunResultListResourcesInnerInner. # noqa: E501 + :type required: bool + """ + + self._required = required + + @property + def spec(self): + """Gets the spec of this RunResultListResourcesInnerInner. # noqa: E501 + + An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. # noqa: E501 + + :return: The spec of this RunResultListResourcesInnerInner. # noqa: E501 + :rtype: object + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this RunResultListResourcesInnerInner. + + An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. # noqa: E501 + + :param spec: The spec of this RunResultListResourcesInnerInner. # noqa: E501 + :type spec: object + """ + + self._spec = spec + + @property + def type(self): + """Gets the type of this RunResultListResourcesInnerInner. # noqa: E501 + + + :return: The type of this RunResultListResourcesInnerInner. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this RunResultListResourcesInnerInner. + + + :param type: The type of this RunResultListResourcesInnerInner. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^StepJSONObjectOutput$', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^StepJSONObjectOutput$/`") # noqa: E501 + + self._type = type + + @property + def value(self): + """Gets the value of this RunResultListResourcesInnerInner. # noqa: E501 + + + :return: The value of this RunResultListResourcesInnerInner. # noqa: E501 + :rtype: object + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this RunResultListResourcesInnerInner. + + + :param value: The value of this RunResultListResourcesInnerInner. # noqa: E501 + :type value: object + """ + if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 + raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 + + self._value = value + + @property + def path(self): + """Gets the path of this RunResultListResourcesInnerInner. # noqa: E501 + + Path to the output file relative to where the function command is executed. # noqa: E501 + + :return: The path of this RunResultListResourcesInnerInner. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this RunResultListResourcesInnerInner. + + Path to the output file relative to where the function command is executed. # noqa: E501 + + :param path: The path of this RunResultListResourcesInnerInner. # noqa: E501 + :type path: str + """ + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 + + self._path = path + + @property + def source(self): + """Gets the source of this RunResultListResourcesInnerInner. # noqa: E501 + + + :return: The source of this RunResultListResourcesInnerInner. # noqa: E501 + :rtype: Source + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this RunResultListResourcesInnerInner. + + + :param source: The source of this RunResultListResourcesInnerInner. # noqa: E501 + :type source: Source + """ + if self.local_vars_configuration.client_side_validation and source is None: # noqa: E501 + raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 + + self._source = source + + @property + def extensions(self): + """Gets the extensions of this RunResultListResourcesInnerInner. # noqa: E501 + + Optional list of extensions for file. The check for extension is case-insensitive. # noqa: E501 + + :return: The extensions of this RunResultListResourcesInnerInner. # noqa: E501 + :rtype: List[str] + """ + return self._extensions + + @extensions.setter + def extensions(self, extensions): + """Sets the extensions of this RunResultListResourcesInnerInner. + + Optional list of extensions for file. The check for extension is case-insensitive. # noqa: E501 + + :param extensions: The extensions of this RunResultListResourcesInnerInner. # noqa: E501 + :type extensions: List[str] + """ + + self._extensions = extensions + + @property + def items_type(self): + """Gets the items_type of this RunResultListResourcesInnerInner. # noqa: E501 + + Type of items in this array. All the items in an array must be from the same type. # noqa: E501 + + :return: The items_type of this RunResultListResourcesInnerInner. # noqa: E501 + :rtype: ItemType + """ + return self._items_type + + @items_type.setter + def items_type(self, items_type): + """Sets the items_type of this RunResultListResourcesInnerInner. + + Type of items in this array. All the items in an array must be from the same type. # noqa: E501 + + :param items_type: The items_type of this RunResultListResourcesInnerInner. # noqa: E501 + :type items_type: ItemType + """ + + self._items_type = items_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RunResultListResourcesInnerInner): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RunResultListResourcesInnerInner): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/run_status.py b/pollination_sdk/models/run_status.py index a1dcf3504..80f73d11d 100644 --- a/pollination_sdk/models/run_status.py +++ b/pollination_sdk/models/run_status.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,36 +34,36 @@ class RunStatus(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'api_version': 'str', - 'entrypoint': 'str', - 'finished_at': 'datetime', - 'id': 'str', - 'inputs': 'list[AnyOfStepStringInputStepIntegerInputStepNumberInputStepBooleanInputStepFolderInputStepFileInputStepPathInputStepArrayInputStepJSONObjectInput]', - 'job_id': 'str', - 'message': 'str', - 'outputs': 'list[AnyOfStepStringOutputStepIntegerOutputStepNumberOutputStepBooleanOutputStepFolderOutputStepFileOutputStepPathOutputStepArrayOutputStepJSONObjectOutput]', - 'source': 'str', - 'started_at': 'datetime', - 'status': 'RunStatusEnum', - 'steps': 'dict(str, StepStatus)', + 'annotations': 'Dict[str, str]' + 'api_version': 'str' + 'entrypoint': 'str' + 'finished_at': 'datetime' + 'id': 'str' + 'inputs': 'List[RunStatusInputsInner]' + 'job_id': 'str' + 'message': 'str' + 'outputs': 'List[RunStatusOutputsInner]' + 'source': 'str' + 'started_at': 'datetime' + 'status': 'RunStatusEnum' + 'steps': 'Dict[str, StepStatus]' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'api_version': 'api_version', - 'entrypoint': 'entrypoint', - 'finished_at': 'finished_at', - 'id': 'id', - 'inputs': 'inputs', - 'job_id': 'job_id', - 'message': 'message', - 'outputs': 'outputs', - 'source': 'source', - 'started_at': 'started_at', - 'status': 'status', - 'steps': 'steps', + 'annotations': 'annotations' + 'api_version': 'api_version' + 'entrypoint': 'entrypoint' + 'finished_at': 'finished_at' + 'id': 'id' + 'inputs': 'inputs' + 'job_id': 'job_id' + 'message': 'message' + 'outputs': 'outputs' + 'source': 'source' + 'started_at': 'started_at' + 'status': 'status' + 'steps': 'steps' 'type': 'type' } @@ -120,7 +120,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this RunStatus. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -131,7 +131,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this RunStatus. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -238,7 +238,7 @@ def inputs(self): The inputs used for this run. # noqa: E501 :return: The inputs of this RunStatus. # noqa: E501 - :rtype: list[AnyOfStepStringInputStepIntegerInputStepNumberInputStepBooleanInputStepFolderInputStepFileInputStepPathInputStepArrayInputStepJSONObjectInput] + :rtype: List[RunStatusInputsInner] """ return self._inputs @@ -249,7 +249,7 @@ def inputs(self, inputs): The inputs used for this run. # noqa: E501 :param inputs: The inputs of this RunStatus. # noqa: E501 - :type inputs: list[AnyOfStepStringInputStepIntegerInputStepNumberInputStepBooleanInputStepFolderInputStepFileInputStepPathInputStepArrayInputStepJSONObjectInput] + :type inputs: List[RunStatusInputsInner] """ if self.local_vars_configuration.client_side_validation and inputs is None: # noqa: E501 raise ValueError("Invalid value for `inputs`, must not be `None`") # noqa: E501 @@ -311,7 +311,7 @@ def outputs(self): The outputs produced by this run. # noqa: E501 :return: The outputs of this RunStatus. # noqa: E501 - :rtype: list[AnyOfStepStringOutputStepIntegerOutputStepNumberOutputStepBooleanOutputStepFolderOutputStepFileOutputStepPathOutputStepArrayOutputStepJSONObjectOutput] + :rtype: List[RunStatusOutputsInner] """ return self._outputs @@ -322,7 +322,7 @@ def outputs(self, outputs): The outputs produced by this run. # noqa: E501 :param outputs: The outputs of this RunStatus. # noqa: E501 - :type outputs: list[AnyOfStepStringOutputStepIntegerOutputStepNumberOutputStepBooleanOutputStepFolderOutputStepFileOutputStepPathOutputStepArrayOutputStepJSONObjectOutput] + :type outputs: List[RunStatusOutputsInner] """ if self.local_vars_configuration.client_side_validation and outputs is None: # noqa: E501 raise ValueError("Invalid value for `outputs`, must not be `None`") # noqa: E501 @@ -406,7 +406,7 @@ def steps(self): :return: The steps of this RunStatus. # noqa: E501 - :rtype: dict(str, StepStatus) + :rtype: Dict[str, StepStatus] """ return self._steps @@ -416,7 +416,7 @@ def steps(self, steps): :param steps: The steps of this RunStatus. # noqa: E501 - :type steps: dict(str, StepStatus) + :type steps: Dict[str, StepStatus] """ self._steps = steps diff --git a/pollination_sdk/models/run_status_enum.py b/pollination_sdk/models/run_status_enum.py index 82ba7ff1d..f6adaa6df 100644 --- a/pollination_sdk/models/run_status_enum.py +++ b/pollination_sdk/models/run_status_enum.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,16 +29,16 @@ class RunStatusEnum(object): """ allowed enum values """ - CREATED = "Created" - SCHEDULED = "Scheduled" - RUNNING = "Running" - POST_PROCESSING = "Post-Processing" - FAILED = "Failed" - CANCELLED = "Cancelled" - SUCCEEDED = "Succeeded" - UNKNOWN = "Unknown" - - allowable_values = [CREATED, SCHEDULED, RUNNING, POST_PROCESSING, FAILED, CANCELLED, SUCCEEDED, UNKNOWN] # noqa: E501 + CREATED = 'Created' + SCHEDULED = 'Scheduled' + RUNNING = 'Running' + POST_MINUS_PROCESSING = 'Post-Processing' + FAILED = 'Failed' + CANCELLED = 'Cancelled' + SUCCEEDED = 'Succeeded' + UNKNOWN = 'Unknown' + + allowable_values = [CREATED, SCHEDULED, RUNNING, POST_MINUS_PROCESSING, FAILED, CANCELLED, SUCCEEDED, UNKNOWN] # noqa: E501 """ Attributes: diff --git a/pollination_sdk/models/run_status_inputs_inner.py b/pollination_sdk/models/run_status_inputs_inner.py new file mode 100644 index 000000000..2ae08c65d --- /dev/null +++ b/pollination_sdk/models/run_status_inputs_inner.py @@ -0,0 +1,459 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class RunStatusInputsInner(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'object' + 'description': 'str' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' + 'type': 'str' + 'value': 'object' + 'path': 'str' + 'source': 'Source' + 'extensions': 'List[str]' + 'items_type': 'ItemType' + } + + attribute_map = { + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' + 'type': 'type' + 'value': 'value' + 'path': 'path' + 'source': 'source' + 'extensions': 'extensions' + 'items_type': 'items_type' + } + + def __init__(self, alias=None, annotations=None, default=None, description=None, name=None, required=False, spec=None, type='StepJSONObjectInput', value=None, path=None, source=None, extensions=None, items_type=None, local_vars_configuration=None): # noqa: E501 + """RunStatusInputsInner - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._alias = None + self._annotations = None + self._default = None + self._description = None + self._name = None + self._required = None + self._spec = None + self._type = None + self._value = None + self._path = None + self._source = None + self._extensions = None + self._items_type = None + self.discriminator = None + + if alias is not None: + self.alias = alias + if annotations is not None: + self.annotations = annotations + if default is not None: + self.default = default + if description is not None: + self.description = description + self.name = name + if required is not None: + self.required = required + if spec is not None: + self.spec = spec + if type is not None: + self.type = type + self.value = value + if path is not None: + self.path = path + self.source = source + if extensions is not None: + self.extensions = extensions + if items_type is not None: + self.items_type = items_type + + @property + def alias(self): + """Gets the alias of this RunStatusInputsInner. # noqa: E501 + + A list of aliases for this input in different platforms. # noqa: E501 + + :return: The alias of this RunStatusInputsInner. # noqa: E501 + :rtype: List[DAGArrayInputAliasInner] + """ + return self._alias + + @alias.setter + def alias(self, alias): + """Sets the alias of this RunStatusInputsInner. + + A list of aliases for this input in different platforms. # noqa: E501 + + :param alias: The alias of this RunStatusInputsInner. # noqa: E501 + :type alias: List[DAGArrayInputAliasInner] + """ + + self._alias = alias + + @property + def annotations(self): + """Gets the annotations of this RunStatusInputsInner. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this RunStatusInputsInner. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this RunStatusInputsInner. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this RunStatusInputsInner. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def default(self): + """Gets the default of this RunStatusInputsInner. # noqa: E501 + + Default value to use for an input if a value was not supplied. # noqa: E501 + + :return: The default of this RunStatusInputsInner. # noqa: E501 + :rtype: object + """ + return self._default + + @default.setter + def default(self, default): + """Sets the default of this RunStatusInputsInner. + + Default value to use for an input if a value was not supplied. # noqa: E501 + + :param default: The default of this RunStatusInputsInner. # noqa: E501 + :type default: object + """ + + self._default = default + + @property + def description(self): + """Gets the description of this RunStatusInputsInner. # noqa: E501 + + Optional description for input. # noqa: E501 + + :return: The description of this RunStatusInputsInner. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this RunStatusInputsInner. + + Optional description for input. # noqa: E501 + + :param description: The description of this RunStatusInputsInner. # noqa: E501 + :type description: str + """ + + self._description = description + + @property + def name(self): + """Gets the name of this RunStatusInputsInner. # noqa: E501 + + Input name. # noqa: E501 + + :return: The name of this RunStatusInputsInner. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this RunStatusInputsInner. + + Input name. # noqa: E501 + + :param name: The name of this RunStatusInputsInner. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def required(self): + """Gets the required of this RunStatusInputsInner. # noqa: E501 + + A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. # noqa: E501 + + :return: The required of this RunStatusInputsInner. # noqa: E501 + :rtype: bool + """ + return self._required + + @required.setter + def required(self, required): + """Sets the required of this RunStatusInputsInner. + + A field to indicate if this input is required. This input needs to be set explicitly even when a default value is provided. # noqa: E501 + + :param required: The required of this RunStatusInputsInner. # noqa: E501 + :type required: bool + """ + + self._required = required + + @property + def spec(self): + """Gets the spec of this RunStatusInputsInner. # noqa: E501 + + An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. # noqa: E501 + + :return: The spec of this RunStatusInputsInner. # noqa: E501 + :rtype: object + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this RunStatusInputsInner. + + An optional JSON Schema specification to validate the input value. You can use validate_spec method to validate a value against the spec. # noqa: E501 + + :param spec: The spec of this RunStatusInputsInner. # noqa: E501 + :type spec: object + """ + + self._spec = spec + + @property + def type(self): + """Gets the type of this RunStatusInputsInner. # noqa: E501 + + + :return: The type of this RunStatusInputsInner. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this RunStatusInputsInner. + + + :param type: The type of this RunStatusInputsInner. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^StepJSONObjectInput$', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^StepJSONObjectInput$/`") # noqa: E501 + + self._type = type + + @property + def value(self): + """Gets the value of this RunStatusInputsInner. # noqa: E501 + + + :return: The value of this RunStatusInputsInner. # noqa: E501 + :rtype: object + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this RunStatusInputsInner. + + + :param value: The value of this RunStatusInputsInner. # noqa: E501 + :type value: object + """ + if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 + raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 + + self._value = value + + @property + def path(self): + """Gets the path of this RunStatusInputsInner. # noqa: E501 + + Path to the target location that the input will be copied to. This path is relative to the working directory where the command is executed. # noqa: E501 + + :return: The path of this RunStatusInputsInner. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this RunStatusInputsInner. + + Path to the target location that the input will be copied to. This path is relative to the working directory where the command is executed. # noqa: E501 + + :param path: The path of this RunStatusInputsInner. # noqa: E501 + :type path: str + """ + + self._path = path + + @property + def source(self): + """Gets the source of this RunStatusInputsInner. # noqa: E501 + + + :return: The source of this RunStatusInputsInner. # noqa: E501 + :rtype: Source + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this RunStatusInputsInner. + + + :param source: The source of this RunStatusInputsInner. # noqa: E501 + :type source: Source + """ + if self.local_vars_configuration.client_side_validation and source is None: # noqa: E501 + raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 + + self._source = source + + @property + def extensions(self): + """Gets the extensions of this RunStatusInputsInner. # noqa: E501 + + Optional list of extensions for file. The check for extension is case-insensitive. # noqa: E501 + + :return: The extensions of this RunStatusInputsInner. # noqa: E501 + :rtype: List[str] + """ + return self._extensions + + @extensions.setter + def extensions(self, extensions): + """Sets the extensions of this RunStatusInputsInner. + + Optional list of extensions for file. The check for extension is case-insensitive. # noqa: E501 + + :param extensions: The extensions of this RunStatusInputsInner. # noqa: E501 + :type extensions: List[str] + """ + + self._extensions = extensions + + @property + def items_type(self): + """Gets the items_type of this RunStatusInputsInner. # noqa: E501 + + Type of items in an array. All the items in an array must be from the same type. # noqa: E501 + + :return: The items_type of this RunStatusInputsInner. # noqa: E501 + :rtype: ItemType + """ + return self._items_type + + @items_type.setter + def items_type(self, items_type): + """Sets the items_type of this RunStatusInputsInner. + + Type of items in an array. All the items in an array must be from the same type. # noqa: E501 + + :param items_type: The items_type of this RunStatusInputsInner. # noqa: E501 + :type items_type: ItemType + """ + + self._items_type = items_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RunStatusInputsInner): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RunStatusInputsInner): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/run_status_outputs_inner.py b/pollination_sdk/models/run_status_outputs_inner.py new file mode 100644 index 000000000..14b359e9b --- /dev/null +++ b/pollination_sdk/models/run_status_outputs_inner.py @@ -0,0 +1,348 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class RunStatusOutputsInner(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'name': 'str' + 'path': 'str' + 'required': 'bool' + 'type': 'str' + 'value': 'object' + 'source': 'Source' + 'items_type': 'ItemType' + } + + attribute_map = { + 'annotations': 'annotations' + 'description': 'description' + 'name': 'name' + 'path': 'path' + 'required': 'required' + 'type': 'type' + 'value': 'value' + 'source': 'source' + 'items_type': 'items_type' + } + + def __init__(self, annotations=None, description=None, name=None, path=None, required=True, type='StepJSONObjectOutput', value=None, source=None, items_type=None, local_vars_configuration=None): # noqa: E501 + """RunStatusOutputsInner - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._annotations = None + self._description = None + self._name = None + self._path = None + self._required = None + self._type = None + self._value = None + self._source = None + self._items_type = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + if description is not None: + self.description = description + self.name = name + self.path = path + if required is not None: + self.required = required + if type is not None: + self.type = type + self.value = value + self.source = source + if items_type is not None: + self.items_type = items_type + + @property + def annotations(self): + """Gets the annotations of this RunStatusOutputsInner. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this RunStatusOutputsInner. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this RunStatusOutputsInner. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this RunStatusOutputsInner. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def description(self): + """Gets the description of this RunStatusOutputsInner. # noqa: E501 + + Optional description for output. # noqa: E501 + + :return: The description of this RunStatusOutputsInner. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this RunStatusOutputsInner. + + Optional description for output. # noqa: E501 + + :param description: The description of this RunStatusOutputsInner. # noqa: E501 + :type description: str + """ + + self._description = description + + @property + def name(self): + """Gets the name of this RunStatusOutputsInner. # noqa: E501 + + Output name. # noqa: E501 + + :return: The name of this RunStatusOutputsInner. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this RunStatusOutputsInner. + + Output name. # noqa: E501 + + :param name: The name of this RunStatusOutputsInner. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def path(self): + """Gets the path of this RunStatusOutputsInner. # noqa: E501 + + Path to the output file relative to where the function command is executed. # noqa: E501 + + :return: The path of this RunStatusOutputsInner. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this RunStatusOutputsInner. + + Path to the output file relative to where the function command is executed. # noqa: E501 + + :param path: The path of this RunStatusOutputsInner. # noqa: E501 + :type path: str + """ + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 + + self._path = path + + @property + def required(self): + """Gets the required of this RunStatusOutputsInner. # noqa: E501 + + A boolean to indicate if an artifact output is required. A False value makes the artifact optional. # noqa: E501 + + :return: The required of this RunStatusOutputsInner. # noqa: E501 + :rtype: bool + """ + return self._required + + @required.setter + def required(self, required): + """Sets the required of this RunStatusOutputsInner. + + A boolean to indicate if an artifact output is required. A False value makes the artifact optional. # noqa: E501 + + :param required: The required of this RunStatusOutputsInner. # noqa: E501 + :type required: bool + """ + + self._required = required + + @property + def type(self): + """Gets the type of this RunStatusOutputsInner. # noqa: E501 + + + :return: The type of this RunStatusOutputsInner. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this RunStatusOutputsInner. + + + :param type: The type of this RunStatusOutputsInner. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^StepJSONObjectOutput$', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^StepJSONObjectOutput$/`") # noqa: E501 + + self._type = type + + @property + def value(self): + """Gets the value of this RunStatusOutputsInner. # noqa: E501 + + + :return: The value of this RunStatusOutputsInner. # noqa: E501 + :rtype: object + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this RunStatusOutputsInner. + + + :param value: The value of this RunStatusOutputsInner. # noqa: E501 + :type value: object + """ + if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 + raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 + + self._value = value + + @property + def source(self): + """Gets the source of this RunStatusOutputsInner. # noqa: E501 + + + :return: The source of this RunStatusOutputsInner. # noqa: E501 + :rtype: Source + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this RunStatusOutputsInner. + + + :param source: The source of this RunStatusOutputsInner. # noqa: E501 + :type source: Source + """ + if self.local_vars_configuration.client_side_validation and source is None: # noqa: E501 + raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 + + self._source = source + + @property + def items_type(self): + """Gets the items_type of this RunStatusOutputsInner. # noqa: E501 + + Type of items in this array. All the items in an array must be from the same type. # noqa: E501 + + :return: The items_type of this RunStatusOutputsInner. # noqa: E501 + :rtype: ItemType + """ + return self._items_type + + @items_type.setter + def items_type(self, items_type): + """Sets the items_type of this RunStatusOutputsInner. + + Type of items in this array. All the items in an array must be from the same type. # noqa: E501 + + :param items_type: The items_type of this RunStatusOutputsInner. # noqa: E501 + :type items_type: ItemType + """ + + self._items_type = items_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RunStatusOutputsInner): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, RunStatusOutputsInner): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/s3.py b/pollination_sdk/models/s3.py index 7f394e246..33021ddfa 100644 --- a/pollination_sdk/models/s3.py +++ b/pollination_sdk/models/s3.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class S3(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'bucket': 'str', - 'credentials_path': 'str', - 'endpoint': 'str', - 'key': 'str', + 'annotations': 'Dict[str, str]' + 'bucket': 'str' + 'credentials_path': 'str' + 'endpoint': 'str' + 'key': 'str' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'bucket': 'bucket', - 'credentials_path': 'credentials_path', - 'endpoint': 'endpoint', - 'key': 'key', + 'annotations': 'annotations' + 'bucket': 'bucket' + 'credentials_path': 'credentials_path' + 'endpoint': 'endpoint' + 'key': 'key' 'type': 'type' } @@ -82,7 +82,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this S3. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -93,7 +93,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this S3. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/s3_upload_request.py b/pollination_sdk/models/s3_upload_request.py index a2c8c09f2..2ba97b141 100644 --- a/pollination_sdk/models/s3_upload_request.py +++ b/pollination_sdk/models/s3_upload_request.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class S3UploadRequest(object): and the value is json key in definition. """ openapi_types = { - 'fields': 'dict(str, str)', + 'fields': 'Dict[str, str]' 'url': 'str' } attribute_map = { - 'fields': 'fields', + 'fields': 'fields' 'url': 'url' } @@ -62,7 +62,7 @@ def fields(self): :return: The fields of this S3UploadRequest. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._fields @@ -72,7 +72,7 @@ def fields(self, fields): :param fields: The fields of this S3UploadRequest. # noqa: E501 - :type fields: dict(str, str) + :type fields: Dict[str, str] """ if self.local_vars_configuration.client_side_validation and fields is None: # noqa: E501 raise ValueError("Invalid value for `fields`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/scripting_languages.py b/pollination_sdk/models/scripting_languages.py index 7a73e83d2..5ac01fed1 100644 --- a/pollination_sdk/models/scripting_languages.py +++ b/pollination_sdk/models/scripting_languages.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,7 +29,7 @@ class ScriptingLanguages(object): """ allowed enum values """ - PYTHON = "python" + PYTHON = 'python' allowable_values = [PYTHON] # noqa: E501 diff --git a/pollination_sdk/models/sdk_enum.py b/pollination_sdk/models/sdk_enum.py index d4b6f6cc7..3b1f17461 100644 --- a/pollination_sdk/models/sdk_enum.py +++ b/pollination_sdk/models/sdk_enum.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,9 +29,9 @@ class SDKEnum(object): """ allowed enum values """ - STREAMLIT = "streamlit" - DASH = "dash" - REACT = "react" + STREAMLIT = 'streamlit' + DASH = 'dash' + REACT = 'react' allowable_values = [STREAMLIT, DASH, REACT] # noqa: E501 diff --git a/pollination_sdk/models/sort_enum.py b/pollination_sdk/models/sort_enum.py index 3b3cb78a6..1d96f188c 100644 --- a/pollination_sdk/models/sort_enum.py +++ b/pollination_sdk/models/sort_enum.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,8 +29,8 @@ class SortEnum(object): """ allowed enum values """ - ASCENDING = "ascending" - DESCENDING = "descending" + ASCENDING = 'ascending' + DESCENDING = 'descending' allowable_values = [ASCENDING, DESCENDING] # noqa: E501 diff --git a/pollination_sdk/models/source.py b/pollination_sdk/models/source.py new file mode 100644 index 000000000..26d3938d5 --- /dev/null +++ b/pollination_sdk/models/source.py @@ -0,0 +1,324 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class Source(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'annotations': 'Dict[str, str]' + 'type': 'str' + 'url': 'str' + 'bucket': 'str' + 'credentials_path': 'str' + 'endpoint': 'str' + 'key': 'str' + 'path': 'str' + } + + attribute_map = { + 'annotations': 'annotations' + 'type': 'type' + 'url': 'url' + 'bucket': 'bucket' + 'credentials_path': 'credentials_path' + 'endpoint': 'endpoint' + 'key': 'key' + 'path': 'path' + } + + def __init__(self, annotations=None, type='ProjectFolder', url=None, bucket=None, credentials_path=None, endpoint=None, key=None, path=None, local_vars_configuration=None): # noqa: E501 + """Source - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._annotations = None + self._type = None + self._url = None + self._bucket = None + self._credentials_path = None + self._endpoint = None + self._key = None + self._path = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + if type is not None: + self.type = type + self.url = url + self.bucket = bucket + if credentials_path is not None: + self.credentials_path = credentials_path + self.endpoint = endpoint + self.key = key + if path is not None: + self.path = path + + @property + def annotations(self): + """Gets the annotations of this Source. # noqa: E501 + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :return: The annotations of this Source. # noqa: E501 + :rtype: Dict[str, str] + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this Source. + + An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 + + :param annotations: The annotations of this Source. # noqa: E501 + :type annotations: Dict[str, str] + """ + + self._annotations = annotations + + @property + def type(self): + """Gets the type of this Source. # noqa: E501 + + + :return: The type of this Source. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this Source. + + + :param type: The type of this Source. # noqa: E501 + :type type: str + """ + if (self.local_vars_configuration.client_side_validation and + type is not None and not re.search(r'^ProjectFolder$', type)): # noqa: E501 + raise ValueError(r"Invalid value for `type`, must be a follow pattern or equal to `/^ProjectFolder$/`") # noqa: E501 + + self._type = type + + @property + def url(self): + """Gets the url of this Source. # noqa: E501 + + For a HTTP endpoint this can be http://climate.onebuilding.org. # noqa: E501 + + :return: The url of this Source. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this Source. + + For a HTTP endpoint this can be http://climate.onebuilding.org. # noqa: E501 + + :param url: The url of this Source. # noqa: E501 + :type url: str + """ + if self.local_vars_configuration.client_side_validation and url is None: # noqa: E501 + raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501 + + self._url = url + + @property + def bucket(self): + """Gets the bucket of this Source. # noqa: E501 + + The name of the S3 bucket on the host server. # noqa: E501 + + :return: The bucket of this Source. # noqa: E501 + :rtype: str + """ + return self._bucket + + @bucket.setter + def bucket(self, bucket): + """Sets the bucket of this Source. + + The name of the S3 bucket on the host server. # noqa: E501 + + :param bucket: The bucket of this Source. # noqa: E501 + :type bucket: str + """ + if self.local_vars_configuration.client_side_validation and bucket is None: # noqa: E501 + raise ValueError("Invalid value for `bucket`, must not be `None`") # noqa: E501 + + self._bucket = bucket + + @property + def credentials_path(self): + """Gets the credentials_path of this Source. # noqa: E501 + + Path to the file holding the AccessKey and SecretAccessKey to authenticate to the bucket. Assumes public bucket access if none are specified. # noqa: E501 + + :return: The credentials_path of this Source. # noqa: E501 + :rtype: str + """ + return self._credentials_path + + @credentials_path.setter + def credentials_path(self, credentials_path): + """Sets the credentials_path of this Source. + + Path to the file holding the AccessKey and SecretAccessKey to authenticate to the bucket. Assumes public bucket access if none are specified. # noqa: E501 + + :param credentials_path: The credentials_path of this Source. # noqa: E501 + :type credentials_path: str + """ + + self._credentials_path = credentials_path + + @property + def endpoint(self): + """Gets the endpoint of this Source. # noqa: E501 + + The HTTP endpoint to reach the S3 bucket. # noqa: E501 + + :return: The endpoint of this Source. # noqa: E501 + :rtype: str + """ + return self._endpoint + + @endpoint.setter + def endpoint(self, endpoint): + """Sets the endpoint of this Source. + + The HTTP endpoint to reach the S3 bucket. # noqa: E501 + + :param endpoint: The endpoint of this Source. # noqa: E501 + :type endpoint: str + """ + if self.local_vars_configuration.client_side_validation and endpoint is None: # noqa: E501 + raise ValueError("Invalid value for `endpoint`, must not be `None`") # noqa: E501 + + self._endpoint = endpoint + + @property + def key(self): + """Gets the key of this Source. # noqa: E501 + + The path inside the bucket to source artifacts from. # noqa: E501 + + :return: The key of this Source. # noqa: E501 + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this Source. + + The path inside the bucket to source artifacts from. # noqa: E501 + + :param key: The key of this Source. # noqa: E501 + :type key: str + """ + if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501 + raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 + + self._key = key + + @property + def path(self): + """Gets the path of this Source. # noqa: E501 + + The path to a folder where files and folders can be sourced. For a local filesystem this can be \"C:\\Users\\me\\jobs\\test\". # noqa: E501 + + :return: The path of this Source. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this Source. + + The path to a folder where files and folders can be sourced. For a local filesystem this can be \"C:\\Users\\me\\jobs\\test\". # noqa: E501 + + :param path: The path of this Source. # noqa: E501 + :type path: str + """ + + self._path = path + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Source): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, Source): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/status_type.py b/pollination_sdk/models/status_type.py index 8bcd3ecdb..81a9f6c23 100644 --- a/pollination_sdk/models/status_type.py +++ b/pollination_sdk/models/status_type.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,11 +29,11 @@ class StatusType(object): """ allowed enum values """ - FUNCTION = "Function" - DAG = "DAG" - LOOP = "Loop" - CONTAINER = "Container" - UNKNOWN = "Unknown" + FUNCTION = 'Function' + DAG = 'DAG' + LOOP = 'Loop' + CONTAINER = 'Container' + UNKNOWN = 'Unknown' allowable_values = [FUNCTION, DAG, LOOP, CONTAINER, UNKNOWN] # noqa: E501 diff --git a/pollination_sdk/models/step_array_input.py b/pollination_sdk/models/step_array_input.py index 65b76acdd..eb4a9197c 100644 --- a/pollination_sdk/models/step_array_input.py +++ b/pollination_sdk/models/step_array_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,28 +34,28 @@ class StepArrayInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'list[object]', - 'description': 'str', - 'items_type': 'ItemType', - 'name': 'str', - 'required': 'bool', - 'spec': 'object', - 'type': 'str', - 'value': 'list[object]' + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'List[object]' + 'description': 'str' + 'items_type': 'ItemType' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' + 'type': 'str' + 'value': 'List[object]' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'items_type': 'items_type', - 'name': 'name', - 'required': 'required', - 'spec': 'spec', - 'type': 'type', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'items_type': 'items_type' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' + 'type': 'type' 'value': 'value' } @@ -103,7 +103,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this StepArrayInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -114,7 +114,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this StepArrayInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -126,7 +126,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this StepArrayInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -137,7 +137,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this StepArrayInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -149,7 +149,7 @@ def default(self): Default value to use for an input if a value was not supplied. # noqa: E501 :return: The default of this StepArrayInput. # noqa: E501 - :rtype: list[object] + :rtype: List[object] """ return self._default @@ -160,7 +160,7 @@ def default(self, default): Default value to use for an input if a value was not supplied. # noqa: E501 :param default: The default of this StepArrayInput. # noqa: E501 - :type default: list[object] + :type default: List[object] """ self._default = default @@ -312,7 +312,7 @@ def value(self): :return: The value of this StepArrayInput. # noqa: E501 - :rtype: list[object] + :rtype: List[object] """ return self._value @@ -322,7 +322,7 @@ def value(self, value): :param value: The value of this StepArrayInput. # noqa: E501 - :type value: list[object] + :type value: List[object] """ if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/step_array_output.py b/pollination_sdk/models/step_array_output.py index 065fdaf5d..92f851ba7 100644 --- a/pollination_sdk/models/step_array_output.py +++ b/pollination_sdk/models/step_array_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,24 +34,24 @@ class StepArrayOutput(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'items_type': 'ItemType', - 'name': 'str', - 'path': 'str', - 'required': 'bool', - 'type': 'str', - 'value': 'list[object]' + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'items_type': 'ItemType' + 'name': 'str' + 'path': 'str' + 'required': 'bool' + 'type': 'str' + 'value': 'List[object]' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'items_type': 'items_type', - 'name': 'name', - 'path': 'path', - 'required': 'required', - 'type': 'type', + 'annotations': 'annotations' + 'description': 'description' + 'items_type': 'items_type' + 'name': 'name' + 'path': 'path' + 'required': 'required' + 'type': 'type' 'value': 'value' } @@ -92,7 +92,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this StepArrayOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -103,7 +103,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this StepArrayOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -257,7 +257,7 @@ def value(self): :return: The value of this StepArrayOutput. # noqa: E501 - :rtype: list[object] + :rtype: List[object] """ return self._value @@ -267,7 +267,7 @@ def value(self, value): :param value: The value of this StepArrayOutput. # noqa: E501 - :type value: list[object] + :type value: List[object] """ if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/step_boolean_input.py b/pollination_sdk/models/step_boolean_input.py index 419b14222..babdb7654 100644 --- a/pollination_sdk/models/step_boolean_input.py +++ b/pollination_sdk/models/step_boolean_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class StepBooleanInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'bool', - 'description': 'str', - 'name': 'str', - 'required': 'bool', - 'spec': 'object', - 'type': 'str', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'bool' + 'description': 'str' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' + 'type': 'str' 'value': 'bool' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'name': 'name', - 'required': 'required', - 'spec': 'spec', - 'type': 'type', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' + 'type': 'type' 'value': 'value' } @@ -98,7 +98,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this StepBooleanInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -109,7 +109,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this StepBooleanInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -121,7 +121,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this StepBooleanInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -132,7 +132,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this StepBooleanInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/step_boolean_output.py b/pollination_sdk/models/step_boolean_output.py index c9b3cf9db..68eee9bcf 100644 --- a/pollination_sdk/models/step_boolean_output.py +++ b/pollination_sdk/models/step_boolean_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,22 +34,22 @@ class StepBooleanOutput(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'name': 'str', - 'path': 'str', - 'required': 'bool', - 'type': 'str', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'name': 'str' + 'path': 'str' + 'required': 'bool' + 'type': 'str' 'value': 'bool' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'name': 'name', - 'path': 'path', - 'required': 'required', - 'type': 'type', + 'annotations': 'annotations' + 'description': 'description' + 'name': 'name' + 'path': 'path' + 'required': 'required' + 'type': 'type' 'value': 'value' } @@ -87,7 +87,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this StepBooleanOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -98,7 +98,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this StepBooleanOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/step_file_input.py b/pollination_sdk/models/step_file_input.py index ad2183020..aaf8393e2 100644 --- a/pollination_sdk/models/step_file_input.py +++ b/pollination_sdk/models/step_file_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,30 +34,30 @@ class StepFileInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'AnyOfHTTPS3ProjectFolder', - 'description': 'str', - 'extensions': 'list[str]', - 'name': 'str', - 'path': 'str', - 'required': 'bool', - 'source': 'AnyOfHTTPS3ProjectFolder', - 'spec': 'object', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'Default' + 'description': 'str' + 'extensions': 'List[str]' + 'name': 'str' + 'path': 'str' + 'required': 'bool' + 'source': 'Source' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'extensions': 'extensions', - 'name': 'name', - 'path': 'path', - 'required': 'required', - 'source': 'source', - 'spec': 'spec', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'extensions': 'extensions' + 'name': 'name' + 'path': 'path' + 'required': 'required' + 'source': 'source' + 'spec': 'spec' 'type': 'type' } @@ -108,7 +108,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this StepFileInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -119,7 +119,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this StepFileInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -131,7 +131,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this StepFileInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -142,7 +142,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this StepFileInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -151,10 +151,9 @@ def annotations(self, annotations): def default(self): """Gets the default of this StepFileInput. # noqa: E501 - The default source for file if the value is not provided. # noqa: E501 :return: The default of this StepFileInput. # noqa: E501 - :rtype: AnyOfHTTPS3ProjectFolder + :rtype: Default """ return self._default @@ -162,10 +161,9 @@ def default(self): def default(self, default): """Sets the default of this StepFileInput. - The default source for file if the value is not provided. # noqa: E501 :param default: The default of this StepFileInput. # noqa: E501 - :type default: AnyOfHTTPS3ProjectFolder + :type default: Default """ self._default = default @@ -200,7 +198,7 @@ def extensions(self): Optional list of extensions for file. The check for extension is case-insensitive. # noqa: E501 :return: The extensions of this StepFileInput. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._extensions @@ -211,7 +209,7 @@ def extensions(self, extensions): Optional list of extensions for file. The check for extension is case-insensitive. # noqa: E501 :param extensions: The extensions of this StepFileInput. # noqa: E501 - :type extensions: list[str] + :type extensions: List[str] """ self._extensions = extensions @@ -291,10 +289,9 @@ def required(self, required): def source(self): """Gets the source of this StepFileInput. # noqa: E501 - The path to source the file from. # noqa: E501 :return: The source of this StepFileInput. # noqa: E501 - :rtype: AnyOfHTTPS3ProjectFolder + :rtype: Source """ return self._source @@ -302,10 +299,9 @@ def source(self): def source(self, source): """Sets the source of this StepFileInput. - The path to source the file from. # noqa: E501 :param source: The source of this StepFileInput. # noqa: E501 - :type source: AnyOfHTTPS3ProjectFolder + :type source: Source """ if self.local_vars_configuration.client_side_validation and source is None: # noqa: E501 raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/step_file_output.py b/pollination_sdk/models/step_file_output.py index 43ce3f7dd..b6b7e8fe8 100644 --- a/pollination_sdk/models/step_file_output.py +++ b/pollination_sdk/models/step_file_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,22 +34,22 @@ class StepFileOutput(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'name': 'str', - 'path': 'str', - 'required': 'bool', - 'source': 'AnyOfHTTPS3ProjectFolder', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'name': 'str' + 'path': 'str' + 'required': 'bool' + 'source': 'Source' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'name': 'name', - 'path': 'path', - 'required': 'required', - 'source': 'source', + 'annotations': 'annotations' + 'description': 'description' + 'name': 'name' + 'path': 'path' + 'required': 'required' + 'source': 'source' 'type': 'type' } @@ -87,7 +87,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this StepFileOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -98,7 +98,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this StepFileOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -203,10 +203,9 @@ def required(self, required): def source(self): """Gets the source of this StepFileOutput. # noqa: E501 - The path to source the file from. # noqa: E501 :return: The source of this StepFileOutput. # noqa: E501 - :rtype: AnyOfHTTPS3ProjectFolder + :rtype: Source """ return self._source @@ -214,10 +213,9 @@ def source(self): def source(self, source): """Sets the source of this StepFileOutput. - The path to source the file from. # noqa: E501 :param source: The source of this StepFileOutput. # noqa: E501 - :type source: AnyOfHTTPS3ProjectFolder + :type source: Source """ if self.local_vars_configuration.client_side_validation and source is None: # noqa: E501 raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/step_folder_input.py b/pollination_sdk/models/step_folder_input.py index 35b98e2b0..539bcfa37 100644 --- a/pollination_sdk/models/step_folder_input.py +++ b/pollination_sdk/models/step_folder_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,28 +34,28 @@ class StepFolderInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'AnyOfHTTPS3ProjectFolder', - 'description': 'str', - 'name': 'str', - 'path': 'str', - 'required': 'bool', - 'source': 'AnyOfHTTPS3ProjectFolder', - 'spec': 'object', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'Default' + 'description': 'str' + 'name': 'str' + 'path': 'str' + 'required': 'bool' + 'source': 'Source' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'name': 'name', - 'path': 'path', - 'required': 'required', - 'source': 'source', - 'spec': 'spec', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'path': 'path' + 'required': 'required' + 'source': 'source' + 'spec': 'spec' 'type': 'type' } @@ -103,7 +103,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this StepFolderInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -114,7 +114,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this StepFolderInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -126,7 +126,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this StepFolderInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -137,7 +137,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this StepFolderInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -146,10 +146,9 @@ def annotations(self, annotations): def default(self): """Gets the default of this StepFolderInput. # noqa: E501 - The default source for file if the value is not provided. # noqa: E501 :return: The default of this StepFolderInput. # noqa: E501 - :rtype: AnyOfHTTPS3ProjectFolder + :rtype: Default """ return self._default @@ -157,10 +156,9 @@ def default(self): def default(self, default): """Sets the default of this StepFolderInput. - The default source for file if the value is not provided. # noqa: E501 :param default: The default of this StepFolderInput. # noqa: E501 - :type default: AnyOfHTTPS3ProjectFolder + :type default: Default """ self._default = default @@ -263,10 +261,9 @@ def required(self, required): def source(self): """Gets the source of this StepFolderInput. # noqa: E501 - The path to source the file from. # noqa: E501 :return: The source of this StepFolderInput. # noqa: E501 - :rtype: AnyOfHTTPS3ProjectFolder + :rtype: Source """ return self._source @@ -274,10 +271,9 @@ def source(self): def source(self, source): """Sets the source of this StepFolderInput. - The path to source the file from. # noqa: E501 :param source: The source of this StepFolderInput. # noqa: E501 - :type source: AnyOfHTTPS3ProjectFolder + :type source: Source """ if self.local_vars_configuration.client_side_validation and source is None: # noqa: E501 raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/step_folder_output.py b/pollination_sdk/models/step_folder_output.py index 6d00ace13..2647e2699 100644 --- a/pollination_sdk/models/step_folder_output.py +++ b/pollination_sdk/models/step_folder_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,22 +34,22 @@ class StepFolderOutput(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'name': 'str', - 'path': 'str', - 'required': 'bool', - 'source': 'AnyOfHTTPS3ProjectFolder', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'name': 'str' + 'path': 'str' + 'required': 'bool' + 'source': 'Source' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'name': 'name', - 'path': 'path', - 'required': 'required', - 'source': 'source', + 'annotations': 'annotations' + 'description': 'description' + 'name': 'name' + 'path': 'path' + 'required': 'required' + 'source': 'source' 'type': 'type' } @@ -87,7 +87,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this StepFolderOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -98,7 +98,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this StepFolderOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -203,10 +203,9 @@ def required(self, required): def source(self): """Gets the source of this StepFolderOutput. # noqa: E501 - The path to source the file from. # noqa: E501 :return: The source of this StepFolderOutput. # noqa: E501 - :rtype: AnyOfHTTPS3ProjectFolder + :rtype: Source """ return self._source @@ -214,10 +213,9 @@ def source(self): def source(self, source): """Sets the source of this StepFolderOutput. - The path to source the file from. # noqa: E501 :param source: The source of this StepFolderOutput. # noqa: E501 - :type source: AnyOfHTTPS3ProjectFolder + :type source: Source """ if self.local_vars_configuration.client_side_validation and source is None: # noqa: E501 raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/step_integer_input.py b/pollination_sdk/models/step_integer_input.py index 11398c619..04fa5bde3 100644 --- a/pollination_sdk/models/step_integer_input.py +++ b/pollination_sdk/models/step_integer_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class StepIntegerInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'int', - 'description': 'str', - 'name': 'str', - 'required': 'bool', - 'spec': 'object', - 'type': 'str', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'int' + 'description': 'str' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' + 'type': 'str' 'value': 'int' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'name': 'name', - 'required': 'required', - 'spec': 'spec', - 'type': 'type', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' + 'type': 'type' 'value': 'value' } @@ -98,7 +98,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this StepIntegerInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -109,7 +109,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this StepIntegerInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -121,7 +121,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this StepIntegerInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -132,7 +132,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this StepIntegerInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/step_integer_output.py b/pollination_sdk/models/step_integer_output.py index 4bf28131f..c25480a93 100644 --- a/pollination_sdk/models/step_integer_output.py +++ b/pollination_sdk/models/step_integer_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,22 +34,22 @@ class StepIntegerOutput(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'name': 'str', - 'path': 'str', - 'required': 'bool', - 'type': 'str', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'name': 'str' + 'path': 'str' + 'required': 'bool' + 'type': 'str' 'value': 'int' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'name': 'name', - 'path': 'path', - 'required': 'required', - 'type': 'type', + 'annotations': 'annotations' + 'description': 'description' + 'name': 'name' + 'path': 'path' + 'required': 'required' + 'type': 'type' 'value': 'value' } @@ -87,7 +87,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this StepIntegerOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -98,7 +98,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this StepIntegerOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/step_json_object_input.py b/pollination_sdk/models/step_json_object_input.py index 18584cdc3..a1894d8e6 100644 --- a/pollination_sdk/models/step_json_object_input.py +++ b/pollination_sdk/models/step_json_object_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class StepJSONObjectInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'object', - 'description': 'str', - 'name': 'str', - 'required': 'bool', - 'spec': 'object', - 'type': 'str', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'object' + 'description': 'str' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' + 'type': 'str' 'value': 'object' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'name': 'name', - 'required': 'required', - 'spec': 'spec', - 'type': 'type', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' + 'type': 'type' 'value': 'value' } @@ -98,7 +98,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this StepJSONObjectInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -109,7 +109,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this StepJSONObjectInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -121,7 +121,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this StepJSONObjectInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -132,7 +132,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this StepJSONObjectInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/step_json_object_output.py b/pollination_sdk/models/step_json_object_output.py index d6d771b53..9e19ca940 100644 --- a/pollination_sdk/models/step_json_object_output.py +++ b/pollination_sdk/models/step_json_object_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,22 +34,22 @@ class StepJSONObjectOutput(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'name': 'str', - 'path': 'str', - 'required': 'bool', - 'type': 'str', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'name': 'str' + 'path': 'str' + 'required': 'bool' + 'type': 'str' 'value': 'object' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'name': 'name', - 'path': 'path', - 'required': 'required', - 'type': 'type', + 'annotations': 'annotations' + 'description': 'description' + 'name': 'name' + 'path': 'path' + 'required': 'required' + 'type': 'type' 'value': 'value' } @@ -87,7 +87,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this StepJSONObjectOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -98,7 +98,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this StepJSONObjectOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/step_list.py b/pollination_sdk/models/step_list.py index 3e05bf2fc..4f6307ed5 100644 --- a/pollination_sdk/models/step_list.py +++ b/pollination_sdk/models/step_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class StepList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[StepStatus]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[StepStatus]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this StepList. # noqa: E501 - :rtype: list[StepStatus] + :rtype: List[StepStatus] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this StepList. # noqa: E501 - :type resources: list[StepStatus] + :type resources: List[StepStatus] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/step_number_input.py b/pollination_sdk/models/step_number_input.py index 5fa2793d7..d25fe0425 100644 --- a/pollination_sdk/models/step_number_input.py +++ b/pollination_sdk/models/step_number_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class StepNumberInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'float', - 'description': 'str', - 'name': 'str', - 'required': 'bool', - 'spec': 'object', - 'type': 'str', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'float' + 'description': 'str' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' + 'type': 'str' 'value': 'float' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'name': 'name', - 'required': 'required', - 'spec': 'spec', - 'type': 'type', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' + 'type': 'type' 'value': 'value' } @@ -98,7 +98,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this StepNumberInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -109,7 +109,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this StepNumberInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -121,7 +121,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this StepNumberInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -132,7 +132,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this StepNumberInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/step_number_output.py b/pollination_sdk/models/step_number_output.py index 309a80711..24e331397 100644 --- a/pollination_sdk/models/step_number_output.py +++ b/pollination_sdk/models/step_number_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,22 +34,22 @@ class StepNumberOutput(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'name': 'str', - 'path': 'str', - 'required': 'bool', - 'type': 'str', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'name': 'str' + 'path': 'str' + 'required': 'bool' + 'type': 'str' 'value': 'float' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'name': 'name', - 'path': 'path', - 'required': 'required', - 'type': 'type', + 'annotations': 'annotations' + 'description': 'description' + 'name': 'name' + 'path': 'path' + 'required': 'required' + 'type': 'type' 'value': 'value' } @@ -87,7 +87,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this StepNumberOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -98,7 +98,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this StepNumberOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/step_path_input.py b/pollination_sdk/models/step_path_input.py index e3443b550..1b2440f57 100644 --- a/pollination_sdk/models/step_path_input.py +++ b/pollination_sdk/models/step_path_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,30 +34,30 @@ class StepPathInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'AnyOfHTTPS3ProjectFolder', - 'description': 'str', - 'extensions': 'list[str]', - 'name': 'str', - 'path': 'str', - 'required': 'bool', - 'source': 'AnyOfHTTPS3ProjectFolder', - 'spec': 'object', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'Default' + 'description': 'str' + 'extensions': 'List[str]' + 'name': 'str' + 'path': 'str' + 'required': 'bool' + 'source': 'Source' + 'spec': 'object' 'type': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'extensions': 'extensions', - 'name': 'name', - 'path': 'path', - 'required': 'required', - 'source': 'source', - 'spec': 'spec', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'extensions': 'extensions' + 'name': 'name' + 'path': 'path' + 'required': 'required' + 'source': 'source' + 'spec': 'spec' 'type': 'type' } @@ -108,7 +108,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this StepPathInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -119,7 +119,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this StepPathInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -131,7 +131,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this StepPathInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -142,7 +142,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this StepPathInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -151,10 +151,9 @@ def annotations(self, annotations): def default(self): """Gets the default of this StepPathInput. # noqa: E501 - The default source for file if the value is not provided. # noqa: E501 :return: The default of this StepPathInput. # noqa: E501 - :rtype: AnyOfHTTPS3ProjectFolder + :rtype: Default """ return self._default @@ -162,10 +161,9 @@ def default(self): def default(self, default): """Sets the default of this StepPathInput. - The default source for file if the value is not provided. # noqa: E501 :param default: The default of this StepPathInput. # noqa: E501 - :type default: AnyOfHTTPS3ProjectFolder + :type default: Default """ self._default = default @@ -200,7 +198,7 @@ def extensions(self): Optional list of extensions for file. The check for extension is case-insensitive. # noqa: E501 :return: The extensions of this StepPathInput. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._extensions @@ -211,7 +209,7 @@ def extensions(self, extensions): Optional list of extensions for file. The check for extension is case-insensitive. # noqa: E501 :param extensions: The extensions of this StepPathInput. # noqa: E501 - :type extensions: list[str] + :type extensions: List[str] """ self._extensions = extensions @@ -291,10 +289,9 @@ def required(self, required): def source(self): """Gets the source of this StepPathInput. # noqa: E501 - The path to source the file from. # noqa: E501 :return: The source of this StepPathInput. # noqa: E501 - :rtype: AnyOfHTTPS3ProjectFolder + :rtype: Source """ return self._source @@ -302,10 +299,9 @@ def source(self): def source(self, source): """Sets the source of this StepPathInput. - The path to source the file from. # noqa: E501 :param source: The source of this StepPathInput. # noqa: E501 - :type source: AnyOfHTTPS3ProjectFolder + :type source: Source """ if self.local_vars_configuration.client_side_validation and source is None: # noqa: E501 raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/step_path_output.py b/pollination_sdk/models/step_path_output.py index 612a92686..fafbb9c24 100644 --- a/pollination_sdk/models/step_path_output.py +++ b/pollination_sdk/models/step_path_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,22 +34,22 @@ class StepPathOutput(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'name': 'str', - 'path': 'str', - 'required': 'bool', - 'source': 'AnyOfHTTPS3ProjectFolder', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'name': 'str' + 'path': 'str' + 'required': 'bool' + 'source': 'Source' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'name': 'name', - 'path': 'path', - 'required': 'required', - 'source': 'source', + 'annotations': 'annotations' + 'description': 'description' + 'name': 'name' + 'path': 'path' + 'required': 'required' + 'source': 'source' 'type': 'type' } @@ -87,7 +87,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this StepPathOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -98,7 +98,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this StepPathOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -203,10 +203,9 @@ def required(self, required): def source(self): """Gets the source of this StepPathOutput. # noqa: E501 - The path to source the file from. # noqa: E501 :return: The source of this StepPathOutput. # noqa: E501 - :rtype: AnyOfHTTPS3ProjectFolder + :rtype: Source """ return self._source @@ -214,10 +213,9 @@ def source(self): def source(self, source): """Sets the source of this StepPathOutput. - The path to source the file from. # noqa: E501 :param source: The source of this StepPathOutput. # noqa: E501 - :type source: AnyOfHTTPS3ProjectFolder + :type source: Source """ if self.local_vars_configuration.client_side_validation and source is None: # noqa: E501 raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/step_status.py b/pollination_sdk/models/step_status.py index 0849285fa..424feda62 100644 --- a/pollination_sdk/models/step_status.py +++ b/pollination_sdk/models/step_status.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,42 +34,42 @@ class StepStatus(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'boundary_id': 'str', - 'children_ids': 'list[str]', - 'command': 'str', - 'finished_at': 'datetime', - 'id': 'str', - 'inputs': 'list[AnyOfStepStringInputStepIntegerInputStepNumberInputStepBooleanInputStepFolderInputStepFileInputStepPathInputStepArrayInputStepJSONObjectInput]', - 'message': 'str', - 'name': 'str', - 'outbound_steps': 'list[str]', - 'outputs': 'list[AnyOfStepStringOutputStepIntegerOutputStepNumberOutputStepBooleanOutputStepFolderOutputStepFileOutputStepPathOutputStepArrayOutputStepJSONObjectOutput]', - 'source': 'str', - 'started_at': 'datetime', - 'status': 'StepStatusEnum', - 'status_type': 'StatusType', - 'template_ref': 'str', + 'annotations': 'Dict[str, str]' + 'boundary_id': 'str' + 'children_ids': 'List[str]' + 'command': 'str' + 'finished_at': 'datetime' + 'id': 'str' + 'inputs': 'List[RunStatusInputsInner]' + 'message': 'str' + 'name': 'str' + 'outbound_steps': 'List[str]' + 'outputs': 'List[RunStatusOutputsInner]' + 'source': 'str' + 'started_at': 'datetime' + 'status': 'StepStatusEnum' + 'status_type': 'StatusType' + 'template_ref': 'str' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'boundary_id': 'boundary_id', - 'children_ids': 'children_ids', - 'command': 'command', - 'finished_at': 'finished_at', - 'id': 'id', - 'inputs': 'inputs', - 'message': 'message', - 'name': 'name', - 'outbound_steps': 'outbound_steps', - 'outputs': 'outputs', - 'source': 'source', - 'started_at': 'started_at', - 'status': 'status', - 'status_type': 'status_type', - 'template_ref': 'template_ref', + 'annotations': 'annotations' + 'boundary_id': 'boundary_id' + 'children_ids': 'children_ids' + 'command': 'command' + 'finished_at': 'finished_at' + 'id': 'id' + 'inputs': 'inputs' + 'message': 'message' + 'name': 'name' + 'outbound_steps': 'outbound_steps' + 'outputs': 'outputs' + 'source': 'source' + 'started_at': 'started_at' + 'status': 'status' + 'status_type': 'status_type' + 'template_ref': 'template_ref' 'type': 'type' } @@ -131,7 +131,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this StepStatus. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -142,7 +142,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this StepStatus. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -177,7 +177,7 @@ def children_ids(self): A list of child step IDs # noqa: E501 :return: The children_ids of this StepStatus. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._children_ids @@ -188,7 +188,7 @@ def children_ids(self, children_ids): A list of child step IDs # noqa: E501 :param children_ids: The children_ids of this StepStatus. # noqa: E501 - :type children_ids: list[str] + :type children_ids: List[str] """ if self.local_vars_configuration.client_side_validation and children_ids is None: # noqa: E501 raise ValueError("Invalid value for `children_ids`, must not be `None`") # noqa: E501 @@ -273,7 +273,7 @@ def inputs(self): The inputs used by this step. # noqa: E501 :return: The inputs of this StepStatus. # noqa: E501 - :rtype: list[AnyOfStepStringInputStepIntegerInputStepNumberInputStepBooleanInputStepFolderInputStepFileInputStepPathInputStepArrayInputStepJSONObjectInput] + :rtype: List[RunStatusInputsInner] """ return self._inputs @@ -284,7 +284,7 @@ def inputs(self, inputs): The inputs used by this step. # noqa: E501 :param inputs: The inputs of this StepStatus. # noqa: E501 - :type inputs: list[AnyOfStepStringInputStepIntegerInputStepNumberInputStepBooleanInputStepFolderInputStepFileInputStepPathInputStepArrayInputStepJSONObjectInput] + :type inputs: List[RunStatusInputsInner] """ if self.local_vars_configuration.client_side_validation and inputs is None: # noqa: E501 raise ValueError("Invalid value for `inputs`, must not be `None`") # noqa: E501 @@ -346,7 +346,7 @@ def outbound_steps(self): A list of the last step to ran in the context of this step. In the case of a DAG or a job this will be the last step that has been executed. It will remain empty for functions. # noqa: E501 :return: The outbound_steps of this StepStatus. # noqa: E501 - :rtype: list[str] + :rtype: List[str] """ return self._outbound_steps @@ -357,7 +357,7 @@ def outbound_steps(self, outbound_steps): A list of the last step to ran in the context of this step. In the case of a DAG or a job this will be the last step that has been executed. It will remain empty for functions. # noqa: E501 :param outbound_steps: The outbound_steps of this StepStatus. # noqa: E501 - :type outbound_steps: list[str] + :type outbound_steps: List[str] """ if self.local_vars_configuration.client_side_validation and outbound_steps is None: # noqa: E501 raise ValueError("Invalid value for `outbound_steps`, must not be `None`") # noqa: E501 @@ -371,7 +371,7 @@ def outputs(self): The outputs produced by this step. # noqa: E501 :return: The outputs of this StepStatus. # noqa: E501 - :rtype: list[AnyOfStepStringOutputStepIntegerOutputStepNumberOutputStepBooleanOutputStepFolderOutputStepFileOutputStepPathOutputStepArrayOutputStepJSONObjectOutput] + :rtype: List[RunStatusOutputsInner] """ return self._outputs @@ -382,7 +382,7 @@ def outputs(self, outputs): The outputs produced by this step. # noqa: E501 :param outputs: The outputs of this StepStatus. # noqa: E501 - :type outputs: list[AnyOfStepStringOutputStepIntegerOutputStepNumberOutputStepBooleanOutputStepFolderOutputStepFileOutputStepPathOutputStepArrayOutputStepJSONObjectOutput] + :type outputs: List[RunStatusOutputsInner] """ if self.local_vars_configuration.client_side_validation and outputs is None: # noqa: E501 raise ValueError("Invalid value for `outputs`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/step_status_enum.py b/pollination_sdk/models/step_status_enum.py index 4a3bddaf8..c5525a5a1 100644 --- a/pollination_sdk/models/step_status_enum.py +++ b/pollination_sdk/models/step_status_enum.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,12 +29,12 @@ class StepStatusEnum(object): """ allowed enum values """ - SCHEDULED = "Scheduled" - RUNNING = "Running" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - SKIPPED = "Skipped" - UNKNOWN = "Unknown" + SCHEDULED = 'Scheduled' + RUNNING = 'Running' + FAILED = 'Failed' + SUCCEEDED = 'Succeeded' + SKIPPED = 'Skipped' + UNKNOWN = 'Unknown' allowable_values = [SCHEDULED, RUNNING, FAILED, SUCCEEDED, SKIPPED, UNKNOWN] # noqa: E501 diff --git a/pollination_sdk/models/step_string_input.py b/pollination_sdk/models/step_string_input.py index e201277e8..1582d50a1 100644 --- a/pollination_sdk/models/step_string_input.py +++ b/pollination_sdk/models/step_string_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class StepStringInput(object): and the value is json key in definition. """ openapi_types = { - 'alias': 'list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias]', - 'annotations': 'dict(str, str)', - 'default': 'str', - 'description': 'str', - 'name': 'str', - 'required': 'bool', - 'spec': 'object', - 'type': 'str', + 'alias': 'List[DAGArrayInputAliasInner]' + 'annotations': 'Dict[str, str]' + 'default': 'str' + 'description': 'str' + 'name': 'str' + 'required': 'bool' + 'spec': 'object' + 'type': 'str' 'value': 'str' } attribute_map = { - 'alias': 'alias', - 'annotations': 'annotations', - 'default': 'default', - 'description': 'description', - 'name': 'name', - 'required': 'required', - 'spec': 'spec', - 'type': 'type', + 'alias': 'alias' + 'annotations': 'annotations' + 'default': 'default' + 'description': 'description' + 'name': 'name' + 'required': 'required' + 'spec': 'spec' + 'type': 'type' 'value': 'value' } @@ -98,7 +98,7 @@ def alias(self): A list of aliases for this input in different platforms. # noqa: E501 :return: The alias of this StepStringInput. # noqa: E501 - :rtype: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :rtype: List[DAGArrayInputAliasInner] """ return self._alias @@ -109,7 +109,7 @@ def alias(self, alias): A list of aliases for this input in different platforms. # noqa: E501 :param alias: The alias of this StepStringInput. # noqa: E501 - :type alias: list[AnyOfDAGGenericInputAliasDAGStringInputAliasDAGIntegerInputAliasDAGNumberInputAliasDAGBooleanInputAliasDAGFolderInputAliasDAGFileInputAliasDAGPathInputAliasDAGArrayInputAliasDAGJSONObjectInputAliasDAGLinkedInputAlias] + :type alias: List[DAGArrayInputAliasInner] """ self._alias = alias @@ -121,7 +121,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this StepStringInput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -132,7 +132,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this StepStringInput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/step_string_output.py b/pollination_sdk/models/step_string_output.py index 843cba4b5..b8ece3144 100644 --- a/pollination_sdk/models/step_string_output.py +++ b/pollination_sdk/models/step_string_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,22 +34,22 @@ class StepStringOutput(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'name': 'str', - 'path': 'str', - 'required': 'bool', - 'type': 'str', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'name': 'str' + 'path': 'str' + 'required': 'bool' + 'type': 'str' 'value': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'name': 'name', - 'path': 'path', - 'required': 'required', - 'type': 'type', + 'annotations': 'annotations' + 'description': 'description' + 'name': 'name' + 'path': 'path' + 'required': 'required' + 'type': 'type' 'value': 'value' } @@ -87,7 +87,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this StepStringOutput. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -98,7 +98,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this StepStringOutput. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/subject.py b/pollination_sdk/models/subject.py new file mode 100644 index 000000000..88b5f5d98 --- /dev/null +++ b/pollination_sdk/models/subject.py @@ -0,0 +1,315 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from pollination_sdk.configuration import Configuration + + +class Subject(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'account_type': 'str' + 'description': 'str' + 'display_name': 'str' + 'id': 'str' + 'name': 'str' + 'picture_url': 'str' + 'member_count': 'int' + 'slug': 'str' + } + + attribute_map = { + 'account_type': 'account_type' + 'description': 'description' + 'display_name': 'display_name' + 'id': 'id' + 'name': 'name' + 'picture_url': 'picture_url' + 'member_count': 'member_count' + 'slug': 'slug' + } + + def __init__(self, account_type=None, description=None, display_name=None, id=None, name=None, picture_url=None, member_count=0, slug=None, local_vars_configuration=None): # noqa: E501 + """Subject - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._account_type = None + self._description = None + self._display_name = None + self._id = None + self._name = None + self._picture_url = None + self._member_count = None + self._slug = None + self.discriminator = None + + self.account_type = account_type + if description is not None: + self.description = description + if display_name is not None: + self.display_name = display_name + self.id = id + self.name = name + if picture_url is not None: + self.picture_url = picture_url + if member_count is not None: + self.member_count = member_count + self.slug = slug + + @property + def account_type(self): + """Gets the account_type of this Subject. # noqa: E501 + + + :return: The account_type of this Subject. # noqa: E501 + :rtype: str + """ + return self._account_type + + @account_type.setter + def account_type(self, account_type): + """Sets the account_type of this Subject. + + + :param account_type: The account_type of this Subject. # noqa: E501 + :type account_type: str + """ + if self.local_vars_configuration.client_side_validation and account_type is None: # noqa: E501 + raise ValueError("Invalid value for `account_type`, must not be `None`") # noqa: E501 + + self._account_type = account_type + + @property + def description(self): + """Gets the description of this Subject. # noqa: E501 + + + :return: The description of this Subject. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this Subject. + + + :param description: The description of this Subject. # noqa: E501 + :type description: str + """ + + self._description = description + + @property + def display_name(self): + """Gets the display_name of this Subject. # noqa: E501 + + + :return: The display_name of this Subject. # noqa: E501 + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """Sets the display_name of this Subject. + + + :param display_name: The display_name of this Subject. # noqa: E501 + :type display_name: str + """ + + self._display_name = display_name + + @property + def id(self): + """Gets the id of this Subject. # noqa: E501 + + The team ID # noqa: E501 + + :return: The id of this Subject. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Subject. + + The team ID # noqa: E501 + + :param id: The id of this Subject. # noqa: E501 + :type id: str + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def name(self): + """Gets the name of this Subject. # noqa: E501 + + + :return: The name of this Subject. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Subject. + + + :param name: The name of this Subject. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def picture_url(self): + """Gets the picture_url of this Subject. # noqa: E501 + + https://robohash.org/ladybugbot # noqa: E501 + + :return: The picture_url of this Subject. # noqa: E501 + :rtype: str + """ + return self._picture_url + + @picture_url.setter + def picture_url(self, picture_url): + """Sets the picture_url of this Subject. + + https://robohash.org/ladybugbot # noqa: E501 + + :param picture_url: The picture_url of this Subject. # noqa: E501 + :type picture_url: str + """ + + self._picture_url = picture_url + + @property + def member_count(self): + """Gets the member_count of this Subject. # noqa: E501 + + The number of members that are part of this team # noqa: E501 + + :return: The member_count of this Subject. # noqa: E501 + :rtype: int + """ + return self._member_count + + @member_count.setter + def member_count(self, member_count): + """Sets the member_count of this Subject. + + The number of members that are part of this team # noqa: E501 + + :param member_count: The member_count of this Subject. # noqa: E501 + :type member_count: int + """ + + self._member_count = member_count + + @property + def slug(self): + """Gets the slug of this Subject. # noqa: E501 + + The public slug of the team # noqa: E501 + + :return: The slug of this Subject. # noqa: E501 + :rtype: str + """ + return self._slug + + @slug.setter + def slug(self, slug): + """Sets the slug of this Subject. + + The public slug of the team # noqa: E501 + + :param slug: The slug of this Subject. # noqa: E501 + :type slug: str + """ + if self.local_vars_configuration.client_side_validation and slug is None: # noqa: E501 + raise ValueError("Invalid value for `slug`, must not be `None`") # noqa: E501 + + self._slug = slug + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Subject): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, Subject): + return True + + return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/subject_type.py b/pollination_sdk/models/subject_type.py index f4e331002..89429a09b 100644 --- a/pollination_sdk/models/subject_type.py +++ b/pollination_sdk/models/subject_type.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,8 +29,8 @@ class SubjectType(object): """ allowed enum values """ - USER = "user" - TEAM = "team" + USER = 'user' + TEAM = 'team' allowable_values = [USER, TEAM] # noqa: E501 diff --git a/pollination_sdk/models/subscription.py b/pollination_sdk/models/subscription.py index 81adc3fe1..3748a1209 100644 --- a/pollination_sdk/models/subscription.py +++ b/pollination_sdk/models/subscription.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,26 +34,26 @@ class Subscription(object): and the value is json key in definition. """ openapi_types = { - 'billing_info': 'BillingInfo', - 'external_id': 'str', - 'id': 'str', - 'owner': 'AccountPublic', - 'period_end': 'datetime', - 'period_start': 'datetime', - 'plan_multiplier': 'int', - 'plan_slug': 'str', + 'billing_info': 'BillingInfo' + 'external_id': 'str' + 'id': 'str' + 'owner': 'AccountPublic' + 'period_end': 'datetime' + 'period_start': 'datetime' + 'plan_multiplier': 'int' + 'plan_slug': 'str' 'type': 'PlanType' } attribute_map = { - 'billing_info': 'billing_info', - 'external_id': 'external_id', - 'id': 'id', - 'owner': 'owner', - 'period_end': 'period_end', - 'period_start': 'period_start', - 'plan_multiplier': 'plan_multiplier', - 'plan_slug': 'plan_slug', + 'billing_info': 'billing_info' + 'external_id': 'external_id' + 'id': 'id' + 'owner': 'owner' + 'period_end': 'period_end' + 'period_start': 'period_start' + 'plan_multiplier': 'plan_multiplier' + 'plan_slug': 'plan_slug' 'type': 'type' } diff --git a/pollination_sdk/models/subscription_create.py b/pollination_sdk/models/subscription_create.py index 11bd468d9..4b791ed23 100644 --- a/pollination_sdk/models/subscription_create.py +++ b/pollination_sdk/models/subscription_create.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class SubscriptionCreate(object): and the value is json key in definition. """ openapi_types = { - 'account': 'str', - 'plan_id': 'int', + 'account': 'str' + 'plan_id': 'int' 'quantity': 'int' } attribute_map = { - 'account': 'account', - 'plan_id': 'plan_id', + 'account': 'account' + 'plan_id': 'plan_id' 'quantity': 'quantity' } diff --git a/pollination_sdk/models/subscription_payment.py b/pollination_sdk/models/subscription_payment.py index 461b592aa..72a221d35 100644 --- a/pollination_sdk/models/subscription_payment.py +++ b/pollination_sdk/models/subscription_payment.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,18 +34,18 @@ class SubscriptionPayment(object): and the value is json key in definition. """ openapi_types = { - 'amount': 'float', - 'currency': 'str', - 'date': 'date' + 'amount': 'float' + 'currency': 'str' + 'var_date': 'date' } attribute_map = { - 'amount': 'amount', - 'currency': 'currency', - 'date': 'date' + 'amount': 'amount' + 'currency': 'currency' + 'var_date': 'date' } - def __init__(self, amount=None, currency=None, date=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, amount=None, currency=None, var_date=None, local_vars_configuration=None): # noqa: E501 """SubscriptionPayment - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -53,12 +53,12 @@ def __init__(self, amount=None, currency=None, date=None, local_vars_configurati self._amount = None self._currency = None - self._date = None + self._var_date = None self.discriminator = None self.amount = amount self.currency = currency - self.date = date + self.var_date = var_date @property def amount(self): @@ -107,27 +107,27 @@ def currency(self, currency): self._currency = currency @property - def date(self): - """Gets the date of this SubscriptionPayment. # noqa: E501 + def var_date(self): + """Gets the var_date of this SubscriptionPayment. # noqa: E501 - :return: The date of this SubscriptionPayment. # noqa: E501 + :return: The var_date of this SubscriptionPayment. # noqa: E501 :rtype: date """ - return self._date + return self._var_date - @date.setter - def date(self, date): - """Sets the date of this SubscriptionPayment. + @var_date.setter + def var_date(self, var_date): + """Sets the var_date of this SubscriptionPayment. - :param date: The date of this SubscriptionPayment. # noqa: E501 - :type date: date + :param var_date: The var_date of this SubscriptionPayment. # noqa: E501 + :type var_date: date """ - if self.local_vars_configuration.client_side_validation and date is None: # noqa: E501 - raise ValueError("Invalid value for `date`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and var_date is None: # noqa: E501 + raise ValueError("Invalid value for `var_date`, must not be `None`") # noqa: E501 - self._date = date + self._var_date = var_date def to_dict(self): """Returns the model properties as a dict""" diff --git a/pollination_sdk/models/subscription_plan.py b/pollination_sdk/models/subscription_plan.py index 244c9d5e0..53aa265c4 100644 --- a/pollination_sdk/models/subscription_plan.py +++ b/pollination_sdk/models/subscription_plan.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class SubscriptionPlan(object): and the value is json key in definition. """ openapi_types = { - 'account_types': 'list[AccountType]', - 'billing_options': 'list[BillingOption]', - 'name': 'str', - 'quotas': 'list[QuotaPlan]', - 'slug': 'str', + 'account_types': 'List[AccountType]' + 'billing_options': 'List[BillingOption]' + 'name': 'str' + 'quotas': 'List[QuotaPlan]' + 'slug': 'str' 'type': 'PlanType' } attribute_map = { - 'account_types': 'account_types', - 'billing_options': 'billing_options', - 'name': 'name', - 'quotas': 'quotas', - 'slug': 'slug', + 'account_types': 'account_types' + 'billing_options': 'billing_options' + 'name': 'name' + 'quotas': 'quotas' + 'slug': 'slug' 'type': 'type' } @@ -81,7 +81,7 @@ def account_types(self): The types of account to which the plan can be applied # noqa: E501 :return: The account_types of this SubscriptionPlan. # noqa: E501 - :rtype: list[AccountType] + :rtype: List[AccountType] """ return self._account_types @@ -92,7 +92,7 @@ def account_types(self, account_types): The types of account to which the plan can be applied # noqa: E501 :param account_types: The account_types of this SubscriptionPlan. # noqa: E501 - :type account_types: list[AccountType] + :type account_types: List[AccountType] """ if self.local_vars_configuration.client_side_validation and account_types is None: # noqa: E501 raise ValueError("Invalid value for `account_types`, must not be `None`") # noqa: E501 @@ -106,7 +106,7 @@ def billing_options(self): The billing options for this plan # noqa: E501 :return: The billing_options of this SubscriptionPlan. # noqa: E501 - :rtype: list[BillingOption] + :rtype: List[BillingOption] """ return self._billing_options @@ -117,7 +117,7 @@ def billing_options(self, billing_options): The billing options for this plan # noqa: E501 :param billing_options: The billing_options of this SubscriptionPlan. # noqa: E501 - :type billing_options: list[BillingOption] + :type billing_options: List[BillingOption] """ self._billing_options = billing_options @@ -154,7 +154,7 @@ def quotas(self): A list of quota plans for a given subscription # noqa: E501 :return: The quotas of this SubscriptionPlan. # noqa: E501 - :rtype: list[QuotaPlan] + :rtype: List[QuotaPlan] """ return self._quotas @@ -165,7 +165,7 @@ def quotas(self, quotas): A list of quota plans for a given subscription # noqa: E501 :param quotas: The quotas of this SubscriptionPlan. # noqa: E501 - :type quotas: list[QuotaPlan] + :type quotas: List[QuotaPlan] """ self._quotas = quotas diff --git a/pollination_sdk/models/subscription_update.py b/pollination_sdk/models/subscription_update.py index 04df8bdb2..4ce412d1f 100644 --- a/pollination_sdk/models/subscription_update.py +++ b/pollination_sdk/models/subscription_update.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class SubscriptionUpdate(object): and the value is json key in definition. """ openapi_types = { - 'plan_id': 'int', + 'plan_id': 'int' 'quantity': 'int' } attribute_map = { - 'plan_id': 'plan_id', + 'plan_id': 'plan_id' 'quantity': 'quantity' } diff --git a/pollination_sdk/models/subscription_update_dry_run.py b/pollination_sdk/models/subscription_update_dry_run.py index 0823e05b3..c3524a9b0 100644 --- a/pollination_sdk/models/subscription_update_dry_run.py +++ b/pollination_sdk/models/subscription_update_dry_run.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,7 +34,7 @@ class SubscriptionUpdateDryRun(object): and the value is json key in definition. """ openapi_types = { - 'exceeded_quotas': 'list[Quota]' + 'exceeded_quotas': 'List[Quota]' } attribute_map = { @@ -60,7 +60,7 @@ def exceeded_quotas(self): A list of quotas exceeded by a proposed subscription update # noqa: E501 :return: The exceeded_quotas of this SubscriptionUpdateDryRun. # noqa: E501 - :rtype: list[Quota] + :rtype: List[Quota] """ return self._exceeded_quotas @@ -71,7 +71,7 @@ def exceeded_quotas(self, exceeded_quotas): A list of quotas exceeded by a proposed subscription update # noqa: E501 :param exceeded_quotas: The exceeded_quotas of this SubscriptionUpdateDryRun. # noqa: E501 - :type exceeded_quotas: list[Quota] + :type exceeded_quotas: List[Quota] """ self._exceeded_quotas = exceeded_quotas diff --git a/pollination_sdk/models/task_argument.py b/pollination_sdk/models/task_argument.py index 3d66a4d2f..8f5e1105b 100644 --- a/pollination_sdk/models/task_argument.py +++ b/pollination_sdk/models/task_argument.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,34 +34,34 @@ class TaskArgument(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - '_from': 'AnyOfInputReferenceTaskReferenceItemReferenceValueReference', - 'name': 'str', + 'annotations': 'Dict[str, str]' + 'var_from': 'From4' + 'name': 'str' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - '_from': 'from', - 'name': 'name', + 'annotations': 'annotations' + 'var_from': 'from' + 'name': 'name' 'type': 'type' } - def __init__(self, annotations=None, _from=None, name=None, type='TaskArgument', local_vars_configuration=None): # noqa: E501 + def __init__(self, annotations=None, var_from=None, name=None, type='TaskArgument', local_vars_configuration=None): # noqa: E501 """TaskArgument - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._annotations = None - self.__from = None + self._var_from = None self._name = None self._type = None self.discriminator = None if annotations is not None: self.annotations = annotations - self._from = _from + self.var_from = var_from self.name = name if type is not None: self.type = type @@ -73,7 +73,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this TaskArgument. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -84,35 +84,33 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this TaskArgument. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @property - def _from(self): - """Gets the _from of this TaskArgument. # noqa: E501 + def var_from(self): + """Gets the var_from of this TaskArgument. # noqa: E501 - A reference to a DAG input, a DAG output or another task output. You can also use the ValueReference type to hard-code an input value. # noqa: E501 - :return: The _from of this TaskArgument. # noqa: E501 - :rtype: AnyOfInputReferenceTaskReferenceItemReferenceValueReference + :return: The var_from of this TaskArgument. # noqa: E501 + :rtype: From4 """ - return self.__from + return self._var_from - @_from.setter - def _from(self, _from): - """Sets the _from of this TaskArgument. + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this TaskArgument. - A reference to a DAG input, a DAG output or another task output. You can also use the ValueReference type to hard-code an input value. # noqa: E501 - :param _from: The _from of this TaskArgument. # noqa: E501 - :type _from: AnyOfInputReferenceTaskReferenceItemReferenceValueReference + :param var_from: The var_from of this TaskArgument. # noqa: E501 + :type var_from: From4 """ - if self.local_vars_configuration.client_side_validation and _from is None: # noqa: E501 - raise ValueError("Invalid value for `_from`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 - self.__from = _from + self._var_from = var_from @property def name(self): diff --git a/pollination_sdk/models/task_file_reference.py b/pollination_sdk/models/task_file_reference.py index 4f0a5e6ab..3193079d9 100644 --- a/pollination_sdk/models/task_file_reference.py +++ b/pollination_sdk/models/task_file_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,16 +34,16 @@ class TaskFileReference(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'name': 'str', - 'type': 'str', + 'annotations': 'Dict[str, str]' + 'name': 'str' + 'type': 'str' 'variable': 'str' } attribute_map = { - 'annotations': 'annotations', - 'name': 'name', - 'type': 'type', + 'annotations': 'annotations' + 'name': 'name' + 'type': 'type' 'variable': 'variable' } @@ -73,7 +73,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this TaskFileReference. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -84,7 +84,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this TaskFileReference. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/task_folder_reference.py b/pollination_sdk/models/task_folder_reference.py index 28b7ce7cb..8dfc879a8 100644 --- a/pollination_sdk/models/task_folder_reference.py +++ b/pollination_sdk/models/task_folder_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,16 +34,16 @@ class TaskFolderReference(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'name': 'str', - 'type': 'str', + 'annotations': 'Dict[str, str]' + 'name': 'str' + 'type': 'str' 'variable': 'str' } attribute_map = { - 'annotations': 'annotations', - 'name': 'name', - 'type': 'type', + 'annotations': 'annotations' + 'name': 'name' + 'type': 'type' 'variable': 'variable' } @@ -73,7 +73,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this TaskFolderReference. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -84,7 +84,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this TaskFolderReference. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/task_path_argument.py b/pollination_sdk/models/task_path_argument.py index 0ca14027b..30d91620c 100644 --- a/pollination_sdk/models/task_path_argument.py +++ b/pollination_sdk/models/task_path_argument.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,29 +34,29 @@ class TaskPathArgument(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - '_from': 'AnyOfInputFileReferenceInputFolderReferenceInputPathReferenceTaskFileReferenceTaskFolderReferenceTaskPathReferenceValueFileReferenceValueFolderReference', - 'name': 'str', - 'sub_path': 'str', + 'annotations': 'Dict[str, str]' + 'var_from': 'From5' + 'name': 'str' + 'sub_path': 'str' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - '_from': 'from', - 'name': 'name', - 'sub_path': 'sub_path', + 'annotations': 'annotations' + 'var_from': 'from' + 'name': 'name' + 'sub_path': 'sub_path' 'type': 'type' } - def __init__(self, annotations=None, _from=None, name=None, sub_path=None, type='TaskPathArgument', local_vars_configuration=None): # noqa: E501 + def __init__(self, annotations=None, var_from=None, name=None, sub_path=None, type='TaskPathArgument', local_vars_configuration=None): # noqa: E501 """TaskPathArgument - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._annotations = None - self.__from = None + self._var_from = None self._name = None self._sub_path = None self._type = None @@ -64,7 +64,7 @@ def __init__(self, annotations=None, _from=None, name=None, sub_path=None, type= if annotations is not None: self.annotations = annotations - self._from = _from + self.var_from = var_from self.name = name if sub_path is not None: self.sub_path = sub_path @@ -78,7 +78,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this TaskPathArgument. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -89,35 +89,33 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this TaskPathArgument. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @property - def _from(self): - """Gets the _from of this TaskPathArgument. # noqa: E501 + def var_from(self): + """Gets the var_from of this TaskPathArgument. # noqa: E501 - A reference to a DAG input, a DAG output or another task output. You can also use the ValueReference type to hard-code an input value. # noqa: E501 - :return: The _from of this TaskPathArgument. # noqa: E501 - :rtype: AnyOfInputFileReferenceInputFolderReferenceInputPathReferenceTaskFileReferenceTaskFolderReferenceTaskPathReferenceValueFileReferenceValueFolderReference + :return: The var_from of this TaskPathArgument. # noqa: E501 + :rtype: From5 """ - return self.__from + return self._var_from - @_from.setter - def _from(self, _from): - """Sets the _from of this TaskPathArgument. + @var_from.setter + def var_from(self, var_from): + """Sets the var_from of this TaskPathArgument. - A reference to a DAG input, a DAG output or another task output. You can also use the ValueReference type to hard-code an input value. # noqa: E501 - :param _from: The _from of this TaskPathArgument. # noqa: E501 - :type _from: AnyOfInputFileReferenceInputFolderReferenceInputPathReferenceTaskFileReferenceTaskFolderReferenceTaskPathReferenceValueFileReferenceValueFolderReference + :param var_from: The var_from of this TaskPathArgument. # noqa: E501 + :type var_from: From5 """ - if self.local_vars_configuration.client_side_validation and _from is None: # noqa: E501 - raise ValueError("Invalid value for `_from`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and var_from is None: # noqa: E501 + raise ValueError("Invalid value for `var_from`, must not be `None`") # noqa: E501 - self.__from = _from + self._var_from = var_from @property def name(self): diff --git a/pollination_sdk/models/task_path_reference.py b/pollination_sdk/models/task_path_reference.py index 6cffa5511..6d1edbb79 100644 --- a/pollination_sdk/models/task_path_reference.py +++ b/pollination_sdk/models/task_path_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,16 +34,16 @@ class TaskPathReference(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'name': 'str', - 'type': 'str', + 'annotations': 'Dict[str, str]' + 'name': 'str' + 'type': 'str' 'variable': 'str' } attribute_map = { - 'annotations': 'annotations', - 'name': 'name', - 'type': 'type', + 'annotations': 'annotations' + 'name': 'name' + 'type': 'type' 'variable': 'variable' } @@ -73,7 +73,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this TaskPathReference. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -84,7 +84,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this TaskPathReference. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/task_path_return.py b/pollination_sdk/models/task_path_return.py index 7d14282e9..5622d570c 100644 --- a/pollination_sdk/models/task_path_return.py +++ b/pollination_sdk/models/task_path_return.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class TaskPathReturn(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'name': 'str', - 'path': 'str', - 'required': 'bool', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'name': 'str' + 'path': 'str' + 'required': 'bool' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'name': 'name', - 'path': 'path', - 'required': 'required', + 'annotations': 'annotations' + 'description': 'description' + 'name': 'name' + 'path': 'path' + 'required': 'required' 'type': 'type' } @@ -83,7 +83,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this TaskPathReturn. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -94,7 +94,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this TaskPathReturn. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/task_reference.py b/pollination_sdk/models/task_reference.py index 5ff48e45c..f8210abca 100644 --- a/pollination_sdk/models/task_reference.py +++ b/pollination_sdk/models/task_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,16 +34,16 @@ class TaskReference(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'name': 'str', - 'type': 'str', + 'annotations': 'Dict[str, str]' + 'name': 'str' + 'type': 'str' 'variable': 'str' } attribute_map = { - 'annotations': 'annotations', - 'name': 'name', - 'type': 'type', + 'annotations': 'annotations' + 'name': 'name' + 'type': 'type' 'variable': 'variable' } @@ -73,7 +73,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this TaskReference. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -84,7 +84,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this TaskReference. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/task_return.py b/pollination_sdk/models/task_return.py index 1dbb31497..4684294d1 100644 --- a/pollination_sdk/models/task_return.py +++ b/pollination_sdk/models/task_return.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,16 +34,16 @@ class TaskReturn(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'description': 'str', - 'name': 'str', + 'annotations': 'Dict[str, str]' + 'description': 'str' + 'name': 'str' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'description': 'description', - 'name': 'name', + 'annotations': 'annotations' + 'description': 'description' + 'name': 'name' 'type': 'type' } @@ -74,7 +74,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this TaskReturn. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -85,7 +85,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this TaskReturn. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/team.py b/pollination_sdk/models/team.py index 689053e68..db8ec0fa8 100644 --- a/pollination_sdk/models/team.py +++ b/pollination_sdk/models/team.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,18 +34,18 @@ class Team(object): and the value is json key in definition. """ openapi_types = { - 'description': 'str', - 'id': 'str', - 'member_count': 'int', - 'name': 'str', + 'description': 'str' + 'id': 'str' + 'member_count': 'int' + 'name': 'str' 'slug': 'str' } attribute_map = { - 'description': 'description', - 'id': 'id', - 'member_count': 'member_count', - 'name': 'name', + 'description': 'description' + 'id': 'id' + 'member_count': 'member_count' + 'name': 'name' 'slug': 'slug' } diff --git a/pollination_sdk/models/team_create.py b/pollination_sdk/models/team_create.py index 9b958e0a9..94df0aa12 100644 --- a/pollination_sdk/models/team_create.py +++ b/pollination_sdk/models/team_create.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class TeamCreate(object): and the value is json key in definition. """ openapi_types = { - 'description': 'str', + 'description': 'str' 'name': 'str' } attribute_map = { - 'description': 'description', + 'description': 'description' 'name': 'name' } diff --git a/pollination_sdk/models/team_list.py b/pollination_sdk/models/team_list.py index 9553b6fed..4ac8aaf2d 100644 --- a/pollination_sdk/models/team_list.py +++ b/pollination_sdk/models/team_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class TeamList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[Team]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[Team]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this TeamList. # noqa: E501 - :rtype: list[Team] + :rtype: List[Team] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this TeamList. # noqa: E501 - :type resources: list[Team] + :type resources: List[Team] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/team_member.py b/pollination_sdk/models/team_member.py index f9780da80..eba99be8c 100644 --- a/pollination_sdk/models/team_member.py +++ b/pollination_sdk/models/team_member.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class TeamMember(object): and the value is json key in definition. """ openapi_types = { - 'role': 'TeamRoleEnum', + 'role': 'TeamRoleEnum' 'user': 'UserPublic' } attribute_map = { - 'role': 'role', + 'role': 'role' 'user': 'user' } diff --git a/pollination_sdk/models/team_member_list.py b/pollination_sdk/models/team_member_list.py index 9f5664145..436a49a52 100644 --- a/pollination_sdk/models/team_member_list.py +++ b/pollination_sdk/models/team_member_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class TeamMemberList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[TeamMember]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[TeamMember]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this TeamMemberList. # noqa: E501 - :rtype: list[TeamMember] + :rtype: List[TeamMember] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this TeamMemberList. # noqa: E501 - :type resources: list[TeamMember] + :type resources: List[TeamMember] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/team_role_enum.py b/pollination_sdk/models/team_role_enum.py index e6141adb9..2f4594e5d 100644 --- a/pollination_sdk/models/team_role_enum.py +++ b/pollination_sdk/models/team_role_enum.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -29,8 +29,8 @@ class TeamRoleEnum(object): """ allowed enum values """ - OWNER = "owner" - MEMBER = "member" + OWNER = 'owner' + MEMBER = 'member' allowable_values = [OWNER, MEMBER] # noqa: E501 diff --git a/pollination_sdk/models/team_update.py b/pollination_sdk/models/team_update.py index ec4383350..4beb7064b 100644 --- a/pollination_sdk/models/team_update.py +++ b/pollination_sdk/models/team_update.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,12 +34,12 @@ class TeamUpdate(object): and the value is json key in definition. """ openapi_types = { - 'description': 'str', + 'description': 'str' 'name': 'str' } attribute_map = { - 'description': 'description', + 'description': 'description' 'name': 'name' } diff --git a/pollination_sdk/models/template_function.py b/pollination_sdk/models/template_function.py index 414bed1f9..113e8a795 100644 --- a/pollination_sdk/models/template_function.py +++ b/pollination_sdk/models/template_function.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,28 +34,28 @@ class TemplateFunction(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'command': 'str', - 'config': 'PluginConfig', - 'description': 'str', - 'inputs': 'list[AnyOfFunctionStringInputFunctionIntegerInputFunctionNumberInputFunctionBooleanInputFunctionFolderInputFunctionFileInputFunctionPathInputFunctionArrayInputFunctionJSONObjectInput]', - 'language': 'ScriptingLanguages', - 'name': 'str', - 'outputs': 'list[AnyOfFunctionStringOutputFunctionIntegerOutputFunctionNumberOutputFunctionBooleanOutputFunctionFolderOutputFunctionFileOutputFunctionPathOutputFunctionArrayOutputFunctionJSONObjectOutput]', - 'source': 'str', + 'annotations': 'Dict[str, str]' + 'command': 'str' + 'config': 'PluginConfig' + 'description': 'str' + 'inputs': 'List[FunctionInputsInner]' + 'language': 'ScriptingLanguages' + 'name': 'str' + 'outputs': 'List[FunctionOutputsInner]' + 'source': 'str' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'command': 'command', - 'config': 'config', - 'description': 'description', - 'inputs': 'inputs', - 'language': 'language', - 'name': 'name', - 'outputs': 'outputs', - 'source': 'source', + 'annotations': 'annotations' + 'command': 'command' + 'config': 'config' + 'description': 'description' + 'inputs': 'inputs' + 'language': 'language' + 'name': 'name' + 'outputs': 'outputs' + 'source': 'source' 'type': 'type' } @@ -103,7 +103,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this TemplateFunction. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -114,7 +114,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this TemplateFunction. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -197,7 +197,7 @@ def inputs(self): Input arguments for this function. # noqa: E501 :return: The inputs of this TemplateFunction. # noqa: E501 - :rtype: list[AnyOfFunctionStringInputFunctionIntegerInputFunctionNumberInputFunctionBooleanInputFunctionFolderInputFunctionFileInputFunctionPathInputFunctionArrayInputFunctionJSONObjectInput] + :rtype: List[FunctionInputsInner] """ return self._inputs @@ -208,7 +208,7 @@ def inputs(self, inputs): Input arguments for this function. # noqa: E501 :param inputs: The inputs of this TemplateFunction. # noqa: E501 - :type inputs: list[AnyOfFunctionStringInputFunctionIntegerInputFunctionNumberInputFunctionBooleanInputFunctionFolderInputFunctionFileInputFunctionPathInputFunctionArrayInputFunctionJSONObjectInput] + :type inputs: List[FunctionInputsInner] """ self._inputs = inputs @@ -268,7 +268,7 @@ def outputs(self): List of output arguments. # noqa: E501 :return: The outputs of this TemplateFunction. # noqa: E501 - :rtype: list[AnyOfFunctionStringOutputFunctionIntegerOutputFunctionNumberOutputFunctionBooleanOutputFunctionFolderOutputFunctionFileOutputFunctionPathOutputFunctionArrayOutputFunctionJSONObjectOutput] + :rtype: List[FunctionOutputsInner] """ return self._outputs @@ -279,7 +279,7 @@ def outputs(self, outputs): List of output arguments. # noqa: E501 :param outputs: The outputs of this TemplateFunction. # noqa: E501 - :type outputs: list[AnyOfFunctionStringOutputFunctionIntegerOutputFunctionNumberOutputFunctionBooleanOutputFunctionFolderOutputFunctionFileOutputFunctionPathOutputFunctionArrayOutputFunctionJSONObjectOutput] + :type outputs: List[FunctionOutputsInner] """ self._outputs = outputs diff --git a/pollination_sdk/models/update_accepted.py b/pollination_sdk/models/update_accepted.py index 441f62a5a..9b1d2d16f 100644 --- a/pollination_sdk/models/update_accepted.py +++ b/pollination_sdk/models/update_accepted.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/pollination_sdk/models/usage.py b/pollination_sdk/models/usage.py index deb797882..9b005c05f 100644 --- a/pollination_sdk/models/usage.py +++ b/pollination_sdk/models/usage.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,22 +34,22 @@ class Usage(object): and the value is json key in definition. """ openapi_types = { - 'cpu': 'float', - 'daily_usage': 'list[DailyUsage]', - 'end': 'datetime', - 'failed': 'int', - 'memory': 'float', - 'start': 'datetime', + 'cpu': 'float' + 'daily_usage': 'List[DailyUsage]' + 'end': 'datetime' + 'failed': 'int' + 'memory': 'float' + 'start': 'datetime' 'succeeded': 'int' } attribute_map = { - 'cpu': 'cpu', - 'daily_usage': 'daily_usage', - 'end': 'end', - 'failed': 'failed', - 'memory': 'memory', - 'start': 'start', + 'cpu': 'cpu' + 'daily_usage': 'daily_usage' + 'end': 'end' + 'failed': 'failed' + 'memory': 'memory' + 'start': 'start' 'succeeded': 'succeeded' } @@ -111,7 +111,7 @@ def daily_usage(self): daily breakdown of usage # noqa: E501 :return: The daily_usage of this Usage. # noqa: E501 - :rtype: list[DailyUsage] + :rtype: List[DailyUsage] """ return self._daily_usage @@ -122,7 +122,7 @@ def daily_usage(self, daily_usage): daily breakdown of usage # noqa: E501 :param daily_usage: The daily_usage of this Usage. # noqa: E501 - :type daily_usage: list[DailyUsage] + :type daily_usage: List[DailyUsage] """ self._daily_usage = daily_usage diff --git a/pollination_sdk/models/user_create.py b/pollination_sdk/models/user_create.py index 949afd0fc..01f155550 100644 --- a/pollination_sdk/models/user_create.py +++ b/pollination_sdk/models/user_create.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,16 +34,16 @@ class UserCreate(object): and the value is json key in definition. """ openapi_types = { - 'description': 'str', - 'name': 'str', - 'picture_url': 'str', + 'description': 'str' + 'name': 'str' + 'picture_url': 'str' 'username': 'str' } attribute_map = { - 'description': 'description', - 'name': 'name', - 'picture_url': 'picture_url', + 'description': 'description' + 'name': 'name' + 'picture_url': 'picture_url' 'username': 'username' } diff --git a/pollination_sdk/models/user_permission.py b/pollination_sdk/models/user_permission.py index 8f0bdbea5..b5129e5cc 100644 --- a/pollination_sdk/models/user_permission.py +++ b/pollination_sdk/models/user_permission.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class UserPermission(object): and the value is json key in definition. """ openapi_types = { - 'admin': 'bool', - 'read': 'bool', + 'admin': 'bool' + 'read': 'bool' 'write': 'bool' } attribute_map = { - 'admin': 'admin', - 'read': 'read', + 'admin': 'admin' + 'read': 'read' 'write': 'write' } diff --git a/pollination_sdk/models/user_private.py b/pollination_sdk/models/user_private.py index f5ccb0414..c476b35ad 100644 --- a/pollination_sdk/models/user_private.py +++ b/pollination_sdk/models/user_private.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class UserPrivate(object): and the value is json key in definition. """ openapi_types = { - 'description': 'str', - 'email': 'str', - 'id': 'str', - 'name': 'str', - 'picture': 'str', + 'description': 'str' + 'email': 'str' + 'id': 'str' + 'name': 'str' + 'picture': 'str' 'username': 'str' } attribute_map = { - 'description': 'description', - 'email': 'email', - 'id': 'id', - 'name': 'name', - 'picture': 'picture', + 'description': 'description' + 'email': 'email' + 'id': 'id' + 'name': 'name' + 'picture': 'picture' 'username': 'username' } diff --git a/pollination_sdk/models/user_public.py b/pollination_sdk/models/user_public.py index ad027d670..1680c9618 100644 --- a/pollination_sdk/models/user_public.py +++ b/pollination_sdk/models/user_public.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,16 +34,16 @@ class UserPublic(object): and the value is json key in definition. """ openapi_types = { - 'description': 'str', - 'name': 'str', - 'picture': 'str', + 'description': 'str' + 'name': 'str' + 'picture': 'str' 'username': 'str' } attribute_map = { - 'description': 'description', - 'name': 'name', - 'picture': 'picture', + 'description': 'description' + 'name': 'name' + 'picture': 'picture' 'username': 'username' } diff --git a/pollination_sdk/models/user_public_list.py b/pollination_sdk/models/user_public_list.py index d31196cf7..284074dfd 100644 --- a/pollination_sdk/models/user_public_list.py +++ b/pollination_sdk/models/user_public_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,20 +34,20 @@ class UserPublicList(object): and the value is json key in definition. """ openapi_types = { - 'next_page': 'int', - 'page': 'int', - 'page_count': 'int', - 'per_page': 'int', - 'resources': 'list[UserPublic]', + 'next_page': 'int' + 'page': 'int' + 'page_count': 'int' + 'per_page': 'int' + 'resources': 'List[UserPublic]' 'total_count': 'int' } attribute_map = { - 'next_page': 'next_page', - 'page': 'page', - 'page_count': 'page_count', - 'per_page': 'per_page', - 'resources': 'resources', + 'next_page': 'next_page' + 'page': 'page' + 'page_count': 'page_count' + 'per_page': 'per_page' + 'resources': 'resources' 'total_count': 'total_count' } @@ -177,7 +177,7 @@ def resources(self): :return: The resources of this UserPublicList. # noqa: E501 - :rtype: list[UserPublic] + :rtype: List[UserPublic] """ return self._resources @@ -187,7 +187,7 @@ def resources(self, resources): :param resources: The resources of this UserPublicList. # noqa: E501 - :type resources: list[UserPublic] + :type resources: List[UserPublic] """ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/user_update.py b/pollination_sdk/models/user_update.py index 223b172b4..492c659be 100644 --- a/pollination_sdk/models/user_update.py +++ b/pollination_sdk/models/user_update.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class UserUpdate(object): and the value is json key in definition. """ openapi_types = { - 'description': 'str', - 'name': 'str', + 'description': 'str' + 'name': 'str' 'picture_url': 'str' } attribute_map = { - 'description': 'description', - 'name': 'name', + 'description': 'description' + 'name': 'name' 'picture_url': 'picture_url' } diff --git a/pollination_sdk/models/validation_error.py b/pollination_sdk/models/validation_error.py index e3a23f726..4e9370e29 100644 --- a/pollination_sdk/models/validation_error.py +++ b/pollination_sdk/models/validation_error.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class ValidationError(object): and the value is json key in definition. """ openapi_types = { - 'loc': 'list[str]', - 'msg': 'str', + 'loc': 'List[ValidationErrorLocInner]' + 'msg': 'str' 'type': 'str' } attribute_map = { - 'loc': 'loc', - 'msg': 'msg', + 'loc': 'loc' + 'msg': 'msg' 'type': 'type' } @@ -66,7 +66,7 @@ def loc(self): :return: The loc of this ValidationError. # noqa: E501 - :rtype: list[str] + :rtype: List[ValidationErrorLocInner] """ return self._loc @@ -76,7 +76,7 @@ def loc(self, loc): :param loc: The loc of this ValidationError. # noqa: E501 - :type loc: list[str] + :type loc: List[ValidationErrorLocInner] """ if self.local_vars_configuration.client_side_validation and loc is None: # noqa: E501 raise ValueError("Invalid value for `loc`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/body_post_recipe_owner_recipes_post.py b/pollination_sdk/models/validation_error_loc_inner.py similarity index 65% rename from pollination_sdk/models/body_post_recipe_owner_recipes_post.py rename to pollination_sdk/models/validation_error_loc_inner.py index 63cac4ed5..06c736d51 100644 --- a/pollination_sdk/models/body_post_recipe_owner_recipes_post.py +++ b/pollination_sdk/models/validation_error_loc_inner.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -19,7 +19,7 @@ from pollination_sdk.configuration import Configuration -class BodyPostRecipeOwnerRecipesPost(object): +class ValidationErrorLocInner(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,47 +34,18 @@ class BodyPostRecipeOwnerRecipesPost(object): and the value is json key in definition. """ openapi_types = { - 'package': 'file' } attribute_map = { - 'package': 'package' } - def __init__(self, package=None, local_vars_configuration=None): # noqa: E501 - """BodyPostRecipeOwnerRecipesPost - a model defined in OpenAPI""" # noqa: E501 + def __init__(self, local_vars_configuration=None): # noqa: E501 + """ValidationErrorLocInner - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration - - self._package = None self.discriminator = None - self.package = package - - @property - def package(self): - """Gets the package of this BodyPostRecipeOwnerRecipesPost. # noqa: E501 - - - :return: The package of this BodyPostRecipeOwnerRecipesPost. # noqa: E501 - :rtype: file - """ - return self._package - - @package.setter - def package(self, package): - """Sets the package of this BodyPostRecipeOwnerRecipesPost. - - - :param package: The package of this BodyPostRecipeOwnerRecipesPost. # noqa: E501 - :type package: file - """ - if self.local_vars_configuration.client_side_validation and package is None: # noqa: E501 - raise ValueError("Invalid value for `package`, must not be `None`") # noqa: E501 - - self._package = package - def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -109,14 +80,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, BodyPostRecipeOwnerRecipesPost): + if not isinstance(other, ValidationErrorLocInner): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, BodyPostRecipeOwnerRecipesPost): + if not isinstance(other, ValidationErrorLocInner): return True return self.to_dict() != other.to_dict() diff --git a/pollination_sdk/models/value_file_reference.py b/pollination_sdk/models/value_file_reference.py index cd5c56ba3..a7e37e1ed 100644 --- a/pollination_sdk/models/value_file_reference.py +++ b/pollination_sdk/models/value_file_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class ValueFileReference(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'path': 'str', + 'annotations': 'Dict[str, str]' + 'path': 'str' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'path': 'path', + 'annotations': 'annotations' + 'path': 'path' 'type': 'type' } @@ -69,7 +69,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this ValueFileReference. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -80,7 +80,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this ValueFileReference. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/value_folder_reference.py b/pollination_sdk/models/value_folder_reference.py index 86bdc659b..bfd6d5538 100644 --- a/pollination_sdk/models/value_folder_reference.py +++ b/pollination_sdk/models/value_folder_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class ValueFolderReference(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'path': 'str', + 'annotations': 'Dict[str, str]' + 'path': 'str' 'type': 'str' } attribute_map = { - 'annotations': 'annotations', - 'path': 'path', + 'annotations': 'annotations' + 'path': 'path' 'type': 'type' } @@ -69,7 +69,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this ValueFolderReference. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -80,7 +80,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this ValueFolderReference. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations diff --git a/pollination_sdk/models/value_list_reference.py b/pollination_sdk/models/value_list_reference.py index 5131a3255..8aa217453 100644 --- a/pollination_sdk/models/value_list_reference.py +++ b/pollination_sdk/models/value_list_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class ValueListReference(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'type': 'str', - 'value': 'list[object]' + 'annotations': 'Dict[str, str]' + 'type': 'str' + 'value': 'List[object]' } attribute_map = { - 'annotations': 'annotations', - 'type': 'type', + 'annotations': 'annotations' + 'type': 'type' 'value': 'value' } @@ -69,7 +69,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this ValueListReference. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -80,7 +80,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this ValueListReference. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -116,7 +116,7 @@ def value(self): A fixed value for this reference. # noqa: E501 :return: The value of this ValueListReference. # noqa: E501 - :rtype: list[object] + :rtype: List[object] """ return self._value @@ -127,7 +127,7 @@ def value(self, value): A fixed value for this reference. # noqa: E501 :param value: The value of this ValueListReference. # noqa: E501 - :type value: list[object] + :type value: List[object] """ if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 diff --git a/pollination_sdk/models/value_reference.py b/pollination_sdk/models/value_reference.py index 97d9957b2..862416936 100644 --- a/pollination_sdk/models/value_reference.py +++ b/pollination_sdk/models/value_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -34,14 +34,14 @@ class ValueReference(object): and the value is json key in definition. """ openapi_types = { - 'annotations': 'dict(str, str)', - 'type': 'str', + 'annotations': 'Dict[str, str]' + 'type': 'str' 'value': 'object' } attribute_map = { - 'annotations': 'annotations', - 'type': 'type', + 'annotations': 'annotations' + 'type': 'type' 'value': 'value' } @@ -69,7 +69,7 @@ def annotations(self): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :return: The annotations of this ValueReference. # noqa: E501 - :rtype: dict(str, str) + :rtype: Dict[str, str] """ return self._annotations @@ -80,7 +80,7 @@ def annotations(self, annotations): An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. # noqa: E501 :param annotations: The annotations of this ValueReference. # noqa: E501 - :type annotations: dict(str, str) + :type annotations: Dict[str, str] """ self._annotations = annotations @@ -113,7 +113,6 @@ def type(self, type): def value(self): """Gets the value of this ValueReference. # noqa: E501 - A fixed value for this reference. # noqa: E501 :return: The value of this ValueReference. # noqa: E501 :rtype: object @@ -124,7 +123,6 @@ def value(self): def value(self, value): """Sets the value of this ValueReference. - A fixed value for this reference. # noqa: E501 :param value: The value of this ValueReference. # noqa: E501 :type value: object diff --git a/pollination_sdk/py.typed b/pollination_sdk/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/pollination_sdk/rest.py b/pollination_sdk/rest.py index 37835996a..e6feb94de 100644 --- a/pollination_sdk/rest.py +++ b/pollination_sdk/rest.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..a5c8cf10e --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,71 @@ +[tool.poetry] +name = "pollination_sdk" +version = "1.0.0" +description = "pollination-server" +authors = ["PollinationSolutions "] +license = "NoLicense" +readme = "README.md" +repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" +keywords = ["OpenAPI", "OpenAPI-Generator", "pollination-server"] +include = ["pollination_sdk/py.typed"] + +[tool.poetry.dependencies] +python = "^3.7" + +urllib3 = ">= 1.25.3" +python-dateutil = ">=2.8.2" +pydantic = ">=2" +typing-extensions = ">=4.7.1" + +[tool.poetry.dev-dependencies] +pytest = ">=7.2.1" +tox = ">=3.9.0" +flake8 = ">=4.0.0" +types-python-dateutil = ">=2.8.19.14" +mypy = "1.4.1" + + +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[tool.pylint.'MESSAGES CONTROL'] +extension-pkg-whitelist = "pydantic" + +[tool.mypy] +files = [ + "pollination_sdk", + #"test", # auto-generated tests + "tests", # hand-written tests +] +# TODO: enable "strict" once all these individual checks are passing +# strict = true + +# List from: https://mypy.readthedocs.io/en/stable/existing_code.html#introduce-stricter-options +warn_unused_configs = true +warn_redundant_casts = true +warn_unused_ignores = true + +## Getting these passing should be easy +strict_equality = true +strict_concatenate = true + +## Strongly recommend enabling this one as soon as you can +check_untyped_defs = true + +## These shouldn't be too much additional work, but may be tricky to +## get passing if you use a lot of untyped libraries +disallow_subclassing_any = true +disallow_untyped_decorators = true +disallow_any_generics = true + +### These next few are various gradations of forcing use of type annotations +#disallow_untyped_calls = true +#disallow_incomplete_defs = true +#disallow_untyped_defs = true +# +### This one isn't too hard to get passing, but return on investment is lower +#no_implicit_reexport = true +# +### This one can be tricky to get passing if you use a lot of untyped libraries +#warn_return_any = true diff --git a/setup.py b/setup.py index a78d90263..40c166637 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -14,7 +14,534 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "pollination-sdk" -VERSION = "1.0.0" +VERSION = "1.6.0" +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +with open('README.md') as fh: + long_description = fh.read() + +setup( + name=NAME, + version=VERSION, + description="pollination-server", + author="PollinationSolutions", + author_email="info@pollination.cloud", + url="https://github.com/pollination/python-sdk", + keywords=["OpenAPI", "OpenAPI-Generator", "pollination-server"], + install_requires=REQUIRES, + packages=find_packages(exclude=["test", "tests"]), + include_package_data=True, + long_description=long_description, + long_description_content_type="text/markdown", + classifiers=[ + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: Implementation :: CPython", + "Operating System :: OS Independent" + ], +) +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +with open('README.md') as fh: + long_description = fh.read() + +setup( + name=NAME, + version=VERSION, + description="pollination-server", + author="PollinationSolutions", + author_email="info@pollination.cloud", + url="https://github.com/pollination/python-sdk", + keywords=["OpenAPI", "OpenAPI-Generator", "pollination-server"], + install_requires=REQUIRES, + packages=find_packages(exclude=["test", "tests"]), + include_package_data=True, + long_description=long_description, + long_description_content_type="text/markdown", + classifiers=[ + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: Implementation :: CPython", + "Operating System :: OS Independent" + ], +) +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +with open('README.md') as fh: + long_description = fh.read() + +setup( + name=NAME, + version=VERSION, + description="pollination-server", + author="PollinationSolutions", + author_email="info@pollination.cloud", + url="https://github.com/pollination/python-sdk", + keywords=["OpenAPI", "OpenAPI-Generator", "pollination-server"], + install_requires=REQUIRES, + packages=find_packages(exclude=["test", "tests"]), + include_package_data=True, + long_description=long_description, + long_description_content_type="text/markdown", + classifiers=[ + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: Implementation :: CPython", + "Operating System :: OS Independent" + ], +) +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +with open('README.md') as fh: + long_description = fh.read() + +setup( + name=NAME, + version=VERSION, + description="pollination-server", + author="PollinationSolutions", + author_email="info@pollination.cloud", + url="https://github.com/pollination/python-sdk", + keywords=["OpenAPI", "OpenAPI-Generator", "pollination-server"], + install_requires=REQUIRES, + packages=find_packages(exclude=["test", "tests"]), + include_package_data=True, + long_description=long_description, + long_description_content_type="text/markdown", + classifiers=[ + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: Implementation :: CPython", + "Operating System :: OS Independent" + ], +) +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +with open('README.md') as fh: + long_description = fh.read() + +setup( + name=NAME, + version=VERSION, + description="pollination-server", + author="PollinationSolutions", + author_email="info@pollination.cloud", + url="https://github.com/pollination/python-sdk", + keywords=["OpenAPI", "OpenAPI-Generator", "pollination-server"], + install_requires=REQUIRES, + packages=find_packages(exclude=["test", "tests"]), + include_package_data=True, + long_description=long_description, + long_description_content_type="text/markdown", + classifiers=[ + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: Implementation :: CPython", + "Operating System :: OS Independent" + ], +) +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +with open('README.md') as fh: + long_description = fh.read() + +setup( + name=NAME, + version=VERSION, + description="pollination-server", + author="PollinationSolutions", + author_email="info@pollination.cloud", + url="https://github.com/pollination/python-sdk", + keywords=["OpenAPI", "OpenAPI-Generator", "pollination-server"], + install_requires=REQUIRES, + packages=find_packages(exclude=["test", "tests"]), + include_package_data=True, + long_description=long_description, + long_description_content_type="text/markdown", + classifiers=[ + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: Implementation :: CPython", + "Operating System :: OS Independent" + ], +) +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +with open('README.md') as fh: + long_description = fh.read() + +setup( + name=NAME, + version=VERSION, + description="pollination-server", + author="PollinationSolutions", + author_email="info@pollination.cloud", + url="https://github.com/pollination/python-sdk", + keywords=["OpenAPI", "OpenAPI-Generator", "pollination-server"], + install_requires=REQUIRES, + packages=find_packages(exclude=["test", "tests"]), + include_package_data=True, + long_description=long_description, + long_description_content_type="text/markdown", + classifiers=[ + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: Implementation :: CPython", + "Operating System :: OS Independent" + ], +) +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +with open('README.md') as fh: + long_description = fh.read() + +setup( + name=NAME, + version=VERSION, + description="pollination-server", + author="PollinationSolutions", + author_email="info@pollination.cloud", + url="https://github.com/pollination/python-sdk", + keywords=["OpenAPI", "OpenAPI-Generator", "pollination-server"], + install_requires=REQUIRES, + packages=find_packages(exclude=["test", "tests"]), + include_package_data=True, + long_description=long_description, + long_description_content_type="text/markdown", + classifiers=[ + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: Implementation :: CPython", + "Operating System :: OS Independent" + ], +) +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +with open('README.md') as fh: + long_description = fh.read() + +setup( + name=NAME, + version=VERSION, + description="pollination-server", + author="PollinationSolutions", + author_email="info@pollination.cloud", + url="https://github.com/pollination/python-sdk", + keywords=["OpenAPI", "OpenAPI-Generator", "pollination-server"], + install_requires=REQUIRES, + packages=find_packages(exclude=["test", "tests"]), + include_package_data=True, + long_description=long_description, + long_description_content_type="text/markdown", + classifiers=[ + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: Implementation :: CPython", + "Operating System :: OS Independent" + ], +) +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +with open('README.md') as fh: + long_description = fh.read() + +setup( + name=NAME, + version=VERSION, + description="pollination-server", + author="PollinationSolutions", + author_email="info@pollination.cloud", + url="https://github.com/pollination/python-sdk", + keywords=["OpenAPI", "OpenAPI-Generator", "pollination-server"], + install_requires=REQUIRES, + packages=find_packages(exclude=["test", "tests"]), + include_package_data=True, + long_description=long_description, + long_description_content_type="text/markdown", + classifiers=[ + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: Implementation :: CPython", + "Operating System :: OS Independent" + ], +) +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +with open('README.md') as fh: + long_description = fh.read() + +setup( + name=NAME, + version=VERSION, + description="pollination-server", + author="PollinationSolutions", + author_email="info@pollination.cloud", + url="https://github.com/pollination/python-sdk", + keywords=["OpenAPI", "OpenAPI-Generator", "pollination-server"], + install_requires=REQUIRES, + packages=find_packages(exclude=["test", "tests"]), + include_package_data=True, + long_description=long_description, + long_description_content_type="text/markdown", + classifiers=[ + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: Implementation :: CPython", + "Operating System :: OS Independent" + ], +) +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +with open('README.md') as fh: + long_description = fh.read() + +setup( + name=NAME, + version=VERSION, + description="pollination-server", + author="PollinationSolutions", + author_email="info@pollination.cloud", + url="https://github.com/pollination/python-sdk", + keywords=["OpenAPI", "OpenAPI-Generator", "pollination-server"], + install_requires=REQUIRES, + packages=find_packages(exclude=["test", "tests"]), + include_package_data=True, + long_description=long_description, + long_description_content_type="text/markdown", + classifiers=[ + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: Implementation :: CPython", + "Operating System :: OS Independent" + ], +) +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +with open('README.md') as fh: + long_description = fh.read() + +setup( + name=NAME, + version=VERSION, + description="pollination-server", + author="PollinationSolutions", + author_email="info@pollination.cloud", + url="https://github.com/pollination/python-sdk", + keywords=["OpenAPI", "OpenAPI-Generator", "pollination-server"], + install_requires=REQUIRES, + packages=find_packages(exclude=["test", "tests"]), + include_package_data=True, + long_description=long_description, + long_description_content_type="text/markdown", + classifiers=[ + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: Implementation :: CPython", + "Operating System :: OS Independent" + ], +) +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +with open('README.md') as fh: + long_description = fh.read() + +setup( + name=NAME, + version=VERSION, + description="pollination-server", + author="PollinationSolutions", + author_email="info@pollination.cloud", + url="https://github.com/pollination/python-sdk", + keywords=["OpenAPI", "OpenAPI-Generator", "pollination-server"], + install_requires=REQUIRES, + packages=find_packages(exclude=["test", "tests"]), + include_package_data=True, + long_description=long_description, + long_description_content_type="text/markdown", + classifiers=[ + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: Implementation :: CPython", + "Operating System :: OS Independent" + ], +) +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +with open('README.md') as fh: + long_description = fh.read() + +setup( + name=NAME, + version=VERSION, + description="pollination-server", + author="PollinationSolutions", + author_email="info@pollination.cloud", + url="https://github.com/pollination/python-sdk", + keywords=["OpenAPI", "OpenAPI-Generator", "pollination-server"], + install_requires=REQUIRES, + packages=find_packages(exclude=["test", "tests"]), + include_package_data=True, + long_description=long_description, + long_description_content_type="text/markdown", + classifiers=[ + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: Implementation :: CPython", + "Operating System :: OS Independent" + ], +) +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +with open('README.md') as fh: + long_description = fh.read() + +setup( + name=NAME, + version=VERSION, + description="pollination-server", + author="PollinationSolutions", + author_email="info@pollination.cloud", + url="https://github.com/pollination/python-sdk", + keywords=["OpenAPI", "OpenAPI-Generator", "pollination-server"], + install_requires=REQUIRES, + packages=find_packages(exclude=["test", "tests"]), + include_package_data=True, + long_description=long_description, + long_description_content_type="text/markdown", + classifiers=[ + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: Implementation :: CPython", + "Operating System :: OS Independent" + ], +) +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +with open('README.md') as fh: + long_description = fh.read() + +setup( + name=NAME, + version=VERSION, + description="pollination-server", + author="PollinationSolutions", + author_email="info@pollination.cloud", + url="https://github.com/pollination/python-sdk", + keywords=["OpenAPI", "OpenAPI-Generator", "pollination-server"], + install_requires=REQUIRES, + packages=find_packages(exclude=["test", "tests"]), + include_package_data=True, + long_description=long_description, + long_description_content_type="text/markdown", + classifiers=[ + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: Implementation :: CPython", + "Operating System :: OS Independent" + ], +) # To install the library, run the following # # python setup.py install diff --git a/test/test_accessor.py b/test/test_accessor.py index 4a94441ad..5639ad77b 100644 --- a/test/test_accessor.py +++ b/test/test_accessor.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,13 +37,13 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.accessor.Accessor() # noqa: E501 if include_optional : return Accessor( - permission = 'admin', - subject = null + permission = 'admin' + subject = None ) else : return Accessor( permission = 'admin', - subject = null, + subject = None, ) def testAccessor(self): diff --git a/test/test_account_public.py b/test/test_account_public.py index 628b3f718..d63cffd6d 100644 --- a/test/test_account_public.py +++ b/test/test_account_public.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,12 +37,12 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.account_public.AccountPublic() # noqa: E501 if include_optional : return AccountPublic( - account_type = 'user', - description = 'Beep Boop!', - display_name = 'Ladybug Bot', - id = '0ad77f99-8043-46e4-8220-7221487c3ee5', - name = 'ladybugbot', - picture_url = '0' + account_type = 'user' + description = 'Beep Boop!' + display_name = 'Ladybug Bot' + id = '0ad77f99-8043-46e4-8220-7221487c3ee5' + name = 'ladybugbot' + picture_url = '' ) else : return AccountPublic( diff --git a/test/test_account_type.py b/test/test_account_type.py index 0be1a8d7e..f68f3183b 100644 --- a/test/test_account_type.py +++ b/test/test_account_type.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_accounts_api.py b/test/test_accounts_api.py index 5b6dcc0e8..dd9b90a2e 100644 --- a/test/test_accounts_api.py +++ b/test/test_accounts_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -36,6 +36,13 @@ def test_check_account_name(self): """ pass + def test_delete_account(self): + """Test case for delete_account + + Delete an account # noqa: E501 + """ + pass + def test_get_account(self): """Test case for get_account diff --git a/test/test_activation.py b/test/test_activation.py index 97b721d88..cd31d292a 100644 --- a/test/test_activation.py +++ b/test/test_activation.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,43 +37,49 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.activation.Activation() # noqa: E501 if include_optional : return Activation( - app_version = '0', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - hostname = '0', - id = '0', - last_synced_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - lease_expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - license_id = '0', + app_version = '' + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + hostname = '' + id = '' + last_synced_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + lease_expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + license_id = '' location = pollination_sdk.models.location.Location( - city = '0', - country_code = '0', - country_name = '0', - ip_address = '0', + city = '', + country_code = '', + country_name = '', + ip_address = '', latitude = 1.337, - longitude = 1.337, ), + longitude = 1.337, ) metadata = [ pollination_sdk.models.metadata.Metadata( - id = '0', - key = '0', - value = '0', + id = '', + key = '', + value = '', visible = True, ) - ], - offline = True, - os = '0', - os_version = '0', - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - user = null + ] + offline = True + os = '' + os_version = '' + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + user = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ) ) else : return Activation( created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - id = '0', + id = '', last_synced_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), location = pollination_sdk.models.location.Location( - city = '0', - country_code = '0', - country_name = '0', - ip_address = '0', + city = '', + country_code = '', + country_name = '', + ip_address = '', latitude = 1.337, longitude = 1.337, ), offline = True, diff --git a/test/test_activation_list.py b/test/test_activation_list.py index 31a349ce0..f0ca10160 100644 --- a/test/test_activation_list.py +++ b/test/test_activation_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,30 +39,30 @@ def make_instance(self, include_optional): return ActivationList( resources = [ pollination_sdk.models.activation.Activation( - app_version = '0', + app_version = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - hostname = '0', - id = '0', + hostname = '', + id = '', last_synced_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), lease_expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - license_id = '0', + license_id = '', location = pollination_sdk.models.location.Location( - city = '0', - country_code = '0', - country_name = '0', - ip_address = '0', + city = '', + country_code = '', + country_name = '', + ip_address = '', latitude = 1.337, longitude = 1.337, ), metadata = [ pollination_sdk.models.metadata.Metadata( - id = '0', - key = '0', - value = '0', + id = '', + key = '', + value = '', visible = True, ) ], offline = True, - os = '0', - os_version = '0', + os = '', + os_version = '', updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), user = null, ) ] @@ -71,30 +71,30 @@ def make_instance(self, include_optional): return ActivationList( resources = [ pollination_sdk.models.activation.Activation( - app_version = '0', + app_version = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - hostname = '0', - id = '0', + hostname = '', + id = '', last_synced_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), lease_expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - license_id = '0', + license_id = '', location = pollination_sdk.models.location.Location( - city = '0', - country_code = '0', - country_name = '0', - ip_address = '0', + city = '', + country_code = '', + country_name = '', + ip_address = '', latitude = 1.337, longitude = 1.337, ), metadata = [ pollination_sdk.models.metadata.Metadata( - id = '0', - key = '0', - value = '0', + id = '', + key = '', + value = '', visible = True, ) ], offline = True, - os = '0', - os_version = '0', + os = '', + os_version = '', updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), user = null, ) ], diff --git a/test/test_api_token.py b/test/test_api_token.py index 72cf80643..bdfd3e7d3 100644 --- a/test/test_api_token.py +++ b/test/test_api_token.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,15 +38,15 @@ def make_instance(self, include_optional): if include_optional : return APIToken( claims = { - 'key' : '0' - }, - name = '0', - token_id = '0' + 'key' : '' + } + name = '' + token_id = '' ) else : return APIToken( - name = '0', - token_id = '0', + name = '', + token_id = '', ) def testAPIToken(self): diff --git a/test/test_api_token_create.py b/test/test_api_token_create.py index 74bf694ad..678c98c52 100644 --- a/test/test_api_token_create.py +++ b/test/test_api_token_create.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,15 +38,15 @@ def make_instance(self, include_optional): if include_optional : return APITokenCreate( claims = { - 'key' : '0' - }, - name = '0', - token_id = '0' + 'key' : '' + } + name = '' + token_id = '' ) else : return APITokenCreate( - name = '0', - token_id = '0', + name = '', + token_id = '', ) def testAPITokenCreate(self): diff --git a/test/test_api_token_list.py b/test/test_api_token_list.py index 9b902d8da..a8452133c 100644 --- a/test/test_api_token_list.py +++ b/test/test_api_token_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,18 +37,18 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.api_token_list.APITokenList() # noqa: E501 if include_optional : return APITokenList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.api_token.APIToken( claims = { - 'key' : '0' + 'key' : '' }, - name = '0', - token_id = '0', ) - ], + name = '', + token_id = '', ) + ] total_count = 56 ) else : @@ -59,10 +59,10 @@ def make_instance(self, include_optional): resources = [ pollination_sdk.models.api_token.APIToken( claims = { - 'key' : '0' + 'key' : '' }, - name = '0', - token_id = '0', ) + name = '', + token_id = '', ) ], total_count = 56, ) diff --git a/test/test_api_token_private.py b/test/test_api_token_private.py index a12acdb40..7390be2cc 100644 --- a/test/test_api_token_private.py +++ b/test/test_api_token_private.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,17 +38,17 @@ def make_instance(self, include_optional): if include_optional : return APITokenPrivate( claims = { - 'key' : '0' - }, - name = '0', - token = '0', - token_id = '0' + 'key' : '' + } + name = '' + token = '' + token_id = '' ) else : return APITokenPrivate( - name = '0', - token = '0', - token_id = '0', + name = '', + token = '', + token_id = '', ) def testAPITokenPrivate(self): diff --git a/test/test_api_tokens_api.py b/test/test_api_tokens_api.py index c1cbadb58..a518f2e82 100644 --- a/test/test_api_tokens_api.py +++ b/test/test_api_tokens_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_application.py b/test/test_application.py index b98e121ee..7495a0099 100644 --- a/test/test_application.py +++ b/test/test_application.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,32 +37,49 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.application.Application() # noqa: E501 if include_optional : return Application( - deployment_config = null, - description = '0', - has_been_deployed = True, - id = '50bb7fe0-8f19-499e-972e-1ebec8af2c71', - image = 'https://picsum.photos/400', - is_paid = True, - keywords = ["falcon","api"], - license = '0', - name = 'Application Falcon', - owner = null, + deployment_config = pollination_sdk.models.deployment_config.DeploymentConfig( + cpu_limit = 56, + entrypoint_file = 'app.py', + login_required = True, + memory_limit = 56, + scale_to_zero = True, ) + description = '' + has_been_deployed = True + id = '50bb7fe0-8f19-499e-972e-1ebec8af2c71' + image = 'https://picsum.photos/400' + is_paid = True + keywords = [falcon, api] + license = '' + name = 'Application Falcon' + owner = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ) permissions = pollination_sdk.models.user_permission.UserPermission( admin = False, read = True, - write = False, ), - public = True, - sdk = null, - slug = 'application-falcon', - source = '0', - url = '0' + write = False, ) + public = True + sdk = 'streamlit' + slug = 'application-falcon' + source = '' + url = '' ) else : return Application( has_been_deployed = True, id = '50bb7fe0-8f19-499e-972e-1ebec8af2c71', name = 'Application Falcon', - owner = null, + owner = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ), permissions = pollination_sdk.models.user_permission.UserPermission( admin = False, read = True, diff --git a/test/test_application_access_policy.py b/test/test_application_access_policy.py index 907d5b76e..35e0aefcf 100644 --- a/test/test_application_access_policy.py +++ b/test/test_application_access_policy.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,13 +37,17 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.application_access_policy.ApplicationAccessPolicy() # noqa: E501 if include_optional : return ApplicationAccessPolicy( - permission = write, - subject = null + permission = 'admin' + subject = pollination_sdk.models.policy_subject.PolicySubject( + name = 'ladybugbot', + subject_type = 'user', ) ) else : return ApplicationAccessPolicy( - permission = write, - subject = null, + permission = 'admin', + subject = pollination_sdk.models.policy_subject.PolicySubject( + name = 'ladybugbot', + subject_type = 'user', ), ) def testApplicationAccessPolicy(self): diff --git a/test/test_application_access_policy_list.py b/test/test_application_access_policy_list.py index 672f255c5..79003e0fd 100644 --- a/test/test_application_access_policy_list.py +++ b/test/test_application_access_policy_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,15 +37,15 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.application_access_policy_list.ApplicationAccessPolicyList() # noqa: E501 if include_optional : return ApplicationAccessPolicyList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.application_access_policy.ApplicationAccessPolicy( permission = write, subject = null, ) - ], + ] total_count = 56 ) else : diff --git a/test/test_application_create.py b/test/test_application_create.py index 002d0bec1..0b7da883e 100644 --- a/test/test_application_create.py +++ b/test/test_application_create.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,16 +37,21 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.application_create.ApplicationCreate() # noqa: E501 if include_optional : return ApplicationCreate( - deployment_config = null, - description = '0', - image = 'https://picsum.photos/400', - is_paid = True, - keywords = ["falcon","api"], - license = '0', - name = 'Application Falcon', - public = True, - sdk = null, - source = '0' + deployment_config = pollination_sdk.models.deployment_config.DeploymentConfig( + cpu_limit = 56, + entrypoint_file = 'app.py', + login_required = True, + memory_limit = 56, + scale_to_zero = True, ) + description = '' + image = 'https://picsum.photos/400' + is_paid = True + keywords = [falcon, api] + license = '' + name = 'Application Falcon' + public = True + sdk = 'streamlit' + source = '' ) else : return ApplicationCreate( diff --git a/test/test_application_deployment.py b/test/test_application_deployment.py index 5258cfa08..c173acf00 100644 --- a/test/test_application_deployment.py +++ b/test/test_application_deployment.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,17 +37,41 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.application_deployment.ApplicationDeployment() # noqa: E501 if include_optional : return ApplicationDeployment( - author = null, - ready = True, - url = '0', - version = null + author = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ) + ready = True + url = '' + version = pollination_sdk.models.application_version.ApplicationVersion( + author = null, + build_status = null, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + release_notes = '', + tag = '', ) ) else : return ApplicationDeployment( - author = null, + author = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ), ready = True, - url = '0', - version = null, + url = '', + version = pollination_sdk.models.application_version.ApplicationVersion( + author = null, + build_status = null, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + release_notes = '', + tag = '', ), ) def testApplicationDeployment(self): diff --git a/test/test_application_list.py b/test/test_application_list.py index e5a84b72e..baa1793ec 100644 --- a/test/test_application_list.py +++ b/test/test_application_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,20 +37,20 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.application_list.ApplicationList() # noqa: E501 if include_optional : return ApplicationList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.application.Application( deployment_config = null, - description = '0', + description = '', has_been_deployed = True, id = '50bb7fe0-8f19-499e-972e-1ebec8af2c71', image = 'https://picsum.photos/400', is_paid = True, - keywords = ["falcon","api"], - license = '0', + keywords = [falcon, api], + license = '', name = 'Application Falcon', owner = null, permissions = pollination_sdk.models.user_permission.UserPermission( @@ -60,9 +60,9 @@ def make_instance(self, include_optional): public = True, sdk = null, slug = 'application-falcon', - source = '0', - url = '0', ) - ], + source = '', + url = '', ) + ] total_count = 56 ) else : @@ -73,13 +73,13 @@ def make_instance(self, include_optional): resources = [ pollination_sdk.models.application.Application( deployment_config = null, - description = '0', + description = '', has_been_deployed = True, id = '50bb7fe0-8f19-499e-972e-1ebec8af2c71', image = 'https://picsum.photos/400', is_paid = True, - keywords = ["falcon","api"], - license = '0', + keywords = [falcon, api], + license = '', name = 'Application Falcon', owner = null, permissions = pollination_sdk.models.user_permission.UserPermission( @@ -89,8 +89,8 @@ def make_instance(self, include_optional): public = True, sdk = null, slug = 'application-falcon', - source = '0', - url = '0', ) + source = '', + url = '', ) ], total_count = 56, ) diff --git a/test/test_application_policy_subject.py b/test/test_application_policy_subject.py index 91bab4a2e..b2eb90364 100644 --- a/test/test_application_policy_subject.py +++ b/test/test_application_policy_subject.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,7 +37,7 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.application_policy_subject.ApplicationPolicySubject() # noqa: E501 if include_optional : return ApplicationPolicySubject( - name = 'ladybugbot', + name = 'ladybugbot' subject_type = 'user' ) else : diff --git a/test/test_application_sort_key.py b/test/test_application_sort_key.py index e5c943a3e..33b3bda8f 100644 --- a/test/test_application_sort_key.py +++ b/test/test_application_sort_key.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_application_update.py b/test/test_application_update.py index 1bc1ad775..e61a361be 100644 --- a/test/test_application_update.py +++ b/test/test_application_update.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,13 +37,18 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.application_update.ApplicationUpdate() # noqa: E501 if include_optional : return ApplicationUpdate( - deployment_config = null, - description = 'I always wanted to have a application called application Falcon', - is_paid = True, - keywords = ["falcon","api"], - license = '0', - public = True, - source = '0' + deployment_config = pollination_sdk.models.deployment_config_update.DeploymentConfigUpdate( + cpu_limit = 56, + entrypoint_file = '', + login_required = True, + memory_limit = 56, + scale_to_zero = True, ) + description = 'I always wanted to have a application called application Falcon' + is_paid = True + keywords = [falcon, api] + license = '' + public = True + source = '' ) else : return ApplicationUpdate( diff --git a/test/test_application_version.py b/test/test_application_version.py index 697232ca5..a1ad5701f 100644 --- a/test/test_application_version.py +++ b/test/test_application_version.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,19 +37,39 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.application_version.ApplicationVersion() # noqa: E501 if include_optional : return ApplicationVersion( - author = null, - build_status = null, - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - id = '0', - release_notes = '0', - tag = '0' + author = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ) + build_status = pollination_sdk.models.build_status.BuildStatus( + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = null, ) + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + id = '' + release_notes = '' + tag = '' ) else : return ApplicationVersion( - author = null, - build_status = null, - id = '0', - tag = '0', + author = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ), + build_status = pollination_sdk.models.build_status.BuildStatus( + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = null, ), + id = '', + tag = '', ) def testApplicationVersion(self): diff --git a/test/test_application_version_list.py b/test/test_application_version_list.py index be21716da..1b361e993 100644 --- a/test/test_application_version_list.py +++ b/test/test_application_version_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,19 +37,19 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.application_version_list.ApplicationVersionList() # noqa: E501 if include_optional : return ApplicationVersionList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.application_version.ApplicationVersion( author = null, build_status = null, created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - id = '0', - release_notes = '0', - tag = '0', ) - ], + id = '', + release_notes = '', + tag = '', ) + ] total_count = 56 ) else : @@ -62,9 +62,9 @@ def make_instance(self, include_optional): author = null, build_status = null, created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - id = '0', - release_notes = '0', - tag = '0', ) + id = '', + release_notes = '', + tag = '', ) ], total_count = 56, ) diff --git a/test/test_applications_api.py b/test/test_applications_api.py index 53f0f17f8..46dcf26ff 100644 --- a/test/test_applications_api.py +++ b/test/test_applications_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -92,6 +92,13 @@ def test_list_applications(self): """ pass + def test_restart_application_deployment(self): + """Test case for restart_application_deployment + + Restart application deployment # noqa: E501 + """ + pass + def test_update_application(self): """Test case for update_application @@ -99,6 +106,13 @@ def test_update_application(self): """ pass + def test_upload_version_package(self): + """Test case for upload_version_package + + Upload the build package for the application version # noqa: E501 + """ + pass + def test_upsert_application_permission(self): """Test case for upsert_application_permission diff --git a/test/test_artifacts_api.py b/test/test_artifacts_api.py index 35c2b0c9c..78ecbebe2 100644 --- a/test/test_artifacts_api.py +++ b/test/test_artifacts_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_baked_recipe.py b/test/test_baked_recipe.py index 04db98c8e..df96fb2fb 100644 --- a/test/test_baked_recipe.py +++ b/test/test_baked_recipe.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,98 +38,125 @@ def make_instance(self, include_optional): if include_optional : return BakedRecipe( annotations = { - 'key' : '0' - }, - api_version = 'v1beta1', + 'key' : '' + } + api_version = 'v1beta1' dependencies = [ pollination_sdk.models.dependency.Dependency( - alias = '0', + alias = '', annotations = { - 'key' : '0' + 'key' : '' }, - hash = '0', + hash = '', kind = null, - name = '0', - source = '0', - tag = '0', + name = '', + source = '', + tag = '', type = 'Dependency', ) - ], - digest = '0', + ] + digest = '' flow = [ pollination_sdk.models.dag.DAG( annotations = { - 'key' : '0' + 'key' : '' }, fail_fast = True, inputs = [ null ], - name = '0', + name = '', outputs = [ null ], tasks = [ pollination_sdk.models.dag_task.DAGTask( annotations = { - 'key' : '0' + 'key' : '' }, arguments = [ null ], loop = null, - name = '0', + name = '', needs = [ - '0' + '' ], returns = [ null ], - sub_folder = '0', - template = '0', + sub_folder = '', + template = '', type = 'DAGTask', ) ], type = 'DAG', ) - ], - metadata = null, + ] + metadata = pollination_sdk.models.meta_data.MetaData( + annotations = { + 'key' : '' + }, + app_version = '', + deprecated = True, + description = '', + home = '', + icon = '', + keywords = [ + '' + ], + license = null, + maintainers = [ + pollination_sdk.models.maintainer.Maintainer( + annotations = { + 'key' : '' + }, + email = '', + name = '', + type = 'Maintainer', ) + ], + name = '', + sources = [ + '' + ], + tag = '', + type = 'MetaData', ) templates = [ null - ], + ] type = 'BakedRecipe' ) else : return BakedRecipe( - digest = '0', + digest = '', flow = [ pollination_sdk.models.dag.DAG( annotations = { - 'key' : '0' + 'key' : '' }, fail_fast = True, inputs = [ null ], - name = '0', + name = '', outputs = [ null ], tasks = [ pollination_sdk.models.dag_task.DAGTask( annotations = { - 'key' : '0' + 'key' : '' }, arguments = [ null ], loop = null, - name = '0', + name = '', needs = [ - '0' + '' ], returns = [ null ], - sub_folder = '0', - template = '0', + sub_folder = '', + template = '', type = 'DAGTask', ) ], type = 'DAG', ) diff --git a/test/test_baked_recipe_templates_inner.py b/test/test_baked_recipe_templates_inner.py new file mode 100644 index 000000000..59749c76d --- /dev/null +++ b/test/test_baked_recipe_templates_inner.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.baked_recipe_templates_inner import BakedRecipeTemplatesInner # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestBakedRecipeTemplatesInner(unittest.TestCase): + """BakedRecipeTemplatesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test BakedRecipeTemplatesInner + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.baked_recipe_templates_inner.BakedRecipeTemplatesInner() # noqa: E501 + if include_optional : + return BakedRecipeTemplatesInner( + annotations = { + 'key' : '' + } + command = '' + config = pollination_sdk.models.plugin_config.PluginConfig( + annotations = { + 'key' : '' + }, + docker = null, + local = null, + type = 'PluginConfig', ) + description = '' + inputs = [ + null + ] + language = 'python' + name = '' + outputs = [ + null + ] + source = '' + type = 'DAG' + fail_fast = True + tasks = [ + pollination_sdk.models.dag_task.DAGTask( + annotations = { + 'key' : '' + }, + arguments = [ + null + ], + loop = null, + name = '', + needs = [ + '' + ], + returns = [ + null + ], + sub_folder = '', + template = '', + type = 'DAGTask', ) + ] + ) + else : + return BakedRecipeTemplatesInner( + config = pollination_sdk.models.plugin_config.PluginConfig( + annotations = { + 'key' : '' + }, + docker = null, + local = null, + type = 'PluginConfig', ), + name = '', + tasks = [ + pollination_sdk.models.dag_task.DAGTask( + annotations = { + 'key' : '' + }, + arguments = [ + null + ], + loop = null, + name = '', + needs = [ + '' + ], + returns = [ + null + ], + sub_folder = '', + template = '', + type = 'DAGTask', ) + ], + ) + + def testBakedRecipeTemplatesInner(self): + """Test BakedRecipeTemplatesInner""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_billing_info.py b/test/test_billing_info.py index 8ca4d9bae..316cd9cda 100644 --- a/test/test_billing_info.py +++ b/test/test_billing_info.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,25 +37,42 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.billing_info.BillingInfo() # noqa: E501 if include_optional : return BillingInfo( - cancel_url = '0', - last_payment = null, - next_payment = null, - paused_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - paused_from = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - paused_reason = null, - payment_information = null, - signup_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - update_url = '0', - user_email = '0' + cancel_url = '' + last_payment = pollination_sdk.models.subscription_payment.SubscriptionPayment( + amount = 1.337, + currency = '', + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), ) + next_payment = pollination_sdk.models.subscription_payment.SubscriptionPayment( + amount = 1.337, + currency = '', + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), ) + paused_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + paused_from = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + paused_reason = 'voluntary' + payment_information = pollination_sdk.models.payment_method.PaymentMethod( + card_type = 'master', + expiry_date = '', + last_four_digits = '', + payment_method = 'card', ) + signup_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + update_url = '' + user_email = '' ) else : return BillingInfo( - cancel_url = '0', - last_payment = null, - payment_information = null, + cancel_url = '', + last_payment = pollination_sdk.models.subscription_payment.SubscriptionPayment( + amount = 1.337, + currency = '', + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), ), + payment_information = pollination_sdk.models.payment_method.PaymentMethod( + card_type = 'master', + expiry_date = '', + last_four_digits = '', + payment_method = 'card', ), signup_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - update_url = '0', - user_email = '0', + update_url = '', + user_email = '', ) def testBillingInfo(self): diff --git a/test/test_billing_option.py b/test/test_billing_option.py index 5edb0fa86..7502b9b38 100644 --- a/test/test_billing_option.py +++ b/test/test_billing_option.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,10 +37,10 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.billing_option.BillingOption() # noqa: E501 if include_optional : return BillingOption( - billing_period = 56, - billing_type = '0', - id = 56, - name = '0', + billing_period = 56 + billing_type = '' + id = 56 + name = '' recurring_price = { 'key' : 1.337 } @@ -48,9 +48,9 @@ def make_instance(self, include_optional): else : return BillingOption( billing_period = 56, - billing_type = '0', + billing_type = '', id = 56, - name = '0', + name = '', recurring_price = { 'key' : 1.337 }, diff --git a/test/test_build_status.py b/test/test_build_status.py index 3f1ce6859..f8941aadd 100644 --- a/test/test_build_status.py +++ b/test/test_build_status.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,14 +37,14 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.build_status.BuildStatus() # noqa: E501 if include_optional : return BuildStatus( - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - status = null + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + status = 'pending' ) else : return BuildStatus( - status = null, + status = 'pending', ) def testBuildStatus(self): diff --git a/test/test_build_status_enum.py b/test/test_build_status_enum.py index c2ab44a5f..086085f03 100644 --- a/test/test_build_status_enum.py +++ b/test/test_build_status_enum.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_cad_license_usage.py b/test/test_cad_license_usage.py new file mode 100644 index 000000000..c55c26770 --- /dev/null +++ b/test/test_cad_license_usage.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.cad_license_usage import CADLicenseUsage # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestCADLicenseUsage(unittest.TestCase): + """CADLicenseUsage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test CADLicenseUsage + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.cad_license_usage.CADLicenseUsage() # noqa: E501 + if include_optional : + return CADLicenseUsage( + action = '' + app_version = '' + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + product_id = '' + product_name = '' + user_id = '' + user_name = '' + ) + else : + return CADLicenseUsage( + action = '', + app_version = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + product_id = '', + product_name = '', + user_id = '', + user_name = '', + ) + + def testCADLicenseUsage(self): + """Test CADLicenseUsage""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_card_type.py b/test/test_card_type.py index 455665f22..8bd5336bd 100644 --- a/test/test_card_type.py +++ b/test/test_card_type.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_cloud_job.py b/test/test_cloud_job.py index 94f2e1cc8..0487c2f01 100644 --- a/test/test_cloud_job.py +++ b/test/test_cloud_job.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,18 +37,93 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.cloud_job.CloudJob() # noqa: E501 if include_optional : return CloudJob( - author = null, - id = '0', - owner = null, - recipe = null, - resources_duration = null, - spec = null, - status = null + author = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ) + id = '' + owner = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ) + recipe = pollination_sdk.models.recipe_interface.RecipeInterface( + annotations = { + 'key' : '' + }, + api_version = 'v1beta1', + inputs = [ + null + ], + metadata = null, + outputs = [ + null + ], + source = '', + type = 'RecipeInterface', ) + resources_duration = pollination_sdk.models.resources_duration.ResourcesDuration( + cpu = 56, + memory = 56, ) + spec = pollination_sdk.models.job.Job( + annotations = { + 'key' : '' + }, + api_version = 'v1beta1', + arguments = [ + [ + null + ] + ], + description = '', + labels = { + 'key' : '' + }, + name = '', + source = '', + type = 'Job', ) + status = pollination_sdk.models.job_status.JobStatus( + annotations = { + 'key' : '' + }, + api_version = 'v1beta1', + finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + message = '', + runs_cancelled = 56, + runs_completed = 56, + runs_failed = 56, + runs_pending = 56, + runs_running = 56, + source = '', + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = null, + type = 'JobStatus', ) ) else : return CloudJob( - id = '0', - spec = null, + id = '', + spec = pollination_sdk.models.job.Job( + annotations = { + 'key' : '' + }, + api_version = 'v1beta1', + arguments = [ + [ + null + ] + ], + description = '', + labels = { + 'key' : '' + }, + name = '', + source = '', + type = 'Job', ), ) def testCloudJob(self): diff --git a/test/test_cloud_job_list.py b/test/test_cloud_job_list.py index 609b91df9..a86438253 100644 --- a/test/test_cloud_job_list.py +++ b/test/test_cloud_job_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,20 +37,20 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.cloud_job_list.CloudJobList() # noqa: E501 if include_optional : return CloudJobList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.cloud_job.CloudJob( author = null, - id = '0', + id = '', owner = null, recipe = null, resources_duration = null, spec = null, status = null, ) - ], + ] total_count = 56 ) else : @@ -61,7 +61,7 @@ def make_instance(self, include_optional): resources = [ pollination_sdk.models.cloud_job.CloudJob( author = null, - id = '0', + id = '', owner = null, recipe = null, resources_duration = null, diff --git a/test/test_created_content.py b/test/test_created_content.py index 2af900aee..bcba8579c 100644 --- a/test/test_created_content.py +++ b/test/test_created_content.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,7 +37,7 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.created_content.CreatedContent() # noqa: E501 if include_optional : return CreatedContent( - id = '3fa85f64-5717-4562-b3fc-2c963f66afa6', + id = '3fa85f64-5717-4562-b3fc-2c963f66afa6' message = 'Use Location in headers to access the new object.' ) else : diff --git a/test/test_dag.py b/test/test_dag.py index ba82e6f9e..0a95127a8 100644 --- a/test/test_dag.py +++ b/test/test_dag.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,59 +38,59 @@ def make_instance(self, include_optional): if include_optional : return DAG( annotations = { - 'key' : '0' - }, - fail_fast = True, + 'key' : '' + } + fail_fast = True inputs = [ null - ], - name = '0', + ] + name = '' outputs = [ null - ], + ] tasks = [ pollination_sdk.models.dag_task.DAGTask( annotations = { - 'key' : '0' + 'key' : '' }, arguments = [ null ], loop = null, - name = '0', + name = '', needs = [ - '0' + '' ], returns = [ null ], - sub_folder = '0', - template = '0', + sub_folder = '', + template = '', type = 'DAGTask', ) - ], + ] type = 'DAG' ) else : return DAG( - name = '0', + name = '', tasks = [ pollination_sdk.models.dag_task.DAGTask( annotations = { - 'key' : '0' + 'key' : '' }, arguments = [ null ], loop = null, - name = '0', + name = '', needs = [ - '0' + '' ], returns = [ null ], - sub_folder = '0', - template = '0', + sub_folder = '', + template = '', type = 'DAGTask', ) ], ) diff --git a/test/test_dag_array_input.py b/test/test_dag_array_input.py index 0c0f20767..54af52c63 100644 --- a/test/test_dag_array_input.py +++ b/test/test_dag_array_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,23 +39,23 @@ def make_instance(self, include_optional): return DAGArrayInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, + 'key' : '' + } default = [ null - ], - description = '0', - items_type = null, - name = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), + ] + description = '' + items_type = 'Generic' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() type = 'DAGArrayInput' ) else : return DAGArrayInput( - name = '0', + name = '', ) def testDAGArrayInput(self): diff --git a/test/test_dag_array_input_alias.py b/test/test_dag_array_input_alias.py index 6b17f0521..4e9cd1613 100644 --- a/test/test_dag_array_input_alias.py +++ b/test/test_dag_array_input_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,30 +38,30 @@ def make_instance(self, include_optional): if include_optional : return DAGArrayInputAlias( annotations = { - 'key' : '0' - }, + 'key' : '' + } default = [ null - ], - description = '0', + ] + description = '' handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) - ], - items_type = null, - name = '0', + ] + items_type = 'Generic' + name = '' platform = [ - '0' - ], - required = True, - spec = pollination_sdk.models.spec.Spec(), + '' + ] + required = True + spec = pollination_sdk.models.spec.Spec() type = 'DAGArrayInputAlias' ) else : @@ -69,17 +69,17 @@ def make_instance(self, include_optional): handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) ], - name = '0', + name = '', platform = [ - '0' + '' ], ) diff --git a/test/test_dag_array_input_alias_inner.py b/test/test_dag_array_input_alias_inner.py new file mode 100644 index 000000000..8e749c7f7 --- /dev/null +++ b/test/test_dag_array_input_alias_inner.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.dag_array_input_alias_inner import DAGArrayInputAliasInner # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestDAGArrayInputAliasInner(unittest.TestCase): + """DAGArrayInputAliasInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DAGArrayInputAliasInner + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.dag_array_input_alias_inner.DAGArrayInputAliasInner() # noqa: E501 + if include_optional : + return DAGArrayInputAliasInner( + annotations = { + 'key' : '' + } + default = '' + description = '' + handler = [ + pollination_sdk.models.io_alias_handler.IOAliasHandler( + annotations = { + 'key' : '' + }, + function = '', + index = 56, + language = '', + module = 'honeybee_rhino.handlers', + type = 'IOAliasHandler', ) + ] + name = '' + platform = [ + '' + ] + required = True + spec = pollination_sdk.models.spec.Spec() + type = 'DAGLinkedInputAlias' + extensions = [ + '' + ] + items_type = 'Generic' + ) + else : + return DAGArrayInputAliasInner( + handler = [ + pollination_sdk.models.io_alias_handler.IOAliasHandler( + annotations = { + 'key' : '' + }, + function = '', + index = 56, + language = '', + module = 'honeybee_rhino.handlers', + type = 'IOAliasHandler', ) + ], + name = '', + platform = [ + '' + ], + ) + + def testDAGArrayInputAliasInner(self): + """Test DAGArrayInputAliasInner""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dag_array_output.py b/test/test_dag_array_output.py index 6d7c0979c..03ff3dd59 100644 --- a/test/test_dag_array_output.py +++ b/test/test_dag_array_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,21 +39,21 @@ def make_instance(self, include_optional): return DAGArrayOutput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - description = '0', - _from = null, - items_type = null, - name = '0', - required = True, + 'key' : '' + } + description = '' + var_from = None + items_type = 'Generic' + name = '' + required = True type = 'DAGArrayOutput' ) else : return DAGArrayOutput( - _from = null, - name = '0', + var_from = None, + name = '', ) def testDAGArrayOutput(self): diff --git a/test/test_dag_array_output_alias.py b/test/test_dag_array_output_alias.py index f9623f501..7eaf69f20 100644 --- a/test/test_dag_array_output_alias.py +++ b/test/test_dag_array_output_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,46 +38,46 @@ def make_instance(self, include_optional): if include_optional : return DAGArrayOutputAlias( annotations = { - 'key' : '0' - }, - description = '0', - _from = null, + 'key' : '' + } + description = '' + var_from = None handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) - ], - items_type = null, - name = '0', + ] + items_type = 'Generic' + name = '' platform = [ - '0' - ], - required = True, + '' + ] + required = True type = 'DAGArrayOutputAlias' ) else : return DAGArrayOutputAlias( - _from = null, + var_from = None, handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) ], - name = '0', + name = '', platform = [ - '0' + '' ], ) diff --git a/test/test_dag_array_output_alias_inner.py b/test/test_dag_array_output_alias_inner.py new file mode 100644 index 000000000..80fde3a6b --- /dev/null +++ b/test/test_dag_array_output_alias_inner.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.dag_array_output_alias_inner import DAGArrayOutputAliasInner # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestDAGArrayOutputAliasInner(unittest.TestCase): + """DAGArrayOutputAliasInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DAGArrayOutputAliasInner + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.dag_array_output_alias_inner.DAGArrayOutputAliasInner() # noqa: E501 + if include_optional : + return DAGArrayOutputAliasInner( + annotations = { + 'key' : '' + } + description = '' + handler = [ + pollination_sdk.models.io_alias_handler.IOAliasHandler( + annotations = { + 'key' : '' + }, + function = '', + index = 56, + language = '', + module = 'honeybee_rhino.handlers', + type = 'IOAliasHandler', ) + ] + name = '' + platform = [ + '' + ] + type = 'DAGLinkedOutputAlias' + var_from = None + required = True + items_type = 'Generic' + ) + else : + return DAGArrayOutputAliasInner( + handler = [ + pollination_sdk.models.io_alias_handler.IOAliasHandler( + annotations = { + 'key' : '' + }, + function = '', + index = 56, + language = '', + module = 'honeybee_rhino.handlers', + type = 'IOAliasHandler', ) + ], + name = '', + platform = [ + '' + ], + var_from = None, + ) + + def testDAGArrayOutputAliasInner(self): + """Test DAGArrayOutputAliasInner""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dag_boolean_input.py b/test/test_dag_boolean_input.py index a6a695e1a..921678a31 100644 --- a/test/test_dag_boolean_input.py +++ b/test/test_dag_boolean_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,20 +39,20 @@ def make_instance(self, include_optional): return DAGBooleanInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = True, - description = '0', - name = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), + 'key' : '' + } + default = True + description = '' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() type = 'DAGBooleanInput' ) else : return DAGBooleanInput( - name = '0', + name = '', ) def testDAGBooleanInput(self): diff --git a/test/test_dag_boolean_input_alias.py b/test/test_dag_boolean_input_alias.py index b619ed987..3eb96cd72 100644 --- a/test/test_dag_boolean_input_alias.py +++ b/test/test_dag_boolean_input_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,27 +38,27 @@ def make_instance(self, include_optional): if include_optional : return DAGBooleanInputAlias( annotations = { - 'key' : '0' - }, - default = True, - description = '0', + 'key' : '' + } + default = True + description = '' handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) - ], - name = '0', + ] + name = '' platform = [ - '0' - ], - required = True, - spec = pollination_sdk.models.spec.Spec(), + '' + ] + required = True + spec = pollination_sdk.models.spec.Spec() type = 'DAGBooleanInputAlias' ) else : @@ -66,17 +66,17 @@ def make_instance(self, include_optional): handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) ], - name = '0', + name = '', platform = [ - '0' + '' ], ) diff --git a/test/test_dag_boolean_output.py b/test/test_dag_boolean_output.py index 8f2478c0a..71508deb9 100644 --- a/test/test_dag_boolean_output.py +++ b/test/test_dag_boolean_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,20 +39,20 @@ def make_instance(self, include_optional): return DAGBooleanOutput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - description = '0', - _from = null, - name = '0', - required = True, + 'key' : '' + } + description = '' + var_from = None + name = '' + required = True type = 'DAGBooleanOutput' ) else : return DAGBooleanOutput( - _from = null, - name = '0', + var_from = None, + name = '', ) def testDAGBooleanOutput(self): diff --git a/test/test_dag_boolean_output_alias.py b/test/test_dag_boolean_output_alias.py index ab4ed6283..52dcf0c6d 100644 --- a/test/test_dag_boolean_output_alias.py +++ b/test/test_dag_boolean_output_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,45 +38,45 @@ def make_instance(self, include_optional): if include_optional : return DAGBooleanOutputAlias( annotations = { - 'key' : '0' - }, - description = '0', - _from = null, + 'key' : '' + } + description = '' + var_from = None handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) - ], - name = '0', + ] + name = '' platform = [ - '0' - ], - required = True, + '' + ] + required = True type = 'DAGBooleanOutputAlias' ) else : return DAGBooleanOutputAlias( - _from = null, + var_from = None, handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) ], - name = '0', + name = '', platform = [ - '0' + '' ], ) diff --git a/test/test_dag_file_input.py b/test/test_dag_file_input.py index 1b1676d68..3e74c8c69 100644 --- a/test/test_dag_file_input.py +++ b/test/test_dag_file_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,23 +39,23 @@ def make_instance(self, include_optional): return DAGFileInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = null, - description = '0', + 'key' : '' + } + default = None + description = '' extensions = [ - '0' - ], - name = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), + '' + ] + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() type = 'DAGFileInput' ) else : return DAGFileInput( - name = '0', + name = '', ) def testDAGFileInput(self): diff --git a/test/test_dag_file_input_alias.py b/test/test_dag_file_input_alias.py index 086635c33..a27d11d5b 100644 --- a/test/test_dag_file_input_alias.py +++ b/test/test_dag_file_input_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,30 +38,30 @@ def make_instance(self, include_optional): if include_optional : return DAGFileInputAlias( annotations = { - 'key' : '0' - }, - default = null, - description = '0', + 'key' : '' + } + default = None + description = '' extensions = [ - '0' - ], + '' + ] handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) - ], - name = '0', + ] + name = '' platform = [ - '0' - ], - required = True, - spec = pollination_sdk.models.spec.Spec(), + '' + ] + required = True + spec = pollination_sdk.models.spec.Spec() type = 'DAGFileInputAlias' ) else : @@ -69,17 +69,17 @@ def make_instance(self, include_optional): handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) ], - name = '0', + name = '', platform = [ - '0' + '' ], ) diff --git a/test/test_dag_file_output.py b/test/test_dag_file_output.py index 19bf1454f..8243f836b 100644 --- a/test/test_dag_file_output.py +++ b/test/test_dag_file_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,20 +39,20 @@ def make_instance(self, include_optional): return DAGFileOutput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - description = '0', - _from = null, - name = '0', - required = True, + 'key' : '' + } + description = '' + var_from = None + name = '' + required = True type = 'DAGFileOutput' ) else : return DAGFileOutput( - _from = null, - name = '0', + var_from = None, + name = '', ) def testDAGFileOutput(self): diff --git a/test/test_dag_file_output_alias.py b/test/test_dag_file_output_alias.py index 89120b1be..9c82a4b86 100644 --- a/test/test_dag_file_output_alias.py +++ b/test/test_dag_file_output_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,45 +38,45 @@ def make_instance(self, include_optional): if include_optional : return DAGFileOutputAlias( annotations = { - 'key' : '0' - }, - description = '0', - _from = null, + 'key' : '' + } + description = '' + var_from = None handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) - ], - name = '0', + ] + name = '' platform = [ - '0' - ], - required = True, + '' + ] + required = True type = 'DAGFileOutputAlias' ) else : return DAGFileOutputAlias( - _from = null, + var_from = None, handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) ], - name = '0', + name = '', platform = [ - '0' + '' ], ) diff --git a/test/test_dag_folder_input.py b/test/test_dag_folder_input.py index 23a3f2490..7db141ff3 100644 --- a/test/test_dag_folder_input.py +++ b/test/test_dag_folder_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,20 +39,20 @@ def make_instance(self, include_optional): return DAGFolderInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = null, - description = '0', - name = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), + 'key' : '' + } + default = None + description = '' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() type = 'DAGFolderInput' ) else : return DAGFolderInput( - name = '0', + name = '', ) def testDAGFolderInput(self): diff --git a/test/test_dag_folder_input_alias.py b/test/test_dag_folder_input_alias.py index d94b4b123..868e40e73 100644 --- a/test/test_dag_folder_input_alias.py +++ b/test/test_dag_folder_input_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,27 +38,27 @@ def make_instance(self, include_optional): if include_optional : return DAGFolderInputAlias( annotations = { - 'key' : '0' - }, - default = null, - description = '0', + 'key' : '' + } + default = None + description = '' handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) - ], - name = '0', + ] + name = '' platform = [ - '0' - ], - required = True, - spec = pollination_sdk.models.spec.Spec(), + '' + ] + required = True + spec = pollination_sdk.models.spec.Spec() type = 'DAGFolderInputAlias' ) else : @@ -66,17 +66,17 @@ def make_instance(self, include_optional): handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) ], - name = '0', + name = '', platform = [ - '0' + '' ], ) diff --git a/test/test_dag_folder_output.py b/test/test_dag_folder_output.py index cecb1c1b4..8f0d5b632 100644 --- a/test/test_dag_folder_output.py +++ b/test/test_dag_folder_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,20 +39,20 @@ def make_instance(self, include_optional): return DAGFolderOutput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - description = '0', - _from = null, - name = '0', - required = True, + 'key' : '' + } + description = '' + var_from = None + name = '' + required = True type = 'DAGFolderOutput' ) else : return DAGFolderOutput( - _from = null, - name = '0', + var_from = None, + name = '', ) def testDAGFolderOutput(self): diff --git a/test/test_dag_folder_output_alias.py b/test/test_dag_folder_output_alias.py index 24ade89d3..bd0a8ec68 100644 --- a/test/test_dag_folder_output_alias.py +++ b/test/test_dag_folder_output_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,45 +38,45 @@ def make_instance(self, include_optional): if include_optional : return DAGFolderOutputAlias( annotations = { - 'key' : '0' - }, - description = '0', - _from = null, + 'key' : '' + } + description = '' + var_from = None handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) - ], - name = '0', + ] + name = '' platform = [ - '0' - ], - required = True, + '' + ] + required = True type = 'DAGFolderOutputAlias' ) else : return DAGFolderOutputAlias( - _from = null, + var_from = None, handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) ], - name = '0', + name = '', platform = [ - '0' + '' ], ) diff --git a/test/test_dag_generic_input.py b/test/test_dag_generic_input.py index 01a14b090..4d0cfa11f 100644 --- a/test/test_dag_generic_input.py +++ b/test/test_dag_generic_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,20 +39,20 @@ def make_instance(self, include_optional): return DAGGenericInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = '0', - description = '0', - name = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), + 'key' : '' + } + default = '' + description = '' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() type = 'DAGGenericInput' ) else : return DAGGenericInput( - name = '0', + name = '', ) def testDAGGenericInput(self): diff --git a/test/test_dag_generic_input_alias.py b/test/test_dag_generic_input_alias.py index 743625dac..eeac8855e 100644 --- a/test/test_dag_generic_input_alias.py +++ b/test/test_dag_generic_input_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,27 +38,27 @@ def make_instance(self, include_optional): if include_optional : return DAGGenericInputAlias( annotations = { - 'key' : '0' - }, - default = '0', - description = '0', + 'key' : '' + } + default = '' + description = '' handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) - ], - name = '0', + ] + name = '' platform = [ - '0' - ], - required = True, - spec = pollination_sdk.models.spec.Spec(), + '' + ] + required = True + spec = pollination_sdk.models.spec.Spec() type = 'DAGGenericInputAlias' ) else : @@ -66,17 +66,17 @@ def make_instance(self, include_optional): handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) ], - name = '0', + name = '', platform = [ - '0' + '' ], ) diff --git a/test/test_dag_generic_output.py b/test/test_dag_generic_output.py index 599883e7f..bb928cb7c 100644 --- a/test/test_dag_generic_output.py +++ b/test/test_dag_generic_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,19 +39,19 @@ def make_instance(self, include_optional): return DAGGenericOutput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - description = '0', - _from = null, - name = '0', + 'key' : '' + } + description = '' + var_from = None + name = '' type = 'DAGGenericOutput' ) else : return DAGGenericOutput( - _from = null, - name = '0', + var_from = None, + name = '', ) def testDAGGenericOutput(self): diff --git a/test/test_dag_generic_output_alias.py b/test/test_dag_generic_output_alias.py index eb8e192d6..3108b064e 100644 --- a/test/test_dag_generic_output_alias.py +++ b/test/test_dag_generic_output_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,24 +38,24 @@ def make_instance(self, include_optional): if include_optional : return DAGGenericOutputAlias( annotations = { - 'key' : '0' - }, - description = '0', + 'key' : '' + } + description = '' handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) - ], - name = '0', + ] + name = '' platform = [ - '0' - ], + '' + ] type = 'DAGGenericOutputAlias' ) else : @@ -63,17 +63,17 @@ def make_instance(self, include_optional): handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) ], - name = '0', + name = '', platform = [ - '0' + '' ], ) diff --git a/test/test_dag_inputs_inner.py b/test/test_dag_inputs_inner.py new file mode 100644 index 000000000..6563e83c9 --- /dev/null +++ b/test/test_dag_inputs_inner.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.dag_inputs_inner import DAGInputsInner # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestDAGInputsInner(unittest.TestCase): + """DAGInputsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DAGInputsInner + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.dag_inputs_inner.DAGInputsInner() # noqa: E501 + if include_optional : + return DAGInputsInner( + alias = [ + null + ] + annotations = { + 'key' : '' + } + default = pollination_sdk.models.default.Default() + description = '' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() + type = 'DAGJSONObjectInput' + extensions = [ + '' + ] + items_type = 'Generic' + ) + else : + return DAGInputsInner( + name = '', + ) + + def testDAGInputsInner(self): + """Test DAGInputsInner""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dag_integer_input.py b/test/test_dag_integer_input.py index ce7242e18..6721e4626 100644 --- a/test/test_dag_integer_input.py +++ b/test/test_dag_integer_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,20 +39,20 @@ def make_instance(self, include_optional): return DAGIntegerInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = 56, - description = '0', - name = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), + 'key' : '' + } + default = 56 + description = '' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() type = 'DAGIntegerInput' ) else : return DAGIntegerInput( - name = '0', + name = '', ) def testDAGIntegerInput(self): diff --git a/test/test_dag_integer_input_alias.py b/test/test_dag_integer_input_alias.py index 3460431ba..38d3ab450 100644 --- a/test/test_dag_integer_input_alias.py +++ b/test/test_dag_integer_input_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,27 +38,27 @@ def make_instance(self, include_optional): if include_optional : return DAGIntegerInputAlias( annotations = { - 'key' : '0' - }, - default = 56, - description = '0', + 'key' : '' + } + default = 56 + description = '' handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) - ], - name = '0', + ] + name = '' platform = [ - '0' - ], - required = True, - spec = pollination_sdk.models.spec.Spec(), + '' + ] + required = True + spec = pollination_sdk.models.spec.Spec() type = 'DAGIntegerInputAlias' ) else : @@ -66,17 +66,17 @@ def make_instance(self, include_optional): handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) ], - name = '0', + name = '', platform = [ - '0' + '' ], ) diff --git a/test/test_dag_integer_output.py b/test/test_dag_integer_output.py index 2109968b0..70c09c295 100644 --- a/test/test_dag_integer_output.py +++ b/test/test_dag_integer_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,20 +39,20 @@ def make_instance(self, include_optional): return DAGIntegerOutput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - description = '0', - _from = null, - name = '0', - required = True, + 'key' : '' + } + description = '' + var_from = None + name = '' + required = True type = 'DAGIntegerOutput' ) else : return DAGIntegerOutput( - _from = null, - name = '0', + var_from = None, + name = '', ) def testDAGIntegerOutput(self): diff --git a/test/test_dag_integer_output_alias.py b/test/test_dag_integer_output_alias.py index 0a21832cf..ebad7868b 100644 --- a/test/test_dag_integer_output_alias.py +++ b/test/test_dag_integer_output_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,45 +38,45 @@ def make_instance(self, include_optional): if include_optional : return DAGIntegerOutputAlias( annotations = { - 'key' : '0' - }, - description = '0', - _from = null, + 'key' : '' + } + description = '' + var_from = None handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) - ], - name = '0', + ] + name = '' platform = [ - '0' - ], - required = True, + '' + ] + required = True type = 'DAGIntegerOutputAlias' ) else : return DAGIntegerOutputAlias( - _from = null, + var_from = None, handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) ], - name = '0', + name = '', platform = [ - '0' + '' ], ) diff --git a/test/test_dag_linked_input_alias.py b/test/test_dag_linked_input_alias.py index cdc539d10..66cc248a1 100644 --- a/test/test_dag_linked_input_alias.py +++ b/test/test_dag_linked_input_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,27 +38,27 @@ def make_instance(self, include_optional): if include_optional : return DAGLinkedInputAlias( annotations = { - 'key' : '0' - }, - default = '0', - description = '0', + 'key' : '' + } + default = '' + description = '' handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) - ], - name = '0', + ] + name = '' platform = [ - '0' - ], - required = True, - spec = pollination_sdk.models.spec.Spec(), + '' + ] + required = True + spec = pollination_sdk.models.spec.Spec() type = 'DAGLinkedInputAlias' ) else : @@ -66,17 +66,17 @@ def make_instance(self, include_optional): handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) ], - name = '0', + name = '', platform = [ - '0' + '' ], ) diff --git a/test/test_dag_linked_output_alias.py b/test/test_dag_linked_output_alias.py index 86c518330..3faa277b0 100644 --- a/test/test_dag_linked_output_alias.py +++ b/test/test_dag_linked_output_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,24 +38,24 @@ def make_instance(self, include_optional): if include_optional : return DAGLinkedOutputAlias( annotations = { - 'key' : '0' - }, - description = '0', + 'key' : '' + } + description = '' handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) - ], - name = '0', + ] + name = '' platform = [ - '0' - ], + '' + ] type = 'DAGLinkedOutputAlias' ) else : @@ -63,17 +63,17 @@ def make_instance(self, include_optional): handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) ], - name = '0', + name = '', platform = [ - '0' + '' ], ) diff --git a/test/test_dag_number_input.py b/test/test_dag_number_input.py index 2964fc3cb..90e1e4421 100644 --- a/test/test_dag_number_input.py +++ b/test/test_dag_number_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,20 +39,20 @@ def make_instance(self, include_optional): return DAGNumberInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = 1.337, - description = '0', - name = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), + 'key' : '' + } + default = 1.337 + description = '' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() type = 'DAGNumberInput' ) else : return DAGNumberInput( - name = '0', + name = '', ) def testDAGNumberInput(self): diff --git a/test/test_dag_number_input_alias.py b/test/test_dag_number_input_alias.py index e16235292..2d551acb5 100644 --- a/test/test_dag_number_input_alias.py +++ b/test/test_dag_number_input_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,27 +38,27 @@ def make_instance(self, include_optional): if include_optional : return DAGNumberInputAlias( annotations = { - 'key' : '0' - }, - default = 1.337, - description = '0', + 'key' : '' + } + default = 1.337 + description = '' handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) - ], - name = '0', + ] + name = '' platform = [ - '0' - ], - required = True, - spec = pollination_sdk.models.spec.Spec(), + '' + ] + required = True + spec = pollination_sdk.models.spec.Spec() type = 'DAGNumberInputAlias' ) else : @@ -66,17 +66,17 @@ def make_instance(self, include_optional): handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) ], - name = '0', + name = '', platform = [ - '0' + '' ], ) diff --git a/test/test_dag_number_output.py b/test/test_dag_number_output.py index 15fc9ff53..6ff487547 100644 --- a/test/test_dag_number_output.py +++ b/test/test_dag_number_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,20 +39,20 @@ def make_instance(self, include_optional): return DAGNumberOutput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - description = '0', - _from = null, - name = '0', - required = True, + 'key' : '' + } + description = '' + var_from = None + name = '' + required = True type = 'DAGNumberOutput' ) else : return DAGNumberOutput( - _from = null, - name = '0', + var_from = None, + name = '', ) def testDAGNumberOutput(self): diff --git a/test/test_dag_number_output_alias.py b/test/test_dag_number_output_alias.py index ef0149a9f..b0f1aee85 100644 --- a/test/test_dag_number_output_alias.py +++ b/test/test_dag_number_output_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,45 +38,45 @@ def make_instance(self, include_optional): if include_optional : return DAGNumberOutputAlias( annotations = { - 'key' : '0' - }, - description = '0', - _from = null, + 'key' : '' + } + description = '' + var_from = None handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) - ], - name = '0', + ] + name = '' platform = [ - '0' - ], - required = True, + '' + ] + required = True type = 'DAGNumberOutputAlias' ) else : return DAGNumberOutputAlias( - _from = null, + var_from = None, handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) ], - name = '0', + name = '', platform = [ - '0' + '' ], ) diff --git a/test/test_dag_outputs_inner.py b/test/test_dag_outputs_inner.py new file mode 100644 index 000000000..72ef11289 --- /dev/null +++ b/test/test_dag_outputs_inner.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.dag_outputs_inner import DAGOutputsInner # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestDAGOutputsInner(unittest.TestCase): + """DAGOutputsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DAGOutputsInner + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.dag_outputs_inner.DAGOutputsInner() # noqa: E501 + if include_optional : + return DAGOutputsInner( + alias = [ + null + ] + annotations = { + 'key' : '' + } + description = '' + var_from = None + name = '' + type = 'DAGJSONObjectOutput' + required = True + items_type = 'Generic' + ) + else : + return DAGOutputsInner( + var_from = None, + name = '', + ) + + def testDAGOutputsInner(self): + """Test DAGOutputsInner""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dag_path_input.py b/test/test_dag_path_input.py index d9a61426c..f000d58aa 100644 --- a/test/test_dag_path_input.py +++ b/test/test_dag_path_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,23 +39,23 @@ def make_instance(self, include_optional): return DAGPathInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = null, - description = '0', + 'key' : '' + } + default = None + description = '' extensions = [ - '0' - ], - name = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), + '' + ] + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() type = 'DAGPathInput' ) else : return DAGPathInput( - name = '0', + name = '', ) def testDAGPathInput(self): diff --git a/test/test_dag_path_input_alias.py b/test/test_dag_path_input_alias.py index b5e5b658c..eeb738cb6 100644 --- a/test/test_dag_path_input_alias.py +++ b/test/test_dag_path_input_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,30 +38,30 @@ def make_instance(self, include_optional): if include_optional : return DAGPathInputAlias( annotations = { - 'key' : '0' - }, - default = null, - description = '0', + 'key' : '' + } + default = None + description = '' extensions = [ - '0' - ], + '' + ] handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) - ], - name = '0', + ] + name = '' platform = [ - '0' - ], - required = True, - spec = pollination_sdk.models.spec.Spec(), + '' + ] + required = True + spec = pollination_sdk.models.spec.Spec() type = 'DAGPathInputAlias' ) else : @@ -69,17 +69,17 @@ def make_instance(self, include_optional): handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) ], - name = '0', + name = '', platform = [ - '0' + '' ], ) diff --git a/test/test_dag_path_output.py b/test/test_dag_path_output.py index 2b3ab1ff3..adb01a134 100644 --- a/test/test_dag_path_output.py +++ b/test/test_dag_path_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,20 +39,20 @@ def make_instance(self, include_optional): return DAGPathOutput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - description = '0', - _from = null, - name = '0', - required = True, + 'key' : '' + } + description = '' + var_from = None + name = '' + required = True type = 'DAGPathOutput' ) else : return DAGPathOutput( - _from = null, - name = '0', + var_from = None, + name = '', ) def testDAGPathOutput(self): diff --git a/test/test_dag_path_output_alias.py b/test/test_dag_path_output_alias.py index f6c8924f5..cbef8a988 100644 --- a/test/test_dag_path_output_alias.py +++ b/test/test_dag_path_output_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,45 +38,45 @@ def make_instance(self, include_optional): if include_optional : return DAGPathOutputAlias( annotations = { - 'key' : '0' - }, - description = '0', - _from = null, + 'key' : '' + } + description = '' + var_from = None handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) - ], - name = '0', + ] + name = '' platform = [ - '0' - ], - required = True, + '' + ] + required = True type = 'DAGPathOutputAlias' ) else : return DAGPathOutputAlias( - _from = null, + var_from = None, handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) ], - name = '0', + name = '', platform = [ - '0' + '' ], ) diff --git a/test/test_dag_string_input.py b/test/test_dag_string_input.py index bd27e9439..98ecef23a 100644 --- a/test/test_dag_string_input.py +++ b/test/test_dag_string_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,20 +39,20 @@ def make_instance(self, include_optional): return DAGStringInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = '0', - description = '0', - name = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), + 'key' : '' + } + default = '' + description = '' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() type = 'DAGStringInput' ) else : return DAGStringInput( - name = '0', + name = '', ) def testDAGStringInput(self): diff --git a/test/test_dag_string_input_alias.py b/test/test_dag_string_input_alias.py index 4c758e1a1..b4e4818e9 100644 --- a/test/test_dag_string_input_alias.py +++ b/test/test_dag_string_input_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,27 +38,27 @@ def make_instance(self, include_optional): if include_optional : return DAGStringInputAlias( annotations = { - 'key' : '0' - }, - default = '0', - description = '0', + 'key' : '' + } + default = '' + description = '' handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) - ], - name = '0', + ] + name = '' platform = [ - '0' - ], - required = True, - spec = pollination_sdk.models.spec.Spec(), + '' + ] + required = True + spec = pollination_sdk.models.spec.Spec() type = 'DAGStringInputAlias' ) else : @@ -66,17 +66,17 @@ def make_instance(self, include_optional): handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) ], - name = '0', + name = '', platform = [ - '0' + '' ], ) diff --git a/test/test_dag_string_output.py b/test/test_dag_string_output.py index 80ccb0417..4a0b94944 100644 --- a/test/test_dag_string_output.py +++ b/test/test_dag_string_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,20 +39,20 @@ def make_instance(self, include_optional): return DAGStringOutput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - description = '0', - _from = null, - name = '0', - required = True, + 'key' : '' + } + description = '' + var_from = None + name = '' + required = True type = 'DAGStringOutput' ) else : return DAGStringOutput( - _from = null, - name = '0', + var_from = None, + name = '', ) def testDAGStringOutput(self): diff --git a/test/test_dag_string_output_alias.py b/test/test_dag_string_output_alias.py index 224d56350..79505e6ef 100644 --- a/test/test_dag_string_output_alias.py +++ b/test/test_dag_string_output_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,45 +38,45 @@ def make_instance(self, include_optional): if include_optional : return DAGStringOutputAlias( annotations = { - 'key' : '0' - }, - description = '0', - _from = null, + 'key' : '' + } + description = '' + var_from = None handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) - ], - name = '0', + ] + name = '' platform = [ - '0' - ], - required = True, + '' + ] + required = True type = 'DAGStringOutputAlias' ) else : return DAGStringOutputAlias( - _from = null, + var_from = None, handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) ], - name = '0', + name = '', platform = [ - '0' + '' ], ) diff --git a/test/test_dag_task.py b/test/test_dag_task.py index 5075096f1..d18ed731c 100644 --- a/test/test_dag_task.py +++ b/test/test_dag_task.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,27 +38,32 @@ def make_instance(self, include_optional): if include_optional : return DAGTask( annotations = { - 'key' : '0' - }, + 'key' : '' + } arguments = [ null - ], - loop = null, - name = '0', + ] + loop = pollination_sdk.models.dag_task_loop.DAGTaskLoop( + annotations = { + 'key' : '' + }, + from = null, + type = 'DAGTaskLoop', ) + name = '' needs = [ - '0' - ], + '' + ] returns = [ null - ], - sub_folder = '0', - template = '0', + ] + sub_folder = '' + template = '' type = 'DAGTask' ) else : return DAGTask( - name = '0', - template = '0', + name = '', + template = '', ) def testDAGTask(self): diff --git a/test/test_dag_task_arguments_inner.py b/test/test_dag_task_arguments_inner.py new file mode 100644 index 000000000..454d02eee --- /dev/null +++ b/test/test_dag_task_arguments_inner.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.dag_task_arguments_inner import DAGTaskArgumentsInner # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestDAGTaskArgumentsInner(unittest.TestCase): + """DAGTaskArgumentsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DAGTaskArgumentsInner + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.dag_task_arguments_inner.DAGTaskArgumentsInner() # noqa: E501 + if include_optional : + return DAGTaskArgumentsInner( + annotations = { + 'key' : '' + } + var_from = None + name = '' + type = 'TaskPathArgument' + sub_path = '' + ) + else : + return DAGTaskArgumentsInner( + var_from = None, + name = '', + ) + + def testDAGTaskArgumentsInner(self): + """Test DAGTaskArgumentsInner""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dag_task_loop.py b/test/test_dag_task_loop.py index b8ce8f858..31d14188e 100644 --- a/test/test_dag_task_loop.py +++ b/test/test_dag_task_loop.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,9 +38,9 @@ def make_instance(self, include_optional): if include_optional : return DAGTaskLoop( annotations = { - 'key' : '0' - }, - _from = null, + 'key' : '' + } + var_from = None type = 'DAGTaskLoop' ) else : diff --git a/test/test_dag_task_returns_inner.py b/test/test_dag_task_returns_inner.py new file mode 100644 index 000000000..a93918bea --- /dev/null +++ b/test/test_dag_task_returns_inner.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.dag_task_returns_inner import DAGTaskReturnsInner # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestDAGTaskReturnsInner(unittest.TestCase): + """DAGTaskReturnsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DAGTaskReturnsInner + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.dag_task_returns_inner.DAGTaskReturnsInner() # noqa: E501 + if include_optional : + return DAGTaskReturnsInner( + annotations = { + 'key' : '' + } + description = '' + name = '' + type = 'TaskPathReturn' + path = '' + required = True + ) + else : + return DAGTaskReturnsInner( + name = '', + path = '', + ) + + def testDAGTaskReturnsInner(self): + """Test DAGTaskReturnsInner""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dagjson_object_input.py b/test/test_dagjson_object_input.py index 0b1573955..252d3bdfe 100644 --- a/test/test_dagjson_object_input.py +++ b/test/test_dagjson_object_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,20 +39,20 @@ def make_instance(self, include_optional): return DAGJSONObjectInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = pollination_sdk.models.default.Default(), - description = '0', - name = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), + 'key' : '' + } + default = pollination_sdk.models.default.Default() + description = '' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() type = 'DAGJSONObjectInput' ) else : return DAGJSONObjectInput( - name = '0', + name = '', ) def testDAGJSONObjectInput(self): diff --git a/test/test_dagjson_object_input_alias.py b/test/test_dagjson_object_input_alias.py index cba92393f..b95fb8e39 100644 --- a/test/test_dagjson_object_input_alias.py +++ b/test/test_dagjson_object_input_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,27 +38,27 @@ def make_instance(self, include_optional): if include_optional : return DAGJSONObjectInputAlias( annotations = { - 'key' : '0' - }, - default = pollination_sdk.models.default.Default(), - description = '0', + 'key' : '' + } + default = pollination_sdk.models.default.Default() + description = '' handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) - ], - name = '0', + ] + name = '' platform = [ - '0' - ], - required = True, - spec = pollination_sdk.models.spec.Spec(), + '' + ] + required = True + spec = pollination_sdk.models.spec.Spec() type = 'DAGJSONObjectInputAlias' ) else : @@ -66,17 +66,17 @@ def make_instance(self, include_optional): handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) ], - name = '0', + name = '', platform = [ - '0' + '' ], ) diff --git a/test/test_dagjson_object_output.py b/test/test_dagjson_object_output.py index 7ba62a11c..d0dd84c35 100644 --- a/test/test_dagjson_object_output.py +++ b/test/test_dagjson_object_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,20 +39,20 @@ def make_instance(self, include_optional): return DAGJSONObjectOutput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - description = '0', - _from = null, - name = '0', - required = True, + 'key' : '' + } + description = '' + var_from = None + name = '' + required = True type = 'DAGJSONObjectOutput' ) else : return DAGJSONObjectOutput( - _from = null, - name = '0', + var_from = None, + name = '', ) def testDAGJSONObjectOutput(self): diff --git a/test/test_dagjson_object_output_alias.py b/test/test_dagjson_object_output_alias.py index 7d4137252..59f5777fa 100644 --- a/test/test_dagjson_object_output_alias.py +++ b/test/test_dagjson_object_output_alias.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,45 +38,45 @@ def make_instance(self, include_optional): if include_optional : return DAGJSONObjectOutputAlias( annotations = { - 'key' : '0' - }, - description = '0', - _from = null, + 'key' : '' + } + description = '' + var_from = None handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) - ], - name = '0', + ] + name = '' platform = [ - '0' - ], - required = True, + '' + ] + required = True type = 'DAGJSONObjectOutputAlias' ) else : return DAGJSONObjectOutputAlias( - _from = null, + var_from = None, handler = [ pollination_sdk.models.io_alias_handler.IOAliasHandler( annotations = { - 'key' : '0' + 'key' : '' }, - function = '0', + function = '', index = 56, - language = '0', + language = '', module = 'honeybee_rhino.handlers', type = 'IOAliasHandler', ) ], - name = '0', + name = '', platform = [ - '0' + '' ], ) diff --git a/test/test_daily_usage.py b/test/test_daily_usage.py index 84ea6ef69..f38fdff2f 100644 --- a/test/test_daily_usage.py +++ b/test/test_daily_usage.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,15 +37,15 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.daily_usage.DailyUsage() # noqa: E501 if include_optional : return DailyUsage( - cpu = 1.337, - date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - failed = 56, - memory = 1.337, + cpu = 1.337 + var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + failed = 56 + memory = 1.337 succeeded = 56 ) else : return DailyUsage( - date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) def testDailyUsage(self): diff --git a/test/test_default.py b/test/test_default.py new file mode 100644 index 000000000..50c8faab7 --- /dev/null +++ b/test/test_default.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.default import Default # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestDefault(unittest.TestCase): + """Default unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test Default + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.default.Default() # noqa: E501 + if include_optional : + return Default( + annotations = { + 'key' : '' + } + type = 'ProjectFolder' + url = '' + bucket = '' + credentials_path = '' + endpoint = '' + key = '' + path = '' + ) + else : + return Default( + url = '', + bucket = '', + endpoint = '', + key = '', + ) + + def testDefault(self): + """Test Default""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dependency.py b/test/test_dependency.py index 30adf642d..d58cdd884 100644 --- a/test/test_dependency.py +++ b/test/test_dependency.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,23 +37,23 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.dependency.Dependency() # noqa: E501 if include_optional : return Dependency( - alias = '0', + alias = '' annotations = { - 'key' : '0' - }, - hash = '0', - kind = null, - name = '0', - source = '0', - tag = '0', + 'key' : '' + } + hash = '' + kind = 'recipe' + name = '' + source = '' + tag = '' type = 'Dependency' ) else : return Dependency( - kind = null, - name = '0', - source = '0', - tag = '0', + kind = 'recipe', + name = '', + source = '', + tag = '', ) def testDependency(self): diff --git a/test/test_dependency_kind.py b/test/test_dependency_kind.py index 98ad2f5b1..5d326ea56 100644 --- a/test/test_dependency_kind.py +++ b/test/test_dependency_kind.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_deployment_config.py b/test/test_deployment_config.py index 40f29cdae..1140dfadd 100644 --- a/test/test_deployment_config.py +++ b/test/test_deployment_config.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,10 +37,10 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.deployment_config.DeploymentConfig() # noqa: E501 if include_optional : return DeploymentConfig( - cpu_limit = 56, - entrypoint_file = 'app.py', - login_required = True, - memory_limit = 56, + cpu_limit = 56 + entrypoint_file = 'app.py' + login_required = True + memory_limit = 56 scale_to_zero = True ) else : diff --git a/test/test_body_post_recipe_owner_recipes_post.py b/test/test_deployment_config_update.py similarity index 54% rename from test/test_body_post_recipe_owner_recipes_post.py rename to test/test_deployment_config_update.py index 4a97e4d7f..c64fe848b 100644 --- a/test/test_body_post_recipe_owner_recipes_post.py +++ b/test/test_deployment_config_update.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -17,11 +17,11 @@ import datetime import pollination_sdk -from pollination_sdk.models.body_post_recipe_owner_recipes_post import BodyPostRecipeOwnerRecipesPost # noqa: E501 +from pollination_sdk.models.deployment_config_update import DeploymentConfigUpdate # noqa: E501 from pollination_sdk.rest import ApiException -class TestBodyPostRecipeOwnerRecipesPost(unittest.TestCase): - """BodyPostRecipeOwnerRecipesPost unit test stubs""" +class TestDeploymentConfigUpdate(unittest.TestCase): + """DeploymentConfigUpdate unit test stubs""" def setUp(self): pass @@ -30,22 +30,25 @@ def tearDown(self): pass def make_instance(self, include_optional): - """Test BodyPostRecipeOwnerRecipesPost + """Test DeploymentConfigUpdate include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = pollination_sdk.models.body_post_recipe_owner_recipes_post.BodyPostRecipeOwnerRecipesPost() # noqa: E501 + # model = pollination_sdk.models.deployment_config_update.DeploymentConfigUpdate() # noqa: E501 if include_optional : - return BodyPostRecipeOwnerRecipesPost( - package = bytes(b'blah') + return DeploymentConfigUpdate( + cpu_limit = 56 + entrypoint_file = '' + login_required = True + memory_limit = 56 + scale_to_zero = True ) else : - return BodyPostRecipeOwnerRecipesPost( - package = bytes(b'blah'), + return DeploymentConfigUpdate( ) - def testBodyPostRecipeOwnerRecipesPost(self): - """Test BodyPostRecipeOwnerRecipesPost""" + def testDeploymentConfigUpdate(self): + """Test DeploymentConfigUpdate""" inst_req_only = self.make_instance(include_optional=False) inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_docker_config.py b/test/test_docker_config.py index ab1a2a3b6..de9de1298 100644 --- a/test/test_docker_config.py +++ b/test/test_docker_config.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,17 +38,17 @@ def make_instance(self, include_optional): if include_optional : return DockerConfig( annotations = { - 'key' : '0' - }, - image = '0', - registry = '0', - type = 'DockerConfig', - workdir = '0' + 'key' : '' + } + image = '' + registry = '' + type = 'DockerConfig' + workdir = '' ) else : return DockerConfig( - image = '0', - workdir = '0', + image = '', + workdir = '', ) def testDockerConfig(self): diff --git a/test/test_file_meta.py b/test/test_file_meta.py index c2341fe4e..9183eeafd 100644 --- a/test/test_file_meta.py +++ b/test/test_file_meta.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,17 +37,17 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.file_meta.FileMeta() # noqa: E501 if include_optional : return FileMeta( - file_name = '0', - file_type = '0', - key = '0', - last_modified = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + file_name = '' + file_type = '' + key = '' + last_modified = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') size = 56 ) else : return FileMeta( - file_name = '0', - file_type = '0', - key = '0', + file_name = '', + file_type = '', + key = '', ) def testFileMeta(self): diff --git a/test/test_file_meta_list.py b/test/test_file_meta_list.py index 766f695e6..5da7f4a9c 100644 --- a/test/test_file_meta_list.py +++ b/test/test_file_meta_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,18 +37,18 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.file_meta_list.FileMetaList() # noqa: E501 if include_optional : return FileMetaList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.file_meta.FileMeta( - file_name = '0', - file_type = '0', - key = '0', + file_name = '', + file_type = '', + key = '', last_modified = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), size = 56, ) - ], + ] total_count = 56 ) else : @@ -58,9 +58,9 @@ def make_instance(self, include_optional): per_page = 56, resources = [ pollination_sdk.models.file_meta.FileMeta( - file_name = '0', - file_type = '0', - key = '0', + file_name = '', + file_type = '', + key = '', last_modified = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), size = 56, ) ], diff --git a/test/test_file_reference.py b/test/test_file_reference.py index 9712eae8b..5139e4d36 100644 --- a/test/test_file_reference.py +++ b/test/test_file_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,14 +38,14 @@ def make_instance(self, include_optional): if include_optional : return FileReference( annotations = { - 'key' : '0' - }, - path = '0', + 'key' : '' + } + path = '' type = 'FileReference' ) else : return FileReference( - path = '0', + path = '', ) def testFileReference(self): diff --git a/test/test_folder_reference.py b/test/test_folder_reference.py index 39ad64299..cf015b2b8 100644 --- a/test/test_folder_reference.py +++ b/test/test_folder_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,14 +38,14 @@ def make_instance(self, include_optional): if include_optional : return FolderReference( annotations = { - 'key' : '0' - }, - path = '0', + 'key' : '' + } + path = '' type = 'FolderReference' ) else : return FolderReference( - path = '0', + path = '', ) def testFolderReference(self): diff --git a/test/test_from1.py b/test/test_from1.py new file mode 100644 index 000000000..c99bd2f28 --- /dev/null +++ b/test/test_from1.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.from1 import From1 # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestFrom1(unittest.TestCase): + """From1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test From1 + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.from1.From1() # noqa: E501 + if include_optional : + return From1( + annotations = { + 'key' : '' + } + name = '' + type = 'FolderReference' + variable = '' + path = '' + ) + else : + return From1( + name = '', + variable = '', + path = '', + ) + + def testFrom1(self): + """Test From1""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_from2.py b/test/test_from2.py new file mode 100644 index 000000000..14df56ecc --- /dev/null +++ b/test/test_from2.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.from2 import From2 # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestFrom2(unittest.TestCase): + """From2 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test From2 + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.from2.From2() # noqa: E501 + if include_optional : + return From2( + annotations = { + 'key' : '' + } + name = '' + type = 'FolderReference' + variable = '' + path = '' + ) + else : + return From2( + name = '', + variable = '', + path = '', + ) + + def testFrom2(self): + """Test From2""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_from3.py b/test/test_from3.py new file mode 100644 index 000000000..ea7759f2b --- /dev/null +++ b/test/test_from3.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.from3 import From3 # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestFrom3(unittest.TestCase): + """From3 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test From3 + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.from3.From3() # noqa: E501 + if include_optional : + return From3( + annotations = { + 'key' : '' + } + type = 'ValueListReference' + variable = '' + name = '' + value = [ + null + ] + ) + else : + return From3( + variable = '', + name = '', + value = [ + null + ], + ) + + def testFrom3(self): + """Test From3""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_from4.py b/test/test_from4.py new file mode 100644 index 000000000..fc67f8025 --- /dev/null +++ b/test/test_from4.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.from4 import From4 # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestFrom4(unittest.TestCase): + """From4 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test From4 + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.from4.From4() # noqa: E501 + if include_optional : + return From4( + annotations = { + 'key' : '' + } + type = 'ValueReference' + variable = '' + name = '' + value = None + ) + else : + return From4( + variable = '', + name = '', + value = None, + ) + + def testFrom4(self): + """Test From4""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_from5.py b/test/test_from5.py new file mode 100644 index 000000000..68c7b8fbe --- /dev/null +++ b/test/test_from5.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.from5 import From5 # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestFrom5(unittest.TestCase): + """From5 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test From5 + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.from5.From5() # noqa: E501 + if include_optional : + return From5( + annotations = { + 'key' : '' + } + type = 'ValueFolderReference' + variable = '' + name = '' + path = '' + ) + else : + return From5( + variable = '', + name = '', + path = '', + ) + + def testFrom5(self): + """Test From5""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_function.py b/test/test_function.py index d03fb1b61..c71cf0475 100644 --- a/test/test_function.py +++ b/test/test_function.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,24 +38,24 @@ def make_instance(self, include_optional): if include_optional : return Function( annotations = { - 'key' : '0' - }, - command = '0', - description = '0', + 'key' : '' + } + command = '' + description = '' inputs = [ null - ], - language = null, - name = '0', + ] + language = 'python' + name = '' outputs = [ null - ], - source = '0', + ] + source = '' type = 'Function' ) else : return Function( - name = '0', + name = '', ) def testFunction(self): diff --git a/test/test_function_array_input.py b/test/test_function_array_input.py index f282e04be..2f4c3715f 100644 --- a/test/test_function_array_input.py +++ b/test/test_function_array_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,23 +39,23 @@ def make_instance(self, include_optional): return FunctionArrayInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, + 'key' : '' + } default = [ null - ], - description = '0', - items_type = null, - name = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), + ] + description = '' + items_type = 'Generic' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() type = 'FunctionArrayInput' ) else : return FunctionArrayInput( - name = '0', + name = '', ) def testFunctionArrayInput(self): diff --git a/test/test_function_array_output.py b/test/test_function_array_output.py index c9fe160dd..7eabbc29a 100644 --- a/test/test_function_array_output.py +++ b/test/test_function_array_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,19 +38,19 @@ def make_instance(self, include_optional): if include_optional : return FunctionArrayOutput( annotations = { - 'key' : '0' - }, - description = '0', - items_type = null, - name = '0', - path = '0', - required = True, + 'key' : '' + } + description = '' + items_type = 'Generic' + name = '' + path = '' + required = True type = 'FunctionArrayOutput' ) else : return FunctionArrayOutput( - name = '0', - path = '0', + name = '', + path = '', ) def testFunctionArrayOutput(self): diff --git a/test/test_function_boolean_input.py b/test/test_function_boolean_input.py index d336821d6..0007deade 100644 --- a/test/test_function_boolean_input.py +++ b/test/test_function_boolean_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,20 +39,20 @@ def make_instance(self, include_optional): return FunctionBooleanInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = True, - description = '0', - name = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), + 'key' : '' + } + default = True + description = '' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() type = 'FunctionBooleanInput' ) else : return FunctionBooleanInput( - name = '0', + name = '', ) def testFunctionBooleanInput(self): diff --git a/test/test_function_boolean_output.py b/test/test_function_boolean_output.py index 62530bc8e..8e943ceec 100644 --- a/test/test_function_boolean_output.py +++ b/test/test_function_boolean_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,18 +38,18 @@ def make_instance(self, include_optional): if include_optional : return FunctionBooleanOutput( annotations = { - 'key' : '0' - }, - description = '0', - name = '0', - path = '0', - required = True, + 'key' : '' + } + description = '' + name = '' + path = '' + required = True type = 'FunctionBooleanOutput' ) else : return FunctionBooleanOutput( - name = '0', - path = '0', + name = '', + path = '', ) def testFunctionBooleanOutput(self): diff --git a/test/test_function_file_input.py b/test/test_function_file_input.py index 673ed8c79..80a1e4fd7 100644 --- a/test/test_function_file_input.py +++ b/test/test_function_file_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,25 +39,25 @@ def make_instance(self, include_optional): return FunctionFileInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = null, - description = '0', + 'key' : '' + } + default = None + description = '' extensions = [ - '0' - ], - name = '0', - path = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), + '' + ] + name = '' + path = '' + required = True + spec = pollination_sdk.models.spec.Spec() type = 'FunctionFileInput' ) else : return FunctionFileInput( - name = '0', - path = '0', + name = '', + path = '', ) def testFunctionFileInput(self): diff --git a/test/test_function_file_output.py b/test/test_function_file_output.py index feeaf2d66..cabd3cbf4 100644 --- a/test/test_function_file_output.py +++ b/test/test_function_file_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,18 +38,18 @@ def make_instance(self, include_optional): if include_optional : return FunctionFileOutput( annotations = { - 'key' : '0' - }, - description = '0', - name = '0', - path = '0', - required = True, + 'key' : '' + } + description = '' + name = '' + path = '' + required = True type = 'FunctionFileOutput' ) else : return FunctionFileOutput( - name = '0', - path = '0', + name = '', + path = '', ) def testFunctionFileOutput(self): diff --git a/test/test_function_folder_input.py b/test/test_function_folder_input.py index 975fbe8b4..8791455da 100644 --- a/test/test_function_folder_input.py +++ b/test/test_function_folder_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,22 +39,22 @@ def make_instance(self, include_optional): return FunctionFolderInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = null, - description = '0', - name = '0', - path = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), + 'key' : '' + } + default = None + description = '' + name = '' + path = '' + required = True + spec = pollination_sdk.models.spec.Spec() type = 'FunctionFolderInput' ) else : return FunctionFolderInput( - name = '0', - path = '0', + name = '', + path = '', ) def testFunctionFolderInput(self): diff --git a/test/test_function_folder_output.py b/test/test_function_folder_output.py index acb17db13..802dd4d0a 100644 --- a/test/test_function_folder_output.py +++ b/test/test_function_folder_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,18 +38,18 @@ def make_instance(self, include_optional): if include_optional : return FunctionFolderOutput( annotations = { - 'key' : '0' - }, - description = '0', - name = '0', - path = '0', - required = True, + 'key' : '' + } + description = '' + name = '' + path = '' + required = True type = 'FunctionFolderOutput' ) else : return FunctionFolderOutput( - name = '0', - path = '0', + name = '', + path = '', ) def testFunctionFolderOutput(self): diff --git a/test/test_function_inputs_inner.py b/test/test_function_inputs_inner.py new file mode 100644 index 000000000..af2c48025 --- /dev/null +++ b/test/test_function_inputs_inner.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.function_inputs_inner import FunctionInputsInner # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestFunctionInputsInner(unittest.TestCase): + """FunctionInputsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test FunctionInputsInner + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.function_inputs_inner.FunctionInputsInner() # noqa: E501 + if include_optional : + return FunctionInputsInner( + alias = [ + null + ] + annotations = { + 'key' : '' + } + default = pollination_sdk.models.default.Default() + description = '' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() + type = 'FunctionJSONObjectInput' + path = '' + extensions = [ + '' + ] + items_type = 'Generic' + ) + else : + return FunctionInputsInner( + name = '', + path = '', + ) + + def testFunctionInputsInner(self): + """Test FunctionInputsInner""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_function_integer_input.py b/test/test_function_integer_input.py index 98a7b21f3..8ed8ada20 100644 --- a/test/test_function_integer_input.py +++ b/test/test_function_integer_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,20 +39,20 @@ def make_instance(self, include_optional): return FunctionIntegerInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = 56, - description = '0', - name = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), + 'key' : '' + } + default = 56 + description = '' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() type = 'FunctionIntegerInput' ) else : return FunctionIntegerInput( - name = '0', + name = '', ) def testFunctionIntegerInput(self): diff --git a/test/test_function_integer_output.py b/test/test_function_integer_output.py index 0a1da7085..4c5417b93 100644 --- a/test/test_function_integer_output.py +++ b/test/test_function_integer_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,18 +38,18 @@ def make_instance(self, include_optional): if include_optional : return FunctionIntegerOutput( annotations = { - 'key' : '0' - }, - description = '0', - name = '0', - path = '0', - required = True, + 'key' : '' + } + description = '' + name = '' + path = '' + required = True type = 'FunctionIntegerOutput' ) else : return FunctionIntegerOutput( - name = '0', - path = '0', + name = '', + path = '', ) def testFunctionIntegerOutput(self): diff --git a/test/test_function_json_object_input.py b/test/test_function_json_object_input.py index cd5f96544..88d66399d 100644 --- a/test/test_function_json_object_input.py +++ b/test/test_function_json_object_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,20 +39,20 @@ def make_instance(self, include_optional): return FunctionJSONObjectInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = pollination_sdk.models.default.Default(), - description = '0', - name = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), + 'key' : '' + } + default = pollination_sdk.models.default.Default() + description = '' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() type = 'FunctionJSONObjectInput' ) else : return FunctionJSONObjectInput( - name = '0', + name = '', ) def testFunctionJSONObjectInput(self): diff --git a/test/test_function_json_object_output.py b/test/test_function_json_object_output.py index a1f9d44d7..44f7d1211 100644 --- a/test/test_function_json_object_output.py +++ b/test/test_function_json_object_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,18 +38,18 @@ def make_instance(self, include_optional): if include_optional : return FunctionJSONObjectOutput( annotations = { - 'key' : '0' - }, - description = '0', - name = '0', - path = '0', - required = True, + 'key' : '' + } + description = '' + name = '' + path = '' + required = True type = 'FunctionJSONObjectOutput' ) else : return FunctionJSONObjectOutput( - name = '0', - path = '0', + name = '', + path = '', ) def testFunctionJSONObjectOutput(self): diff --git a/test/test_function_number_input.py b/test/test_function_number_input.py index 287071607..44922be1d 100644 --- a/test/test_function_number_input.py +++ b/test/test_function_number_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,20 +39,20 @@ def make_instance(self, include_optional): return FunctionNumberInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = 1.337, - description = '0', - name = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), + 'key' : '' + } + default = 1.337 + description = '' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() type = 'FunctionNumberInput' ) else : return FunctionNumberInput( - name = '0', + name = '', ) def testFunctionNumberInput(self): diff --git a/test/test_function_number_output.py b/test/test_function_number_output.py index abccf42a8..410fb44a9 100644 --- a/test/test_function_number_output.py +++ b/test/test_function_number_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,18 +38,18 @@ def make_instance(self, include_optional): if include_optional : return FunctionNumberOutput( annotations = { - 'key' : '0' - }, - description = '0', - name = '0', - path = '0', - required = True, + 'key' : '' + } + description = '' + name = '' + path = '' + required = True type = 'FunctionNumberOutput' ) else : return FunctionNumberOutput( - name = '0', - path = '0', + name = '', + path = '', ) def testFunctionNumberOutput(self): diff --git a/test/test_function_outputs_inner.py b/test/test_function_outputs_inner.py new file mode 100644 index 000000000..7258dd202 --- /dev/null +++ b/test/test_function_outputs_inner.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.function_outputs_inner import FunctionOutputsInner # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestFunctionOutputsInner(unittest.TestCase): + """FunctionOutputsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test FunctionOutputsInner + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.function_outputs_inner.FunctionOutputsInner() # noqa: E501 + if include_optional : + return FunctionOutputsInner( + annotations = { + 'key' : '' + } + description = '' + name = '' + path = '' + required = True + type = 'FunctionJSONObjectOutput' + items_type = 'Generic' + ) + else : + return FunctionOutputsInner( + name = '', + path = '', + ) + + def testFunctionOutputsInner(self): + """Test FunctionOutputsInner""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_function_path_input.py b/test/test_function_path_input.py index 8bd0c416e..e7de9191c 100644 --- a/test/test_function_path_input.py +++ b/test/test_function_path_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,25 +39,25 @@ def make_instance(self, include_optional): return FunctionPathInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = null, - description = '0', + 'key' : '' + } + default = None + description = '' extensions = [ - '0' - ], - name = '0', - path = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), + '' + ] + name = '' + path = '' + required = True + spec = pollination_sdk.models.spec.Spec() type = 'FunctionPathInput' ) else : return FunctionPathInput( - name = '0', - path = '0', + name = '', + path = '', ) def testFunctionPathInput(self): diff --git a/test/test_function_path_output.py b/test/test_function_path_output.py index 493bc4764..7220989d9 100644 --- a/test/test_function_path_output.py +++ b/test/test_function_path_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,18 +38,18 @@ def make_instance(self, include_optional): if include_optional : return FunctionPathOutput( annotations = { - 'key' : '0' - }, - description = '0', - name = '0', - path = '0', - required = True, + 'key' : '' + } + description = '' + name = '' + path = '' + required = True type = 'FunctionPathOutput' ) else : return FunctionPathOutput( - name = '0', - path = '0', + name = '', + path = '', ) def testFunctionPathOutput(self): diff --git a/test/test_function_string_input.py b/test/test_function_string_input.py index 55ebb70af..433a60005 100644 --- a/test/test_function_string_input.py +++ b/test/test_function_string_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,20 +39,20 @@ def make_instance(self, include_optional): return FunctionStringInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = '0', - description = '0', - name = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), + 'key' : '' + } + default = '' + description = '' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() type = 'FunctionStringInput' ) else : return FunctionStringInput( - name = '0', + name = '', ) def testFunctionStringInput(self): diff --git a/test/test_function_string_output.py b/test/test_function_string_output.py index 89c91c0c3..ab504e92d 100644 --- a/test/test_function_string_output.py +++ b/test/test_function_string_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,18 +38,18 @@ def make_instance(self, include_optional): if include_optional : return FunctionStringOutput( annotations = { - 'key' : '0' - }, - description = '0', - name = '0', - path = '0', - required = True, + 'key' : '' + } + description = '' + name = '' + path = '' + required = True type = 'FunctionStringOutput' ) else : return FunctionStringOutput( - name = '0', - path = '0', + name = '', + path = '', ) def testFunctionStringOutput(self): diff --git a/test/test_http.py b/test/test_http.py index d402c35c5..7c412f500 100644 --- a/test/test_http.py +++ b/test/test_http.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,14 +38,14 @@ def make_instance(self, include_optional): if include_optional : return HTTP( annotations = { - 'key' : '0' - }, - type = 'HTTP', - url = '0' + 'key' : '' + } + type = 'HTTP' + url = '' ) else : return HTTP( - url = '0', + url = '', ) def testHTTP(self): diff --git a/test/test_http_validation_error.py b/test/test_http_validation_error.py index 5ebe8c571..cce2eab99 100644 --- a/test/test_http_validation_error.py +++ b/test/test_http_validation_error.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -40,10 +40,10 @@ def make_instance(self, include_optional): detail = [ pollination_sdk.models.validation_error.ValidationError( loc = [ - '0' + null ], - msg = '0', - type = '0', ) + msg = '', + type = '', ) ] ) else : diff --git a/test/test_input_file_reference.py b/test/test_input_file_reference.py index 01e3def71..490270553 100644 --- a/test/test_input_file_reference.py +++ b/test/test_input_file_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,14 +38,14 @@ def make_instance(self, include_optional): if include_optional : return InputFileReference( annotations = { - 'key' : '0' - }, - type = 'InputFileReference', - variable = '0' + 'key' : '' + } + type = 'InputFileReference' + variable = '' ) else : return InputFileReference( - variable = '0', + variable = '', ) def testInputFileReference(self): diff --git a/test/test_input_folder_reference.py b/test/test_input_folder_reference.py index a9fae2e73..a40a1f462 100644 --- a/test/test_input_folder_reference.py +++ b/test/test_input_folder_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,14 +38,14 @@ def make_instance(self, include_optional): if include_optional : return InputFolderReference( annotations = { - 'key' : '0' - }, - type = 'InputFolderReference', - variable = '0' + 'key' : '' + } + type = 'InputFolderReference' + variable = '' ) else : return InputFolderReference( - variable = '0', + variable = '', ) def testInputFolderReference(self): diff --git a/test/test_input_path_reference.py b/test/test_input_path_reference.py index 20d571221..7a4dc72fe 100644 --- a/test/test_input_path_reference.py +++ b/test/test_input_path_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,14 +38,14 @@ def make_instance(self, include_optional): if include_optional : return InputPathReference( annotations = { - 'key' : '0' - }, - type = 'InputPathReference', - variable = '0' + 'key' : '' + } + type = 'InputPathReference' + variable = '' ) else : return InputPathReference( - variable = '0', + variable = '', ) def testInputPathReference(self): diff --git a/test/test_input_reference.py b/test/test_input_reference.py index 960fd6079..b40f84cbb 100644 --- a/test/test_input_reference.py +++ b/test/test_input_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,14 +38,14 @@ def make_instance(self, include_optional): if include_optional : return InputReference( annotations = { - 'key' : '0' - }, - type = 'InputReference', - variable = '0' + 'key' : '' + } + type = 'InputReference' + variable = '' ) else : return InputReference( - variable = '0', + variable = '', ) def testInputReference(self): diff --git a/test/test_io_alias_handler.py b/test/test_io_alias_handler.py index 161fd0742..b3888196a 100644 --- a/test/test_io_alias_handler.py +++ b/test/test_io_alias_handler.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,18 +38,18 @@ def make_instance(self, include_optional): if include_optional : return IOAliasHandler( annotations = { - 'key' : '0' - }, - function = '0', - index = 56, - language = '0', - module = 'honeybee_rhino.handlers', + 'key' : '' + } + function = '' + index = 56 + language = '' + module = 'honeybee_rhino.handlers' type = 'IOAliasHandler' ) else : return IOAliasHandler( - function = '0', - language = '0', + function = '', + language = '', module = 'honeybee_rhino.handlers', ) diff --git a/test/test_item_reference.py b/test/test_item_reference.py index decdab543..33760e27f 100644 --- a/test/test_item_reference.py +++ b/test/test_item_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,10 +38,10 @@ def make_instance(self, include_optional): if include_optional : return ItemReference( annotations = { - 'key' : '0' - }, - type = 'ItemReference', - variable = '0' + 'key' : '' + } + type = 'ItemReference' + variable = '' ) else : return ItemReference( diff --git a/test/test_item_type.py b/test/test_item_type.py index d86d755c1..3ce4d39d9 100644 --- a/test/test_item_type.py +++ b/test/test_item_type.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_job.py b/test/test_job.py index 8dc7dad9e..9cc939035 100644 --- a/test/test_job.py +++ b/test/test_job.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,25 +38,25 @@ def make_instance(self, include_optional): if include_optional : return Job( annotations = { - 'key' : '0' - }, - api_version = 'v1beta1', + 'key' : '' + } + api_version = 'v1beta1' arguments = [ [ null ] - ], - description = '0', + ] + description = '' labels = { - 'key' : '0' - }, - name = '0', - source = '0', + 'key' : '' + } + name = '' + source = '' type = 'Job' ) else : return Job( - source = '0', + source = '', ) def testJob(self): diff --git a/test/test_job_argument.py b/test/test_job_argument.py index c4eedef51..c91e9cede 100644 --- a/test/test_job_argument.py +++ b/test/test_job_argument.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,16 +38,16 @@ def make_instance(self, include_optional): if include_optional : return JobArgument( annotations = { - 'key' : '0' - }, - name = '0', - type = 'JobArgument', - value = null + 'key' : '' + } + name = '' + type = 'JobArgument' + value = None ) else : return JobArgument( - name = '0', - value = null, + name = '', + value = None, ) def testJobArgument(self): diff --git a/test/test_job_arguments_inner_inner.py b/test/test_job_arguments_inner_inner.py new file mode 100644 index 000000000..a9c49ba94 --- /dev/null +++ b/test/test_job_arguments_inner_inner.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.job_arguments_inner_inner import JobArgumentsInnerInner # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestJobArgumentsInnerInner(unittest.TestCase): + """JobArgumentsInnerInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test JobArgumentsInnerInner + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.job_arguments_inner_inner.JobArgumentsInnerInner() # noqa: E501 + if include_optional : + return JobArgumentsInnerInner( + annotations = { + 'key' : '' + } + name = '' + type = 'JobPathArgument' + value = None + source = None + ) + else : + return JobArgumentsInnerInner( + name = '', + value = None, + source = None, + ) + + def testJobArgumentsInnerInner(self): + """Test JobArgumentsInnerInner""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_job_compute_usage.py b/test/test_job_compute_usage.py new file mode 100644 index 000000000..dc2f107a3 --- /dev/null +++ b/test/test_job_compute_usage.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.job_compute_usage import JobComputeUsage # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestJobComputeUsage(unittest.TestCase): + """JobComputeUsage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test JobComputeUsage + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.job_compute_usage.JobComputeUsage() # noqa: E501 + if include_optional : + return JobComputeUsage( + account_name = '' + author_email = '' + author_name = '' + cpu_usage_hours = 1.337 + finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + job_id = '' + project_name = '' + recipe_name = '' + runs_cancelled = 56 + runs_failed = 56 + runs_succeeded = 56 + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else : + return JobComputeUsage( + account_name = '', + author_email = '', + author_name = '', + cpu_usage_hours = 1.337, + finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + job_id = '', + project_name = '', + recipe_name = '', + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + ) + + def testJobComputeUsage(self): + """Test JobComputeUsage""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_job_path_argument.py b/test/test_job_path_argument.py index 56633767b..043ef2aa8 100644 --- a/test/test_job_path_argument.py +++ b/test/test_job_path_argument.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,16 +38,16 @@ def make_instance(self, include_optional): if include_optional : return JobPathArgument( annotations = { - 'key' : '0' - }, - name = '0', - source = null, + 'key' : '' + } + name = '' + source = None type = 'JobPathArgument' ) else : return JobPathArgument( - name = '0', - source = null, + name = '', + source = None, ) def testJobPathArgument(self): diff --git a/test/test_job_status.py b/test/test_job_status.py index a33efa1c3..d4e54775d 100644 --- a/test/test_job_status.py +++ b/test/test_job_status.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,25 +38,25 @@ def make_instance(self, include_optional): if include_optional : return JobStatus( annotations = { - 'key' : '0' - }, - api_version = 'v1beta1', - finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - id = '0', - message = '0', - runs_cancelled = 56, - runs_completed = 56, - runs_failed = 56, - runs_pending = 56, - runs_running = 56, - source = '0', - started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - status = null, + 'key' : '' + } + api_version = 'v1beta1' + finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + id = '' + message = '' + runs_cancelled = 56 + runs_completed = 56 + runs_failed = 56 + runs_pending = 56 + runs_running = 56 + source = '' + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + status = 'Created' type = 'JobStatus' ) else : return JobStatus( - id = '0', + id = '', started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) diff --git a/test/test_job_status_enum.py b/test/test_job_status_enum.py index 597a0a45f..1782ccdb6 100644 --- a/test/test_job_status_enum.py +++ b/test/test_job_status_enum.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_jobs_api.py b/test/test_jobs_api.py index dc82e8e13..62cf7c7fe 100644 --- a/test/test_jobs_api.py +++ b/test/test_jobs_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_key_request.py b/test/test_key_request.py index eabd67a9f..78742d89e 100644 --- a/test/test_key_request.py +++ b/test/test_key_request.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,11 +37,11 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.key_request.KeyRequest() # noqa: E501 if include_optional : return KeyRequest( - key = '0' + key = '' ) else : return KeyRequest( - key = '0', + key = '', ) def testKeyRequest(self): diff --git a/test/test_license.py b/test/test_license.py index 454ff9e1b..4c2a9a355 100644 --- a/test/test_license.py +++ b/test/test_license.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,15 +38,15 @@ def make_instance(self, include_optional): if include_optional : return License( annotations = { - 'key' : '0' - }, - name = '0', - type = 'License', + 'key' : '' + } + name = '' + type = 'License' url = '0' ) else : return License( - name = '0', + name = '', ) def testLicense(self): diff --git a/test/test_license_pool_access_policy.py b/test/test_license_pool_access_policy.py index 2937c1196..9f3d7f21e 100644 --- a/test/test_license_pool_access_policy.py +++ b/test/test_license_pool_access_policy.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,12 +37,16 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.license_pool_access_policy.LicensePoolAccessPolicy() # noqa: E501 if include_optional : return LicensePoolAccessPolicy( - permission = null, - subject = null + permission = 'admin' + subject = pollination_sdk.models.policy_subject.PolicySubject( + name = 'ladybugbot', + subject_type = 'user', ) ) else : return LicensePoolAccessPolicy( - subject = null, + subject = pollination_sdk.models.policy_subject.PolicySubject( + name = 'ladybugbot', + subject_type = 'user', ), ) def testLicensePoolAccessPolicy(self): diff --git a/test/test_license_pool_access_policy_list.py b/test/test_license_pool_access_policy_list.py index 662973f02..241f182aa 100644 --- a/test/test_license_pool_access_policy_list.py +++ b/test/test_license_pool_access_policy_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_license_pool_list.py b/test/test_license_pool_list.py index d2d93462d..851f20025 100644 --- a/test/test_license_pool_list.py +++ b/test/test_license_pool_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -45,15 +45,15 @@ def make_instance(self, include_optional): subject = null, ) ], allowed_activations = 56, - description = '0', - id = '0', - license_id = '0', + description = '', + id = '', + license_id = '', owner = null, permissions = pollination_sdk.models.user_permission.UserPermission( admin = False, read = True, write = False, ), - product = '0', + product = '', total_activations = 56, ) ] ) @@ -67,15 +67,15 @@ def make_instance(self, include_optional): subject = null, ) ], allowed_activations = 56, - description = '0', - id = '0', - license_id = '0', + description = '', + id = '', + license_id = '', owner = null, permissions = pollination_sdk.models.user_permission.UserPermission( admin = False, read = True, write = False, ), - product = '0', + product = '', total_activations = 56, ) ], ) diff --git a/test/test_license_pool_policy_subject.py b/test/test_license_pool_policy_subject.py index 7c5d0664d..7125eee0c 100644 --- a/test/test_license_pool_policy_subject.py +++ b/test/test_license_pool_policy_subject.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,7 +37,7 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.license_pool_policy_subject.LicensePoolPolicySubject() # noqa: E501 if include_optional : return LicensePoolPolicySubject( - name = 'ladybugbot', + name = 'ladybugbot' subject_type = 'user' ) else : diff --git a/test/test_license_pool_policy_subject_list.py b/test/test_license_pool_policy_subject_list.py index 2fcc8c5d5..917ee190e 100644 --- a/test/test_license_pool_policy_subject_list.py +++ b/test/test_license_pool_policy_subject_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_license_pool_public.py b/test/test_license_pool_public.py index c8d6330e1..3161dd7b0 100644 --- a/test/test_license_pool_public.py +++ b/test/test_license_pool_public.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -41,30 +41,42 @@ def make_instance(self, include_optional): pollination_sdk.models.accessor.Accessor( permission = 'admin', subject = null, ) - ], - allowed_activations = 56, - description = '0', - id = '0', - license_id = '0', - owner = null, + ] + allowed_activations = 56 + description = '' + id = '' + license_id = '' + owner = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ) permissions = pollination_sdk.models.user_permission.UserPermission( admin = False, read = True, - write = False, ), - product = '0', + write = False, ) + product = '' total_activations = 56 ) else : return LicensePoolPublic( allowed_activations = 56, - id = '0', - license_id = '0', - owner = null, + id = '', + license_id = '', + owner = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ), permissions = pollination_sdk.models.user_permission.UserPermission( admin = False, read = True, write = False, ), - product = '0', + product = '', total_activations = 56, ) diff --git a/test/test_license_pool_update.py b/test/test_license_pool_update.py index 22136a8d4..ad11c2939 100644 --- a/test/test_license_pool_update.py +++ b/test/test_license_pool_update.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,7 +37,7 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.license_pool_update.LicensePoolUpdate() # noqa: E501 if include_optional : return LicensePoolUpdate( - description = '0' + description = '' ) else : return LicensePoolUpdate( diff --git a/test/test_license_public.py b/test/test_license_public.py index 2d2c47cc4..617199c11 100644 --- a/test/test_license_public.py +++ b/test/test_license_public.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,45 +37,45 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.license_public.LicensePublic() # noqa: E501 if include_optional : return LicensePublic( - allowed_activations = 56, - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - id = '0', - key = '0', - lease_duration = 56, + allowed_activations = 56 + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + id = '' + key = '' + lease_duration = 56 metadata = [ pollination_sdk.models.metadata.Metadata( - id = '0', - key = '0', - value = '0', + id = '', + key = '', + value = '', visible = True, ) - ], - notes = '0', - product_id = '0', - revoked = True, - server_sync_grace_period = 56, - server_sync_interval = 56, - suspended = True, - total_activations = 56, - total_deactivations = 56, - type = 'node-locked', - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + ] + notes = '' + product_id = '' + revoked = True + server_sync_grace_period = 56 + server_sync_interval = 56 + suspended = True + total_activations = 56 + total_deactivations = 56 + type = 'node-locked' + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') validity = 56 ) else : return LicensePublic( allowed_activations = 56, created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - id = '0', - key = '0', + id = '', + key = '', lease_duration = 56, metadata = [ pollination_sdk.models.metadata.Metadata( - id = '0', - key = '0', - value = '0', + id = '', + key = '', + value = '', visible = True, ) ], - product_id = '0', + product_id = '', revoked = True, server_sync_grace_period = 56, server_sync_interval = 56, diff --git a/test/test_license_type.py b/test/test_license_type.py index ae9ff8179..b0798db0d 100644 --- a/test/test_license_type.py +++ b/test/test_license_type.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_licenses_api.py b/test/test_licenses_api.py index 7d22d90c6..cdd9bfdf7 100644 --- a/test/test_licenses_api.py +++ b/test/test_licenses_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_local_config.py b/test/test_local_config.py index cadbd6056..3a2a87811 100644 --- a/test/test_local_config.py +++ b/test/test_local_config.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,8 +38,8 @@ def make_instance(self, include_optional): if include_optional : return LocalConfig( annotations = { - 'key' : '0' - }, + 'key' : '' + } type = 'LocalConfig' ) else : diff --git a/test/test_location.py b/test/test_location.py index a41047aa1..3686c369e 100644 --- a/test/test_location.py +++ b/test/test_location.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,11 +37,11 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.location.Location() # noqa: E501 if include_optional : return Location( - city = '0', - country_code = '0', - country_name = '0', - ip_address = '0', - latitude = 1.337, + city = '' + country_code = '' + country_name = '' + ip_address = '' + latitude = 1.337 longitude = 1.337 ) else : diff --git a/test/test_maintainer.py b/test/test_maintainer.py index d858b64c6..f9e06d84f 100644 --- a/test/test_maintainer.py +++ b/test/test_maintainer.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,15 +38,15 @@ def make_instance(self, include_optional): if include_optional : return Maintainer( annotations = { - 'key' : '0' - }, - email = '0', - name = '0', + 'key' : '' + } + email = '' + name = '' type = 'Maintainer' ) else : return Maintainer( - name = '0', + name = '', ) def testMaintainer(self): diff --git a/test/test_manifest.py b/test/test_manifest.py new file mode 100644 index 000000000..e7db77886 --- /dev/null +++ b/test/test_manifest.py @@ -0,0 +1,246 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.manifest import Manifest # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestManifest(unittest.TestCase): + """Manifest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test Manifest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.manifest.Manifest() # noqa: E501 + if include_optional : + return Manifest( + annotations = { + 'key' : '' + } + api_version = 'v1beta1' + dependencies = [ + pollination_sdk.models.dependency.Dependency( + alias = '', + annotations = { + 'key' : '' + }, + hash = '', + kind = null, + name = '', + source = '', + tag = '', + type = 'Dependency', ) + ] + flow = [ + pollination_sdk.models.dag.DAG( + annotations = { + 'key' : '' + }, + fail_fast = True, + inputs = [ + null + ], + name = '', + outputs = [ + null + ], + tasks = [ + pollination_sdk.models.dag_task.DAGTask( + annotations = { + 'key' : '' + }, + arguments = [ + null + ], + loop = null, + name = '', + needs = [ + '' + ], + returns = [ + null + ], + sub_folder = '', + template = '', + type = 'DAGTask', ) + ], + type = 'DAG', ) + ] + metadata = pollination_sdk.models.meta_data.MetaData( + annotations = { + 'key' : '' + }, + app_version = '', + deprecated = True, + description = '', + home = '', + icon = '', + keywords = [ + '' + ], + license = null, + maintainers = [ + pollination_sdk.models.maintainer.Maintainer( + annotations = { + 'key' : '' + }, + email = '', + name = '', + type = 'Maintainer', ) + ], + name = '', + sources = [ + '' + ], + tag = '', + type = 'MetaData', ) + type = 'Plugin' + config = pollination_sdk.models.plugin_config.PluginConfig( + annotations = { + 'key' : '' + }, + docker = null, + local = null, + type = 'PluginConfig', ) + functions = [ + pollination_sdk.models.function.Function( + annotations = { + 'key' : '' + }, + command = '', + description = '', + inputs = [ + null + ], + language = null, + name = '', + outputs = [ + null + ], + source = '', + type = 'Function', ) + ] + ) + else : + return Manifest( + flow = [ + pollination_sdk.models.dag.DAG( + annotations = { + 'key' : '' + }, + fail_fast = True, + inputs = [ + null + ], + name = '', + outputs = [ + null + ], + tasks = [ + pollination_sdk.models.dag_task.DAGTask( + annotations = { + 'key' : '' + }, + arguments = [ + null + ], + loop = null, + name = '', + needs = [ + '' + ], + returns = [ + null + ], + sub_folder = '', + template = '', + type = 'DAGTask', ) + ], + type = 'DAG', ) + ], + metadata = pollination_sdk.models.meta_data.MetaData( + annotations = { + 'key' : '' + }, + app_version = '', + deprecated = True, + description = '', + home = '', + icon = '', + keywords = [ + '' + ], + license = null, + maintainers = [ + pollination_sdk.models.maintainer.Maintainer( + annotations = { + 'key' : '' + }, + email = '', + name = '', + type = 'Maintainer', ) + ], + name = '', + sources = [ + '' + ], + tag = '', + type = 'MetaData', ), + config = pollination_sdk.models.plugin_config.PluginConfig( + annotations = { + 'key' : '' + }, + docker = null, + local = null, + type = 'PluginConfig', ), + functions = [ + pollination_sdk.models.function.Function( + annotations = { + 'key' : '' + }, + command = '', + description = '', + inputs = [ + null + ], + language = null, + name = '', + outputs = [ + null + ], + source = '', + type = 'Function', ) + ], + ) + + def testManifest(self): + """Test Manifest""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_meta_data.py b/test/test_meta_data.py index 002ddd605..f9e97ca28 100644 --- a/test/test_meta_data.py +++ b/test/test_meta_data.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,37 +38,43 @@ def make_instance(self, include_optional): if include_optional : return MetaData( annotations = { - 'key' : '0' - }, - app_version = '0', - deprecated = True, - description = '0', - home = '0', - icon = '0', + 'key' : '' + } + app_version = '' + deprecated = True + description = '' + home = '' + icon = '' keywords = [ - '0' - ], - license = null, + '' + ] + license = pollination_sdk.models.license.License( + annotations = { + 'key' : '' + }, + name = '', + type = 'License', + url = '0', ) maintainers = [ pollination_sdk.models.maintainer.Maintainer( annotations = { - 'key' : '0' + 'key' : '' }, - email = '0', - name = '0', + email = '', + name = '', type = 'Maintainer', ) - ], - name = '0', + ] + name = '' sources = [ - '0' - ], - tag = '0', + '' + ] + tag = '' type = 'MetaData' ) else : return MetaData( - name = '0', - tag = '0', + name = '', + tag = '', ) def testMetaData(self): diff --git a/test/test_metadata.py b/test/test_metadata.py index e859bd9f5..bafad5188 100644 --- a/test/test_metadata.py +++ b/test/test_metadata.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,15 +37,15 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.metadata.Metadata() # noqa: E501 if include_optional : return Metadata( - id = '0', - key = '0', - value = '0', + id = '' + key = '' + value = '' visible = True ) else : return Metadata( - key = '0', - value = '0', + key = '', + value = '', ) def testMetadata(self): diff --git a/test/test_body_cython_function_or_method_owner_plugins_post.py b/test/test_model_from.py similarity index 51% rename from test/test_body_cython_function_or_method_owner_plugins_post.py rename to test/test_model_from.py index 50b8a45a5..630bfdeaf 100644 --- a/test/test_body_cython_function_or_method_owner_plugins_post.py +++ b/test/test_model_from.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -17,11 +17,11 @@ import datetime import pollination_sdk -from pollination_sdk.models.body_cython_function_or_method_owner_plugins_post import BodyCythonFunctionOrMethodOwnerPluginsPost # noqa: E501 +from pollination_sdk.models.model_from import ModelFrom # noqa: E501 from pollination_sdk.rest import ApiException -class TestBodyCythonFunctionOrMethodOwnerPluginsPost(unittest.TestCase): - """BodyCythonFunctionOrMethodOwnerPluginsPost unit test stubs""" +class TestModelFrom(unittest.TestCase): + """ModelFrom unit test stubs""" def setUp(self): pass @@ -30,22 +30,30 @@ def tearDown(self): pass def make_instance(self, include_optional): - """Test BodyCythonFunctionOrMethodOwnerPluginsPost + """Test ModelFrom include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = pollination_sdk.models.body_cython_function_or_method_owner_plugins_post.BodyCythonFunctionOrMethodOwnerPluginsPost() # noqa: E501 + # model = pollination_sdk.models.model_from.ModelFrom() # noqa: E501 if include_optional : - return BodyCythonFunctionOrMethodOwnerPluginsPost( - package = bytes(b'blah') + return ModelFrom( + annotations = { + 'key' : '' + } + name = '' + type = 'FileReference' + variable = '' + path = '' ) else : - return BodyCythonFunctionOrMethodOwnerPluginsPost( - package = bytes(b'blah'), + return ModelFrom( + name = '', + variable = '', + path = '', ) - def testBodyCythonFunctionOrMethodOwnerPluginsPost(self): - """Test BodyCythonFunctionOrMethodOwnerPluginsPost""" + def testModelFrom(self): + """Test ModelFrom""" inst_req_only = self.make_instance(include_optional=False) inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_new_application_version.py b/test/test_new_application_version.py index 1558972e9..61df53003 100644 --- a/test/test_new_application_version.py +++ b/test/test_new_application_version.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,12 +37,12 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.new_application_version.NewApplicationVersion() # noqa: E501 if include_optional : return NewApplicationVersion( - release_notes = '0', - tag = '0' + release_notes = '' + tag = '' ) else : return NewApplicationVersion( - tag = '0', + tag = '', ) def testNewApplicationVersion(self): diff --git a/test/test_new_plugin_package.py b/test/test_new_plugin_package.py index 2dbda910b..780d615a3 100644 --- a/test/test_new_plugin_package.py +++ b/test/test_new_plugin_package.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,12 +37,62 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.new_plugin_package.NewPluginPackage() # noqa: E501 if include_optional : return NewPluginPackage( - manifest = null, - readme = '0' + manifest = pollination_sdk.models.plugin.Plugin( + annotations = { + 'key' : '' + }, + api_version = 'v1beta1', + config = null, + functions = [ + pollination_sdk.models.function.Function( + annotations = { + 'key' : '' + }, + command = '', + description = '', + inputs = [ + null + ], + language = null, + name = '', + outputs = [ + null + ], + source = '', + type = 'Function', ) + ], + metadata = null, + type = 'Plugin', ) + readme = '' ) else : return NewPluginPackage( - manifest = null, + manifest = pollination_sdk.models.plugin.Plugin( + annotations = { + 'key' : '' + }, + api_version = 'v1beta1', + config = null, + functions = [ + pollination_sdk.models.function.Function( + annotations = { + 'key' : '' + }, + command = '', + description = '', + inputs = [ + null + ], + language = null, + name = '', + outputs = [ + null + ], + source = '', + type = 'Function', ) + ], + metadata = null, + type = 'Plugin', ), ) def testNewPluginPackage(self): diff --git a/test/test_new_recipe_package.py b/test/test_new_recipe_package.py index 3b24db1ae..7385cdfe2 100644 --- a/test/test_new_recipe_package.py +++ b/test/test_new_recipe_package.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,12 +37,112 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.new_recipe_package.NewRecipePackage() # noqa: E501 if include_optional : return NewRecipePackage( - manifest = null, - readme = '0' + manifest = pollination_sdk.models.recipe.Recipe( + annotations = { + 'key' : '' + }, + api_version = 'v1beta1', + dependencies = [ + pollination_sdk.models.dependency.Dependency( + alias = '', + annotations = { + 'key' : '' + }, + hash = '', + kind = null, + name = '', + source = '', + tag = '', + type = 'Dependency', ) + ], + flow = [ + pollination_sdk.models.dag.DAG( + annotations = , + fail_fast = True, + inputs = [ + null + ], + name = '', + outputs = [ + null + ], + tasks = [ + pollination_sdk.models.dag_task.DAGTask( + annotations = , + arguments = [ + null + ], + loop = null, + name = '', + needs = [ + '' + ], + returns = [ + null + ], + sub_folder = '', + template = '', + type = 'DAGTask', ) + ], + type = 'DAG', ) + ], + metadata = null, + type = 'Recipe', ) + readme = '' ) else : return NewRecipePackage( - manifest = null, + manifest = pollination_sdk.models.recipe.Recipe( + annotations = { + 'key' : '' + }, + api_version = 'v1beta1', + dependencies = [ + pollination_sdk.models.dependency.Dependency( + alias = '', + annotations = { + 'key' : '' + }, + hash = '', + kind = null, + name = '', + source = '', + tag = '', + type = 'Dependency', ) + ], + flow = [ + pollination_sdk.models.dag.DAG( + annotations = , + fail_fast = True, + inputs = [ + null + ], + name = '', + outputs = [ + null + ], + tasks = [ + pollination_sdk.models.dag_task.DAGTask( + annotations = , + arguments = [ + null + ], + loop = null, + name = '', + needs = [ + '' + ], + returns = [ + null + ], + sub_folder = '', + template = '', + type = 'DAGTask', ) + ], + type = 'DAG', ) + ], + metadata = null, + type = 'Recipe', ), ) def testNewRecipePackage(self): diff --git a/test/test_organization.py b/test/test_organization.py index e3dbb0d2d..01d4c0c7c 100644 --- a/test/test_organization.py +++ b/test/test_organization.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,21 +37,33 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.organization.Organization() # noqa: E501 if include_optional : return Organization( - account_name = 'ladybug-tools', - contact_email = 'info@ladybug.tools', - description = 'Making environmental design knowledge and tools freely accessible to every person, project and design process', - id = '1eb8e60d-771d-4a30-8078-fe553eb2f0bc', - member_count = 10, - name = 'Ladybug Tools', - owner = {"id":"e4d0d922-2031-4b39-94d2-aa6d584d6bb2","name":"ladybug-tools","type":"org"}, - picture_url = 'https://avatars1.githubusercontent.com/u/38131342', - role = member, + account_name = 'ladybug-tools' + contact_email = 'info@ladybug.tools' + description = 'Making environmental design knowledge and tools freely accessible to every person, project and design process' + id = '1eb8e60d-771d-4a30-8078-fe553eb2f0bc' + member_count = 10 + name = 'Ladybug Tools' + owner = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ) + picture_url = 'https://avatars1.githubusercontent.com/u/38131342' + role = 'owner' team_count = 3 ) else : return Organization( id = '1eb8e60d-771d-4a30-8078-fe553eb2f0bc', - owner = {"id":"e4d0d922-2031-4b39-94d2-aa6d584d6bb2","name":"ladybug-tools","type":"org"}, + owner = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ), ) def testOrganization(self): diff --git a/test/test_organization_create.py b/test/test_organization_create.py index 34f0d43ad..631b479a2 100644 --- a/test/test_organization_create.py +++ b/test/test_organization_create.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,10 +37,10 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.organization_create.OrganizationCreate() # noqa: E501 if include_optional : return OrganizationCreate( - account_name = 'ladybug-tools', - contact_email = 'info@ladybug.tools', - description = 'Making environmental design knowledge and tools freely accessible to every person, project and design process', - name = 'Ladybug Tools', + account_name = 'ladybug-tools' + contact_email = 'info@ladybug.tools' + description = 'Making environmental design knowledge and tools freely accessible to every person, project and design process' + name = 'Ladybug Tools' picture_url = 'https://avatars1.githubusercontent.com/u/38131342' ) else : diff --git a/test/test_organization_list.py b/test/test_organization_list.py index ad02eb2e2..1958fb597 100644 --- a/test/test_organization_list.py +++ b/test/test_organization_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,10 +37,10 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.organization_list.OrganizationList() # noqa: E501 if include_optional : return OrganizationList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.organization.Organization( account_name = 'ladybug-tools', @@ -49,11 +49,11 @@ def make_instance(self, include_optional): id = '1eb8e60d-771d-4a30-8078-fe553eb2f0bc', member_count = 10, name = 'Ladybug Tools', - owner = {"id":"e4d0d922-2031-4b39-94d2-aa6d584d6bb2","name":"ladybug-tools","type":"org"}, + owner = {id=e4d0d922-2031-4b39-94d2-aa6d584d6bb2, name=ladybug-tools, type=org}, picture_url = 'https://avatars1.githubusercontent.com/u/38131342', role = member, team_count = 3, ) - ], + ] total_count = 56 ) else : @@ -69,7 +69,7 @@ def make_instance(self, include_optional): id = '1eb8e60d-771d-4a30-8078-fe553eb2f0bc', member_count = 10, name = 'Ladybug Tools', - owner = {"id":"e4d0d922-2031-4b39-94d2-aa6d584d6bb2","name":"ladybug-tools","type":"org"}, + owner = {id=e4d0d922-2031-4b39-94d2-aa6d584d6bb2, name=ladybug-tools, type=org}, picture_url = 'https://avatars1.githubusercontent.com/u/38131342', role = member, team_count = 3, ) diff --git a/test/test_organization_member.py b/test/test_organization_member.py index fc1b29dfa..8cfb28c8f 100644 --- a/test/test_organization_member.py +++ b/test/test_organization_member.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,13 +37,21 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.organization_member.OrganizationMember() # noqa: E501 if include_optional : return OrganizationMember( - role = member, - user = null + role = 'owner' + user = pollination_sdk.models.user_public.UserPublic( + description = 'Beep Boop!', + name = 'Ladybug Bot', + picture = 'https://avatars1.githubusercontent.com/u/38131342', + username = 'ladybugbot', ) ) else : return OrganizationMember( - role = member, - user = null, + role = 'owner', + user = pollination_sdk.models.user_public.UserPublic( + description = 'Beep Boop!', + name = 'Ladybug Bot', + picture = 'https://avatars1.githubusercontent.com/u/38131342', + username = 'ladybugbot', ), ) def testOrganizationMember(self): diff --git a/test/test_organization_member_list.py b/test/test_organization_member_list.py index 9f3b13a97..b2a3503ec 100644 --- a/test/test_organization_member_list.py +++ b/test/test_organization_member_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,15 +37,15 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.organization_member_list.OrganizationMemberList() # noqa: E501 if include_optional : return OrganizationMemberList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.organization_member.OrganizationMember( role = member, user = null, ) - ], + ] total_count = 56 ) else : diff --git a/test/test_organization_member_usage.py b/test/test_organization_member_usage.py new file mode 100644 index 000000000..52cf1aee6 --- /dev/null +++ b/test/test_organization_member_usage.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.organization_member_usage import OrganizationMemberUsage # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestOrganizationMemberUsage(unittest.TestCase): + """OrganizationMemberUsage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test OrganizationMemberUsage + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.organization_member_usage.OrganizationMemberUsage() # noqa: E501 + if include_optional : + return OrganizationMemberUsage( + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + deleted = True + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + display_name = '' + email = '' + permission = '' + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + user_id = '' + username = '' + ) + else : + return OrganizationMemberUsage( + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted = True, + display_name = '', + email = '', + permission = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + user_id = '', + username = '', + ) + + def testOrganizationMemberUsage(self): + """Test OrganizationMemberUsage""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_organization_role_enum.py b/test/test_organization_role_enum.py index ed544d240..2203de470 100644 --- a/test/test_organization_role_enum.py +++ b/test/test_organization_role_enum.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_organization_update.py b/test/test_organization_update.py index ceefce3dc..12a7d0a7e 100644 --- a/test/test_organization_update.py +++ b/test/test_organization_update.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,10 +37,10 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.organization_update.OrganizationUpdate() # noqa: E501 if include_optional : return OrganizationUpdate( - account_name = 'ladybug-tools', - contact_email = 'info@ladybug.tools', - description = 'Making environmental design knowledge and tools freely accessible to every person, project and design process', - name = 'Ladybug Tools', + account_name = 'ladybug-tools' + contact_email = 'info@ladybug.tools' + description = 'Making environmental design knowledge and tools freely accessible to every person, project and design process' + name = 'Ladybug Tools' picture_url = 'https://avatars1.githubusercontent.com/u/38131342' ) else : diff --git a/test/test_orgs_api.py b/test/test_orgs_api.py index 7ca33ddb3..9c7b103d8 100644 --- a/test/test_orgs_api.py +++ b/test/test_orgs_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_package_sort_key.py b/test/test_package_sort_key.py index 24593f518..a4fbfa8e5 100644 --- a/test/test_package_sort_key.py +++ b/test/test_package_sort_key.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_package_version.py b/test/test_package_version.py index 9a4cbcb53..5eef5e20f 100644 --- a/test/test_package_version.py +++ b/test/test_package_version.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,47 +38,53 @@ def make_instance(self, include_optional): if include_optional : return PackageVersion( annotations = { - 'key' : '0' - }, - app_version = '0', - created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - deprecated = True, - description = '0', - digest = '0', - home = '0', - icon = '0', + 'key' : '' + } + app_version = '' + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + deprecated = True + description = '' + digest = '' + home = '' + icon = '' keywords = [ - '0' - ], - kind = '0', - license = null, + '' + ] + kind = '' + license = pollination_sdk.models.license.License( + annotations = { + 'key' : '' + }, + name = '', + type = 'License', + url = '0', ) maintainers = [ pollination_sdk.models.maintainer.Maintainer( annotations = { - 'key' : '0' + 'key' : '' }, - email = '0', - name = '0', + email = '', + name = '', type = 'Maintainer', ) - ], - manifest = null, - name = '0', - readme = '0', - slug = '0', + ] + manifest = None + name = '' + readme = '' + slug = '' sources = [ - '0' - ], - tag = '0', - type = 'PackageVersion', - url = '0' + '' + ] + tag = '' + type = 'PackageVersion' + url = '' ) else : return PackageVersion( created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - digest = '0', - name = '0', - tag = '0', - url = '0', + digest = '', + name = '', + tag = '', + url = '', ) def testPackageVersion(self): diff --git a/test/test_paused_reason.py b/test/test_paused_reason.py index c27837492..11d48d6b3 100644 --- a/test/test_paused_reason.py +++ b/test/test_paused_reason.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_pay_link.py b/test/test_pay_link.py index fd333bc01..5ea2fb557 100644 --- a/test/test_pay_link.py +++ b/test/test_pay_link.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,11 +37,11 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.pay_link.PayLink() # noqa: E501 if include_optional : return PayLink( - url = '0' + url = '' ) else : return PayLink( - url = '0', + url = '', ) def testPayLink(self): diff --git a/test/test_payment.py b/test/test_payment.py index 7a89746ee..315d99f39 100644 --- a/test/test_payment.py +++ b/test/test_payment.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,19 +37,19 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.payment.Payment() # noqa: E501 if include_optional : return Payment( - amount = 56, - currency = '0', - id = 56, - is_one_off_charge = True, - is_paid = True, - payout_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - receipt_url = '0', + amount = 56 + currency = '' + id = 56 + is_one_off_charge = True + is_paid = True + payout_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date() + receipt_url = '' subscription_id = 56 ) else : return Payment( amount = 56, - currency = '0', + currency = '', id = 56, is_one_off_charge = True, is_paid = True, diff --git a/test/test_payment_method.py b/test/test_payment_method.py index e5669e712..7d8debab9 100644 --- a/test/test_payment_method.py +++ b/test/test_payment_method.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,9 +37,9 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.payment_method.PaymentMethod() # noqa: E501 if include_optional : return PaymentMethod( - card_type = 'master', - expiry_date = '0', - last_four_digits = '0', + card_type = 'master' + expiry_date = '' + last_four_digits = '' payment_method = 'card' ) else : diff --git a/test/test_payment_method_enum.py b/test/test_payment_method_enum.py index 6cb06aea5..e46db496d 100644 --- a/test/test_payment_method_enum.py +++ b/test/test_payment_method_enum.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_permission.py b/test/test_permission.py index 38d80d1b7..53b86ab19 100644 --- a/test/test_permission.py +++ b/test/test_permission.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_plan_type.py b/test/test_plan_type.py index 5377b9580..e11fc0346 100644 --- a/test/test_plan_type.py +++ b/test/test_plan_type.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_plugin.py b/test/test_plugin.py index 4239cf810..d04d028f0 100644 --- a/test/test_plugin.py +++ b/test/test_plugin.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,53 +38,119 @@ def make_instance(self, include_optional): if include_optional : return Plugin( annotations = { - 'key' : '0' - }, - api_version = 'v1beta1', - config = null, + 'key' : '' + } + api_version = 'v1beta1' + config = pollination_sdk.models.plugin_config.PluginConfig( + annotations = { + 'key' : '' + }, + docker = null, + local = null, + type = 'PluginConfig', ) functions = [ pollination_sdk.models.function.Function( annotations = { - 'key' : '0' + 'key' : '' }, - command = '0', - description = '0', + command = '', + description = '', inputs = [ null ], language = null, - name = '0', + name = '', outputs = [ null ], - source = '0', + source = '', type = 'Function', ) - ], - metadata = null, + ] + metadata = pollination_sdk.models.meta_data.MetaData( + annotations = { + 'key' : '' + }, + app_version = '', + deprecated = True, + description = '', + home = '', + icon = '', + keywords = [ + '' + ], + license = null, + maintainers = [ + pollination_sdk.models.maintainer.Maintainer( + annotations = { + 'key' : '' + }, + email = '', + name = '', + type = 'Maintainer', ) + ], + name = '', + sources = [ + '' + ], + tag = '', + type = 'MetaData', ) type = 'Plugin' ) else : return Plugin( - config = null, + config = pollination_sdk.models.plugin_config.PluginConfig( + annotations = { + 'key' : '' + }, + docker = null, + local = null, + type = 'PluginConfig', ), functions = [ pollination_sdk.models.function.Function( annotations = { - 'key' : '0' + 'key' : '' }, - command = '0', - description = '0', + command = '', + description = '', inputs = [ null ], language = null, - name = '0', + name = '', outputs = [ null ], - source = '0', + source = '', type = 'Function', ) ], - metadata = null, + metadata = pollination_sdk.models.meta_data.MetaData( + annotations = { + 'key' : '' + }, + app_version = '', + deprecated = True, + description = '', + home = '', + icon = '', + keywords = [ + '' + ], + license = null, + maintainers = [ + pollination_sdk.models.maintainer.Maintainer( + annotations = { + 'key' : '' + }, + email = '', + name = '', + type = 'Maintainer', ) + ], + name = '', + sources = [ + '' + ], + tag = '', + type = 'MetaData', ), ) def testPlugin(self): diff --git a/test/test_plugin_config.py b/test/test_plugin_config.py index 015484165..9e95d3c40 100644 --- a/test/test_plugin_config.py +++ b/test/test_plugin_config.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,15 +38,33 @@ def make_instance(self, include_optional): if include_optional : return PluginConfig( annotations = { - 'key' : '0' - }, - docker = null, - local = null, + 'key' : '' + } + docker = pollination_sdk.models.docker_config.DockerConfig( + annotations = { + 'key' : '' + }, + image = '', + registry = '', + type = 'DockerConfig', + workdir = '', ) + local = pollination_sdk.models.local_config.LocalConfig( + annotations = { + 'key' : '' + }, + type = 'LocalConfig', ) type = 'PluginConfig' ) else : return PluginConfig( - docker = null, + docker = pollination_sdk.models.docker_config.DockerConfig( + annotations = { + 'key' : '' + }, + image = '', + registry = '', + type = 'DockerConfig', + workdir = '', ), ) def testPluginConfig(self): diff --git a/test/test_plugin_package.py b/test/test_plugin_package.py index f68f47842..ae8fa0229 100644 --- a/test/test_plugin_package.py +++ b/test/test_plugin_package.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,73 +37,73 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.plugin_package.PluginPackage() # noqa: E501 if include_optional : return PluginPackage( - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - description = '0', - digest = '0', - icon = '0', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + description = '' + digest = '' + icon = '' keywords = [ - '0' - ], + '' + ] manifest = pollination_sdk.models.plugin.Plugin( annotations = { - 'key' : '0' + 'key' : '' }, api_version = 'v1beta1', config = null, functions = [ pollination_sdk.models.function.Function( annotations = { - 'key' : '0' + 'key' : '' }, - command = '0', - description = '0', + command = '', + description = '', inputs = [ null ], language = null, - name = '0', + name = '', outputs = [ null ], - source = '0', + source = '', type = 'Function', ) ], metadata = null, - type = 'Plugin', ), + type = 'Plugin', ) readme = '# Daylight Factor - This recipe runs a daylight factor simulation.', - tag = '0' + This recipe runs a daylight factor simulation.' + tag = '' ) else : return PluginPackage( - digest = '0', + digest = '', manifest = pollination_sdk.models.plugin.Plugin( annotations = { - 'key' : '0' + 'key' : '' }, api_version = 'v1beta1', config = null, functions = [ pollination_sdk.models.function.Function( annotations = { - 'key' : '0' + 'key' : '' }, - command = '0', - description = '0', + command = '', + description = '', inputs = [ null ], language = null, - name = '0', + name = '', outputs = [ null ], - source = '0', + source = '', type = 'Function', ) ], metadata = null, type = 'Plugin', ), - tag = '0', + tag = '', ) def testPluginPackage(self): diff --git a/test/test_plugin_package_list.py b/test/test_plugin_package_list.py index 6a81cc3b7..6b6b1a94c 100644 --- a/test/test_plugin_package_list.py +++ b/test/test_plugin_package_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,49 +37,49 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.plugin_package_list.PluginPackageList() # noqa: E501 if include_optional : return PluginPackageList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.plugin_package.PluginPackage( created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - description = '0', - digest = '0', - icon = '0', + description = '', + digest = '', + icon = '', keywords = [ - '0' + '' ], manifest = pollination_sdk.models.plugin.Plugin( annotations = { - 'key' : '0' + 'key' : '' }, api_version = 'v1beta1', config = null, functions = [ pollination_sdk.models.function.Function( annotations = { - 'key' : '0' + 'key' : '' }, - command = '0', - description = '0', + command = '', + description = '', inputs = [ null ], language = null, - name = '0', + name = '', outputs = [ null ], - source = '0', + source = '', type = 'Function', ) ], metadata = null, type = 'Plugin', ), readme = '# Daylight Factor This recipe runs a daylight factor simulation.', - tag = '0', ) - ], + tag = '', ) + ] total_count = 56 ) else : @@ -90,41 +90,41 @@ def make_instance(self, include_optional): resources = [ pollination_sdk.models.plugin_package.PluginPackage( created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - description = '0', - digest = '0', - icon = '0', + description = '', + digest = '', + icon = '', keywords = [ - '0' + '' ], manifest = pollination_sdk.models.plugin.Plugin( annotations = { - 'key' : '0' + 'key' : '' }, api_version = 'v1beta1', config = null, functions = [ pollination_sdk.models.function.Function( annotations = { - 'key' : '0' + 'key' : '' }, - command = '0', - description = '0', + command = '', + description = '', inputs = [ null ], language = null, - name = '0', + name = '', outputs = [ null ], - source = '0', + source = '', type = 'Function', ) ], metadata = null, type = 'Plugin', ), readme = '# Daylight Factor This recipe runs a daylight factor simulation.', - tag = '0', ) + tag = '', ) ], total_count = 56, ) diff --git a/test/test_plugins_api.py b/test/test_plugins_api.py index 37fc63a6c..387268823 100644 --- a/test/test_plugins_api.py +++ b/test/test_plugins_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_policy_subject.py b/test/test_policy_subject.py index 62836f1ae..092f121bc 100644 --- a/test/test_policy_subject.py +++ b/test/test_policy_subject.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,7 +37,7 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.policy_subject.PolicySubject() # noqa: E501 if include_optional : return PolicySubject( - name = 'ladybugbot', + name = 'ladybugbot' subject_type = 'user' ) else : diff --git a/test/test_project.py b/test/test_project.py index d557e3c0d..380fa8bb5 100644 --- a/test/test_project.py +++ b/test/test_project.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,23 +37,49 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.project.Project() # noqa: E501 if include_optional : return Project( - description = '0', - id = '50bb7fe0-8f19-499e-972e-1ebec8af2c71', - name = 'Project Falcon', - owner = null, + description = '' + id = '50bb7fe0-8f19-499e-972e-1ebec8af2c71' + name = 'Project Falcon' + owner = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ) permissions = pollination_sdk.models.user_permission.UserPermission( admin = False, read = True, - write = False, ), - public = True, - slug = 'project-falcon', - usage = null + write = False, ) + public = True + slug = 'project-falcon' + usage = pollination_sdk.models.usage.Usage( + cpu = 1.337, + daily_usage = [ + pollination_sdk.models.daily_usage.DailyUsage( + cpu = 1.337, + date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + failed = 56, + memory = 1.337, + succeeded = 56, ) + ], + end = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + failed = 56, + memory = 1.337, + start = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + succeeded = 56, ) ) else : return Project( id = '50bb7fe0-8f19-499e-972e-1ebec8af2c71', name = 'Project Falcon', - owner = null, + owner = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ), permissions = pollination_sdk.models.user_permission.UserPermission( admin = False, read = True, diff --git a/test/test_project_access_policy.py b/test/test_project_access_policy.py index 2677b6b33..645ed1d4c 100644 --- a/test/test_project_access_policy.py +++ b/test/test_project_access_policy.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,13 +37,17 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.project_access_policy.ProjectAccessPolicy() # noqa: E501 if include_optional : return ProjectAccessPolicy( - permission = write, - subject = null + permission = 'admin' + subject = pollination_sdk.models.policy_subject.PolicySubject( + name = 'ladybugbot', + subject_type = 'user', ) ) else : return ProjectAccessPolicy( - permission = write, - subject = null, + permission = 'admin', + subject = pollination_sdk.models.policy_subject.PolicySubject( + name = 'ladybugbot', + subject_type = 'user', ), ) def testProjectAccessPolicy(self): diff --git a/test/test_project_access_policy_list.py b/test/test_project_access_policy_list.py index ba368e013..339ab77c0 100644 --- a/test/test_project_access_policy_list.py +++ b/test/test_project_access_policy_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,15 +37,15 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.project_access_policy_list.ProjectAccessPolicyList() # noqa: E501 if include_optional : return ProjectAccessPolicyList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.project_access_policy.ProjectAccessPolicy( permission = write, subject = null, ) - ], + ] total_count = 56 ) else : diff --git a/test/test_project_create.py b/test/test_project_create.py index 0080f2ef7..dfe75fe74 100644 --- a/test/test_project_create.py +++ b/test/test_project_create.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,8 +37,8 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.project_create.ProjectCreate() # noqa: E501 if include_optional : return ProjectCreate( - description = '0', - name = 'Project Falcon', + description = '' + name = 'Project Falcon' public = True ) else : diff --git a/test/test_project_folder.py b/test/test_project_folder.py index 0e11cf397..1e978916e 100644 --- a/test/test_project_folder.py +++ b/test/test_project_folder.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,9 +38,9 @@ def make_instance(self, include_optional): if include_optional : return ProjectFolder( annotations = { - 'key' : '0' - }, - path = '0', + 'key' : '' + } + path = '' type = 'ProjectFolder' ) else : diff --git a/test/test_project_list.py b/test/test_project_list.py index 6294f05db..dc68baea0 100644 --- a/test/test_project_list.py +++ b/test/test_project_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,13 +37,13 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.project_list.ProjectList() # noqa: E501 if include_optional : return ProjectList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.project.Project( - description = '0', + description = '', id = '50bb7fe0-8f19-499e-972e-1ebec8af2c71', name = 'Project Falcon', owner = null, @@ -54,7 +54,7 @@ def make_instance(self, include_optional): public = True, slug = 'project-falcon', usage = null, ) - ], + ] total_count = 56 ) else : @@ -64,7 +64,7 @@ def make_instance(self, include_optional): per_page = 56, resources = [ pollination_sdk.models.project.Project( - description = '0', + description = '', id = '50bb7fe0-8f19-499e-972e-1ebec8af2c71', name = 'Project Falcon', owner = null, diff --git a/test/test_project_policy_subject.py b/test/test_project_policy_subject.py index 108d044e1..0b3eba104 100644 --- a/test/test_project_policy_subject.py +++ b/test/test_project_policy_subject.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,7 +37,7 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.project_policy_subject.ProjectPolicySubject() # noqa: E501 if include_optional : return ProjectPolicySubject( - name = 'ladybugbot', + name = 'ladybugbot' subject_type = 'user' ) else : diff --git a/test/test_project_recipe_filter.py b/test/test_project_recipe_filter.py index 1831f3092..d7b8d0af2 100644 --- a/test/test_project_recipe_filter.py +++ b/test/test_project_recipe_filter.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,8 +37,8 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.project_recipe_filter.ProjectRecipeFilter() # noqa: E501 if include_optional : return ProjectRecipeFilter( - name = 'daylight-factor', - owner = 'ladybug-tools', + name = 'daylight-factor' + owner = 'ladybug-tools' tag = '0.2.1' ) else : diff --git a/test/test_project_recipe_filter_list.py b/test/test_project_recipe_filter_list.py index dee28bc1b..543523aff 100644 --- a/test/test_project_recipe_filter_list.py +++ b/test/test_project_recipe_filter_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,16 +37,16 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.project_recipe_filter_list.ProjectRecipeFilterList() # noqa: E501 if include_optional : return ProjectRecipeFilterList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.project_recipe_filter.ProjectRecipeFilter( name = 'daylight-factor', owner = 'ladybug-tools', tag = '0.2.1', ) - ], + ] total_count = 56 ) else : diff --git a/test/test_project_sort_key.py b/test/test_project_sort_key.py index 747ea60cb..c54062332 100644 --- a/test/test_project_sort_key.py +++ b/test/test_project_sort_key.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_project_update.py b/test/test_project_update.py index 2420df721..bf8dabb5f 100644 --- a/test/test_project_update.py +++ b/test/test_project_update.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,8 +37,8 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.project_update.ProjectUpdate() # noqa: E501 if include_optional : return ProjectUpdate( - description = 'I always wanted to have a project called project Falcon', - name = 'Project Falcon', + description = 'I always wanted to have a project called project Falcon' + name = 'Project Falcon' public = True ) else : diff --git a/test/test_projects_api.py b/test/test_projects_api.py index 7ec20fd19..62b525e0f 100644 --- a/test/test_projects_api.py +++ b/test/test_projects_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -85,10 +85,17 @@ def test_get_project_recipe_filters(self): """ pass + def test_get_project_recipe_repositories(self): + """Test case for get_project_recipe_repositories + + Get project recipe repositories # noqa: E501 + """ + pass + def test_get_project_recipes(self): """Test case for get_project_recipes - Get project recipes # noqa: E501 + Get project recipe versions # noqa: E501 """ pass diff --git a/test/test_public_account_list.py b/test/test_public_account_list.py index 7d79ba05c..74be079a4 100644 --- a/test/test_public_account_list.py +++ b/test/test_public_account_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,10 +37,10 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.public_account_list.PublicAccountList() # noqa: E501 if include_optional : return PublicAccountList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.account_public.AccountPublic( account_type = 'user', @@ -48,8 +48,8 @@ def make_instance(self, include_optional): display_name = 'Ladybug Bot', id = '0ad77f99-8043-46e4-8220-7221487c3ee5', name = 'ladybugbot', - picture_url = '0', ) - ], + picture_url = '', ) + ] total_count = 56 ) else : @@ -64,7 +64,7 @@ def make_instance(self, include_optional): display_name = 'Ladybug Bot', id = '0ad77f99-8043-46e4-8220-7221487c3ee5', name = 'ladybugbot', - picture_url = '0', ) + picture_url = '', ) ], total_count = 56, ) diff --git a/test/test_quota.py b/test/test_quota.py index a9fe9b6b7..34f292196 100644 --- a/test/test_quota.py +++ b/test/test_quota.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,23 +37,35 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.quota.Quota() # noqa: E501 if include_optional : return Quota( - description = '0', - display_name = '0', - enforced = True, - exceeded = True, - id = '0', - limit = 1.337, - owner = null, - period_start = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - resets = True, - type = null, - unit = '0', + description = '' + display_name = '' + enforced = True + exceeded = True + id = '' + limit = 1.337 + owner = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ) + period_start = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + resets = True + type = 'storage' + unit = '' usage = 0.0 ) else : return Quota( - owner = null, - type = null, + owner = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ), + type = 'storage', ) def testQuota(self): diff --git a/test/test_quota_list.py b/test/test_quota_list.py index 04514cc6d..7a68cc474 100644 --- a/test/test_quota_list.py +++ b/test/test_quota_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,25 +37,25 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.quota_list.QuotaList() # noqa: E501 if include_optional : return QuotaList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.quota.Quota( - description = '0', - display_name = '0', + description = '', + display_name = '', enforced = True, exceeded = True, - id = '0', + id = '', limit = 1.337, owner = null, period_start = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), resets = True, type = null, - unit = '0', + unit = '', usage = 0.0, ) - ], + ] total_count = 56 ) else : @@ -65,17 +65,17 @@ def make_instance(self, include_optional): per_page = 56, resources = [ pollination_sdk.models.quota.Quota( - description = '0', - display_name = '0', + description = '', + display_name = '', enforced = True, exceeded = True, - id = '0', + id = '', limit = 1.337, owner = null, period_start = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), resets = True, type = null, - unit = '0', + unit = '', usage = 0.0, ) ], total_count = 56, diff --git a/test/test_quota_plan.py b/test/test_quota_plan.py index c754685be..b304617d2 100644 --- a/test/test_quota_plan.py +++ b/test/test_quota_plan.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,18 +37,18 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.quota_plan.QuotaPlan() # noqa: E501 if include_optional : return QuotaPlan( - description = '0', - display_name = '0', - enforced = True, - limit = 1.337, - max_limit = 1.337, - resets = True, - type = null, - unit = '0' + description = '' + display_name = '' + enforced = True + limit = 1.337 + max_limit = 1.337 + resets = True + type = 'storage' + unit = '' ) else : return QuotaPlan( - type = null, + type = 'storage', ) def testQuotaPlan(self): diff --git a/test/test_quota_type.py b/test/test_quota_type.py index 96c77a57d..50bf16c45 100644 --- a/test/test_quota_type.py +++ b/test/test_quota_type.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_recipe.py b/test/test_recipe.py index 3fbe6b69d..001eb4ec1 100644 --- a/test/test_recipe.py +++ b/test/test_recipe.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,58 +38,85 @@ def make_instance(self, include_optional): if include_optional : return Recipe( annotations = { - 'key' : '0' - }, - api_version = 'v1beta1', + 'key' : '' + } + api_version = 'v1beta1' dependencies = [ pollination_sdk.models.dependency.Dependency( - alias = '0', + alias = '', annotations = { - 'key' : '0' + 'key' : '' }, - hash = '0', + hash = '', kind = null, - name = '0', - source = '0', - tag = '0', + name = '', + source = '', + tag = '', type = 'Dependency', ) - ], + ] flow = [ pollination_sdk.models.dag.DAG( annotations = { - 'key' : '0' + 'key' : '' }, fail_fast = True, inputs = [ null ], - name = '0', + name = '', outputs = [ null ], tasks = [ pollination_sdk.models.dag_task.DAGTask( annotations = { - 'key' : '0' + 'key' : '' }, arguments = [ null ], loop = null, - name = '0', + name = '', needs = [ - '0' + '' ], returns = [ null ], - sub_folder = '0', - template = '0', + sub_folder = '', + template = '', type = 'DAGTask', ) ], type = 'DAG', ) - ], - metadata = null, + ] + metadata = pollination_sdk.models.meta_data.MetaData( + annotations = { + 'key' : '' + }, + app_version = '', + deprecated = True, + description = '', + home = '', + icon = '', + keywords = [ + '' + ], + license = null, + maintainers = [ + pollination_sdk.models.maintainer.Maintainer( + annotations = { + 'key' : '' + }, + email = '', + name = '', + type = 'Maintainer', ) + ], + name = '', + sources = [ + '' + ], + tag = '', + type = 'MetaData', ) type = 'Recipe' ) else : @@ -97,34 +124,34 @@ def make_instance(self, include_optional): flow = [ pollination_sdk.models.dag.DAG( annotations = { - 'key' : '0' + 'key' : '' }, fail_fast = True, inputs = [ null ], - name = '0', + name = '', outputs = [ null ], tasks = [ pollination_sdk.models.dag_task.DAGTask( annotations = { - 'key' : '0' + 'key' : '' }, arguments = [ null ], loop = null, - name = '0', + name = '', needs = [ - '0' + '' ], returns = [ null ], - sub_folder = '0', - template = '0', + sub_folder = '', + template = '', type = 'DAGTask', ) ], type = 'DAG', ) diff --git a/test/test_recipe_interface.py b/test/test_recipe_interface.py index f30146c55..560532ed5 100644 --- a/test/test_recipe_interface.py +++ b/test/test_recipe_interface.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,22 +38,76 @@ def make_instance(self, include_optional): if include_optional : return RecipeInterface( annotations = { - 'key' : '0' - }, - api_version = 'v1beta1', + 'key' : '' + } + api_version = 'v1beta1' inputs = [ null - ], - metadata = null, + ] + metadata = pollination_sdk.models.meta_data.MetaData( + annotations = { + 'key' : '' + }, + app_version = '', + deprecated = True, + description = '', + home = '', + icon = '', + keywords = [ + '' + ], + license = null, + maintainers = [ + pollination_sdk.models.maintainer.Maintainer( + annotations = { + 'key' : '' + }, + email = '', + name = '', + type = 'Maintainer', ) + ], + name = '', + sources = [ + '' + ], + tag = '', + type = 'MetaData', ) outputs = [ null - ], - source = '0', + ] + source = '' type = 'RecipeInterface' ) else : return RecipeInterface( - metadata = null, + metadata = pollination_sdk.models.meta_data.MetaData( + annotations = { + 'key' : '' + }, + app_version = '', + deprecated = True, + description = '', + home = '', + icon = '', + keywords = [ + '' + ], + license = null, + maintainers = [ + pollination_sdk.models.maintainer.Maintainer( + annotations = { + 'key' : '' + }, + email = '', + name = '', + type = 'Maintainer', ) + ], + name = '', + sources = [ + '' + ], + tag = '', + type = 'MetaData', ), ) def testRecipeInterface(self): diff --git a/test/test_recipe_interface_list.py b/test/test_recipe_interface_list.py index 11a33b04c..a1d633f8f 100644 --- a/test/test_recipe_interface_list.py +++ b/test/test_recipe_interface_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,14 +37,14 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.recipe_interface_list.RecipeInterfaceList() # noqa: E501 if include_optional : return RecipeInterfaceList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.recipe_interface.RecipeInterface( annotations = { - 'key' : '0' + 'key' : '' }, api_version = 'v1beta1', inputs = [ @@ -54,9 +54,9 @@ def make_instance(self, include_optional): outputs = [ null ], - source = '0', + source = '', type = 'RecipeInterface', ) - ], + ] total_count = 56 ) else : @@ -67,7 +67,7 @@ def make_instance(self, include_optional): resources = [ pollination_sdk.models.recipe_interface.RecipeInterface( annotations = { - 'key' : '0' + 'key' : '' }, api_version = 'v1beta1', inputs = [ @@ -77,7 +77,7 @@ def make_instance(self, include_optional): outputs = [ null ], - source = '0', + source = '', type = 'RecipeInterface', ) ], total_count = 56, diff --git a/test/test_recipe_package.py b/test/test_recipe_package.py index 1448b1825..415d87005 100644 --- a/test/test_recipe_package.py +++ b/test/test_recipe_package.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,16 +37,16 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.recipe_package.RecipePackage() # noqa: E501 if include_optional : return RecipePackage( - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - description = '0', - digest = '0', - icon = '0', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + description = '' + digest = '' + icon = '' keywords = [ - '0' - ], + '' + ] manifest = pollination_sdk.models.recipe_interface.RecipeInterface( annotations = { - 'key' : '0' + 'key' : '' }, api_version = 'v1beta1', inputs = [ @@ -56,18 +56,18 @@ def make_instance(self, include_optional): outputs = [ null ], - source = '0', - type = 'RecipeInterface', ), + source = '', + type = 'RecipeInterface', ) readme = '# Daylight Factor - This recipe runs a daylight factor simulation.', - tag = '0' + This recipe runs a daylight factor simulation.' + tag = '' ) else : return RecipePackage( - digest = '0', + digest = '', manifest = pollination_sdk.models.recipe_interface.RecipeInterface( annotations = { - 'key' : '0' + 'key' : '' }, api_version = 'v1beta1', inputs = [ @@ -77,9 +77,9 @@ def make_instance(self, include_optional): outputs = [ null ], - source = '0', + source = '', type = 'RecipeInterface', ), - tag = '0', + tag = '', ) def testRecipePackage(self): diff --git a/test/test_recipe_package_list.py b/test/test_recipe_package_list.py index f96d4afd3..6a7aadcda 100644 --- a/test/test_recipe_package_list.py +++ b/test/test_recipe_package_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,22 +37,22 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.recipe_package_list.RecipePackageList() # noqa: E501 if include_optional : return RecipePackageList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.recipe_package.RecipePackage( created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - description = '0', - digest = '0', - icon = '0', + description = '', + digest = '', + icon = '', keywords = [ - '0' + '' ], manifest = pollination_sdk.models.recipe_interface.RecipeInterface( annotations = { - 'key' : '0' + 'key' : '' }, api_version = 'v1beta1', inputs = [ @@ -62,12 +62,12 @@ def make_instance(self, include_optional): outputs = [ null ], - source = '0', + source = '', type = 'RecipeInterface', ), readme = '# Daylight Factor This recipe runs a daylight factor simulation.', - tag = '0', ) - ], + tag = '', ) + ] total_count = 56 ) else : @@ -78,15 +78,15 @@ def make_instance(self, include_optional): resources = [ pollination_sdk.models.recipe_package.RecipePackage( created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - description = '0', - digest = '0', - icon = '0', + description = '', + digest = '', + icon = '', keywords = [ - '0' + '' ], manifest = pollination_sdk.models.recipe_interface.RecipeInterface( annotations = { - 'key' : '0' + 'key' : '' }, api_version = 'v1beta1', inputs = [ @@ -96,11 +96,11 @@ def make_instance(self, include_optional): outputs = [ null ], - source = '0', + source = '', type = 'RecipeInterface', ), readme = '# Daylight Factor This recipe runs a daylight factor simulation.', - tag = '0', ) + tag = '', ) ], total_count = 56, ) diff --git a/test/test_recipes_api.py b/test/test_recipes_api.py index 584d8dc04..8f335f611 100644 --- a/test/test_recipes_api.py +++ b/test/test_recipes_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_registries_api.py b/test/test_registries_api.py index 478a810f4..fca767895 100644 --- a/test/test_registries_api.py +++ b/test/test_registries_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_report_cad_license_usage.py b/test/test_report_cad_license_usage.py new file mode 100644 index 000000000..a7ff07502 --- /dev/null +++ b/test/test_report_cad_license_usage.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.report_cad_license_usage import ReportCADLicenseUsage # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestReportCADLicenseUsage(unittest.TestCase): + """ReportCADLicenseUsage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ReportCADLicenseUsage + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.report_cad_license_usage.ReportCADLicenseUsage() # noqa: E501 + if include_optional : + return ReportCADLicenseUsage( + account_id = '' + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + data = [ + pollination_sdk.models.cad_license_usage.CADLicenseUsage( + action = '', + app_version = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + product_id = '', + product_name = '', + user_id = '', + user_name = '', ) + ] + from_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date() + to_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date() + ) + else : + return ReportCADLicenseUsage( + account_id = '', + data = [ + pollination_sdk.models.cad_license_usage.CADLicenseUsage( + action = '', + app_version = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + product_id = '', + product_name = '', + user_id = '', + user_name = '', ) + ], + ) + + def testReportCADLicenseUsage(self): + """Test ReportCADLicenseUsage""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_report_compute_usage.py b/test/test_report_compute_usage.py new file mode 100644 index 000000000..64e34ab75 --- /dev/null +++ b/test/test_report_compute_usage.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.report_compute_usage import ReportComputeUsage # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestReportComputeUsage(unittest.TestCase): + """ReportComputeUsage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ReportComputeUsage + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.report_compute_usage.ReportComputeUsage() # noqa: E501 + if include_optional : + return ReportComputeUsage( + account_id = '' + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + data = [ + pollination_sdk.models.job_compute_usage.JobComputeUsage( + account_name = '', + author_email = '', + author_name = '', + cpu_usage_hours = 1.337, + finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + job_id = '', + project_name = '', + recipe_name = '', + runs_cancelled = 56, + runs_failed = 56, + runs_succeeded = 56, + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ] + from_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date() + to_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date() + ) + else : + return ReportComputeUsage( + account_id = '', + data = [ + pollination_sdk.models.job_compute_usage.JobComputeUsage( + account_name = '', + author_email = '', + author_name = '', + cpu_usage_hours = 1.337, + finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + job_id = '', + project_name = '', + recipe_name = '', + runs_cancelled = 56, + runs_failed = 56, + runs_succeeded = 56, + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + ) + + def testReportComputeUsage(self): + """Test ReportComputeUsage""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_report_organization_member_usage.py b/test/test_report_organization_member_usage.py new file mode 100644 index 000000000..06acb21f0 --- /dev/null +++ b/test/test_report_organization_member_usage.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.report_organization_member_usage import ReportOrganizationMemberUsage # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestReportOrganizationMemberUsage(unittest.TestCase): + """ReportOrganizationMemberUsage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ReportOrganizationMemberUsage + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.report_organization_member_usage.ReportOrganizationMemberUsage() # noqa: E501 + if include_optional : + return ReportOrganizationMemberUsage( + account_id = '' + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + data = [ + pollination_sdk.models.organization_member_usage.OrganizationMemberUsage( + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted = True, + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + display_name = '', + email = '', + permission = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + user_id = '', + username = '', ) + ] + from_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date() + to_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date() + ) + else : + return ReportOrganizationMemberUsage( + account_id = '', + data = [ + pollination_sdk.models.organization_member_usage.OrganizationMemberUsage( + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted = True, + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + display_name = '', + email = '', + permission = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + user_id = '', + username = '', ) + ], + ) + + def testReportOrganizationMemberUsage(self): + """Test ReportOrganizationMemberUsage""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_reports_api.py b/test/test_reports_api.py new file mode 100644 index 000000000..787b232f5 --- /dev/null +++ b/test/test_reports_api.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import pollination_sdk +from pollination_sdk.api.reports_api import ReportsApi # noqa: E501 +from pollination_sdk.rest import ApiException + + +class TestReportsApi(unittest.TestCase): + """ReportsApi unit test stubs""" + + def setUp(self): + self.api = pollination_sdk.api.reports_api.ReportsApi() # noqa: E501 + + def tearDown(self): + pass + + def test_get_cad_license_usage_report(self): + """Test case for get_cad_license_usage_report + + Get CAD license usage report for an account # noqa: E501 + """ + pass + + def test_get_compute_usage_report(self): + """Test case for get_compute_usage_report + + Get compute usage report for an account # noqa: E501 + """ + pass + + def test_get_org_member_usage_report(self): + """Test case for get_org_member_usage_report + + Get organization member usage report for an organization account # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_repository.py b/test/test_repository.py index 68ca69d5e..ed72ee955 100644 --- a/test/test_repository.py +++ b/test/test_repository.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,15 +37,24 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.repository.Repository() # noqa: E501 if include_optional : return Repository( - description = 'Run daylight simulations the easy way!', - icon = 'https://avatars1.githubusercontent.com/u/38131342', - id = '5d5e7103-2c1e-413f-9332-f8ec4a9aace7', - keywords = ["daylight","radiance"], - latest_tag = '0.2.1', - name = 'daylight-factor', - owner = null, - permissions = null, - public = True, + description = 'Run daylight simulations the easy way!' + icon = 'https://avatars1.githubusercontent.com/u/38131342' + id = '5d5e7103-2c1e-413f-9332-f8ec4a9aace7' + keywords = [daylight, radiance] + latest_tag = '0.2.1' + name = 'daylight-factor' + owner = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ) + permissions = pollination_sdk.models.repository_user_permissions.RepositoryUserPermissions( + admin = False, + read = True, + write = False, ) + public = True slug = 'ladybug-tools/daylight-factor' ) else : @@ -53,7 +62,13 @@ def make_instance(self, include_optional): id = '5d5e7103-2c1e-413f-9332-f8ec4a9aace7', latest_tag = '0.2.1', name = 'daylight-factor', - owner = null, + owner = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ), ) def testRepository(self): diff --git a/test/test_repository_access_policy.py b/test/test_repository_access_policy.py index 9e8f43d15..ce9a58efa 100644 --- a/test/test_repository_access_policy.py +++ b/test/test_repository_access_policy.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,13 +37,17 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.repository_access_policy.RepositoryAccessPolicy() # noqa: E501 if include_optional : return RepositoryAccessPolicy( - permission = write, - subject = null + permission = 'admin' + subject = pollination_sdk.models.policy_subject.PolicySubject( + name = 'ladybugbot', + subject_type = 'user', ) ) else : return RepositoryAccessPolicy( - permission = write, - subject = null, + permission = 'admin', + subject = pollination_sdk.models.policy_subject.PolicySubject( + name = 'ladybugbot', + subject_type = 'user', ), ) def testRepositoryAccessPolicy(self): diff --git a/test/test_repository_access_policy_list.py b/test/test_repository_access_policy_list.py index a6f2da01a..f0d8800d8 100644 --- a/test/test_repository_access_policy_list.py +++ b/test/test_repository_access_policy_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,15 +37,15 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.repository_access_policy_list.RepositoryAccessPolicyList() # noqa: E501 if include_optional : return RepositoryAccessPolicyList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.repository_access_policy.RepositoryAccessPolicy( permission = write, subject = null, ) - ], + ] total_count = 56 ) else : diff --git a/test/test_repository_create.py b/test/test_repository_create.py index 818e7e6b3..596f064de 100644 --- a/test/test_repository_create.py +++ b/test/test_repository_create.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,10 +37,10 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.repository_create.RepositoryCreate() # noqa: E501 if include_optional : return RepositoryCreate( - description = 'Run daylight simulations the easy way!', - icon = 'https://avatars1.githubusercontent.com/u/38131342', - keywords = ["daylight","radiance"], - name = 'daylight-factor', + description = 'Run daylight simulations the easy way!' + icon = 'https://avatars1.githubusercontent.com/u/38131342' + keywords = [daylight, radiance] + name = 'daylight-factor' public = True ) else : diff --git a/test/test_repository_index.py b/test/test_repository_index.py index d3d6953a5..474200c2d 100644 --- a/test/test_repository_index.py +++ b/test/test_repository_index.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,89 +38,98 @@ def make_instance(self, include_optional): if include_optional : return RepositoryIndex( annotations = { - 'key' : '0' - }, - api_version = 'v1beta1', - generated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - metadata = null, + 'key' : '' + } + api_version = 'v1beta1' + generated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + metadata = pollination_sdk.models.repository_metadata.RepositoryMetadata( + annotations = { + 'key' : '' + }, + description = 'A Queenbee package repository', + name = '', + plugin_count = 56, + recipe_count = 56, + source = '', + type = 'RepositoryMetadata', ) plugin = { 'key' : [ pollination_sdk.models.package_version.PackageVersion( annotations = { - 'key' : '0' + 'key' : '' }, - app_version = '0', + app_version = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), deprecated = True, - description = '0', - digest = '0', - home = '0', - icon = '0', + description = '', + digest = '', + home = '', + icon = '', keywords = [ - '0' + '' ], - kind = '0', + kind = '', license = null, maintainers = [ pollination_sdk.models.maintainer.Maintainer( annotations = { - 'key' : '0' + 'key' : '' }, - email = '0', - name = '0', + email = '', + name = '', type = 'Maintainer', ) ], manifest = null, - name = '0', - readme = '0', - slug = '0', + name = '', + readme = '', + slug = '', sources = [ - '0' + '' ], - tag = '0', + tag = '', type = 'PackageVersion', - url = '0', ) + url = '', ) ] - }, + } recipe = { 'key' : [ pollination_sdk.models.package_version.PackageVersion( annotations = { - 'key' : '0' + 'key' : '' }, - app_version = '0', + app_version = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), deprecated = True, - description = '0', - digest = '0', - home = '0', - icon = '0', + description = '', + digest = '', + home = '', + icon = '', keywords = [ - '0' + '' ], - kind = '0', + kind = '', license = null, maintainers = [ pollination_sdk.models.maintainer.Maintainer( annotations = { - 'key' : '0' + 'key' : '' }, - email = '0', - name = '0', + email = '', + name = '', type = 'Maintainer', ) ], manifest = null, - name = '0', - readme = '0', - slug = '0', + name = '', + readme = '', + slug = '', sources = [ - '0' + '' ], - tag = '0', + tag = '', type = 'PackageVersion', - url = '0', ) + url = '', ) ] - }, + } type = 'RepositoryIndex' ) else : diff --git a/test/test_repository_list.py b/test/test_repository_list.py index 3fd529d86..c9a922cee 100644 --- a/test/test_repository_list.py +++ b/test/test_repository_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,23 +37,23 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.repository_list.RepositoryList() # noqa: E501 if include_optional : return RepositoryList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.repository.Repository( description = 'Run daylight simulations the easy way!', icon = 'https://avatars1.githubusercontent.com/u/38131342', id = '5d5e7103-2c1e-413f-9332-f8ec4a9aace7', - keywords = ["daylight","radiance"], + keywords = [daylight, radiance], latest_tag = '0.2.1', name = 'daylight-factor', owner = null, permissions = null, public = True, slug = 'ladybug-tools/daylight-factor', ) - ], + ] total_count = 56 ) else : @@ -66,7 +66,7 @@ def make_instance(self, include_optional): description = 'Run daylight simulations the easy way!', icon = 'https://avatars1.githubusercontent.com/u/38131342', id = '5d5e7103-2c1e-413f-9332-f8ec4a9aace7', - keywords = ["daylight","radiance"], + keywords = [daylight, radiance], latest_tag = '0.2.1', name = 'daylight-factor', owner = null, diff --git a/test/test_repository_metadata.py b/test/test_repository_metadata.py index 4fb0b5b2a..676af5fac 100644 --- a/test/test_repository_metadata.py +++ b/test/test_repository_metadata.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,13 +38,13 @@ def make_instance(self, include_optional): if include_optional : return RepositoryMetadata( annotations = { - 'key' : '0' - }, - description = 'A Queenbee package repository', - name = '0', - plugin_count = 56, - recipe_count = 56, - source = '0', + 'key' : '' + } + description = 'A Queenbee package repository' + name = '' + plugin_count = 56 + recipe_count = 56 + source = '' type = 'RepositoryMetadata' ) else : diff --git a/test/test_repository_policy_subject.py b/test/test_repository_policy_subject.py index 5b7ab91a3..0d0843be8 100644 --- a/test/test_repository_policy_subject.py +++ b/test/test_repository_policy_subject.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,7 +37,7 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.repository_policy_subject.RepositoryPolicySubject() # noqa: E501 if include_optional : return RepositoryPolicySubject( - name = 'ladybugbot', + name = 'ladybugbot' subject_type = 'user' ) else : diff --git a/test/test_repository_sort_key.py b/test/test_repository_sort_key.py index 2607d428e..14ff68a05 100644 --- a/test/test_repository_sort_key.py +++ b/test/test_repository_sort_key.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_repository_update.py b/test/test_repository_update.py index e9eea418e..eb49d9524 100644 --- a/test/test_repository_update.py +++ b/test/test_repository_update.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,9 +37,9 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.repository_update.RepositoryUpdate() # noqa: E501 if include_optional : return RepositoryUpdate( - description = 'Run daylight simulations the easy way!', - icon = 'https://avatars1.githubusercontent.com/u/38131342', - keywords = ["daylight","radiance"], + description = 'Run daylight simulations the easy way!' + icon = 'https://avatars1.githubusercontent.com/u/38131342' + keywords = [daylight, radiance] public = True ) else : diff --git a/test/test_repository_user_permissions.py b/test/test_repository_user_permissions.py index 3d5942677..c40acc5e1 100644 --- a/test/test_repository_user_permissions.py +++ b/test/test_repository_user_permissions.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,8 +37,8 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.repository_user_permissions.RepositoryUserPermissions() # noqa: E501 if include_optional : return RepositoryUserPermissions( - admin = False, - read = True, + admin = False + read = True write = False ) else : diff --git a/test/test_resources_duration.py b/test/test_resources_duration.py index 606620483..aa71b0258 100644 --- a/test/test_resources_duration.py +++ b/test/test_resources_duration.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,7 +37,7 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.resources_duration.ResourcesDuration() # noqa: E501 if include_optional : return ResourcesDuration( - cpu = 56, + cpu = 56 memory = 56 ) else : diff --git a/test/test_response_get_package_json.py b/test/test_response_get_package_json.py new file mode 100644 index 000000000..8cec34f00 --- /dev/null +++ b/test/test_response_get_package_json.py @@ -0,0 +1,254 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.response_get_package_json import ResponseGetPackageJson # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestResponseGetPackageJson(unittest.TestCase): + """ResponseGetPackageJson unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ResponseGetPackageJson + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.response_get_package_json.ResponseGetPackageJson() # noqa: E501 + if include_optional : + return ResponseGetPackageJson( + annotations = { + 'key' : '' + } + api_version = 'v1beta1' + dependencies = [ + pollination_sdk.models.dependency.Dependency( + alias = '', + annotations = { + 'key' : '' + }, + hash = '', + kind = null, + name = '', + source = '', + tag = '', + type = 'Dependency', ) + ] + flow = [ + pollination_sdk.models.dag.DAG( + annotations = { + 'key' : '' + }, + fail_fast = True, + inputs = [ + null + ], + name = '', + outputs = [ + null + ], + tasks = [ + pollination_sdk.models.dag_task.DAGTask( + annotations = { + 'key' : '' + }, + arguments = [ + null + ], + loop = null, + name = '', + needs = [ + '' + ], + returns = [ + null + ], + sub_folder = '', + template = '', + type = 'DAGTask', ) + ], + type = 'DAG', ) + ] + metadata = pollination_sdk.models.meta_data.MetaData( + annotations = { + 'key' : '' + }, + app_version = '', + deprecated = True, + description = '', + home = '', + icon = '', + keywords = [ + '' + ], + license = null, + maintainers = [ + pollination_sdk.models.maintainer.Maintainer( + annotations = { + 'key' : '' + }, + email = '', + name = '', + type = 'Maintainer', ) + ], + name = '', + sources = [ + '' + ], + tag = '', + type = 'MetaData', ) + type = 'BakedRecipe' + config = pollination_sdk.models.plugin_config.PluginConfig( + annotations = { + 'key' : '' + }, + docker = null, + local = null, + type = 'PluginConfig', ) + functions = [ + pollination_sdk.models.function.Function( + annotations = { + 'key' : '' + }, + command = '', + description = '', + inputs = [ + null + ], + language = null, + name = '', + outputs = [ + null + ], + source = '', + type = 'Function', ) + ] + digest = '' + templates = [ + null + ] + ) + else : + return ResponseGetPackageJson( + flow = [ + pollination_sdk.models.dag.DAG( + annotations = { + 'key' : '' + }, + fail_fast = True, + inputs = [ + null + ], + name = '', + outputs = [ + null + ], + tasks = [ + pollination_sdk.models.dag_task.DAGTask( + annotations = { + 'key' : '' + }, + arguments = [ + null + ], + loop = null, + name = '', + needs = [ + '' + ], + returns = [ + null + ], + sub_folder = '', + template = '', + type = 'DAGTask', ) + ], + type = 'DAG', ) + ], + metadata = pollination_sdk.models.meta_data.MetaData( + annotations = { + 'key' : '' + }, + app_version = '', + deprecated = True, + description = '', + home = '', + icon = '', + keywords = [ + '' + ], + license = null, + maintainers = [ + pollination_sdk.models.maintainer.Maintainer( + annotations = { + 'key' : '' + }, + email = '', + name = '', + type = 'Maintainer', ) + ], + name = '', + sources = [ + '' + ], + tag = '', + type = 'MetaData', ), + config = pollination_sdk.models.plugin_config.PluginConfig( + annotations = { + 'key' : '' + }, + docker = null, + local = null, + type = 'PluginConfig', ), + functions = [ + pollination_sdk.models.function.Function( + annotations = { + 'key' : '' + }, + command = '', + description = '', + inputs = [ + null + ], + language = null, + name = '', + outputs = [ + null + ], + source = '', + type = 'Function', ) + ], + digest = '', + templates = [ + null + ], + ) + + def testResponseGetPackageJson(self): + """Test ResponseGetPackageJson""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_retry_config.py b/test/test_retry_config.py index 35a4e987c..cfcbe2e28 100644 --- a/test/test_retry_config.py +++ b/test/test_retry_config.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_role_enum.py b/test/test_role_enum.py index 644fad396..028a3ab2f 100644 --- a/test/test_role_enum.py +++ b/test/test_role_enum.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_run.py b/test/test_run.py index ea16d848b..6a420c0ff 100644 --- a/test/test_run.py +++ b/test/test_run.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,17 +37,93 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.run.Run() # noqa: E501 if include_optional : return Run( - author = null, - generation = 1.337, - id = '0', - meta = null, - owner = null, - recipe = null, - status = null + author = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ) + generation = 1.337 + id = '' + meta = pollination_sdk.models.run_meta.RunMeta( + progress = null, + resources_duration = null, ) + owner = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ) + recipe = pollination_sdk.models.recipe_interface.RecipeInterface( + annotations = { + 'key' : '' + }, + api_version = 'v1beta1', + inputs = [ + null + ], + metadata = null, + outputs = [ + null + ], + source = '', + type = 'RecipeInterface', ) + status = pollination_sdk.models.run_status.RunStatus( + annotations = { + 'key' : '' + }, + api_version = 'v1beta1', + entrypoint = '', + finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + inputs = [ + null + ], + job_id = '', + message = '', + outputs = [ + null + ], + source = '', + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = null, + steps = { + 'key' : pollination_sdk.models.step_status.StepStatus( + annotations = { + 'key' : '' + }, + boundary_id = '', + children_ids = [ + '' + ], + command = '', + finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + inputs = [ + null + ], + message = '', + name = '', + outbound_steps = [ + '' + ], + outputs = [ + null + ], + source = '', + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = null, + status_type = null, + template_ref = '', + type = 'StepStatus', ) + }, + type = 'RunStatus', ) ) else : return Run( - id = '0', + id = '', ) def testRun(self): diff --git a/test/test_run_list.py b/test/test_run_list.py index 3cef5a355..0d442eed3 100644 --- a/test/test_run_list.py +++ b/test/test_run_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,20 +37,20 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.run_list.RunList() # noqa: E501 if include_optional : return RunList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.run.Run( author = null, generation = 1.337, - id = '0', + id = '', meta = null, owner = null, recipe = null, status = null, ) - ], + ] total_count = 56 ) else : @@ -62,7 +62,7 @@ def make_instance(self, include_optional): pollination_sdk.models.run.Run( author = null, generation = 1.337, - id = '0', + id = '', meta = null, owner = null, recipe = null, diff --git a/test/test_run_meta.py b/test/test_run_meta.py index d5c03c95f..88862991f 100644 --- a/test/test_run_meta.py +++ b/test/test_run_meta.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,8 +37,13 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.run_meta.RunMeta() # noqa: E501 if include_optional : return RunMeta( - progress = null, - resources_duration = null + progress = pollination_sdk.models.run_progress.RunProgress( + completed = 56, + running = 56, + total = 56, ) + resources_duration = pollination_sdk.models.resources_duration.ResourcesDuration( + cpu = 56, + memory = 56, ) ) else : return RunMeta( diff --git a/test/test_run_progress.py b/test/test_run_progress.py index 1bd0a4c1a..f8d7ffd94 100644 --- a/test/test_run_progress.py +++ b/test/test_run_progress.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,8 +37,8 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.run_progress.RunProgress() # noqa: E501 if include_optional : return RunProgress( - completed = 56, - running = 56, + completed = 56 + running = 56 total = 56 ) else : diff --git a/test/test_run_result_list.py b/test/test_run_result_list.py index fa1af9361..ac051647f 100644 --- a/test/test_run_result_list.py +++ b/test/test_run_result_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,15 +37,15 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.run_result_list.RunResultList() # noqa: E501 if include_optional : return RunResultList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ [ null ] - ], + ] total_count = 56 ) else : diff --git a/test/test_run_result_list_resources_inner_inner.py b/test/test_run_result_list_resources_inner_inner.py new file mode 100644 index 000000000..3878ff7dc --- /dev/null +++ b/test/test_run_result_list_resources_inner_inner.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.run_result_list_resources_inner_inner import RunResultListResourcesInnerInner # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestRunResultListResourcesInnerInner(unittest.TestCase): + """RunResultListResourcesInnerInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test RunResultListResourcesInnerInner + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.run_result_list_resources_inner_inner.RunResultListResourcesInnerInner() # noqa: E501 + if include_optional : + return RunResultListResourcesInnerInner( + alias = [ + null + ] + annotations = { + 'key' : '' + } + default = pollination_sdk.models.default.Default() + description = '' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() + type = 'StepJSONObjectOutput' + value = pollination_sdk.models.value.Value() + path = '' + source = None + extensions = [ + '' + ] + items_type = 'Generic' + ) + else : + return RunResultListResourcesInnerInner( + name = '', + value = pollination_sdk.models.value.Value(), + path = '', + source = None, + ) + + def testRunResultListResourcesInnerInner(self): + """Test RunResultListResourcesInnerInner""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_run_status.py b/test/test_run_status.py index 74e51c923..20294a502 100644 --- a/test/test_run_status.py +++ b/test/test_run_status.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,62 +38,62 @@ def make_instance(self, include_optional): if include_optional : return RunStatus( annotations = { - 'key' : '0' - }, - api_version = 'v1beta1', - entrypoint = '0', - finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - id = '0', + 'key' : '' + } + api_version = 'v1beta1' + entrypoint = '' + finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + id = '' inputs = [ null - ], - job_id = '0', - message = '0', + ] + job_id = '' + message = '' outputs = [ null - ], - source = '0', - started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - status = null, + ] + source = '' + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + status = 'Created' steps = { 'key' : pollination_sdk.models.step_status.StepStatus( annotations = { - 'key' : '0' + 'key' : '' }, - boundary_id = '0', + boundary_id = '', children_ids = [ - '0' + '' ], - command = '0', + command = '', finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - id = '0', + id = '', inputs = [ null ], - message = '0', - name = '0', + message = '', + name = '', outbound_steps = [ - '0' + '' ], outputs = [ null ], - source = '0', + source = '', started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), status = null, status_type = null, - template_ref = '0', + template_ref = '', type = 'StepStatus', ) - }, + } type = 'RunStatus' ) else : return RunStatus( - id = '0', + id = '', inputs = [ null ], - job_id = '0', + job_id = '', outputs = [ null ], diff --git a/test/test_run_status_enum.py b/test/test_run_status_enum.py index b9902481d..a77bc3fe9 100644 --- a/test/test_run_status_enum.py +++ b/test/test_run_status_enum.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_run_status_inputs_inner.py b/test/test_run_status_inputs_inner.py new file mode 100644 index 000000000..f739ca138 --- /dev/null +++ b/test/test_run_status_inputs_inner.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.run_status_inputs_inner import RunStatusInputsInner # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestRunStatusInputsInner(unittest.TestCase): + """RunStatusInputsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test RunStatusInputsInner + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.run_status_inputs_inner.RunStatusInputsInner() # noqa: E501 + if include_optional : + return RunStatusInputsInner( + alias = [ + null + ] + annotations = { + 'key' : '' + } + default = pollination_sdk.models.default.Default() + description = '' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() + type = 'StepJSONObjectInput' + value = pollination_sdk.models.value.Value() + path = '' + source = None + extensions = [ + '' + ] + items_type = 'Generic' + ) + else : + return RunStatusInputsInner( + name = '', + value = pollination_sdk.models.value.Value(), + source = None, + ) + + def testRunStatusInputsInner(self): + """Test RunStatusInputsInner""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_run_status_outputs_inner.py b/test/test_run_status_outputs_inner.py new file mode 100644 index 000000000..384d0711b --- /dev/null +++ b/test/test_run_status_outputs_inner.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.run_status_outputs_inner import RunStatusOutputsInner # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestRunStatusOutputsInner(unittest.TestCase): + """RunStatusOutputsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test RunStatusOutputsInner + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.run_status_outputs_inner.RunStatusOutputsInner() # noqa: E501 + if include_optional : + return RunStatusOutputsInner( + annotations = { + 'key' : '' + } + description = '' + name = '' + path = '' + required = True + type = 'StepJSONObjectOutput' + value = pollination_sdk.models.value.Value() + source = None + items_type = 'Generic' + ) + else : + return RunStatusOutputsInner( + name = '', + path = '', + value = pollination_sdk.models.value.Value(), + source = None, + ) + + def testRunStatusOutputsInner(self): + """Test RunStatusOutputsInner""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_runs_api.py b/test/test_runs_api.py index 170f4ce35..826d4542e 100644 --- a/test/test_runs_api.py +++ b/test/test_runs_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_s3.py b/test/test_s3.py index 95e779820..1483887cc 100644 --- a/test/test_s3.py +++ b/test/test_s3.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,19 +38,19 @@ def make_instance(self, include_optional): if include_optional : return S3( annotations = { - 'key' : '0' - }, - bucket = '0', - credentials_path = '0', - endpoint = '0', - key = '0', + 'key' : '' + } + bucket = '' + credentials_path = '' + endpoint = '' + key = '' type = 'S3' ) else : return S3( - bucket = '0', - endpoint = '0', - key = '0', + bucket = '', + endpoint = '', + key = '', ) def testS3(self): diff --git a/test/test_s3_upload_request.py b/test/test_s3_upload_request.py index 406b934f2..33b90f7db 100644 --- a/test/test_s3_upload_request.py +++ b/test/test_s3_upload_request.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,16 +38,16 @@ def make_instance(self, include_optional): if include_optional : return S3UploadRequest( fields = { - 'key' : '0' - }, - url = '0' + 'key' : '' + } + url = '' ) else : return S3UploadRequest( fields = { - 'key' : '0' + 'key' : '' }, - url = '0', + url = '', ) def testS3UploadRequest(self): diff --git a/test/test_scripting_languages.py b/test/test_scripting_languages.py index fd4843232..12950f68f 100644 --- a/test/test_scripting_languages.py +++ b/test/test_scripting_languages.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_sdk_enum.py b/test/test_sdk_enum.py index 112ccff64..6808a0cac 100644 --- a/test/test_sdk_enum.py +++ b/test/test_sdk_enum.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_sort_enum.py b/test/test_sort_enum.py index e135a1044..a96c15da9 100644 --- a/test/test_sort_enum.py +++ b/test/test_sort_enum.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_source.py b/test/test_source.py new file mode 100644 index 000000000..e58b4ef6d --- /dev/null +++ b/test/test_source.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.source import Source # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestSource(unittest.TestCase): + """Source unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test Source + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.source.Source() # noqa: E501 + if include_optional : + return Source( + annotations = { + 'key' : '' + } + type = 'ProjectFolder' + url = '' + bucket = '' + credentials_path = '' + endpoint = '' + key = '' + path = '' + ) + else : + return Source( + url = '', + bucket = '', + endpoint = '', + key = '', + ) + + def testSource(self): + """Test Source""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_status_type.py b/test/test_status_type.py index 220e0ce30..b9fa53e22 100644 --- a/test/test_status_type.py +++ b/test/test_status_type.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_step_array_input.py b/test/test_step_array_input.py index 248e00ffb..76a08ca9e 100644 --- a/test/test_step_array_input.py +++ b/test/test_step_array_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,26 +39,26 @@ def make_instance(self, include_optional): return StepArrayInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, + 'key' : '' + } default = [ null - ], - description = '0', - items_type = null, - name = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), - type = 'StepArrayInput', + ] + description = '' + items_type = 'Generic' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() + type = 'StepArrayInput' value = [ null ] ) else : return StepArrayInput( - name = '0', + name = '', value = [ null ], diff --git a/test/test_step_array_output.py b/test/test_step_array_output.py index 4b926bd60..08726c0a2 100644 --- a/test/test_step_array_output.py +++ b/test/test_step_array_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,22 +38,22 @@ def make_instance(self, include_optional): if include_optional : return StepArrayOutput( annotations = { - 'key' : '0' - }, - description = '0', - items_type = null, - name = '0', - path = '0', - required = True, - type = 'StepArrayOutput', + 'key' : '' + } + description = '' + items_type = 'Generic' + name = '' + path = '' + required = True + type = 'StepArrayOutput' value = [ null ] ) else : return StepArrayOutput( - name = '0', - path = '0', + name = '', + path = '', value = [ null ], diff --git a/test/test_step_boolean_input.py b/test/test_step_boolean_input.py index c0e1d8cdb..360bbe7a5 100644 --- a/test/test_step_boolean_input.py +++ b/test/test_step_boolean_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,21 +39,21 @@ def make_instance(self, include_optional): return StepBooleanInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = True, - description = '0', - name = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), - type = 'StepBooleanInput', + 'key' : '' + } + default = True + description = '' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() + type = 'StepBooleanInput' value = True ) else : return StepBooleanInput( - name = '0', + name = '', value = True, ) diff --git a/test/test_step_boolean_output.py b/test/test_step_boolean_output.py index 7649481ea..38ce71630 100644 --- a/test/test_step_boolean_output.py +++ b/test/test_step_boolean_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,19 +38,19 @@ def make_instance(self, include_optional): if include_optional : return StepBooleanOutput( annotations = { - 'key' : '0' - }, - description = '0', - name = '0', - path = '0', - required = True, - type = 'StepBooleanOutput', + 'key' : '' + } + description = '' + name = '' + path = '' + required = True + type = 'StepBooleanOutput' value = True ) else : return StepBooleanOutput( - name = '0', - path = '0', + name = '', + path = '', value = True, ) diff --git a/test/test_step_file_input.py b/test/test_step_file_input.py index 9de021953..84bc9c94b 100644 --- a/test/test_step_file_input.py +++ b/test/test_step_file_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,26 +39,26 @@ def make_instance(self, include_optional): return StepFileInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = null, - description = '0', + 'key' : '' + } + default = None + description = '' extensions = [ - '0' - ], - name = '0', - path = '0', - required = True, - source = null, - spec = pollination_sdk.models.spec.Spec(), + '' + ] + name = '' + path = '' + required = True + source = None + spec = pollination_sdk.models.spec.Spec() type = 'StepFileInput' ) else : return StepFileInput( - name = '0', - source = null, + name = '', + source = None, ) def testStepFileInput(self): diff --git a/test/test_step_file_output.py b/test/test_step_file_output.py index 0f9db1933..dd9de3135 100644 --- a/test/test_step_file_output.py +++ b/test/test_step_file_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,20 +38,20 @@ def make_instance(self, include_optional): if include_optional : return StepFileOutput( annotations = { - 'key' : '0' - }, - description = '0', - name = '0', - path = '0', - required = True, - source = null, + 'key' : '' + } + description = '' + name = '' + path = '' + required = True + source = None type = 'StepFileOutput' ) else : return StepFileOutput( - name = '0', - path = '0', - source = null, + name = '', + path = '', + source = None, ) def testStepFileOutput(self): diff --git a/test/test_step_folder_input.py b/test/test_step_folder_input.py index e1de715cb..2f21ae710 100644 --- a/test/test_step_folder_input.py +++ b/test/test_step_folder_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,23 +39,23 @@ def make_instance(self, include_optional): return StepFolderInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = null, - description = '0', - name = '0', - path = '0', - required = True, - source = null, - spec = pollination_sdk.models.spec.Spec(), + 'key' : '' + } + default = None + description = '' + name = '' + path = '' + required = True + source = None + spec = pollination_sdk.models.spec.Spec() type = 'StepFolderInput' ) else : return StepFolderInput( - name = '0', - source = null, + name = '', + source = None, ) def testStepFolderInput(self): diff --git a/test/test_step_folder_output.py b/test/test_step_folder_output.py index 57fed0193..68cf405e2 100644 --- a/test/test_step_folder_output.py +++ b/test/test_step_folder_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,20 +38,20 @@ def make_instance(self, include_optional): if include_optional : return StepFolderOutput( annotations = { - 'key' : '0' - }, - description = '0', - name = '0', - path = '0', - required = True, - source = null, + 'key' : '' + } + description = '' + name = '' + path = '' + required = True + source = None type = 'StepFolderOutput' ) else : return StepFolderOutput( - name = '0', - path = '0', - source = null, + name = '', + path = '', + source = None, ) def testStepFolderOutput(self): diff --git a/test/test_step_integer_input.py b/test/test_step_integer_input.py index 288e57b4b..a2a29ca53 100644 --- a/test/test_step_integer_input.py +++ b/test/test_step_integer_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,21 +39,21 @@ def make_instance(self, include_optional): return StepIntegerInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = 56, - description = '0', - name = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), - type = 'StepIntegerInput', + 'key' : '' + } + default = 56 + description = '' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() + type = 'StepIntegerInput' value = 56 ) else : return StepIntegerInput( - name = '0', + name = '', value = 56, ) diff --git a/test/test_step_integer_output.py b/test/test_step_integer_output.py index ba323e283..be2fb22ae 100644 --- a/test/test_step_integer_output.py +++ b/test/test_step_integer_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,19 +38,19 @@ def make_instance(self, include_optional): if include_optional : return StepIntegerOutput( annotations = { - 'key' : '0' - }, - description = '0', - name = '0', - path = '0', - required = True, - type = 'StepIntegerOutput', + 'key' : '' + } + description = '' + name = '' + path = '' + required = True + type = 'StepIntegerOutput' value = 56 ) else : return StepIntegerOutput( - name = '0', - path = '0', + name = '', + path = '', value = 56, ) diff --git a/test/test_step_json_object_input.py b/test/test_step_json_object_input.py index d0be51b16..2f56cb80f 100644 --- a/test/test_step_json_object_input.py +++ b/test/test_step_json_object_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,21 +39,21 @@ def make_instance(self, include_optional): return StepJSONObjectInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = pollination_sdk.models.default.Default(), - description = '0', - name = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), - type = 'StepJSONObjectInput', + 'key' : '' + } + default = pollination_sdk.models.default.Default() + description = '' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() + type = 'StepJSONObjectInput' value = pollination_sdk.models.value.Value() ) else : return StepJSONObjectInput( - name = '0', + name = '', value = pollination_sdk.models.value.Value(), ) diff --git a/test/test_step_json_object_output.py b/test/test_step_json_object_output.py index 03176565c..d712d4a8b 100644 --- a/test/test_step_json_object_output.py +++ b/test/test_step_json_object_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,19 +38,19 @@ def make_instance(self, include_optional): if include_optional : return StepJSONObjectOutput( annotations = { - 'key' : '0' - }, - description = '0', - name = '0', - path = '0', - required = True, - type = 'StepJSONObjectOutput', + 'key' : '' + } + description = '' + name = '' + path = '' + required = True + type = 'StepJSONObjectOutput' value = pollination_sdk.models.value.Value() ) else : return StepJSONObjectOutput( - name = '0', - path = '0', + name = '', + path = '', value = pollination_sdk.models.value.Value(), ) diff --git a/test/test_step_list.py b/test/test_step_list.py index 9cac72ee4..205b8ff38 100644 --- a/test/test_step_list.py +++ b/test/test_step_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,40 +37,40 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.step_list.StepList() # noqa: E501 if include_optional : return StepList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.step_status.StepStatus( annotations = { - 'key' : '0' + 'key' : '' }, - boundary_id = '0', + boundary_id = '', children_ids = [ - '0' + '' ], - command = '0', + command = '', finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - id = '0', + id = '', inputs = [ null ], - message = '0', - name = '0', + message = '', + name = '', outbound_steps = [ - '0' + '' ], outputs = [ null ], - source = '0', + source = '', started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), status = null, status_type = null, - template_ref = '0', + template_ref = '', type = 'StepStatus', ) - ], + ] total_count = 56 ) else : @@ -81,31 +81,31 @@ def make_instance(self, include_optional): resources = [ pollination_sdk.models.step_status.StepStatus( annotations = { - 'key' : '0' + 'key' : '' }, - boundary_id = '0', + boundary_id = '', children_ids = [ - '0' + '' ], - command = '0', + command = '', finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - id = '0', + id = '', inputs = [ null ], - message = '0', - name = '0', + message = '', + name = '', outbound_steps = [ - '0' + '' ], outputs = [ null ], - source = '0', + source = '', started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), status = null, status_type = null, - template_ref = '0', + template_ref = '', type = 'StepStatus', ) ], total_count = 56, diff --git a/test/test_step_number_input.py b/test/test_step_number_input.py index c4d9493cf..87f0285e0 100644 --- a/test/test_step_number_input.py +++ b/test/test_step_number_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,21 +39,21 @@ def make_instance(self, include_optional): return StepNumberInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = 1.337, - description = '0', - name = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), - type = 'StepNumberInput', + 'key' : '' + } + default = 1.337 + description = '' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() + type = 'StepNumberInput' value = 1.337 ) else : return StepNumberInput( - name = '0', + name = '', value = 1.337, ) diff --git a/test/test_step_number_output.py b/test/test_step_number_output.py index 52a772b76..e3ded2dcd 100644 --- a/test/test_step_number_output.py +++ b/test/test_step_number_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,19 +38,19 @@ def make_instance(self, include_optional): if include_optional : return StepNumberOutput( annotations = { - 'key' : '0' - }, - description = '0', - name = '0', - path = '0', - required = True, - type = 'StepNumberOutput', + 'key' : '' + } + description = '' + name = '' + path = '' + required = True + type = 'StepNumberOutput' value = 1.337 ) else : return StepNumberOutput( - name = '0', - path = '0', + name = '', + path = '', value = 1.337, ) diff --git a/test/test_step_path_input.py b/test/test_step_path_input.py index f98bf1550..103f94252 100644 --- a/test/test_step_path_input.py +++ b/test/test_step_path_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,26 +39,26 @@ def make_instance(self, include_optional): return StepPathInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = null, - description = '0', + 'key' : '' + } + default = None + description = '' extensions = [ - '0' - ], - name = '0', - path = '0', - required = True, - source = null, - spec = pollination_sdk.models.spec.Spec(), + '' + ] + name = '' + path = '' + required = True + source = None + spec = pollination_sdk.models.spec.Spec() type = 'StepPathInput' ) else : return StepPathInput( - name = '0', - source = null, + name = '', + source = None, ) def testStepPathInput(self): diff --git a/test/test_step_path_output.py b/test/test_step_path_output.py index 98a278cbf..ff420ff48 100644 --- a/test/test_step_path_output.py +++ b/test/test_step_path_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,20 +38,20 @@ def make_instance(self, include_optional): if include_optional : return StepPathOutput( annotations = { - 'key' : '0' - }, - description = '0', - name = '0', - path = '0', - required = True, - source = null, + 'key' : '' + } + description = '' + name = '' + path = '' + required = True + source = None type = 'StepPathOutput' ) else : return StepPathOutput( - name = '0', - path = '0', - source = null, + name = '', + path = '', + source = None, ) def testStepPathOutput(self): diff --git a/test/test_step_status.py b/test/test_step_status.py index 7f4b28358..6f23b1596 100644 --- a/test/test_step_status.py +++ b/test/test_step_status.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,52 +38,52 @@ def make_instance(self, include_optional): if include_optional : return StepStatus( annotations = { - 'key' : '0' - }, - boundary_id = '0', + 'key' : '' + } + boundary_id = '' children_ids = [ - '0' - ], - command = '0', - finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - id = '0', + '' + ] + command = '' + finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + id = '' inputs = [ null - ], - message = '0', - name = '0', + ] + message = '' + name = '' outbound_steps = [ - '0' - ], + '' + ] outputs = [ null - ], - source = '0', - started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - status = null, - status_type = null, - template_ref = '0', + ] + source = '' + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + status = 'Scheduled' + status_type = 'Function' + template_ref = '' type = 'StepStatus' ) else : return StepStatus( children_ids = [ - '0' + '' ], - id = '0', + id = '', inputs = [ null ], - name = '0', + name = '', outbound_steps = [ - '0' + '' ], outputs = [ null ], started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - status_type = null, - template_ref = '0', + status_type = 'Function', + template_ref = '', ) def testStepStatus(self): diff --git a/test/test_step_status_enum.py b/test/test_step_status_enum.py index f6bc8484b..63bb7a6a1 100644 --- a/test/test_step_status_enum.py +++ b/test/test_step_status_enum.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_step_string_input.py b/test/test_step_string_input.py index 0f83b5816..c5ab26b68 100644 --- a/test/test_step_string_input.py +++ b/test/test_step_string_input.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,22 +39,22 @@ def make_instance(self, include_optional): return StepStringInput( alias = [ null - ], + ] annotations = { - 'key' : '0' - }, - default = '0', - description = '0', - name = '0', - required = True, - spec = pollination_sdk.models.spec.Spec(), - type = 'StepStringInput', - value = '0' + 'key' : '' + } + default = '' + description = '' + name = '' + required = True + spec = pollination_sdk.models.spec.Spec() + type = 'StepStringInput' + value = '' ) else : return StepStringInput( - name = '0', - value = '0', + name = '', + value = '', ) def testStepStringInput(self): diff --git a/test/test_step_string_output.py b/test/test_step_string_output.py index 54a388217..d157a5a5d 100644 --- a/test/test_step_string_output.py +++ b/test/test_step_string_output.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,20 +38,20 @@ def make_instance(self, include_optional): if include_optional : return StepStringOutput( annotations = { - 'key' : '0' - }, - description = '0', - name = '0', - path = '0', - required = True, - type = 'StepStringOutput', - value = '0' + 'key' : '' + } + description = '' + name = '' + path = '' + required = True + type = 'StepStringOutput' + value = '' ) else : return StepStringOutput( - name = '0', - path = '0', - value = '0', + name = '', + path = '', + value = '', ) def testStepStringOutput(self): diff --git a/test/test_subject.py b/test/test_subject.py new file mode 100644 index 000000000..f42bd84f6 --- /dev/null +++ b/test/test_subject.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.subject import Subject # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestSubject(unittest.TestCase): + """Subject unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test Subject + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.subject.Subject() # noqa: E501 + if include_optional : + return Subject( + account_type = 'user' + description = 'The Honeybee team works on all things energy modelling' + display_name = 'Ladybug Bot' + id = '142ee933-6110-4186-92ab-92df359aa108' + name = 'Honeybee Contributors' + picture_url = '' + member_count = 5 + slug = 'ladybug-tools/honeybee-contributors' + ) + else : + return Subject( + account_type = 'user', + id = '142ee933-6110-4186-92ab-92df359aa108', + name = 'Honeybee Contributors', + slug = 'ladybug-tools/honeybee-contributors', + ) + + def testSubject(self): + """Test Subject""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_subject_type.py b/test/test_subject_type.py index 5820ba5ee..656f63ece 100644 --- a/test/test_subject_type.py +++ b/test/test_subject_type.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_subscription.py b/test/test_subscription.py index 6329b2ab5..99f002233 100644 --- a/test/test_subscription.py +++ b/test/test_subscription.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,24 +37,46 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.subscription.Subscription() # noqa: E501 if include_optional : return Subscription( - billing_info = null, - external_id = '0', - id = '0', - owner = null, - period_end = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - period_start = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - plan_multiplier = 56, - plan_slug = '0', - type = null + billing_info = pollination_sdk.models.billing_info.BillingInfo( + cancel_url = '', + last_payment = null, + next_payment = null, + paused_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + paused_from = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + paused_reason = null, + payment_information = null, + signup_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + update_url = '', + user_email = '', ) + external_id = '' + id = '' + owner = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ) + period_end = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + period_start = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + plan_multiplier = 56 + plan_slug = '' + type = 'cloud' ) else : return Subscription( - id = '0', - owner = null, + id = '', + owner = pollination_sdk.models.account_public.AccountPublic( + account_type = 'user', + description = 'Beep Boop!', + display_name = 'Ladybug Bot', + id = '0ad77f99-8043-46e4-8220-7221487c3ee5', + name = 'ladybugbot', + picture_url = '', ), period_end = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), period_start = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - plan_slug = '0', - type = null, + plan_slug = '', + type = 'cloud', ) def testSubscription(self): diff --git a/test/test_subscription_create.py b/test/test_subscription_create.py index e1b3a16ae..e95895a0d 100644 --- a/test/test_subscription_create.py +++ b/test/test_subscription_create.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,13 +37,13 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.subscription_create.SubscriptionCreate() # noqa: E501 if include_optional : return SubscriptionCreate( - account = '0', - plan_id = 56, + account = '' + plan_id = 56 quantity = 56 ) else : return SubscriptionCreate( - account = '0', + account = '', plan_id = 56, ) diff --git a/test/test_subscription_payment.py b/test/test_subscription_payment.py index a88e234d2..1cd806a2e 100644 --- a/test/test_subscription_payment.py +++ b/test/test_subscription_payment.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,15 +37,15 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.subscription_payment.SubscriptionPayment() # noqa: E501 if include_optional : return SubscriptionPayment( - amount = 1.337, - currency = '0', - date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date() + amount = 1.337 + currency = '' + var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date() ) else : return SubscriptionPayment( amount = 1.337, - currency = '0', - date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + currency = '', + var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), ) def testSubscriptionPayment(self): diff --git a/test/test_subscription_plan.py b/test/test_subscription_plan.py index 5da7aaa12..76e05d6e8 100644 --- a/test/test_subscription_plan.py +++ b/test/test_subscription_plan.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,40 +39,40 @@ def make_instance(self, include_optional): return SubscriptionPlan( account_types = [ 'org' - ], + ] billing_options = [ pollination_sdk.models.billing_option.BillingOption( billing_period = 56, - billing_type = '0', + billing_type = '', id = 56, - name = '0', + name = '', recurring_price = { 'key' : 1.337 }, ) - ], - name = '0', + ] + name = '' quotas = [ pollination_sdk.models.quota_plan.QuotaPlan( - description = '0', - display_name = '0', + description = '', + display_name = '', enforced = True, limit = 1.337, max_limit = 1.337, resets = True, type = null, - unit = '0', ) - ], - slug = '0', - type = null + unit = '', ) + ] + slug = '' + type = 'cloud' ) else : return SubscriptionPlan( account_types = [ 'org' ], - name = '0', - slug = '0', - type = null, + name = '', + slug = '', + type = 'cloud', ) def testSubscriptionPlan(self): diff --git a/test/test_subscription_plans_api.py b/test/test_subscription_plans_api.py index 6a5807229..78d31264d 100644 --- a/test/test_subscription_plans_api.py +++ b/test/test_subscription_plans_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_subscription_update.py b/test/test_subscription_update.py index 2fb017d1e..edbae00d9 100644 --- a/test/test_subscription_update.py +++ b/test/test_subscription_update.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,7 +37,7 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.subscription_update.SubscriptionUpdate() # noqa: E501 if include_optional : return SubscriptionUpdate( - plan_id = 56, + plan_id = 56 quantity = 56 ) else : diff --git a/test/test_subscription_update_dry_run.py b/test/test_subscription_update_dry_run.py index fb0059b0c..0420600b1 100644 --- a/test/test_subscription_update_dry_run.py +++ b/test/test_subscription_update_dry_run.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -39,17 +39,17 @@ def make_instance(self, include_optional): return SubscriptionUpdateDryRun( exceeded_quotas = [ pollination_sdk.models.quota.Quota( - description = '0', - display_name = '0', + description = '', + display_name = '', enforced = True, exceeded = True, - id = '0', + id = '', limit = 1.337, owner = null, period_start = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), resets = True, type = null, - unit = '0', + unit = '', usage = 0.0, ) ] ) diff --git a/test/test_subscriptions_api.py b/test/test_subscriptions_api.py index 298b48bca..57b7f7128 100644 --- a/test/test_subscriptions_api.py +++ b/test/test_subscriptions_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_task_argument.py b/test/test_task_argument.py index a890c98fa..d753c0e08 100644 --- a/test/test_task_argument.py +++ b/test/test_task_argument.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,16 +38,16 @@ def make_instance(self, include_optional): if include_optional : return TaskArgument( annotations = { - 'key' : '0' - }, - _from = null, - name = '0', + 'key' : '' + } + var_from = None + name = '' type = 'TaskArgument' ) else : return TaskArgument( - _from = null, - name = '0', + var_from = None, + name = '', ) def testTaskArgument(self): diff --git a/test/test_task_file_reference.py b/test/test_task_file_reference.py index 8c10f75a3..c1fefacbc 100644 --- a/test/test_task_file_reference.py +++ b/test/test_task_file_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,16 +38,16 @@ def make_instance(self, include_optional): if include_optional : return TaskFileReference( annotations = { - 'key' : '0' - }, - name = '0', - type = 'TaskFileReference', - variable = '0' + 'key' : '' + } + name = '' + type = 'TaskFileReference' + variable = '' ) else : return TaskFileReference( - name = '0', - variable = '0', + name = '', + variable = '', ) def testTaskFileReference(self): diff --git a/test/test_task_folder_reference.py b/test/test_task_folder_reference.py index a0c522194..f110b53b2 100644 --- a/test/test_task_folder_reference.py +++ b/test/test_task_folder_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,16 +38,16 @@ def make_instance(self, include_optional): if include_optional : return TaskFolderReference( annotations = { - 'key' : '0' - }, - name = '0', - type = 'TaskFolderReference', - variable = '0' + 'key' : '' + } + name = '' + type = 'TaskFolderReference' + variable = '' ) else : return TaskFolderReference( - name = '0', - variable = '0', + name = '', + variable = '', ) def testTaskFolderReference(self): diff --git a/test/test_task_path_argument.py b/test/test_task_path_argument.py index c9f1a29da..edb359244 100644 --- a/test/test_task_path_argument.py +++ b/test/test_task_path_argument.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,17 +38,17 @@ def make_instance(self, include_optional): if include_optional : return TaskPathArgument( annotations = { - 'key' : '0' - }, - _from = null, - name = '0', - sub_path = '0', + 'key' : '' + } + var_from = None + name = '' + sub_path = '' type = 'TaskPathArgument' ) else : return TaskPathArgument( - _from = null, - name = '0', + var_from = None, + name = '', ) def testTaskPathArgument(self): diff --git a/test/test_task_path_reference.py b/test/test_task_path_reference.py index 4285a77d8..a55d38089 100644 --- a/test/test_task_path_reference.py +++ b/test/test_task_path_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,16 +38,16 @@ def make_instance(self, include_optional): if include_optional : return TaskPathReference( annotations = { - 'key' : '0' - }, - name = '0', - type = 'TaskPathReference', - variable = '0' + 'key' : '' + } + name = '' + type = 'TaskPathReference' + variable = '' ) else : return TaskPathReference( - name = '0', - variable = '0', + name = '', + variable = '', ) def testTaskPathReference(self): diff --git a/test/test_task_path_return.py b/test/test_task_path_return.py index ac7bee4c2..b205260b3 100644 --- a/test/test_task_path_return.py +++ b/test/test_task_path_return.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,18 +38,18 @@ def make_instance(self, include_optional): if include_optional : return TaskPathReturn( annotations = { - 'key' : '0' - }, - description = '0', - name = '0', - path = '0', - required = True, + 'key' : '' + } + description = '' + name = '' + path = '' + required = True type = 'TaskPathReturn' ) else : return TaskPathReturn( - name = '0', - path = '0', + name = '', + path = '', ) def testTaskPathReturn(self): diff --git a/test/test_task_reference.py b/test/test_task_reference.py index f2c0999ff..9f2d4056f 100644 --- a/test/test_task_reference.py +++ b/test/test_task_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,16 +38,16 @@ def make_instance(self, include_optional): if include_optional : return TaskReference( annotations = { - 'key' : '0' - }, - name = '0', - type = 'TaskReference', - variable = '0' + 'key' : '' + } + name = '' + type = 'TaskReference' + variable = '' ) else : return TaskReference( - name = '0', - variable = '0', + name = '', + variable = '', ) def testTaskReference(self): diff --git a/test/test_task_return.py b/test/test_task_return.py index 54f5b7e1d..c319bec50 100644 --- a/test/test_task_return.py +++ b/test/test_task_return.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,15 +38,15 @@ def make_instance(self, include_optional): if include_optional : return TaskReturn( annotations = { - 'key' : '0' - }, - description = '0', - name = '0', + 'key' : '' + } + description = '' + name = '' type = 'TaskReturn' ) else : return TaskReturn( - name = '0', + name = '', ) def testTaskReturn(self): diff --git a/test/test_team.py b/test/test_team.py index ec22a4c06..f504fa0ab 100644 --- a/test/test_team.py +++ b/test/test_team.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,10 +37,10 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.team.Team() # noqa: E501 if include_optional : return Team( - description = 'The Honeybee team works on all things energy modelling', - id = '142ee933-6110-4186-92ab-92df359aa108', - member_count = 5, - name = 'Honeybee Contributors', + description = 'The Honeybee team works on all things energy modelling' + id = '142ee933-6110-4186-92ab-92df359aa108' + member_count = 5 + name = 'Honeybee Contributors' slug = 'ladybug-tools/honeybee-contributors' ) else : diff --git a/test/test_team_create.py b/test/test_team_create.py index 4e3cc3520..de72293fc 100644 --- a/test/test_team_create.py +++ b/test/test_team_create.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,7 +37,7 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.team_create.TeamCreate() # noqa: E501 if include_optional : return TeamCreate( - description = 'The Honeybee team works on all things energy modelling', + description = 'The Honeybee team works on all things energy modelling' name = 'Honeybee Contributors' ) else : diff --git a/test/test_team_list.py b/test/test_team_list.py index 2b1c58b44..16982d16c 100644 --- a/test/test_team_list.py +++ b/test/test_team_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,10 +37,10 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.team_list.TeamList() # noqa: E501 if include_optional : return TeamList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.team.Team( description = 'The Honeybee team works on all things energy modelling', @@ -48,7 +48,7 @@ def make_instance(self, include_optional): member_count = 5, name = 'Honeybee Contributors', slug = 'ladybug-tools/honeybee-contributors', ) - ], + ] total_count = 56 ) else : diff --git a/test/test_team_member.py b/test/test_team_member.py index 497fd7633..cfaf4b4bf 100644 --- a/test/test_team_member.py +++ b/test/test_team_member.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,13 +37,21 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.team_member.TeamMember() # noqa: E501 if include_optional : return TeamMember( - role = member, - user = null + role = 'owner' + user = pollination_sdk.models.user_public.UserPublic( + description = 'Beep Boop!', + name = 'Ladybug Bot', + picture = 'https://avatars1.githubusercontent.com/u/38131342', + username = 'ladybugbot', ) ) else : return TeamMember( - role = member, - user = null, + role = 'owner', + user = pollination_sdk.models.user_public.UserPublic( + description = 'Beep Boop!', + name = 'Ladybug Bot', + picture = 'https://avatars1.githubusercontent.com/u/38131342', + username = 'ladybugbot', ), ) def testTeamMember(self): diff --git a/test/test_team_member_list.py b/test/test_team_member_list.py index c27fb3c04..e5176e104 100644 --- a/test/test_team_member_list.py +++ b/test/test_team_member_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,15 +37,15 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.team_member_list.TeamMemberList() # noqa: E501 if include_optional : return TeamMemberList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.team_member.TeamMember( role = member, user = null, ) - ], + ] total_count = 56 ) else : diff --git a/test/test_team_role_enum.py b/test/test_team_role_enum.py index bc807ae12..b419ffe9e 100644 --- a/test/test_team_role_enum.py +++ b/test/test_team_role_enum.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_team_update.py b/test/test_team_update.py index b80c5861e..35992c3ec 100644 --- a/test/test_team_update.py +++ b/test/test_team_update.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,7 +37,7 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.team_update.TeamUpdate() # noqa: E501 if include_optional : return TeamUpdate( - description = 'The Honeybee team works on all things energy modelling', + description = 'The Honeybee team works on all things energy modelling' name = 'Honeybee Contributors' ) else : diff --git a/test/test_teams_api.py b/test/test_teams_api.py index e9fde2bc7..7a93e4976 100644 --- a/test/test_teams_api.py +++ b/test/test_teams_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_template_function.py b/test/test_template_function.py index f089e2e87..1ee7578ea 100644 --- a/test/test_template_function.py +++ b/test/test_template_function.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,26 +38,38 @@ def make_instance(self, include_optional): if include_optional : return TemplateFunction( annotations = { - 'key' : '0' - }, - command = '0', - config = null, - description = '0', + 'key' : '' + } + command = '' + config = pollination_sdk.models.plugin_config.PluginConfig( + annotations = { + 'key' : '' + }, + docker = null, + local = null, + type = 'PluginConfig', ) + description = '' inputs = [ null - ], - language = null, - name = '0', + ] + language = 'python' + name = '' outputs = [ null - ], - source = '0', + ] + source = '' type = 'TemplateFunction' ) else : return TemplateFunction( - config = null, - name = '0', + config = pollination_sdk.models.plugin_config.PluginConfig( + annotations = { + 'key' : '' + }, + docker = null, + local = null, + type = 'PluginConfig', ), + name = '', ) def testTemplateFunction(self): diff --git a/test/test_update_accepted.py b/test/test_update_accepted.py index 72ef1e78d..ab968e3c8 100644 --- a/test/test_update_accepted.py +++ b/test/test_update_accepted.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_usage.py b/test/test_usage.py index ee7687ad3..1bdf3767b 100644 --- a/test/test_usage.py +++ b/test/test_usage.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,7 +37,7 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.usage.Usage() # noqa: E501 if include_optional : return Usage( - cpu = 1.337, + cpu = 1.337 daily_usage = [ pollination_sdk.models.daily_usage.DailyUsage( cpu = 1.337, @@ -45,11 +45,11 @@ def make_instance(self, include_optional): failed = 56, memory = 1.337, succeeded = 56, ) - ], - end = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - failed = 56, - memory = 1.337, - start = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + ] + end = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + failed = 56 + memory = 1.337 + start = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') succeeded = 56 ) else : diff --git a/test/test_user_api.py b/test/test_user_api.py index 618f02dac..4b8613551 100644 --- a/test/test_user_api.py +++ b/test/test_user_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_user_create.py b/test/test_user_create.py index db86a38cd..c11f4a2af 100644 --- a/test/test_user_create.py +++ b/test/test_user_create.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,9 +37,9 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.user_create.UserCreate() # noqa: E501 if include_optional : return UserCreate( - description = '0', - name = 'Ladybug Tools', - picture_url = 'https://avatars1.githubusercontent.com/u/38131342', + description = '' + name = 'Ladybug Tools' + picture_url = 'https://avatars1.githubusercontent.com/u/38131342' username = 'ladybugbot' ) else : diff --git a/test/test_user_permission.py b/test/test_user_permission.py index 85cc561eb..bae58d611 100644 --- a/test/test_user_permission.py +++ b/test/test_user_permission.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,8 +37,8 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.user_permission.UserPermission() # noqa: E501 if include_optional : return UserPermission( - admin = False, - read = True, + admin = False + read = True write = False ) else : diff --git a/test/test_user_private.py b/test/test_user_private.py index 0c53b5959..9e2bf80d7 100644 --- a/test/test_user_private.py +++ b/test/test_user_private.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,11 +37,11 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.user_private.UserPrivate() # noqa: E501 if include_optional : return UserPrivate( - description = 'Beep Boop!', - email = 'ladybugbot@ladybug.tools', - id = '96c12d05-f1a2-4491-b0cc-c2ed473301b5', - name = 'Ladybug Bot', - picture = 'https://avatars1.githubusercontent.com/u/38131342', + description = 'Beep Boop!' + email = 'ladybugbot@ladybug.tools' + id = '96c12d05-f1a2-4491-b0cc-c2ed473301b5' + name = 'Ladybug Bot' + picture = 'https://avatars1.githubusercontent.com/u/38131342' username = 'ladybugbot' ) else : diff --git a/test/test_user_public.py b/test/test_user_public.py index 194849a00..35a7bb73c 100644 --- a/test/test_user_public.py +++ b/test/test_user_public.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,9 +37,9 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.user_public.UserPublic() # noqa: E501 if include_optional : return UserPublic( - description = 'Beep Boop!', - name = 'Ladybug Bot', - picture = 'https://avatars1.githubusercontent.com/u/38131342', + description = 'Beep Boop!' + name = 'Ladybug Bot' + picture = 'https://avatars1.githubusercontent.com/u/38131342' username = 'ladybugbot' ) else : diff --git a/test/test_user_public_list.py b/test/test_user_public_list.py index e9c59e0d9..6083384cc 100644 --- a/test/test_user_public_list.py +++ b/test/test_user_public_list.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,17 +37,17 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.user_public_list.UserPublicList() # noqa: E501 if include_optional : return UserPublicList( - next_page = 56, - page = 56, - page_count = 56, - per_page = 56, + next_page = 56 + page = 56 + page_count = 56 + per_page = 56 resources = [ pollination_sdk.models.user_public.UserPublic( description = 'Beep Boop!', name = 'Ladybug Bot', picture = 'https://avatars1.githubusercontent.com/u/38131342', username = 'ladybugbot', ) - ], + ] total_count = 56 ) else : diff --git a/test/test_user_update.py b/test/test_user_update.py index af4e411b1..f89dc1bcb 100644 --- a/test/test_user_update.py +++ b/test/test_user_update.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -37,8 +37,8 @@ def make_instance(self, include_optional): # model = pollination_sdk.models.user_update.UserUpdate() # noqa: E501 if include_optional : return UserUpdate( - description = '0', - name = 'Ladybug Tools', + description = '' + name = 'Ladybug Tools' picture_url = 'https://avatars1.githubusercontent.com/u/38131342' ) else : diff --git a/test/test_users_api.py b/test/test_users_api.py index 317d74463..4cec80b8c 100644 --- a/test/test_users_api.py +++ b/test/test_users_api.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ diff --git a/test/test_validation_error.py b/test/test_validation_error.py index b0f263a48..ed52fecea 100644 --- a/test/test_validation_error.py +++ b/test/test_validation_error.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,18 +38,18 @@ def make_instance(self, include_optional): if include_optional : return ValidationError( loc = [ - '0' - ], - msg = '0', - type = '0' + null + ] + msg = '' + type = '' ) else : return ValidationError( loc = [ - '0' + null ], - msg = '0', - type = '0', + msg = '', + type = '', ) def testValidationError(self): diff --git a/test/test_validation_error_loc_inner.py b/test/test_validation_error_loc_inner.py new file mode 100644 index 000000000..bf41e284b --- /dev/null +++ b/test/test_validation_error_loc_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + pollination-server + + Pollination Server OpenAPI Definition # noqa: E501 + + The version of the OpenAPI document: 1.6.0 + Contact: info@pollination.cloud + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import pollination_sdk +from pollination_sdk.models.validation_error_loc_inner import ValidationErrorLocInner # noqa: E501 +from pollination_sdk.rest import ApiException + +class TestValidationErrorLocInner(unittest.TestCase): + """ValidationErrorLocInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ValidationErrorLocInner + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = pollination_sdk.models.validation_error_loc_inner.ValidationErrorLocInner() # noqa: E501 + if include_optional : + return ValidationErrorLocInner( + ) + else : + return ValidationErrorLocInner( + ) + + def testValidationErrorLocInner(self): + """Test ValidationErrorLocInner""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_value_file_reference.py b/test/test_value_file_reference.py index 463c717f8..eac7ea974 100644 --- a/test/test_value_file_reference.py +++ b/test/test_value_file_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,14 +38,14 @@ def make_instance(self, include_optional): if include_optional : return ValueFileReference( annotations = { - 'key' : '0' - }, - path = '0', + 'key' : '' + } + path = '' type = 'ValueFileReference' ) else : return ValueFileReference( - path = '0', + path = '', ) def testValueFileReference(self): diff --git a/test/test_value_folder_reference.py b/test/test_value_folder_reference.py index 596254147..287a76406 100644 --- a/test/test_value_folder_reference.py +++ b/test/test_value_folder_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,14 +38,14 @@ def make_instance(self, include_optional): if include_optional : return ValueFolderReference( annotations = { - 'key' : '0' - }, - path = '0', + 'key' : '' + } + path = '' type = 'ValueFolderReference' ) else : return ValueFolderReference( - path = '0', + path = '', ) def testValueFolderReference(self): diff --git a/test/test_value_list_reference.py b/test/test_value_list_reference.py index e5a950c67..bb1129f71 100644 --- a/test/test_value_list_reference.py +++ b/test/test_value_list_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,9 +38,9 @@ def make_instance(self, include_optional): if include_optional : return ValueListReference( annotations = { - 'key' : '0' - }, - type = 'ValueListReference', + 'key' : '' + } + type = 'ValueListReference' value = [ null ] diff --git a/test/test_value_reference.py b/test/test_value_reference.py index c4da9a0d7..208706af4 100644 --- a/test/test_value_reference.py +++ b/test/test_value_reference.py @@ -5,7 +5,7 @@ Pollination Server OpenAPI Definition # noqa: E501 - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 1.6.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ @@ -38,14 +38,14 @@ def make_instance(self, include_optional): if include_optional : return ValueReference( annotations = { - 'key' : '0' - }, - type = 'ValueReference', - value = null + 'key' : '' + } + type = 'ValueReference' + value = None ) else : return ValueReference( - value = null, + value = None, ) def testValueReference(self):