diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index f70a8d5..8ec4830 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 473c50c..a713e3e 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -3,36 +3,108 @@ .gitlab-ci.yml .travis.yml README.md +docs/APIApi.md +docs/ActualInstance.md +docs/ActualInstance1.md +docs/ActualInstance2.md +docs/ActualInstance3.md +docs/ActualInstance4.md +docs/ActualInstance5.md +docs/ActualInstance6.md docs/Bbox.md +docs/Bbox1.md +docs/BboxBboxInner.md +docs/BboxDefCrs.md docs/ConfClasses.md -docs/Crs.md -docs/Crs5.md -docs/DefaultApi.md +docs/ConformanceApi.md +docs/Cpumax.md +docs/Cpumin.md +docs/DRUApi.md +docs/Enumeration.md docs/Exception.md -docs/Execute.md +docs/Execute200ResponseInput.md +docs/Execute200ResponseInputAnyOfValue.md +docs/Execute200ResponseOutput.md +docs/Execute200ResponseOutputAnyOfValue.md +docs/ExecuteWorkflows.md +docs/ExecutionUnit.md +docs/ExecutionUnitConfig.md +docs/FieldsModifiersProperties.md +docs/Format.md +docs/FormatSchema.md docs/HTTPValidationError.md +docs/HealthApi.md docs/HealthCheck.md +docs/InlineOrRefDataInput.md +docs/InlineOrRefDataOutput.md +docs/InlineOrRefDataWorkflows.md +docs/InputCollection.md +docs/InputDescriptionInput.md +docs/InputDescriptionOutput.md +docs/InputParameterized.md +docs/InputProcess.md docs/InputValueInput.md docs/InputValueNoObjectInput.md docs/InputValueNoObjectOutput.md +docs/InputValueNoObjectWorkflows.md docs/InputValueOutput.md +docs/InputValueWorkflows.md +docs/InputWorkflows.md +docs/InputWorkflows1.md +docs/InputWorkflowsAnyOfInner.md docs/JobControlOptions.md -docs/JobList.md +docs/JobListInput.md +docs/JobListOutput.md +docs/JobsApi.md +docs/Jobtimeout.md docs/LandingPage.md +docs/LandingPageApi.md docs/Link.md -docs/Metadata.md -docs/Metadata1.md -docs/Metadata2.md +docs/Maximum.md +docs/Memorymax.md +docs/Memorymin.md +docs/MetadataInput.md +docs/MetadataOneOf.md +docs/MetadataOneOf1.md +docs/MetadataOneOf1Value.md +docs/MetadataOutput.md +docs/Minimum.md +docs/ModelSchemaInput.md +docs/ModelSchemaOutput.md +docs/Multipleof.md +docs/Ogcapppkg.md +docs/OgcapppkgExecutionUnit.md +docs/OgcapppkgExecutionUnitAnyOfInner.md +docs/OneofSchema2Validator.md +docs/OneofSchema6Validator.md +docs/OutputDescriptionInput.md +docs/OutputDescriptionOutput.md +docs/OutputWorkflows.md +docs/OutputWorkflows1.md docs/ProcessInput.md -docs/ProcessList.md +docs/ProcessListInput.md +docs/ProcessListOutput.md docs/ProcessOutput.md -docs/ProcessSummary.md +docs/ProcessSummaryInput.md +docs/ProcessSummaryOutput.md +docs/ProcessesApi.md +docs/QualifiedInputValueInput.md +docs/QualifiedInputValueOutput.md +docs/QualifiedInputValueWorkflows.md +docs/Reference.md +docs/Schema1Input.md +docs/Schema1Output.md +docs/SchemaOneOfAdditionalPropertiesInput.md +docs/SchemaOneOfAdditionalPropertiesOutput.md +docs/SchemaOneOfInput.md +docs/SchemaOneOfOutput.md docs/StatusCode.md docs/StatusInfo.md +docs/Storageoutputsmin.md +docs/Storagetempmin.md docs/Subscriber.md docs/ValidationError.md docs/ValidationErrorLocInner.md -docs/Value.md git_push.sh pyproject.toml requirements.txt @@ -43,40 +115,112 @@ test/__init__.py tox.ini unity_sps_ogc_processes_api_python_client/__init__.py unity_sps_ogc_processes_api_python_client/api/__init__.py -unity_sps_ogc_processes_api_python_client/api/default_api.py +unity_sps_ogc_processes_api_python_client/api/api_api.py +unity_sps_ogc_processes_api_python_client/api/conformance_api.py +unity_sps_ogc_processes_api_python_client/api/dru_api.py +unity_sps_ogc_processes_api_python_client/api/health_api.py +unity_sps_ogc_processes_api_python_client/api/jobs_api.py +unity_sps_ogc_processes_api_python_client/api/landing_page_api.py +unity_sps_ogc_processes_api_python_client/api/processes_api.py unity_sps_ogc_processes_api_python_client/api_client.py unity_sps_ogc_processes_api_python_client/api_response.py unity_sps_ogc_processes_api_python_client/configuration.py unity_sps_ogc_processes_api_python_client/exceptions.py unity_sps_ogc_processes_api_python_client/models/__init__.py +unity_sps_ogc_processes_api_python_client/models/actual_instance.py +unity_sps_ogc_processes_api_python_client/models/actual_instance1.py +unity_sps_ogc_processes_api_python_client/models/actual_instance2.py +unity_sps_ogc_processes_api_python_client/models/actual_instance3.py +unity_sps_ogc_processes_api_python_client/models/actual_instance4.py +unity_sps_ogc_processes_api_python_client/models/actual_instance5.py +unity_sps_ogc_processes_api_python_client/models/actual_instance6.py unity_sps_ogc_processes_api_python_client/models/bbox.py +unity_sps_ogc_processes_api_python_client/models/bbox1.py +unity_sps_ogc_processes_api_python_client/models/bbox_bbox_inner.py +unity_sps_ogc_processes_api_python_client/models/bbox_def_crs.py unity_sps_ogc_processes_api_python_client/models/conf_classes.py -unity_sps_ogc_processes_api_python_client/models/crs.py -unity_sps_ogc_processes_api_python_client/models/crs5.py +unity_sps_ogc_processes_api_python_client/models/cpumax.py +unity_sps_ogc_processes_api_python_client/models/cpumin.py +unity_sps_ogc_processes_api_python_client/models/enumeration.py unity_sps_ogc_processes_api_python_client/models/exception.py -unity_sps_ogc_processes_api_python_client/models/execute.py +unity_sps_ogc_processes_api_python_client/models/execute200_response_input.py +unity_sps_ogc_processes_api_python_client/models/execute200_response_input_any_of_value.py +unity_sps_ogc_processes_api_python_client/models/execute200_response_output.py +unity_sps_ogc_processes_api_python_client/models/execute200_response_output_any_of_value.py +unity_sps_ogc_processes_api_python_client/models/execute_workflows.py +unity_sps_ogc_processes_api_python_client/models/execution_unit.py +unity_sps_ogc_processes_api_python_client/models/execution_unit_config.py +unity_sps_ogc_processes_api_python_client/models/fields_modifiers_properties.py +unity_sps_ogc_processes_api_python_client/models/format.py +unity_sps_ogc_processes_api_python_client/models/format_schema.py unity_sps_ogc_processes_api_python_client/models/health_check.py unity_sps_ogc_processes_api_python_client/models/http_validation_error.py +unity_sps_ogc_processes_api_python_client/models/inline_or_ref_data_input.py +unity_sps_ogc_processes_api_python_client/models/inline_or_ref_data_output.py +unity_sps_ogc_processes_api_python_client/models/inline_or_ref_data_workflows.py +unity_sps_ogc_processes_api_python_client/models/input_collection.py +unity_sps_ogc_processes_api_python_client/models/input_description_input.py +unity_sps_ogc_processes_api_python_client/models/input_description_output.py +unity_sps_ogc_processes_api_python_client/models/input_parameterized.py +unity_sps_ogc_processes_api_python_client/models/input_process.py unity_sps_ogc_processes_api_python_client/models/input_value_input.py unity_sps_ogc_processes_api_python_client/models/input_value_no_object_input.py unity_sps_ogc_processes_api_python_client/models/input_value_no_object_output.py +unity_sps_ogc_processes_api_python_client/models/input_value_no_object_workflows.py unity_sps_ogc_processes_api_python_client/models/input_value_output.py +unity_sps_ogc_processes_api_python_client/models/input_value_workflows.py +unity_sps_ogc_processes_api_python_client/models/input_workflows.py +unity_sps_ogc_processes_api_python_client/models/input_workflows1.py +unity_sps_ogc_processes_api_python_client/models/input_workflows_any_of_inner.py unity_sps_ogc_processes_api_python_client/models/job_control_options.py -unity_sps_ogc_processes_api_python_client/models/job_list.py +unity_sps_ogc_processes_api_python_client/models/job_list_input.py +unity_sps_ogc_processes_api_python_client/models/job_list_output.py +unity_sps_ogc_processes_api_python_client/models/jobtimeout.py unity_sps_ogc_processes_api_python_client/models/landing_page.py unity_sps_ogc_processes_api_python_client/models/link.py -unity_sps_ogc_processes_api_python_client/models/metadata.py -unity_sps_ogc_processes_api_python_client/models/metadata1.py -unity_sps_ogc_processes_api_python_client/models/metadata2.py +unity_sps_ogc_processes_api_python_client/models/maximum.py +unity_sps_ogc_processes_api_python_client/models/memorymax.py +unity_sps_ogc_processes_api_python_client/models/memorymin.py +unity_sps_ogc_processes_api_python_client/models/metadata_input.py +unity_sps_ogc_processes_api_python_client/models/metadata_one_of.py +unity_sps_ogc_processes_api_python_client/models/metadata_one_of1.py +unity_sps_ogc_processes_api_python_client/models/metadata_one_of1_value.py +unity_sps_ogc_processes_api_python_client/models/metadata_output.py +unity_sps_ogc_processes_api_python_client/models/minimum.py +unity_sps_ogc_processes_api_python_client/models/model_schema_input.py +unity_sps_ogc_processes_api_python_client/models/model_schema_output.py +unity_sps_ogc_processes_api_python_client/models/multipleof.py +unity_sps_ogc_processes_api_python_client/models/ogcapppkg.py +unity_sps_ogc_processes_api_python_client/models/ogcapppkg_execution_unit.py +unity_sps_ogc_processes_api_python_client/models/ogcapppkg_execution_unit_any_of_inner.py +unity_sps_ogc_processes_api_python_client/models/oneof_schema2_validator.py +unity_sps_ogc_processes_api_python_client/models/oneof_schema6_validator.py +unity_sps_ogc_processes_api_python_client/models/output_description_input.py +unity_sps_ogc_processes_api_python_client/models/output_description_output.py +unity_sps_ogc_processes_api_python_client/models/output_workflows.py +unity_sps_ogc_processes_api_python_client/models/output_workflows1.py unity_sps_ogc_processes_api_python_client/models/process_input.py -unity_sps_ogc_processes_api_python_client/models/process_list.py +unity_sps_ogc_processes_api_python_client/models/process_list_input.py +unity_sps_ogc_processes_api_python_client/models/process_list_output.py unity_sps_ogc_processes_api_python_client/models/process_output.py -unity_sps_ogc_processes_api_python_client/models/process_summary.py +unity_sps_ogc_processes_api_python_client/models/process_summary_input.py +unity_sps_ogc_processes_api_python_client/models/process_summary_output.py +unity_sps_ogc_processes_api_python_client/models/qualified_input_value_input.py +unity_sps_ogc_processes_api_python_client/models/qualified_input_value_output.py +unity_sps_ogc_processes_api_python_client/models/qualified_input_value_workflows.py +unity_sps_ogc_processes_api_python_client/models/reference.py +unity_sps_ogc_processes_api_python_client/models/schema1_input.py +unity_sps_ogc_processes_api_python_client/models/schema1_output.py +unity_sps_ogc_processes_api_python_client/models/schema_one_of_additional_properties_input.py +unity_sps_ogc_processes_api_python_client/models/schema_one_of_additional_properties_output.py +unity_sps_ogc_processes_api_python_client/models/schema_one_of_input.py +unity_sps_ogc_processes_api_python_client/models/schema_one_of_output.py unity_sps_ogc_processes_api_python_client/models/status_code.py unity_sps_ogc_processes_api_python_client/models/status_info.py +unity_sps_ogc_processes_api_python_client/models/storageoutputsmin.py +unity_sps_ogc_processes_api_python_client/models/storagetempmin.py unity_sps_ogc_processes_api_python_client/models/subscriber.py unity_sps_ogc_processes_api_python_client/models/validation_error.py unity_sps_ogc_processes_api_python_client/models/validation_error_loc_inner.py -unity_sps_ogc_processes_api_python_client/models/value.py unity_sps_ogc_processes_api_python_client/py.typed unity_sps_ogc_processes_api_python_client/rest.py diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 18bb418..1985849 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.5.0 +7.7.0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1ecd1ae..3a76ab4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,7 +43,11 @@ repos: rev: v0.2.1 hooks: - id: ruff - args: [ --fix ] + args: [ + "--fix", + "--unsafe-fixes", + "--ignore", "E402" + ] - repo: https://github.com/PyCQA/bandit rev: "1.7.7" # you must change this to newest version diff --git a/README.md b/README.md index e3650d6..469d1c6 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,9 @@ This document is an API definition document provided alongside the OGC API - Pro This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.0.0 +- API version: 2.0.0 - Package version: 1.0.0 -- Generator version: 7.5.0 +- Generator version: 7.7.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen ## Requirements. @@ -75,15 +75,16 @@ configuration = unity_sps_ogc_processes_api_python_client.Configuration( # Enter a context with an instance of the API client with unity_sps_ogc_processes_api_python_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = unity_sps_ogc_processes_api_python_client.DefaultApi(api_client) + api_instance = unity_sps_ogc_processes_api_python_client.APIApi(api_client) + f = 'f_example' # str | The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'. (optional) try: - # Information about standards that this API conforms to - api_response = api_instance.conformance_declaration_conformance_get() - print("The response of DefaultApi->conformance_declaration_conformance_get:\n") + # Retrieve this API definition. + api_response = api_instance.get_api_api_get(f=f) + print("The response of APIApi->get_api_api_get:\n") pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->conformance_declaration_conformance_get: %s\n" % e) + print("Exception when calling APIApi->get_api_api_get: %s\n" % e) ``` @@ -93,51 +94,120 @@ All URIs are relative to *http://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*DefaultApi* | [**conformance_declaration_conformance_get**](docs/DefaultApi.md#conformance_declaration_conformance_get) | **GET** /conformance | Information about standards that this API conforms to -*DefaultApi* | [**deploy_process_processes_post**](docs/DefaultApi.md#deploy_process_processes_post) | **POST** /processes | Deploy a process -*DefaultApi* | [**dismiss_jobs_job_id_delete**](docs/DefaultApi.md#dismiss_jobs_job_id_delete) | **DELETE** /jobs/{job_id} | Cancel a job execution, remove a finished job -*DefaultApi* | [**execute_processes_process_id_execution_post**](docs/DefaultApi.md#execute_processes_process_id_execution_post) | **POST** /processes/{process_id}/execution | Execute a process -*DefaultApi* | [**get_health_health_get**](docs/DefaultApi.md#get_health_health_get) | **GET** /health | Perform a Health Check -*DefaultApi* | [**job_list_jobs_get**](docs/DefaultApi.md#job_list_jobs_get) | **GET** /jobs | Retrieve the list of jobs -*DefaultApi* | [**landing_page_get**](docs/DefaultApi.md#landing_page_get) | **GET** / | Landing page of this API -*DefaultApi* | [**process_description_processes_process_id_get**](docs/DefaultApi.md#process_description_processes_process_id_get) | **GET** /processes/{process_id} | Retrieve a process description -*DefaultApi* | [**process_list_processes_get**](docs/DefaultApi.md#process_list_processes_get) | **GET** /processes | Retrieve the list of available processes -*DefaultApi* | [**results_jobs_job_id_results_get**](docs/DefaultApi.md#results_jobs_job_id_results_get) | **GET** /jobs/{job_id}/results | Retrieve the result(s) of a job -*DefaultApi* | [**status_jobs_job_id_get**](docs/DefaultApi.md#status_jobs_job_id_get) | **GET** /jobs/{job_id} | Retrieve the status of a job -*DefaultApi* | [**undeploy_process_processes_process_id_delete**](docs/DefaultApi.md#undeploy_process_processes_process_id_delete) | **DELETE** /processes/{process_id} | Undeploy a process +*APIApi* | [**get_api_api_get**](docs/APIApi.md#get_api_api_get) | **GET** /api | Retrieve this API definition. +*APIApi* | [**get_api_processes_api_processes_list_get**](docs/APIApi.md#get_api_processes_api_processes_list_get) | **GET** /api/processes-list | Retrieve the list of processes available from this API implementation &amp; deployment. +*ConformanceApi* | [**get_conformance_conformance_get**](docs/ConformanceApi.md#get_conformance_conformance_get) | **GET** /conformance | Retrieve the set of OGC API conformance classes that are supported by this service. +*DRUApi* | [**deploy_processes_post**](docs/DRUApi.md#deploy_processes_post) | **POST** /processes | deploy a process. +*DRUApi* | [**replace_processes_process_id_put**](docs/DRUApi.md#replace_processes_process_id_put) | **PUT** /processes/{processId} | replace a process. +*DRUApi* | [**undeploy_processes_process_id_delete**](docs/DRUApi.md#undeploy_processes_process_id_delete) | **DELETE** /processes/{processId} | undeploy a process. +*HealthApi* | [**get_health_health_get**](docs/HealthApi.md#get_health_health_get) | **GET** /health | Retrieve the health status of the API. +*JobsApi* | [**dismiss_jobs_job_id_delete**](docs/JobsApi.md#dismiss_jobs_job_id_delete) | **DELETE** /jobs/{jobId} | cancel a job execution, remove a finished job +*JobsApi* | [**get_jobs_jobs_get**](docs/JobsApi.md#get_jobs_jobs_get) | **GET** /jobs | retrieve the list of jobs. +*JobsApi* | [**get_result_jobs_job_id_results_get**](docs/JobsApi.md#get_result_jobs_job_id_results_get) | **GET** /jobs/{jobId}/results | retrieve the result(s) of a job +*JobsApi* | [**get_status_jobs_job_id_get**](docs/JobsApi.md#get_status_jobs_job_id_get) | **GET** /jobs/{jobId} | retrieve the status of a job +*LandingPageApi* | [**get_landing_page_get**](docs/LandingPageApi.md#get_landing_page_get) | **GET** / | Retrieve the OGC API landing page for this service. +*ProcessesApi* | [**execute_processes_process_id_execution_post**](docs/ProcessesApi.md#execute_processes_process_id_execution_post) | **POST** /processes/{processId}/execution | execute a process. +*ProcessesApi* | [**get_process_description_processes_process_id_get**](docs/ProcessesApi.md#get_process_description_processes_process_id_get) | **GET** /processes/{processId} | retrieve a process description +*ProcessesApi* | [**get_processes_processes_get**](docs/ProcessesApi.md#get_processes_processes_get) | **GET** /processes | retrieve the list of available processes ## Documentation For Models + - [ActualInstance](docs/ActualInstance.md) + - [ActualInstance1](docs/ActualInstance1.md) + - [ActualInstance2](docs/ActualInstance2.md) + - [ActualInstance3](docs/ActualInstance3.md) + - [ActualInstance4](docs/ActualInstance4.md) + - [ActualInstance5](docs/ActualInstance5.md) + - [ActualInstance6](docs/ActualInstance6.md) - [Bbox](docs/Bbox.md) + - [Bbox1](docs/Bbox1.md) + - [BboxBboxInner](docs/BboxBboxInner.md) + - [BboxDefCrs](docs/BboxDefCrs.md) - [ConfClasses](docs/ConfClasses.md) - - [Crs](docs/Crs.md) - - [Crs5](docs/Crs5.md) + - [Cpumax](docs/Cpumax.md) + - [Cpumin](docs/Cpumin.md) + - [Enumeration](docs/Enumeration.md) - [Exception](docs/Exception.md) - - [Execute](docs/Execute.md) + - [Execute200ResponseInput](docs/Execute200ResponseInput.md) + - [Execute200ResponseInputAnyOfValue](docs/Execute200ResponseInputAnyOfValue.md) + - [Execute200ResponseOutput](docs/Execute200ResponseOutput.md) + - [Execute200ResponseOutputAnyOfValue](docs/Execute200ResponseOutputAnyOfValue.md) + - [ExecuteWorkflows](docs/ExecuteWorkflows.md) + - [ExecutionUnit](docs/ExecutionUnit.md) + - [ExecutionUnitConfig](docs/ExecutionUnitConfig.md) + - [FieldsModifiersProperties](docs/FieldsModifiersProperties.md) + - [Format](docs/Format.md) + - [FormatSchema](docs/FormatSchema.md) - [HTTPValidationError](docs/HTTPValidationError.md) - [HealthCheck](docs/HealthCheck.md) + - [InlineOrRefDataInput](docs/InlineOrRefDataInput.md) + - [InlineOrRefDataOutput](docs/InlineOrRefDataOutput.md) + - [InlineOrRefDataWorkflows](docs/InlineOrRefDataWorkflows.md) + - [InputCollection](docs/InputCollection.md) + - [InputDescriptionInput](docs/InputDescriptionInput.md) + - [InputDescriptionOutput](docs/InputDescriptionOutput.md) + - [InputParameterized](docs/InputParameterized.md) + - [InputProcess](docs/InputProcess.md) - [InputValueInput](docs/InputValueInput.md) - [InputValueNoObjectInput](docs/InputValueNoObjectInput.md) - [InputValueNoObjectOutput](docs/InputValueNoObjectOutput.md) + - [InputValueNoObjectWorkflows](docs/InputValueNoObjectWorkflows.md) - [InputValueOutput](docs/InputValueOutput.md) + - [InputValueWorkflows](docs/InputValueWorkflows.md) + - [InputWorkflows](docs/InputWorkflows.md) + - [InputWorkflows1](docs/InputWorkflows1.md) + - [InputWorkflowsAnyOfInner](docs/InputWorkflowsAnyOfInner.md) - [JobControlOptions](docs/JobControlOptions.md) - - [JobList](docs/JobList.md) + - [JobListInput](docs/JobListInput.md) + - [JobListOutput](docs/JobListOutput.md) + - [Jobtimeout](docs/Jobtimeout.md) - [LandingPage](docs/LandingPage.md) - [Link](docs/Link.md) - - [Metadata](docs/Metadata.md) - - [Metadata1](docs/Metadata1.md) - - [Metadata2](docs/Metadata2.md) + - [Maximum](docs/Maximum.md) + - [Memorymax](docs/Memorymax.md) + - [Memorymin](docs/Memorymin.md) + - [MetadataInput](docs/MetadataInput.md) + - [MetadataOneOf](docs/MetadataOneOf.md) + - [MetadataOneOf1](docs/MetadataOneOf1.md) + - [MetadataOneOf1Value](docs/MetadataOneOf1Value.md) + - [MetadataOutput](docs/MetadataOutput.md) + - [Minimum](docs/Minimum.md) + - [ModelSchemaInput](docs/ModelSchemaInput.md) + - [ModelSchemaOutput](docs/ModelSchemaOutput.md) + - [Multipleof](docs/Multipleof.md) + - [Ogcapppkg](docs/Ogcapppkg.md) + - [OgcapppkgExecutionUnit](docs/OgcapppkgExecutionUnit.md) + - [OgcapppkgExecutionUnitAnyOfInner](docs/OgcapppkgExecutionUnitAnyOfInner.md) + - [OneofSchema2Validator](docs/OneofSchema2Validator.md) + - [OneofSchema6Validator](docs/OneofSchema6Validator.md) + - [OutputDescriptionInput](docs/OutputDescriptionInput.md) + - [OutputDescriptionOutput](docs/OutputDescriptionOutput.md) + - [OutputWorkflows](docs/OutputWorkflows.md) + - [OutputWorkflows1](docs/OutputWorkflows1.md) - [ProcessInput](docs/ProcessInput.md) - - [ProcessList](docs/ProcessList.md) + - [ProcessListInput](docs/ProcessListInput.md) + - [ProcessListOutput](docs/ProcessListOutput.md) - [ProcessOutput](docs/ProcessOutput.md) - - [ProcessSummary](docs/ProcessSummary.md) + - [ProcessSummaryInput](docs/ProcessSummaryInput.md) + - [ProcessSummaryOutput](docs/ProcessSummaryOutput.md) + - [QualifiedInputValueInput](docs/QualifiedInputValueInput.md) + - [QualifiedInputValueOutput](docs/QualifiedInputValueOutput.md) + - [QualifiedInputValueWorkflows](docs/QualifiedInputValueWorkflows.md) + - [Reference](docs/Reference.md) + - [Schema1Input](docs/Schema1Input.md) + - [Schema1Output](docs/Schema1Output.md) + - [SchemaOneOfAdditionalPropertiesInput](docs/SchemaOneOfAdditionalPropertiesInput.md) + - [SchemaOneOfAdditionalPropertiesOutput](docs/SchemaOneOfAdditionalPropertiesOutput.md) + - [SchemaOneOfInput](docs/SchemaOneOfInput.md) + - [SchemaOneOfOutput](docs/SchemaOneOfOutput.md) - [StatusCode](docs/StatusCode.md) - [StatusInfo](docs/StatusInfo.md) + - [Storageoutputsmin](docs/Storageoutputsmin.md) + - [Storagetempmin](docs/Storagetempmin.md) - [Subscriber](docs/Subscriber.md) - [ValidationError](docs/ValidationError.md) - [ValidationErrorLocInner](docs/ValidationErrorLocInner.md) - - [Value](docs/Value.md) diff --git a/docs/APIApi.md b/docs/APIApi.md new file mode 100644 index 0000000..dd4cd7c --- /dev/null +++ b/docs/APIApi.md @@ -0,0 +1,167 @@ +# unity_sps_ogc_processes_api_python_client.APIApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_api_api_get**](APIApi.md#get_api_api_get) | **GET** /api | Retrieve this API definition. +[**get_api_processes_api_processes_list_get**](APIApi.md#get_api_processes_api_processes_list_get) | **GET** /api/processes-list | Retrieve the list of processes available from this API implementation &amp; deployment. + + +# **get_api_api_get** +> object get_api_api_get(f=f) + +Retrieve this API definition. + +### Example + +* Bearer (JWT) Authentication (bearerAuth): + +```python +import unity_sps_ogc_processes_api_python_client +from unity_sps_ogc_processes_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearerAuth +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with unity_sps_ogc_processes_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = unity_sps_ogc_processes_api_python_client.APIApi(api_client) + f = 'f_example' # str | The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'. (optional) + + try: + # Retrieve this API definition. + api_response = api_instance.get_api_api_get(f=f) + print("The response of APIApi->get_api_api_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling APIApi->get_api_api_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **f** | **str**| The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are &#39;json&#39; or &#39;html&#39;. | [optional] + +### Return type + +**object** + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The OpenAPI definition of the API. | - | +**406** | Content negotiation failed. For example, the &#x60;Accept&#x60; header submitted in the request did not support any of the media types supported by the server for the requested resource. | - | +**422** | Validation Error | - | +**500** | A server error occurred. | - | + +[[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_api_processes_api_processes_list_get** +> Enumeration get_api_processes_api_processes_list_get(f=f) + +Retrieve the list of processes available from this API implementation & deployment. + +### Example + +* Bearer (JWT) Authentication (bearerAuth): + +```python +import unity_sps_ogc_processes_api_python_client +from unity_sps_ogc_processes_api_python_client.models.enumeration import Enumeration +from unity_sps_ogc_processes_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearerAuth +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with unity_sps_ogc_processes_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = unity_sps_ogc_processes_api_python_client.APIApi(api_client) + f = 'f_example' # str | The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'. (optional) + + try: + # Retrieve the list of processes available from this API implementation & deployment. + api_response = api_instance.get_api_processes_api_processes_list_get(f=f) + print("The response of APIApi->get_api_processes_api_processes_list_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling APIApi->get_api_processes_api_processes_list_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **f** | **str**| The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are &#39;json&#39; or &#39;html&#39;. | [optional] + +### Return type + +[**Enumeration**](Enumeration.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | An enumerated list of valid string values for API parameters. | - | +**404** | The requested resource does not exist on the server. For example, a path parameter had an incorrect value. | - | +**406** | Content negotiation failed. For example, the &#x60;Accept&#x60; header submitted in the request did not support any of the media types supported by the server for the requested resource. | - | +**422** | Validation Error | - | +**500** | A server error occurred. | - | + +[[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/ActualInstance.md b/docs/ActualInstance.md new file mode 100644 index 0000000..a78bf8a --- /dev/null +++ b/docs/ActualInstance.md @@ -0,0 +1,50 @@ +# ActualInstance + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actual_instance** | [**ActualInstance1**](ActualInstance1.md) | | [optional] +**one_of_schemas** | **List[str]** | | [optional] +**oneof_schema_10_validator** | [**InputParameterized**](InputParameterized.md) | | [optional] +**oneof_schema_1_validator** | **str** | | [optional] +**oneof_schema_2_validator** | [**OneofSchema2Validator**](OneofSchema2Validator.md) | | [optional] +**oneof_schema_3_validator** | **int** | | [optional] +**oneof_schema_4_validator** | **bool** | | [optional] +**oneof_schema_5_validator** | **List[object]** | | [optional] +**oneof_schema_6_validator** | [**OneofSchema6Validator**](OneofSchema6Validator.md) | | [optional] +**oneof_schema_7_validator** | [**Bbox1**](Bbox1.md) | | [optional] +**oneof_schema_8_validator** | [**InputCollection**](InputCollection.md) | | [optional] +**oneof_schema_9_validator** | [**InputProcess**](InputProcess.md) | | [optional] +**href** | **str** | | +**hreflang** | **str** | | [optional] +**rel** | **str** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] +**encoding** | **str** | | [optional] +**filter** | **str** | | [optional] +**media_type** | **str** | | [optional] +**properties** | [**FieldsModifiersProperties**](FieldsModifiersProperties.md) | | [optional] +**var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] +**sort_by** | **List[str]** | | [optional] +**value** | [**InputValueWorkflows**](InputValueWorkflows.md) | | + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.actual_instance import ActualInstance + +# TODO update the JSON string below +json = "{}" +# create an instance of ActualInstance from a JSON string +actual_instance_instance = ActualInstance.from_json(json) +# print the JSON string representation of the object +print(ActualInstance.to_json()) + +# convert the object into a dict +actual_instance_dict = actual_instance_instance.to_dict() +# create an instance of ActualInstance from a dict +actual_instance_from_dict = ActualInstance.from_dict(actual_instance_dict) +``` +[[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/ActualInstance1.md b/docs/ActualInstance1.md new file mode 100644 index 0000000..08594f2 --- /dev/null +++ b/docs/ActualInstance1.md @@ -0,0 +1,37 @@ +# ActualInstance1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bbox** | [**List[BboxBboxInner]**](BboxBboxInner.md) | | +**crs** | [**BboxDefCrs**](BboxDefCrs.md) | | [optional] +**collection** | **str** | | +**filter** | **str** | | [optional] +**properties** | [**FieldsModifiersProperties**](FieldsModifiersProperties.md) | | [optional] +**sort_by** | **List[str]** | | [optional] +**input** | **str** | | +**inputs** | [**Dict[str, InputWorkflows1]**](InputWorkflows1.md) | | [optional] +**outputs** | [**Dict[str, OutputWorkflows1]**](OutputWorkflows1.md) | | [optional] +**process** | **str** | URI to the process execution end point (i.e., `.../processes/{processId}/execution`) | +**subscriber** | [**Subscriber**](Subscriber.md) | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.actual_instance1 import ActualInstance1 + +# TODO update the JSON string below +json = "{}" +# create an instance of ActualInstance1 from a JSON string +actual_instance1_instance = ActualInstance1.from_json(json) +# print the JSON string representation of the object +print(ActualInstance1.to_json()) + +# convert the object into a dict +actual_instance1_dict = actual_instance1_instance.to_dict() +# create an instance of ActualInstance1 from a dict +actual_instance1_from_dict = ActualInstance1.from_dict(actual_instance1_dict) +``` +[[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/ActualInstance2.md b/docs/ActualInstance2.md new file mode 100644 index 0000000..90864bb --- /dev/null +++ b/docs/ActualInstance2.md @@ -0,0 +1,31 @@ +# ActualInstance2 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actual_instance** | [**ActualInstance**](ActualInstance.md) | | [optional] +**one_of_schemas** | **List[str]** | | [optional] +**oneof_schema_1_validator** | [**InputValueNoObjectWorkflows**](InputValueNoObjectWorkflows.md) | | [optional] +**oneof_schema_2_validator** | [**QualifiedInputValueWorkflows**](QualifiedInputValueWorkflows.md) | | [optional] +**oneof_schema_3_validator** | [**Link**](Link.md) | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.actual_instance2 import ActualInstance2 + +# TODO update the JSON string below +json = "{}" +# create an instance of ActualInstance2 from a JSON string +actual_instance2_instance = ActualInstance2.from_json(json) +# print the JSON string representation of the object +print(ActualInstance2.to_json()) + +# convert the object into a dict +actual_instance2_dict = actual_instance2_instance.to_dict() +# create an instance of ActualInstance2 from a dict +actual_instance2_from_dict = ActualInstance2.from_dict(actual_instance2_dict) +``` +[[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/ActualInstance3.md b/docs/ActualInstance3.md new file mode 100644 index 0000000..fe82797 --- /dev/null +++ b/docs/ActualInstance3.md @@ -0,0 +1,62 @@ +# ActualInstance3 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ref** | **str** | | +**additional_properties** | [**SchemaOneOfAdditionalPropertiesInput**](SchemaOneOfAdditionalPropertiesInput.md) | | [optional] +**all_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] +**any_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] +**content_encoding** | **str** | | [optional] +**content_media_type** | **str** | | [optional] +**content_schema** | **str** | | [optional] +**default** | **object** | | [optional] +**deprecated** | **bool** | | [optional] +**description** | **str** | | [optional] +**enum** | **List[object]** | | [optional] +**example** | **object** | | [optional] +**exclusive_maximum** | **bool** | | [optional] +**exclusive_minimum** | **bool** | | [optional] +**format** | **str** | | [optional] +**items** | [**Schema1Input**](Schema1Input.md) | | [optional] +**max_items** | **int** | | [optional] +**max_length** | **int** | | [optional] +**max_properties** | **int** | | [optional] +**maximum** | [**Maximum**](Maximum.md) | | [optional] +**min_items** | **int** | | [optional] +**min_length** | **int** | | [optional] +**min_properties** | **int** | | [optional] +**minimum** | [**Minimum**](Minimum.md) | | [optional] +**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] +**var_not** | [**Schema1Input**](Schema1Input.md) | | [optional] +**nullable** | **bool** | | [optional] +**one_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] +**pattern** | **str** | | [optional] +**properties** | [**Dict[str, Schema1Input]**](Schema1Input.md) | | [optional] +**read_only** | **bool** | | [optional] +**required** | **List[str]** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] +**unique_items** | **bool** | | [optional] +**write_only** | **bool** | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.actual_instance3 import ActualInstance3 + +# TODO update the JSON string below +json = "{}" +# create an instance of ActualInstance3 from a JSON string +actual_instance3_instance = ActualInstance3.from_json(json) +# print the JSON string representation of the object +print(ActualInstance3.to_json()) + +# convert the object into a dict +actual_instance3_dict = actual_instance3_instance.to_dict() +# create an instance of ActualInstance3 from a dict +actual_instance3_from_dict = ActualInstance3.from_dict(actual_instance3_dict) +``` +[[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/ActualInstance4.md b/docs/ActualInstance4.md new file mode 100644 index 0000000..85efcba --- /dev/null +++ b/docs/ActualInstance4.md @@ -0,0 +1,62 @@ +# ActualInstance4 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ref** | **str** | | +**additional_properties** | [**SchemaOneOfAdditionalPropertiesOutput**](SchemaOneOfAdditionalPropertiesOutput.md) | | [optional] +**all_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] +**any_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] +**content_encoding** | **str** | | [optional] +**content_media_type** | **str** | | [optional] +**content_schema** | **str** | | [optional] +**default** | **object** | | [optional] +**deprecated** | **bool** | | [optional] +**description** | **str** | | [optional] +**enum** | **List[object]** | | [optional] +**example** | **object** | | [optional] +**exclusive_maximum** | **bool** | | [optional] +**exclusive_minimum** | **bool** | | [optional] +**format** | **str** | | [optional] +**items** | [**Schema1Output**](Schema1Output.md) | | [optional] +**max_items** | **int** | | [optional] +**max_length** | **int** | | [optional] +**max_properties** | **int** | | [optional] +**maximum** | [**Maximum**](Maximum.md) | | [optional] +**min_items** | **int** | | [optional] +**min_length** | **int** | | [optional] +**min_properties** | **int** | | [optional] +**minimum** | [**Minimum**](Minimum.md) | | [optional] +**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] +**var_not** | [**Schema1Output**](Schema1Output.md) | | [optional] +**nullable** | **bool** | | [optional] +**one_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] +**pattern** | **str** | | [optional] +**properties** | [**Dict[str, Schema1Output]**](Schema1Output.md) | | [optional] +**read_only** | **bool** | | [optional] +**required** | **List[str]** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] +**unique_items** | **bool** | | [optional] +**write_only** | **bool** | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.actual_instance4 import ActualInstance4 + +# TODO update the JSON string below +json = "{}" +# create an instance of ActualInstance4 from a JSON string +actual_instance4_instance = ActualInstance4.from_json(json) +# print the JSON string representation of the object +print(ActualInstance4.to_json()) + +# convert the object into a dict +actual_instance4_dict = actual_instance4_instance.to_dict() +# create an instance of ActualInstance4 from a dict +actual_instance4_from_dict = ActualInstance4.from_dict(actual_instance4_dict) +``` +[[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/ActualInstance5.md b/docs/ActualInstance5.md new file mode 100644 index 0000000..a66812b --- /dev/null +++ b/docs/ActualInstance5.md @@ -0,0 +1,30 @@ +# ActualInstance5 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actual_instance** | [**ActualInstance3**](ActualInstance3.md) | | [optional] +**one_of_schemas** | **List[str]** | | [optional] +**oneof_schema_1_validator** | [**Reference**](Reference.md) | | [optional] +**oneof_schema_2_validator** | [**SchemaOneOfInput**](SchemaOneOfInput.md) | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.actual_instance5 import ActualInstance5 + +# TODO update the JSON string below +json = "{}" +# create an instance of ActualInstance5 from a JSON string +actual_instance5_instance = ActualInstance5.from_json(json) +# print the JSON string representation of the object +print(ActualInstance5.to_json()) + +# convert the object into a dict +actual_instance5_dict = actual_instance5_instance.to_dict() +# create an instance of ActualInstance5 from a dict +actual_instance5_from_dict = ActualInstance5.from_dict(actual_instance5_dict) +``` +[[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/ActualInstance6.md b/docs/ActualInstance6.md new file mode 100644 index 0000000..711af45 --- /dev/null +++ b/docs/ActualInstance6.md @@ -0,0 +1,30 @@ +# ActualInstance6 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actual_instance** | [**ActualInstance4**](ActualInstance4.md) | | [optional] +**one_of_schemas** | **List[str]** | | [optional] +**oneof_schema_1_validator** | [**Reference**](Reference.md) | | [optional] +**oneof_schema_2_validator** | [**SchemaOneOfOutput**](SchemaOneOfOutput.md) | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.actual_instance6 import ActualInstance6 + +# TODO update the JSON string below +json = "{}" +# create an instance of ActualInstance6 from a JSON string +actual_instance6_instance = ActualInstance6.from_json(json) +# print the JSON string representation of the object +print(ActualInstance6.to_json()) + +# convert the object into a dict +actual_instance6_dict = actual_instance6_instance.to_dict() +# create an instance of ActualInstance6 from a dict +actual_instance6_from_dict = ActualInstance6.from_dict(actual_instance6_dict) +``` +[[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/Bbox.md b/docs/Bbox.md index b597e46..7cb0bd8 100644 --- a/docs/Bbox.md +++ b/docs/Bbox.md @@ -1,12 +1,13 @@ # Bbox +Bbox ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bbox** | **List[float]** | | -**crs** | [**Crs**](Crs.md) | | [optional] +**bbox** | [**List[BboxBboxInner]**](BboxBboxInner.md) | | +**crs** | [**BboxDefCrs**](BboxDefCrs.md) | | [optional] ## Example diff --git a/docs/Bbox1.md b/docs/Bbox1.md new file mode 100644 index 0000000..198f818 --- /dev/null +++ b/docs/Bbox1.md @@ -0,0 +1,29 @@ +# Bbox1 + +Bbox1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bbox** | [**List[BboxBboxInner]**](BboxBboxInner.md) | | +**crs** | [**BboxDefCrs**](BboxDefCrs.md) | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.bbox1 import Bbox1 + +# TODO update the JSON string below +json = "{}" +# create an instance of Bbox1 from a JSON string +bbox1_instance = Bbox1.from_json(json) +# print the JSON string representation of the object +print(Bbox1.to_json()) + +# convert the object into a dict +bbox1_dict = bbox1_instance.to_dict() +# create an instance of Bbox1 from a dict +bbox1_from_dict = Bbox1.from_dict(bbox1_dict) +``` +[[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/BboxBboxInner.md b/docs/BboxBboxInner.md new file mode 100644 index 0000000..f7dd311 --- /dev/null +++ b/docs/BboxBboxInner.md @@ -0,0 +1,26 @@ +# BboxBboxInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.bbox_bbox_inner import BboxBboxInner + +# TODO update the JSON string below +json = "{}" +# create an instance of BboxBboxInner from a JSON string +bbox_bbox_inner_instance = BboxBboxInner.from_json(json) +# print the JSON string representation of the object +print(BboxBboxInner.to_json()) + +# convert the object into a dict +bbox_bbox_inner_dict = bbox_bbox_inner_instance.to_dict() +# create an instance of BboxBboxInner from a dict +bbox_bbox_inner_from_dict = BboxBboxInner.from_dict(bbox_bbox_inner_dict) +``` +[[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/BboxDefCrs.md b/docs/BboxDefCrs.md new file mode 100644 index 0000000..5596e71 --- /dev/null +++ b/docs/BboxDefCrs.md @@ -0,0 +1,31 @@ +# BboxDefCrs + +BboxDefCrs + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actual_instance** | **object** | | [optional] +**any_of_schemas** | **List[str]** | | [optional] +**anyof_schema_1_validator** | **str** | | [optional] +**anyof_schema_2_validator** | **str** | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.bbox_def_crs import BboxDefCrs + +# TODO update the JSON string below +json = "{}" +# create an instance of BboxDefCrs from a JSON string +bbox_def_crs_instance = BboxDefCrs.from_json(json) +# print the JSON string representation of the object +print(BboxDefCrs.to_json()) + +# convert the object into a dict +bbox_def_crs_dict = bbox_def_crs_instance.to_dict() +# create an instance of BboxDefCrs from a dict +bbox_def_crs_from_dict = BboxDefCrs.from_dict(bbox_def_crs_dict) +``` +[[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/ConfClasses.md b/docs/ConfClasses.md index 4a97511..f4f8d85 100644 --- a/docs/ConfClasses.md +++ b/docs/ConfClasses.md @@ -1,5 +1,6 @@ # ConfClasses +ConfClasses ## Properties diff --git a/docs/ConformanceApi.md b/docs/ConformanceApi.md new file mode 100644 index 0000000..0d3ca0e --- /dev/null +++ b/docs/ConformanceApi.md @@ -0,0 +1,87 @@ +# unity_sps_ogc_processes_api_python_client.ConformanceApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_conformance_conformance_get**](ConformanceApi.md#get_conformance_conformance_get) | **GET** /conformance | Retrieve the set of OGC API conformance classes that are supported by this service. + + +# **get_conformance_conformance_get** +> ConfClasses get_conformance_conformance_get(f=f) + +Retrieve the set of OGC API conformance classes that are supported by this service. + +### Example + +* Bearer (JWT) Authentication (bearerAuth): + +```python +import unity_sps_ogc_processes_api_python_client +from unity_sps_ogc_processes_api_python_client.models.conf_classes import ConfClasses +from unity_sps_ogc_processes_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearerAuth +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with unity_sps_ogc_processes_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = unity_sps_ogc_processes_api_python_client.ConformanceApi(api_client) + f = 'f_example' # str | The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'. (optional) + + try: + # Retrieve the set of OGC API conformance classes that are supported by this service. + api_response = api_instance.get_conformance_conformance_get(f=f) + print("The response of ConformanceApi->get_conformance_conformance_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ConformanceApi->get_conformance_conformance_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **f** | **str**| The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are &#39;json&#39; or &#39;html&#39;. | [optional] + +### Return type + +[**ConfClasses**](ConfClasses.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The URIs of all conformance classes supported by the server To support \\&quot;generic\\&quot; clients that want to access multiple OGC API - Processes implementations - and not \\&quot;just\\&quot; a specific API / server, the server declares the conformance classes it implements and conforms to. | - | +**406** | Content negotiation failed. For example, the &#x60;Accept&#x60; header submitted in the request did not support any of the media types supported by the server for the requested resource. | - | +**422** | Validation Error | - | +**500** | A server error occurred. | - | + +[[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/Cpumax.md b/docs/Cpumax.md new file mode 100644 index 0000000..86ca336 --- /dev/null +++ b/docs/Cpumax.md @@ -0,0 +1,27 @@ +# Cpumax + +Maximum number of CPU dedicated to the process (unit is CPU core) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.cpumax import Cpumax + +# TODO update the JSON string below +json = "{}" +# create an instance of Cpumax from a JSON string +cpumax_instance = Cpumax.from_json(json) +# print the JSON string representation of the object +print(Cpumax.to_json()) + +# convert the object into a dict +cpumax_dict = cpumax_instance.to_dict() +# create an instance of Cpumax from a dict +cpumax_from_dict = Cpumax.from_dict(cpumax_dict) +``` +[[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/Cpumin.md b/docs/Cpumin.md new file mode 100644 index 0000000..45486ac --- /dev/null +++ b/docs/Cpumin.md @@ -0,0 +1,27 @@ +# Cpumin + +Minimum number of CPUs required to run the process (unit is CPU core). + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.cpumin import Cpumin + +# TODO update the JSON string below +json = "{}" +# create an instance of Cpumin from a JSON string +cpumin_instance = Cpumin.from_json(json) +# print the JSON string representation of the object +print(Cpumin.to_json()) + +# convert the object into a dict +cpumin_dict = cpumin_instance.to_dict() +# create an instance of Cpumin from a dict +cpumin_from_dict = Cpumin.from_dict(cpumin_dict) +``` +[[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/DRUApi.md b/docs/DRUApi.md new file mode 100644 index 0000000..8991a72 --- /dev/null +++ b/docs/DRUApi.md @@ -0,0 +1,266 @@ +# unity_sps_ogc_processes_api_python_client.DRUApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**deploy_processes_post**](DRUApi.md#deploy_processes_post) | **POST** /processes | deploy a process. +[**replace_processes_process_id_put**](DRUApi.md#replace_processes_process_id_put) | **PUT** /processes/{processId} | replace a process. +[**undeploy_processes_process_id_delete**](DRUApi.md#undeploy_processes_process_id_delete) | **DELETE** /processes/{processId} | undeploy a process. + + +# **deploy_processes_post** +> object deploy_processes_post(w=w, ogcapppkg=ogcapppkg) + +deploy a process. + +Deploys a process. For more information, see [Section 6.3](http://docs.ogc.org/DRAFTS/20-044.html#_87a6983e-d060-458c-95ab-27e232e64822). + +### Example + +* Bearer (JWT) Authentication (bearerAuth): + +```python +import unity_sps_ogc_processes_api_python_client +from unity_sps_ogc_processes_api_python_client.models.ogcapppkg import Ogcapppkg +from unity_sps_ogc_processes_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearerAuth +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with unity_sps_ogc_processes_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = unity_sps_ogc_processes_api_python_client.DRUApi(api_client) + w = 'w_example' # str | Point to the workflow identifier for deploying a CWL containing multiple workflow definitions (optional) + ogcapppkg = unity_sps_ogc_processes_api_python_client.Ogcapppkg() # Ogcapppkg | (optional) + + try: + # deploy a process. + api_response = api_instance.deploy_processes_post(w=w, ogcapppkg=ogcapppkg) + print("The response of DRUApi->deploy_processes_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DRUApi->deploy_processes_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **w** | **str**| Point to the workflow identifier for deploying a CWL containing multiple workflow definitions | [optional] + **ogcapppkg** | [**Ogcapppkg**](Ogcapppkg.md)| | [optional] + +### Return type + +**object** + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**201** | Created | - | +**403** | the processes is not mutable | - | +**409** | the processes being added is already deployed (i.e. duplicate) | - | +**422** | Validation Error | - | +**500** | A server error occurred. | - | + +[[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) + +# **replace_processes_process_id_put** +> object replace_processes_process_id_put(process_id, ogcapppkg=ogcapppkg) + +replace a process. + +Replaces a process. For more information, see [Section 6.4](http://docs.ogc.org/DRAFTS/20-044.html#_18582f42-ebc6-4284-9333-c089068f62b6). + +### Example + +* Bearer (JWT) Authentication (bearerAuth): + +```python +import unity_sps_ogc_processes_api_python_client +from unity_sps_ogc_processes_api_python_client.models.ogcapppkg import Ogcapppkg +from unity_sps_ogc_processes_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearerAuth +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with unity_sps_ogc_processes_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = unity_sps_ogc_processes_api_python_client.DRUApi(api_client) + process_id = 'process_id_example' # str | + ogcapppkg = unity_sps_ogc_processes_api_python_client.Ogcapppkg() # Ogcapppkg | (optional) + + try: + # replace a process. + api_response = api_instance.replace_processes_process_id_put(process_id, ogcapppkg=ogcapppkg) + print("The response of DRUApi->replace_processes_process_id_put:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DRUApi->replace_processes_process_id_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **process_id** | **str**| | + **ogcapppkg** | [**Ogcapppkg**](Ogcapppkg.md)| | [optional] + +### Return type + +**object** + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**204** | successful operation (no response body) | - | +**403** | the processes is not mutable | - | +**404** | The requested resource does not exist on the server. For example, a path parameter had an incorrect value. | - | +**409** | the processes being added is already deployed (i.e. duplicate) | - | +**422** | Validation Error | - | +**500** | A server error occurred. | - | + +[[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) + +# **undeploy_processes_process_id_delete** +> object undeploy_processes_process_id_delete(process_id, force=force) + +undeploy a process. + +Undeploys a process. For more information, see [Section 6.5](http://docs.ogc.org/DRAFTS/20-044.html#_16391f9e-538f-4a84-9710-72a6bab82842). + +### Example + +* Bearer (JWT) Authentication (bearerAuth): + +```python +import unity_sps_ogc_processes_api_python_client +from unity_sps_ogc_processes_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearerAuth +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with unity_sps_ogc_processes_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = unity_sps_ogc_processes_api_python_client.DRUApi(api_client) + process_id = 'process_id_example' # str | + force = False # bool | Force undeployment even if there are active DAG runs (optional) (default to False) + + try: + # undeploy a process. + api_response = api_instance.undeploy_processes_process_id_delete(process_id, force=force) + print("The response of DRUApi->undeploy_processes_process_id_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DRUApi->undeploy_processes_process_id_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **process_id** | **str**| | + **force** | **bool**| Force undeployment even if there are active DAG runs | [optional] [default to False] + +### Return type + +**object** + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**204** | successful operation (no response body) | - | +**403** | the processes is not mutable | - | +**404** | The requested resource does not exist on the server. For example, a path parameter had an incorrect value. | - | +**409** | The process has active DAG runs and force is not set to true. | - | +**422** | Validation Error | - | +**500** | A server error occurred. | - | + +[[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/Enumeration.md b/docs/Enumeration.md new file mode 100644 index 0000000..9391cdc --- /dev/null +++ b/docs/Enumeration.md @@ -0,0 +1,29 @@ +# Enumeration + +Enumeration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enum** | **List[str]** | | +**type** | **str** | | + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.enumeration import Enumeration + +# TODO update the JSON string below +json = "{}" +# create an instance of Enumeration from a JSON string +enumeration_instance = Enumeration.from_json(json) +# print the JSON string representation of the object +print(Enumeration.to_json()) + +# convert the object into a dict +enumeration_dict = enumeration_instance.to_dict() +# create an instance of Enumeration from a dict +enumeration_from_dict = Enumeration.from_dict(enumeration_dict) +``` +[[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/Exception.md b/docs/Exception.md index c853b0e..81e96c6 100644 --- a/docs/Exception.md +++ b/docs/Exception.md @@ -1,10 +1,12 @@ # Exception +JSON schema for exceptions based on RFC 7807 ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**additional_properties** | **object** | | [optional] **detail** | **str** | | [optional] **instance** | **str** | | [optional] **status** | **int** | | [optional] diff --git a/docs/Execute200ResponseInput.md b/docs/Execute200ResponseInput.md new file mode 100644 index 0000000..283f0ce --- /dev/null +++ b/docs/Execute200ResponseInput.md @@ -0,0 +1,26 @@ +# Execute200ResponseInput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.execute200_response_input import Execute200ResponseInput + +# TODO update the JSON string below +json = "{}" +# create an instance of Execute200ResponseInput from a JSON string +execute200_response_input_instance = Execute200ResponseInput.from_json(json) +# print the JSON string representation of the object +print(Execute200ResponseInput.to_json()) + +# convert the object into a dict +execute200_response_input_dict = execute200_response_input_instance.to_dict() +# create an instance of Execute200ResponseInput from a dict +execute200_response_input_from_dict = Execute200ResponseInput.from_dict(execute200_response_input_dict) +``` +[[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/Execute200ResponseInputAnyOfValue.md b/docs/Execute200ResponseInputAnyOfValue.md new file mode 100644 index 0000000..f99b519 --- /dev/null +++ b/docs/Execute200ResponseInputAnyOfValue.md @@ -0,0 +1,37 @@ +# Execute200ResponseInputAnyOfValue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bbox** | [**List[BboxBboxInner]**](BboxBboxInner.md) | | +**crs** | [**BboxDefCrs**](BboxDefCrs.md) | | [optional] +**href** | **str** | | +**hreflang** | **str** | | [optional] +**rel** | **str** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] +**encoding** | **str** | | [optional] +**media_type** | **str** | | [optional] +**var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] +**value** | [**InputValueInput**](InputValueInput.md) | | + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.execute200_response_input_any_of_value import Execute200ResponseInputAnyOfValue + +# TODO update the JSON string below +json = "{}" +# create an instance of Execute200ResponseInputAnyOfValue from a JSON string +execute200_response_input_any_of_value_instance = Execute200ResponseInputAnyOfValue.from_json(json) +# print the JSON string representation of the object +print(Execute200ResponseInputAnyOfValue.to_json()) + +# convert the object into a dict +execute200_response_input_any_of_value_dict = execute200_response_input_any_of_value_instance.to_dict() +# create an instance of Execute200ResponseInputAnyOfValue from a dict +execute200_response_input_any_of_value_from_dict = Execute200ResponseInputAnyOfValue.from_dict(execute200_response_input_any_of_value_dict) +``` +[[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/Execute200ResponseOutput.md b/docs/Execute200ResponseOutput.md new file mode 100644 index 0000000..5d8aec3 --- /dev/null +++ b/docs/Execute200ResponseOutput.md @@ -0,0 +1,26 @@ +# Execute200ResponseOutput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.execute200_response_output import Execute200ResponseOutput + +# TODO update the JSON string below +json = "{}" +# create an instance of Execute200ResponseOutput from a JSON string +execute200_response_output_instance = Execute200ResponseOutput.from_json(json) +# print the JSON string representation of the object +print(Execute200ResponseOutput.to_json()) + +# convert the object into a dict +execute200_response_output_dict = execute200_response_output_instance.to_dict() +# create an instance of Execute200ResponseOutput from a dict +execute200_response_output_from_dict = Execute200ResponseOutput.from_dict(execute200_response_output_dict) +``` +[[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/Execute200ResponseOutputAnyOfValue.md b/docs/Execute200ResponseOutputAnyOfValue.md new file mode 100644 index 0000000..d34ac5a --- /dev/null +++ b/docs/Execute200ResponseOutputAnyOfValue.md @@ -0,0 +1,37 @@ +# Execute200ResponseOutputAnyOfValue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bbox** | [**List[BboxBboxInner]**](BboxBboxInner.md) | | +**crs** | [**BboxDefCrs**](BboxDefCrs.md) | | [optional] +**href** | **str** | | +**hreflang** | **str** | | [optional] +**rel** | **str** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] +**encoding** | **str** | | [optional] +**media_type** | **str** | | [optional] +**var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] +**value** | [**InputValueOutput**](InputValueOutput.md) | | + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.execute200_response_output_any_of_value import Execute200ResponseOutputAnyOfValue + +# TODO update the JSON string below +json = "{}" +# create an instance of Execute200ResponseOutputAnyOfValue from a JSON string +execute200_response_output_any_of_value_instance = Execute200ResponseOutputAnyOfValue.from_json(json) +# print the JSON string representation of the object +print(Execute200ResponseOutputAnyOfValue.to_json()) + +# convert the object into a dict +execute200_response_output_any_of_value_dict = execute200_response_output_any_of_value_instance.to_dict() +# create an instance of Execute200ResponseOutputAnyOfValue from a dict +execute200_response_output_any_of_value_from_dict = Execute200ResponseOutputAnyOfValue.from_dict(execute200_response_output_any_of_value_dict) +``` +[[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/ExecuteWorkflows.md b/docs/ExecuteWorkflows.md new file mode 100644 index 0000000..9a2de24 --- /dev/null +++ b/docs/ExecuteWorkflows.md @@ -0,0 +1,34 @@ +# ExecuteWorkflows + +ExecuteWorkflows + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filter** | **str** | | [optional] +**inputs** | [**Dict[str, InputWorkflows]**](InputWorkflows.md) | | [optional] +**outputs** | [**Dict[str, OutputWorkflows]**](OutputWorkflows.md) | | [optional] +**process** | **str** | | [optional] +**properties** | [**FieldsModifiersProperties**](FieldsModifiersProperties.md) | | [optional] +**sort_by** | **List[str]** | | [optional] +**subscriber** | [**Subscriber**](Subscriber.md) | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.execute_workflows import ExecuteWorkflows + +# TODO update the JSON string below +json = "{}" +# create an instance of ExecuteWorkflows from a JSON string +execute_workflows_instance = ExecuteWorkflows.from_json(json) +# print the JSON string representation of the object +print(ExecuteWorkflows.to_json()) + +# convert the object into a dict +execute_workflows_dict = execute_workflows_instance.to_dict() +# create an instance of ExecuteWorkflows from a dict +execute_workflows_from_dict = ExecuteWorkflows.from_dict(execute_workflows_dict) +``` +[[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/ExecutionUnit.md b/docs/ExecutionUnit.md new file mode 100644 index 0000000..74fb6ee --- /dev/null +++ b/docs/ExecutionUnit.md @@ -0,0 +1,32 @@ +# ExecutionUnit + +Resource containing an executable or runtime information for executing the process. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**additional_properties** | **object** | | [optional] +**config** | [**ExecutionUnitConfig**](ExecutionUnitConfig.md) | | [optional] +**deployment** | **str** | | [optional] +**image** | **str** | Container image reference for the execution unit. | +**type** | **str** | Type of execution unit. | + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.execution_unit import ExecutionUnit + +# TODO update the JSON string below +json = "{}" +# create an instance of ExecutionUnit from a JSON string +execution_unit_instance = ExecutionUnit.from_json(json) +# print the JSON string representation of the object +print(ExecutionUnit.to_json()) + +# convert the object into a dict +execution_unit_dict = execution_unit_instance.to_dict() +# create an instance of ExecutionUnit from a dict +execution_unit_from_dict = ExecutionUnit.from_dict(execution_unit_dict) +``` +[[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/ExecutionUnitConfig.md b/docs/ExecutionUnitConfig.md new file mode 100644 index 0000000..9f28cc3 --- /dev/null +++ b/docs/ExecutionUnitConfig.md @@ -0,0 +1,35 @@ +# ExecutionUnitConfig + +Hardware requirements and configuration properties for executing the process. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**additional_properties** | **object** | | [optional] +**cpu_max** | [**Cpumax**](Cpumax.md) | | [optional] +**cpu_min** | [**Cpumin**](Cpumin.md) | | [optional] +**job_timeout** | [**Jobtimeout**](Jobtimeout.md) | | [optional] +**memory_max** | [**Memorymax**](Memorymax.md) | | [optional] +**memory_min** | [**Memorymin**](Memorymin.md) | | [optional] +**storage_outputs_min** | [**Storageoutputsmin**](Storageoutputsmin.md) | | [optional] +**storage_temp_min** | [**Storagetempmin**](Storagetempmin.md) | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.execution_unit_config import ExecutionUnitConfig + +# TODO update the JSON string below +json = "{}" +# create an instance of ExecutionUnitConfig from a JSON string +execution_unit_config_instance = ExecutionUnitConfig.from_json(json) +# print the JSON string representation of the object +print(ExecutionUnitConfig.to_json()) + +# convert the object into a dict +execution_unit_config_dict = execution_unit_config_instance.to_dict() +# create an instance of ExecutionUnitConfig from a dict +execution_unit_config_from_dict = ExecutionUnitConfig.from_dict(execution_unit_config_dict) +``` +[[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/FieldsModifiersProperties.md b/docs/FieldsModifiersProperties.md new file mode 100644 index 0000000..1e3dac7 --- /dev/null +++ b/docs/FieldsModifiersProperties.md @@ -0,0 +1,26 @@ +# FieldsModifiersProperties + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.fields_modifiers_properties import FieldsModifiersProperties + +# TODO update the JSON string below +json = "{}" +# create an instance of FieldsModifiersProperties from a JSON string +fields_modifiers_properties_instance = FieldsModifiersProperties.from_json(json) +# print the JSON string representation of the object +print(FieldsModifiersProperties.to_json()) + +# convert the object into a dict +fields_modifiers_properties_dict = fields_modifiers_properties_instance.to_dict() +# create an instance of FieldsModifiersProperties from a dict +fields_modifiers_properties_from_dict = FieldsModifiersProperties.from_dict(fields_modifiers_properties_dict) +``` +[[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/Format.md b/docs/Format.md new file mode 100644 index 0000000..6fdd930 --- /dev/null +++ b/docs/Format.md @@ -0,0 +1,30 @@ +# Format + +Format + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**encoding** | **str** | | [optional] +**media_type** | **str** | | [optional] +**var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.format import Format + +# TODO update the JSON string below +json = "{}" +# create an instance of Format from a JSON string +format_instance = Format.from_json(json) +# print the JSON string representation of the object +print(Format.to_json()) + +# convert the object into a dict +format_dict = format_instance.to_dict() +# create an instance of Format from a dict +format_from_dict = Format.from_dict(format_dict) +``` +[[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/FormatSchema.md b/docs/FormatSchema.md new file mode 100644 index 0000000..6e8082e --- /dev/null +++ b/docs/FormatSchema.md @@ -0,0 +1,31 @@ +# FormatSchema + +FormatSchema + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actual_instance** | **str** | | [optional] +**one_of_schemas** | **List[str]** | | [optional] +**oneof_schema_1_validator** | **str** | | [optional] +**oneof_schema_2_validator** | **object** | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.format_schema import FormatSchema + +# TODO update the JSON string below +json = "{}" +# create an instance of FormatSchema from a JSON string +format_schema_instance = FormatSchema.from_json(json) +# print the JSON string representation of the object +print(FormatSchema.to_json()) + +# convert the object into a dict +format_schema_dict = format_schema_instance.to_dict() +# create an instance of FormatSchema from a dict +format_schema_from_dict = FormatSchema.from_dict(format_schema_dict) +``` +[[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/HealthApi.md b/docs/HealthApi.md new file mode 100644 index 0000000..15ff09f --- /dev/null +++ b/docs/HealthApi.md @@ -0,0 +1,83 @@ +# unity_sps_ogc_processes_api_python_client.HealthApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_health_health_get**](HealthApi.md#get_health_health_get) | **GET** /health | Retrieve the health status of the API. + + +# **get_health_health_get** +> HealthCheck get_health_health_get() + +Retrieve the health status of the API. + +Retrieves the health status of the API. + +### Example + +* Bearer (JWT) Authentication (bearerAuth): + +```python +import unity_sps_ogc_processes_api_python_client +from unity_sps_ogc_processes_api_python_client.models.health_check import HealthCheck +from unity_sps_ogc_processes_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearerAuth +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with unity_sps_ogc_processes_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = unity_sps_ogc_processes_api_python_client.HealthApi(api_client) + + try: + # Retrieve the health status of the API. + api_response = api_instance.get_health_health_get() + print("The response of HealthApi->get_health_health_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling HealthApi->get_health_health_get: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**HealthCheck**](HealthCheck.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The health status of the API. | - | +**500** | A server error occurred. | - | + +[[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/HealthCheck.md b/docs/HealthCheck.md index e4c7639..846dbc0 100644 --- a/docs/HealthCheck.md +++ b/docs/HealthCheck.md @@ -1,12 +1,11 @@ # HealthCheck -Response model to validate and return when performing a health check. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **str** | | [optional] [default to 'OK'] +**status** | **object** | | ## Example diff --git a/docs/InlineOrRefDataInput.md b/docs/InlineOrRefDataInput.md new file mode 100644 index 0000000..6de1e47 --- /dev/null +++ b/docs/InlineOrRefDataInput.md @@ -0,0 +1,37 @@ +# InlineOrRefDataInput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bbox** | [**List[BboxBboxInner]**](BboxBboxInner.md) | | +**crs** | [**BboxDefCrs**](BboxDefCrs.md) | | [optional] +**href** | **str** | | +**hreflang** | **str** | | [optional] +**rel** | **str** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] +**encoding** | **str** | | [optional] +**media_type** | **str** | | [optional] +**var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] +**value** | [**InputValueInput**](InputValueInput.md) | | + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_input import InlineOrRefDataInput + +# TODO update the JSON string below +json = "{}" +# create an instance of InlineOrRefDataInput from a JSON string +inline_or_ref_data_input_instance = InlineOrRefDataInput.from_json(json) +# print the JSON string representation of the object +print(InlineOrRefDataInput.to_json()) + +# convert the object into a dict +inline_or_ref_data_input_dict = inline_or_ref_data_input_instance.to_dict() +# create an instance of InlineOrRefDataInput from a dict +inline_or_ref_data_input_from_dict = InlineOrRefDataInput.from_dict(inline_or_ref_data_input_dict) +``` +[[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/InlineOrRefDataOutput.md b/docs/InlineOrRefDataOutput.md new file mode 100644 index 0000000..6008144 --- /dev/null +++ b/docs/InlineOrRefDataOutput.md @@ -0,0 +1,37 @@ +# InlineOrRefDataOutput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bbox** | [**List[BboxBboxInner]**](BboxBboxInner.md) | | +**crs** | [**BboxDefCrs**](BboxDefCrs.md) | | [optional] +**href** | **str** | | +**hreflang** | **str** | | [optional] +**rel** | **str** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] +**encoding** | **str** | | [optional] +**media_type** | **str** | | [optional] +**var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] +**value** | [**InputValueOutput**](InputValueOutput.md) | | + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_output import InlineOrRefDataOutput + +# TODO update the JSON string below +json = "{}" +# create an instance of InlineOrRefDataOutput from a JSON string +inline_or_ref_data_output_instance = InlineOrRefDataOutput.from_json(json) +# print the JSON string representation of the object +print(InlineOrRefDataOutput.to_json()) + +# convert the object into a dict +inline_or_ref_data_output_dict = inline_or_ref_data_output_instance.to_dict() +# create an instance of InlineOrRefDataOutput from a dict +inline_or_ref_data_output_from_dict = InlineOrRefDataOutput.from_dict(inline_or_ref_data_output_dict) +``` +[[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/InlineOrRefDataWorkflows.md b/docs/InlineOrRefDataWorkflows.md new file mode 100644 index 0000000..9008ac7 --- /dev/null +++ b/docs/InlineOrRefDataWorkflows.md @@ -0,0 +1,32 @@ +# InlineOrRefDataWorkflows + +InlineOrRefDataWorkflows + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actual_instance** | [**ActualInstance**](ActualInstance.md) | | [optional] +**one_of_schemas** | **List[str]** | | [optional] +**oneof_schema_1_validator** | [**InputValueNoObjectWorkflows**](InputValueNoObjectWorkflows.md) | | [optional] +**oneof_schema_2_validator** | [**QualifiedInputValueWorkflows**](QualifiedInputValueWorkflows.md) | | [optional] +**oneof_schema_3_validator** | [**Link**](Link.md) | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows import InlineOrRefDataWorkflows + +# TODO update the JSON string below +json = "{}" +# create an instance of InlineOrRefDataWorkflows from a JSON string +inline_or_ref_data_workflows_instance = InlineOrRefDataWorkflows.from_json(json) +# print the JSON string representation of the object +print(InlineOrRefDataWorkflows.to_json()) + +# convert the object into a dict +inline_or_ref_data_workflows_dict = inline_or_ref_data_workflows_instance.to_dict() +# create an instance of InlineOrRefDataWorkflows from a dict +inline_or_ref_data_workflows_from_dict = InlineOrRefDataWorkflows.from_dict(inline_or_ref_data_workflows_dict) +``` +[[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/InputCollection.md b/docs/InputCollection.md new file mode 100644 index 0000000..bba248e --- /dev/null +++ b/docs/InputCollection.md @@ -0,0 +1,31 @@ +# InputCollection + +InputCollection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**collection** | **str** | | +**filter** | **str** | | [optional] +**properties** | [**FieldsModifiersProperties**](FieldsModifiersProperties.md) | | [optional] +**sort_by** | **List[str]** | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.input_collection import InputCollection + +# TODO update the JSON string below +json = "{}" +# create an instance of InputCollection from a JSON string +input_collection_instance = InputCollection.from_json(json) +# print the JSON string representation of the object +print(InputCollection.to_json()) + +# convert the object into a dict +input_collection_dict = input_collection_instance.to_dict() +# create an instance of InputCollection from a dict +input_collection_from_dict = InputCollection.from_dict(input_collection_dict) +``` +[[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/InputDescriptionInput.md b/docs/InputDescriptionInput.md new file mode 100644 index 0000000..ee30b69 --- /dev/null +++ b/docs/InputDescriptionInput.md @@ -0,0 +1,35 @@ +# InputDescriptionInput + +InputDescription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | | [optional] +**keywords** | **List[str]** | | [optional] +**max_occurs** | **int** | | +**metadata** | [**List[MetadataInput]**](MetadataInput.md) | | [optional] +**min_occurs** | **int** | | [optional] +**var_schema** | [**ModelSchemaInput**](ModelSchemaInput.md) | | +**title** | **str** | | [optional] +**value_passing** | **List[str]** | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.input_description_input import InputDescriptionInput + +# TODO update the JSON string below +json = "{}" +# create an instance of InputDescriptionInput from a JSON string +input_description_input_instance = InputDescriptionInput.from_json(json) +# print the JSON string representation of the object +print(InputDescriptionInput.to_json()) + +# convert the object into a dict +input_description_input_dict = input_description_input_instance.to_dict() +# create an instance of InputDescriptionInput from a dict +input_description_input_from_dict = InputDescriptionInput.from_dict(input_description_input_dict) +``` +[[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/InputDescriptionOutput.md b/docs/InputDescriptionOutput.md new file mode 100644 index 0000000..e301654 --- /dev/null +++ b/docs/InputDescriptionOutput.md @@ -0,0 +1,35 @@ +# InputDescriptionOutput + +InputDescription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | | [optional] +**keywords** | **List[str]** | | [optional] +**max_occurs** | **int** | | +**metadata** | [**List[MetadataOutput]**](MetadataOutput.md) | | [optional] +**min_occurs** | **int** | | [optional] +**var_schema** | [**ModelSchemaOutput**](ModelSchemaOutput.md) | | +**title** | **str** | | [optional] +**value_passing** | **List[str]** | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.input_description_output import InputDescriptionOutput + +# TODO update the JSON string below +json = "{}" +# create an instance of InputDescriptionOutput from a JSON string +input_description_output_instance = InputDescriptionOutput.from_json(json) +# print the JSON string representation of the object +print(InputDescriptionOutput.to_json()) + +# convert the object into a dict +input_description_output_dict = input_description_output_instance.to_dict() +# create an instance of InputDescriptionOutput from a dict +input_description_output_from_dict = InputDescriptionOutput.from_dict(input_description_output_dict) +``` +[[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/InputParameterized.md b/docs/InputParameterized.md new file mode 100644 index 0000000..8f35016 --- /dev/null +++ b/docs/InputParameterized.md @@ -0,0 +1,31 @@ +# InputParameterized + +InputParameterized + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**input** | **str** | | +**filter** | **str** | | [optional] +**properties** | [**FieldsModifiersProperties**](FieldsModifiersProperties.md) | | [optional] +**sort_by** | **List[str]** | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.input_parameterized import InputParameterized + +# TODO update the JSON string below +json = "{}" +# create an instance of InputParameterized from a JSON string +input_parameterized_instance = InputParameterized.from_json(json) +# print the JSON string representation of the object +print(InputParameterized.to_json()) + +# convert the object into a dict +input_parameterized_dict = input_parameterized_instance.to_dict() +# create an instance of InputParameterized from a dict +input_parameterized_from_dict = InputParameterized.from_dict(input_parameterized_dict) +``` +[[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/InputProcess.md b/docs/InputProcess.md new file mode 100644 index 0000000..75b27ed --- /dev/null +++ b/docs/InputProcess.md @@ -0,0 +1,34 @@ +# InputProcess + +InputProcess + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filter** | **str** | | [optional] +**inputs** | [**Dict[str, InputWorkflows1]**](InputWorkflows1.md) | | [optional] +**outputs** | [**Dict[str, OutputWorkflows1]**](OutputWorkflows1.md) | | [optional] +**process** | **str** | URI to the process execution end point (i.e., `.../processes/{processId}/execution`) | +**properties** | [**FieldsModifiersProperties**](FieldsModifiersProperties.md) | | [optional] +**sort_by** | **List[str]** | | [optional] +**subscriber** | [**Subscriber**](Subscriber.md) | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.input_process import InputProcess + +# TODO update the JSON string below +json = "{}" +# create an instance of InputProcess from a JSON string +input_process_instance = InputProcess.from_json(json) +# print the JSON string representation of the object +print(InputProcess.to_json()) + +# convert the object into a dict +input_process_dict = input_process_instance.to_dict() +# create an instance of InputProcess from a dict +input_process_from_dict = InputProcess.from_dict(input_process_dict) +``` +[[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/InputValueInput.md b/docs/InputValueInput.md index b97c2b8..c9e4df7 100644 --- a/docs/InputValueInput.md +++ b/docs/InputValueInput.md @@ -1,12 +1,15 @@ # InputValueInput +InputValue ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bbox** | **List[object]** | | -**crs** | [**Crs**](Crs.md) | | [optional] +**actual_instance** | **object** | | [optional] +**any_of_schemas** | **List[str]** | | [optional] +**anyof_schema_1_validator** | [**InputValueNoObjectInput**](InputValueNoObjectInput.md) | | [optional] +**anyof_schema_2_validator** | **object** | | [optional] ## Example diff --git a/docs/InputValueNoObjectInput.md b/docs/InputValueNoObjectInput.md index d8ee274..646e0f6 100644 --- a/docs/InputValueNoObjectInput.md +++ b/docs/InputValueNoObjectInput.md @@ -1,12 +1,20 @@ # InputValueNoObjectInput +InputValueNoObject ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bbox** | **List[object]** | | -**crs** | [**Crs**](Crs.md) | | [optional] +**actual_instance** | **object** | | [optional] +**one_of_schemas** | **List[str]** | | [optional] +**oneof_schema_1_validator** | **str** | | [optional] +**oneof_schema_2_validator** | [**OneofSchema2Validator**](OneofSchema2Validator.md) | | [optional] +**oneof_schema_3_validator** | **int** | | [optional] +**oneof_schema_4_validator** | **bool** | | [optional] +**oneof_schema_5_validator** | **List[object]** | | [optional] +**oneof_schema_6_validator** | [**OneofSchema6Validator**](OneofSchema6Validator.md) | | [optional] +**oneof_schema_7_validator** | [**Bbox**](Bbox.md) | | [optional] ## Example diff --git a/docs/InputValueNoObjectOutput.md b/docs/InputValueNoObjectOutput.md index 4e05590..327deda 100644 --- a/docs/InputValueNoObjectOutput.md +++ b/docs/InputValueNoObjectOutput.md @@ -1,12 +1,20 @@ # InputValueNoObjectOutput +InputValueNoObject ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bbox** | **List[object]** | | -**crs** | [**Crs**](Crs.md) | | [optional] +**actual_instance** | **object** | | [optional] +**one_of_schemas** | **List[str]** | | [optional] +**oneof_schema_1_validator** | **str** | | [optional] +**oneof_schema_2_validator** | [**OneofSchema2Validator**](OneofSchema2Validator.md) | | [optional] +**oneof_schema_3_validator** | **int** | | [optional] +**oneof_schema_4_validator** | **bool** | | [optional] +**oneof_schema_5_validator** | **List[object]** | | [optional] +**oneof_schema_6_validator** | [**OneofSchema6Validator**](OneofSchema6Validator.md) | | [optional] +**oneof_schema_7_validator** | [**Bbox**](Bbox.md) | | [optional] ## Example diff --git a/docs/InputValueNoObjectWorkflows.md b/docs/InputValueNoObjectWorkflows.md new file mode 100644 index 0000000..0d52f83 --- /dev/null +++ b/docs/InputValueNoObjectWorkflows.md @@ -0,0 +1,39 @@ +# InputValueNoObjectWorkflows + +InputValueNoObjectWorkflows + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actual_instance** | [**ActualInstance1**](ActualInstance1.md) | | [optional] +**one_of_schemas** | **List[str]** | | [optional] +**oneof_schema_10_validator** | [**InputParameterized**](InputParameterized.md) | | [optional] +**oneof_schema_1_validator** | **str** | | [optional] +**oneof_schema_2_validator** | [**OneofSchema2Validator**](OneofSchema2Validator.md) | | [optional] +**oneof_schema_3_validator** | **int** | | [optional] +**oneof_schema_4_validator** | **bool** | | [optional] +**oneof_schema_5_validator** | **List[object]** | | [optional] +**oneof_schema_6_validator** | [**OneofSchema6Validator**](OneofSchema6Validator.md) | | [optional] +**oneof_schema_7_validator** | [**Bbox1**](Bbox1.md) | | [optional] +**oneof_schema_8_validator** | [**InputCollection**](InputCollection.md) | | [optional] +**oneof_schema_9_validator** | [**InputProcess**](InputProcess.md) | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows import InputValueNoObjectWorkflows + +# TODO update the JSON string below +json = "{}" +# create an instance of InputValueNoObjectWorkflows from a JSON string +input_value_no_object_workflows_instance = InputValueNoObjectWorkflows.from_json(json) +# print the JSON string representation of the object +print(InputValueNoObjectWorkflows.to_json()) + +# convert the object into a dict +input_value_no_object_workflows_dict = input_value_no_object_workflows_instance.to_dict() +# create an instance of InputValueNoObjectWorkflows from a dict +input_value_no_object_workflows_from_dict = InputValueNoObjectWorkflows.from_dict(input_value_no_object_workflows_dict) +``` +[[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/InputValueOutput.md b/docs/InputValueOutput.md index 125d3ca..fe75ac1 100644 --- a/docs/InputValueOutput.md +++ b/docs/InputValueOutput.md @@ -1,12 +1,15 @@ # InputValueOutput +InputValue ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bbox** | **List[object]** | | -**crs** | [**Crs**](Crs.md) | | [optional] +**actual_instance** | **object** | | [optional] +**any_of_schemas** | **List[str]** | | [optional] +**anyof_schema_1_validator** | [**InputValueNoObjectOutput**](InputValueNoObjectOutput.md) | | [optional] +**anyof_schema_2_validator** | **object** | | [optional] ## Example diff --git a/docs/InputValueWorkflows.md b/docs/InputValueWorkflows.md new file mode 100644 index 0000000..2619d37 --- /dev/null +++ b/docs/InputValueWorkflows.md @@ -0,0 +1,31 @@ +# InputValueWorkflows + +InputValueWorkflows + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actual_instance** | [**InputValueNoObjectWorkflows**](InputValueNoObjectWorkflows.md) | | [optional] +**one_of_schemas** | **List[str]** | | [optional] +**oneof_schema_1_validator** | [**InputValueNoObjectWorkflows**](InputValueNoObjectWorkflows.md) | | [optional] +**oneof_schema_2_validator** | **object** | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.input_value_workflows import InputValueWorkflows + +# TODO update the JSON string below +json = "{}" +# create an instance of InputValueWorkflows from a JSON string +input_value_workflows_instance = InputValueWorkflows.from_json(json) +# print the JSON string representation of the object +print(InputValueWorkflows.to_json()) + +# convert the object into a dict +input_value_workflows_dict = input_value_workflows_instance.to_dict() +# create an instance of InputValueWorkflows from a dict +input_value_workflows_from_dict = InputValueWorkflows.from_dict(input_value_workflows_dict) +``` +[[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/InputWorkflows.md b/docs/InputWorkflows.md new file mode 100644 index 0000000..7d9387e --- /dev/null +++ b/docs/InputWorkflows.md @@ -0,0 +1,46 @@ +# InputWorkflows + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bbox** | [**List[BboxBboxInner]**](BboxBboxInner.md) | | +**crs** | [**BboxDefCrs**](BboxDefCrs.md) | | [optional] +**collection** | **str** | | +**filter** | **str** | | [optional] +**properties** | [**FieldsModifiersProperties**](FieldsModifiersProperties.md) | | [optional] +**sort_by** | **List[str]** | | [optional] +**input** | **str** | | +**inputs** | [**Dict[str, InputWorkflows1]**](InputWorkflows1.md) | | [optional] +**outputs** | [**Dict[str, OutputWorkflows1]**](OutputWorkflows1.md) | | [optional] +**process** | **str** | URI to the process execution end point (i.e., `.../processes/{processId}/execution`) | +**subscriber** | [**Subscriber**](Subscriber.md) | | [optional] +**href** | **str** | | +**hreflang** | **str** | | [optional] +**rel** | **str** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] +**encoding** | **str** | | [optional] +**media_type** | **str** | | [optional] +**var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] +**value** | [**InputValueWorkflows**](InputValueWorkflows.md) | | + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.input_workflows import InputWorkflows + +# TODO update the JSON string below +json = "{}" +# create an instance of InputWorkflows from a JSON string +input_workflows_instance = InputWorkflows.from_json(json) +# print the JSON string representation of the object +print(InputWorkflows.to_json()) + +# convert the object into a dict +input_workflows_dict = input_workflows_instance.to_dict() +# create an instance of InputWorkflows from a dict +input_workflows_from_dict = InputWorkflows.from_dict(input_workflows_dict) +``` +[[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/InputWorkflows1.md b/docs/InputWorkflows1.md new file mode 100644 index 0000000..99d5c0b --- /dev/null +++ b/docs/InputWorkflows1.md @@ -0,0 +1,31 @@ +# InputWorkflows1 + +InputWorkflows1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actual_instance** | [**ActualInstance2**](ActualInstance2.md) | | [optional] +**one_of_schemas** | **List[str]** | | [optional] +**oneof_schema_1_validator** | [**InlineOrRefDataWorkflows**](InlineOrRefDataWorkflows.md) | | [optional] +**oneof_schema_2_validator** | [**List[InlineOrRefDataWorkflows]**](InlineOrRefDataWorkflows.md) | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.input_workflows1 import InputWorkflows1 + +# TODO update the JSON string below +json = "{}" +# create an instance of InputWorkflows1 from a JSON string +input_workflows1_instance = InputWorkflows1.from_json(json) +# print the JSON string representation of the object +print(InputWorkflows1.to_json()) + +# convert the object into a dict +input_workflows1_dict = input_workflows1_instance.to_dict() +# create an instance of InputWorkflows1 from a dict +input_workflows1_from_dict = InputWorkflows1.from_dict(input_workflows1_dict) +``` +[[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/InputWorkflowsAnyOfInner.md b/docs/InputWorkflowsAnyOfInner.md new file mode 100644 index 0000000..e5d4034 --- /dev/null +++ b/docs/InputWorkflowsAnyOfInner.md @@ -0,0 +1,46 @@ +# InputWorkflowsAnyOfInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bbox** | [**List[BboxBboxInner]**](BboxBboxInner.md) | | +**crs** | [**BboxDefCrs**](BboxDefCrs.md) | | [optional] +**collection** | **str** | | +**filter** | **str** | | [optional] +**properties** | [**FieldsModifiersProperties**](FieldsModifiersProperties.md) | | [optional] +**sort_by** | **List[str]** | | [optional] +**input** | **str** | | +**inputs** | [**Dict[str, InputWorkflows1]**](InputWorkflows1.md) | | [optional] +**outputs** | [**Dict[str, OutputWorkflows1]**](OutputWorkflows1.md) | | [optional] +**process** | **str** | URI to the process execution end point (i.e., `.../processes/{processId}/execution`) | +**subscriber** | [**Subscriber**](Subscriber.md) | | [optional] +**href** | **str** | | +**hreflang** | **str** | | [optional] +**rel** | **str** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] +**encoding** | **str** | | [optional] +**media_type** | **str** | | [optional] +**var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] +**value** | [**InputValueWorkflows**](InputValueWorkflows.md) | | + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.input_workflows_any_of_inner import InputWorkflowsAnyOfInner + +# TODO update the JSON string below +json = "{}" +# create an instance of InputWorkflowsAnyOfInner from a JSON string +input_workflows_any_of_inner_instance = InputWorkflowsAnyOfInner.from_json(json) +# print the JSON string representation of the object +print(InputWorkflowsAnyOfInner.to_json()) + +# convert the object into a dict +input_workflows_any_of_inner_dict = input_workflows_any_of_inner_instance.to_dict() +# create an instance of InputWorkflowsAnyOfInner from a dict +input_workflows_any_of_inner_from_dict = InputWorkflowsAnyOfInner.from_dict(input_workflows_any_of_inner_dict) +``` +[[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/JobControlOptions.md b/docs/JobControlOptions.md index dbc3558..3566748 100644 --- a/docs/JobControlOptions.md +++ b/docs/JobControlOptions.md @@ -1,9 +1,13 @@ # JobControlOptions +JobControlOptions -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `SYNC_MINUS_EXECUTE` (value: `'sync-execute'`) + +* `ASYNC_MINUS_EXECUTE` (value: `'async-execute'`) + +* `DISMISS` (value: `'dismiss'`) [[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/JobListInput.md b/docs/JobListInput.md new file mode 100644 index 0000000..cfbdb90 --- /dev/null +++ b/docs/JobListInput.md @@ -0,0 +1,29 @@ +# JobListInput + +JobList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | [**List[StatusInfo]**](StatusInfo.md) | | +**links** | [**List[Link]**](Link.md) | | + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.job_list_input import JobListInput + +# TODO update the JSON string below +json = "{}" +# create an instance of JobListInput from a JSON string +job_list_input_instance = JobListInput.from_json(json) +# print the JSON string representation of the object +print(JobListInput.to_json()) + +# convert the object into a dict +job_list_input_dict = job_list_input_instance.to_dict() +# create an instance of JobListInput from a dict +job_list_input_from_dict = JobListInput.from_dict(job_list_input_dict) +``` +[[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/JobListOutput.md b/docs/JobListOutput.md new file mode 100644 index 0000000..1ba3653 --- /dev/null +++ b/docs/JobListOutput.md @@ -0,0 +1,29 @@ +# JobListOutput + +JobList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | [**List[StatusInfo]**](StatusInfo.md) | | +**links** | [**List[Link]**](Link.md) | | + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.job_list_output import JobListOutput + +# TODO update the JSON string below +json = "{}" +# create an instance of JobListOutput from a JSON string +job_list_output_instance = JobListOutput.from_json(json) +# print the JSON string representation of the object +print(JobListOutput.to_json()) + +# convert the object into a dict +job_list_output_dict = job_list_output_instance.to_dict() +# create an instance of JobListOutput from a dict +job_list_output_from_dict = JobListOutput.from_dict(job_list_output_dict) +``` +[[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/JobsApi.md b/docs/JobsApi.md new file mode 100644 index 0000000..40fc5ac --- /dev/null +++ b/docs/JobsApi.md @@ -0,0 +1,331 @@ +# unity_sps_ogc_processes_api_python_client.JobsApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**dismiss_jobs_job_id_delete**](JobsApi.md#dismiss_jobs_job_id_delete) | **DELETE** /jobs/{jobId} | cancel a job execution, remove a finished job +[**get_jobs_jobs_get**](JobsApi.md#get_jobs_jobs_get) | **GET** /jobs | retrieve the list of jobs. +[**get_result_jobs_job_id_results_get**](JobsApi.md#get_result_jobs_job_id_results_get) | **GET** /jobs/{jobId}/results | retrieve the result(s) of a job +[**get_status_jobs_job_id_get**](JobsApi.md#get_status_jobs_job_id_get) | **GET** /jobs/{jobId} | retrieve the status of a job + + +# **dismiss_jobs_job_id_delete** +> StatusInfo dismiss_jobs_job_id_delete(job_id) + +cancel a job execution, remove a finished job + +Cancel a job execution and remove it from the jobs list. For more information, see [Section 14]https://docs.ogc.org/is/18-062r2/18-062r2.html#Dismiss). + +### Example + +* Bearer (JWT) Authentication (bearerAuth): + +```python +import unity_sps_ogc_processes_api_python_client +from unity_sps_ogc_processes_api_python_client.models.status_info import StatusInfo +from unity_sps_ogc_processes_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearerAuth +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with unity_sps_ogc_processes_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = unity_sps_ogc_processes_api_python_client.JobsApi(api_client) + job_id = 'job_id_example' # str | local identifier of a job + + try: + # cancel a job execution, remove a finished job + api_response = api_instance.dismiss_jobs_job_id_delete(job_id) + print("The response of JobsApi->dismiss_jobs_job_id_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling JobsApi->dismiss_jobs_job_id_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| local identifier of a job | + +### Return type + +[**StatusInfo**](StatusInfo.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The status of a job. | - | +**404** | The requested resource does not exist on the server. For example, a path parameter had an incorrect value. | - | +**422** | Validation Error | - | +**500** | A server error occurred. | - | + +[[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_jobs_jobs_get** +> JobListInput get_jobs_jobs_get() + +retrieve the list of jobs. + +Lists available jobs. For more information, see [Section 12](https://docs.ogc.org/is/18-062r2/18-062r2.html#Job_list). + +### Example + +* Bearer (JWT) Authentication (bearerAuth): + +```python +import unity_sps_ogc_processes_api_python_client +from unity_sps_ogc_processes_api_python_client.models.job_list_input import JobListInput +from unity_sps_ogc_processes_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearerAuth +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with unity_sps_ogc_processes_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = unity_sps_ogc_processes_api_python_client.JobsApi(api_client) + + try: + # retrieve the list of jobs. + api_response = api_instance.get_jobs_jobs_get() + print("The response of JobsApi->get_jobs_jobs_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling JobsApi->get_jobs_jobs_get: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**JobListInput**](JobListInput.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A list of jobs for this process. | - | +**404** | The requested resource does not exist on the server. For example, a path parameter had an incorrect value. | - | + +[[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_result_jobs_job_id_results_get** +> Dict[str, InlineOrRefDataInput] get_result_jobs_job_id_results_get(job_id, prefer=prefer) + +retrieve the result(s) of a job + +Lists available results of a job. In case of a failure, lists exceptions instead. For more information, see [Section 7.11](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_retrieve_job_results). + +### Example + +* Bearer (JWT) Authentication (bearerAuth): + +```python +import unity_sps_ogc_processes_api_python_client +from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_input import InlineOrRefDataInput +from unity_sps_ogc_processes_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearerAuth +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with unity_sps_ogc_processes_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = unity_sps_ogc_processes_api_python_client.JobsApi(api_client) + job_id = 'job_id_example' # str | local identifier of a job + prefer = 'prefer_example' # str | Indicates client preferences, such as whether the client wishes a self-contained or minimal response. A `return=minimal` preference indicates that the client would prefer that links be returned to larger object to minimize the response payload. A `return=representation` indicates that the client would prefer if the server can return a self-contained response. (optional) + + try: + # retrieve the result(s) of a job + api_response = api_instance.get_result_jobs_job_id_results_get(job_id, prefer=prefer) + print("The response of JobsApi->get_result_jobs_job_id_results_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling JobsApi->get_result_jobs_job_id_results_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| local identifier of a job | + **prefer** | **str**| Indicates client preferences, such as whether the client wishes a self-contained or minimal response. A &#x60;return&#x3D;minimal&#x60; preference indicates that the client would prefer that links be returned to larger object to minimize the response payload. A &#x60;return&#x3D;representation&#x60; indicates that the client would prefer if the server can return a self-contained response. | [optional] + +### Return type + +[**Dict[str, InlineOrRefDataInput]**](InlineOrRefDataInput.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The processing results of a job. | - | +**404** | The requested resource does not exist on the server. For example, a path parameter had an incorrect value. | - | +**422** | Validation Error | - | +**500** | A server error occurred. | - | + +[[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_status_jobs_job_id_get** +> StatusInfo get_status_jobs_job_id_get(job_id) + +retrieve the status of a job + +Shows the status of a job. For more information, see [Section 7.10](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_retrieve_status_info). + +### Example + +* Bearer (JWT) Authentication (bearerAuth): + +```python +import unity_sps_ogc_processes_api_python_client +from unity_sps_ogc_processes_api_python_client.models.status_info import StatusInfo +from unity_sps_ogc_processes_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearerAuth +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with unity_sps_ogc_processes_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = unity_sps_ogc_processes_api_python_client.JobsApi(api_client) + job_id = 'job_id_example' # str | local identifier of a job + + try: + # retrieve the status of a job + api_response = api_instance.get_status_jobs_job_id_get(job_id) + print("The response of JobsApi->get_status_jobs_job_id_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling JobsApi->get_status_jobs_job_id_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| local identifier of a job | + +### Return type + +[**StatusInfo**](StatusInfo.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The status of a job. | - | +**404** | The requested resource does not exist on the server. For example, a path parameter had an incorrect value. | - | +**422** | Validation Error | - | +**500** | A server error occurred. | - | + +[[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/Jobtimeout.md b/docs/Jobtimeout.md new file mode 100644 index 0000000..4f3c89c --- /dev/null +++ b/docs/Jobtimeout.md @@ -0,0 +1,27 @@ +# Jobtimeout + +Timeout delay for a job execution (in seconds) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.jobtimeout import Jobtimeout + +# TODO update the JSON string below +json = "{}" +# create an instance of Jobtimeout from a JSON string +jobtimeout_instance = Jobtimeout.from_json(json) +# print the JSON string representation of the object +print(Jobtimeout.to_json()) + +# convert the object into a dict +jobtimeout_dict = jobtimeout_instance.to_dict() +# create an instance of Jobtimeout from a dict +jobtimeout_from_dict = Jobtimeout.from_dict(jobtimeout_dict) +``` +[[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/LandingPage.md b/docs/LandingPage.md index ce3f8cb..3670962 100644 --- a/docs/LandingPage.md +++ b/docs/LandingPage.md @@ -1,5 +1,6 @@ # LandingPage +LandingPage ## Properties diff --git a/docs/LandingPageApi.md b/docs/LandingPageApi.md new file mode 100644 index 0000000..6641295 --- /dev/null +++ b/docs/LandingPageApi.md @@ -0,0 +1,87 @@ +# unity_sps_ogc_processes_api_python_client.LandingPageApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_landing_page_get**](LandingPageApi.md#get_landing_page_get) | **GET** / | Retrieve the OGC API landing page for this service. + + +# **get_landing_page_get** +> LandingPage get_landing_page_get(f=f) + +Retrieve the OGC API landing page for this service. + +### Example + +* Bearer (JWT) Authentication (bearerAuth): + +```python +import unity_sps_ogc_processes_api_python_client +from unity_sps_ogc_processes_api_python_client.models.landing_page import LandingPage +from unity_sps_ogc_processes_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearerAuth +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with unity_sps_ogc_processes_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = unity_sps_ogc_processes_api_python_client.LandingPageApi(api_client) + f = 'f_example' # str | The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'. (optional) + + try: + # Retrieve the OGC API landing page for this service. + api_response = api_instance.get_landing_page_get(f=f) + print("The response of LandingPageApi->get_landing_page_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling LandingPageApi->get_landing_page_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **f** | **str**| The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are &#39;json&#39; or &#39;html&#39;. | [optional] + +### Return type + +[**LandingPage**](LandingPage.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The landing page provides links to the API definition (link relation &#x60;service-desc&#x60;, in this case path &#x60;/api&#x60;), to the Conformance declaration (path &#x60;/conformance&#x60;, link relation &#x60;http://www.opengis.net/def/rel/ogc/1.0/conformance&#x60;), and to other resources. | - | +**406** | Content negotiation failed. For example, the &#x60;Accept&#x60; header submitted in the request did not support any of the media types supported by the server for the requested resource. | - | +**422** | Validation Error | - | +**500** | A server error occurred. | - | + +[[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/Link.md b/docs/Link.md index 43b2ed0..ff720da 100644 --- a/docs/Link.md +++ b/docs/Link.md @@ -1,5 +1,6 @@ # Link +Link ## Properties diff --git a/docs/Maximum.md b/docs/Maximum.md new file mode 100644 index 0000000..3e8dd1f --- /dev/null +++ b/docs/Maximum.md @@ -0,0 +1,26 @@ +# Maximum + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.maximum import Maximum + +# TODO update the JSON string below +json = "{}" +# create an instance of Maximum from a JSON string +maximum_instance = Maximum.from_json(json) +# print the JSON string representation of the object +print(Maximum.to_json()) + +# convert the object into a dict +maximum_dict = maximum_instance.to_dict() +# create an instance of Maximum from a dict +maximum_from_dict = Maximum.from_dict(maximum_dict) +``` +[[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/Memorymax.md b/docs/Memorymax.md new file mode 100644 index 0000000..bae6819 --- /dev/null +++ b/docs/Memorymax.md @@ -0,0 +1,27 @@ +# Memorymax + +Maximum RAM memory dedicated to the application (unit is GB) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.memorymax import Memorymax + +# TODO update the JSON string below +json = "{}" +# create an instance of Memorymax from a JSON string +memorymax_instance = Memorymax.from_json(json) +# print the JSON string representation of the object +print(Memorymax.to_json()) + +# convert the object into a dict +memorymax_dict = memorymax_instance.to_dict() +# create an instance of Memorymax from a dict +memorymax_from_dict = Memorymax.from_dict(memorymax_dict) +``` +[[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/Memorymin.md b/docs/Memorymin.md new file mode 100644 index 0000000..e8d99b4 --- /dev/null +++ b/docs/Memorymin.md @@ -0,0 +1,27 @@ +# Memorymin + +Minimum RAM memory required to run the application (unit is GB) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.memorymin import Memorymin + +# TODO update the JSON string below +json = "{}" +# create an instance of Memorymin from a JSON string +memorymin_instance = Memorymin.from_json(json) +# print the JSON string representation of the object +print(Memorymin.to_json()) + +# convert the object into a dict +memorymin_dict = memorymin_instance.to_dict() +# create an instance of Memorymin from a dict +memorymin_from_dict = Memorymin.from_dict(memorymin_dict) +``` +[[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/MetadataInput.md b/docs/MetadataInput.md new file mode 100644 index 0000000..8b6f455 --- /dev/null +++ b/docs/MetadataInput.md @@ -0,0 +1,34 @@ +# MetadataInput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **str** | | +**hreflang** | **str** | | [optional] +**rel** | **str** | | [optional] +**role** | **str** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] +**lang** | **str** | | [optional] +**value** | [**MetadataOneOf1Value**](MetadataOneOf1Value.md) | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.metadata_input import MetadataInput + +# TODO update the JSON string below +json = "{}" +# create an instance of MetadataInput from a JSON string +metadata_input_instance = MetadataInput.from_json(json) +# print the JSON string representation of the object +print(MetadataInput.to_json()) + +# convert the object into a dict +metadata_input_dict = metadata_input_instance.to_dict() +# create an instance of MetadataInput from a dict +metadata_input_from_dict = MetadataInput.from_dict(metadata_input_dict) +``` +[[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/MetadataOneOf.md b/docs/MetadataOneOf.md new file mode 100644 index 0000000..7bc9d91 --- /dev/null +++ b/docs/MetadataOneOf.md @@ -0,0 +1,33 @@ +# MetadataOneOf + +MetadataOneOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **str** | | +**hreflang** | **str** | | [optional] +**rel** | **str** | | [optional] +**role** | **str** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.metadata_one_of import MetadataOneOf + +# TODO update the JSON string below +json = "{}" +# create an instance of MetadataOneOf from a JSON string +metadata_one_of_instance = MetadataOneOf.from_json(json) +# print the JSON string representation of the object +print(MetadataOneOf.to_json()) + +# convert the object into a dict +metadata_one_of_dict = metadata_one_of_instance.to_dict() +# create an instance of MetadataOneOf from a dict +metadata_one_of_from_dict = MetadataOneOf.from_dict(metadata_one_of_dict) +``` +[[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/MetadataOneOf1.md b/docs/MetadataOneOf1.md new file mode 100644 index 0000000..4571007 --- /dev/null +++ b/docs/MetadataOneOf1.md @@ -0,0 +1,31 @@ +# MetadataOneOf1 + +MetadataOneOf1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lang** | **str** | | [optional] +**role** | **str** | | [optional] +**title** | **str** | | [optional] +**value** | [**MetadataOneOf1Value**](MetadataOneOf1Value.md) | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.metadata_one_of1 import MetadataOneOf1 + +# TODO update the JSON string below +json = "{}" +# create an instance of MetadataOneOf1 from a JSON string +metadata_one_of1_instance = MetadataOneOf1.from_json(json) +# print the JSON string representation of the object +print(MetadataOneOf1.to_json()) + +# convert the object into a dict +metadata_one_of1_dict = metadata_one_of1_instance.to_dict() +# create an instance of MetadataOneOf1 from a dict +metadata_one_of1_from_dict = MetadataOneOf1.from_dict(metadata_one_of1_dict) +``` +[[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/MetadataOneOf1Value.md b/docs/MetadataOneOf1Value.md new file mode 100644 index 0000000..c9ec5f2 --- /dev/null +++ b/docs/MetadataOneOf1Value.md @@ -0,0 +1,31 @@ +# MetadataOneOf1Value + +MetadataOneOf1Value + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actual_instance** | **str** | | [optional] +**one_of_schemas** | **List[str]** | | [optional] +**oneof_schema_1_validator** | **str** | | [optional] +**oneof_schema_2_validator** | **object** | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.metadata_one_of1_value import MetadataOneOf1Value + +# TODO update the JSON string below +json = "{}" +# create an instance of MetadataOneOf1Value from a JSON string +metadata_one_of1_value_instance = MetadataOneOf1Value.from_json(json) +# print the JSON string representation of the object +print(MetadataOneOf1Value.to_json()) + +# convert the object into a dict +metadata_one_of1_value_dict = metadata_one_of1_value_instance.to_dict() +# create an instance of MetadataOneOf1Value from a dict +metadata_one_of1_value_from_dict = MetadataOneOf1Value.from_dict(metadata_one_of1_value_dict) +``` +[[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/MetadataOutput.md b/docs/MetadataOutput.md new file mode 100644 index 0000000..30230d8 --- /dev/null +++ b/docs/MetadataOutput.md @@ -0,0 +1,34 @@ +# MetadataOutput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **str** | | +**hreflang** | **str** | | [optional] +**rel** | **str** | | [optional] +**role** | **str** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] +**lang** | **str** | | [optional] +**value** | [**MetadataOneOf1Value**](MetadataOneOf1Value.md) | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.metadata_output import MetadataOutput + +# TODO update the JSON string below +json = "{}" +# create an instance of MetadataOutput from a JSON string +metadata_output_instance = MetadataOutput.from_json(json) +# print the JSON string representation of the object +print(MetadataOutput.to_json()) + +# convert the object into a dict +metadata_output_dict = metadata_output_instance.to_dict() +# create an instance of MetadataOutput from a dict +metadata_output_from_dict = MetadataOutput.from_dict(metadata_output_dict) +``` +[[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/Minimum.md b/docs/Minimum.md new file mode 100644 index 0000000..6536017 --- /dev/null +++ b/docs/Minimum.md @@ -0,0 +1,26 @@ +# Minimum + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.minimum import Minimum + +# TODO update the JSON string below +json = "{}" +# create an instance of Minimum from a JSON string +minimum_instance = Minimum.from_json(json) +# print the JSON string representation of the object +print(Minimum.to_json()) + +# convert the object into a dict +minimum_dict = minimum_instance.to_dict() +# create an instance of Minimum from a dict +minimum_from_dict = Minimum.from_dict(minimum_dict) +``` +[[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/ModelSchemaInput.md b/docs/ModelSchemaInput.md new file mode 100644 index 0000000..c1d88b0 --- /dev/null +++ b/docs/ModelSchemaInput.md @@ -0,0 +1,62 @@ +# ModelSchemaInput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ref** | **str** | | +**additional_properties** | [**SchemaOneOfAdditionalPropertiesInput**](SchemaOneOfAdditionalPropertiesInput.md) | | [optional] +**all_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] +**any_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] +**content_encoding** | **str** | | [optional] +**content_media_type** | **str** | | [optional] +**content_schema** | **str** | | [optional] +**default** | **object** | | [optional] +**deprecated** | **bool** | | [optional] +**description** | **str** | | [optional] +**enum** | **List[object]** | | [optional] +**example** | **object** | | [optional] +**exclusive_maximum** | **bool** | | [optional] +**exclusive_minimum** | **bool** | | [optional] +**format** | **str** | | [optional] +**items** | [**Schema1Input**](Schema1Input.md) | | [optional] +**max_items** | **int** | | [optional] +**max_length** | **int** | | [optional] +**max_properties** | **int** | | [optional] +**maximum** | [**Maximum**](Maximum.md) | | [optional] +**min_items** | **int** | | [optional] +**min_length** | **int** | | [optional] +**min_properties** | **int** | | [optional] +**minimum** | [**Minimum**](Minimum.md) | | [optional] +**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] +**var_not** | [**Schema1Input**](Schema1Input.md) | | [optional] +**nullable** | **bool** | | [optional] +**one_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] +**pattern** | **str** | | [optional] +**properties** | [**Dict[str, Schema1Input]**](Schema1Input.md) | | [optional] +**read_only** | **bool** | | [optional] +**required** | **List[str]** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] +**unique_items** | **bool** | | [optional] +**write_only** | **bool** | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.model_schema_input import ModelSchemaInput + +# TODO update the JSON string below +json = "{}" +# create an instance of ModelSchemaInput from a JSON string +model_schema_input_instance = ModelSchemaInput.from_json(json) +# print the JSON string representation of the object +print(ModelSchemaInput.to_json()) + +# convert the object into a dict +model_schema_input_dict = model_schema_input_instance.to_dict() +# create an instance of ModelSchemaInput from a dict +model_schema_input_from_dict = ModelSchemaInput.from_dict(model_schema_input_dict) +``` +[[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/ModelSchemaOutput.md b/docs/ModelSchemaOutput.md new file mode 100644 index 0000000..433b9dc --- /dev/null +++ b/docs/ModelSchemaOutput.md @@ -0,0 +1,62 @@ +# ModelSchemaOutput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ref** | **str** | | +**additional_properties** | [**SchemaOneOfAdditionalPropertiesOutput**](SchemaOneOfAdditionalPropertiesOutput.md) | | [optional] +**all_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] +**any_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] +**content_encoding** | **str** | | [optional] +**content_media_type** | **str** | | [optional] +**content_schema** | **str** | | [optional] +**default** | **object** | | [optional] +**deprecated** | **bool** | | [optional] +**description** | **str** | | [optional] +**enum** | **List[object]** | | [optional] +**example** | **object** | | [optional] +**exclusive_maximum** | **bool** | | [optional] +**exclusive_minimum** | **bool** | | [optional] +**format** | **str** | | [optional] +**items** | [**Schema1Output**](Schema1Output.md) | | [optional] +**max_items** | **int** | | [optional] +**max_length** | **int** | | [optional] +**max_properties** | **int** | | [optional] +**maximum** | [**Maximum**](Maximum.md) | | [optional] +**min_items** | **int** | | [optional] +**min_length** | **int** | | [optional] +**min_properties** | **int** | | [optional] +**minimum** | [**Minimum**](Minimum.md) | | [optional] +**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] +**var_not** | [**Schema1Output**](Schema1Output.md) | | [optional] +**nullable** | **bool** | | [optional] +**one_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] +**pattern** | **str** | | [optional] +**properties** | [**Dict[str, Schema1Output]**](Schema1Output.md) | | [optional] +**read_only** | **bool** | | [optional] +**required** | **List[str]** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] +**unique_items** | **bool** | | [optional] +**write_only** | **bool** | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.model_schema_output import ModelSchemaOutput + +# TODO update the JSON string below +json = "{}" +# create an instance of ModelSchemaOutput from a JSON string +model_schema_output_instance = ModelSchemaOutput.from_json(json) +# print the JSON string representation of the object +print(ModelSchemaOutput.to_json()) + +# convert the object into a dict +model_schema_output_dict = model_schema_output_instance.to_dict() +# create an instance of ModelSchemaOutput from a dict +model_schema_output_from_dict = ModelSchemaOutput.from_dict(model_schema_output_dict) +``` +[[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/Multipleof.md b/docs/Multipleof.md new file mode 100644 index 0000000..654c169 --- /dev/null +++ b/docs/Multipleof.md @@ -0,0 +1,26 @@ +# Multipleof + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.multipleof import Multipleof + +# TODO update the JSON string below +json = "{}" +# create an instance of Multipleof from a JSON string +multipleof_instance = Multipleof.from_json(json) +# print the JSON string representation of the object +print(Multipleof.to_json()) + +# convert the object into a dict +multipleof_dict = multipleof_instance.to_dict() +# create an instance of Multipleof from a dict +multipleof_from_dict = Multipleof.from_dict(multipleof_dict) +``` +[[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/Ogcapppkg.md b/docs/Ogcapppkg.md new file mode 100644 index 0000000..c1cd51b --- /dev/null +++ b/docs/Ogcapppkg.md @@ -0,0 +1,29 @@ +# Ogcapppkg + +Ogcapppkg + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**execution_unit** | [**OgcapppkgExecutionUnit**](OgcapppkgExecutionUnit.md) | | +**process_description** | [**ProcessInput**](ProcessInput.md) | | + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.ogcapppkg import Ogcapppkg + +# TODO update the JSON string below +json = "{}" +# create an instance of Ogcapppkg from a JSON string +ogcapppkg_instance = Ogcapppkg.from_json(json) +# print the JSON string representation of the object +print(Ogcapppkg.to_json()) + +# convert the object into a dict +ogcapppkg_dict = ogcapppkg_instance.to_dict() +# create an instance of Ogcapppkg from a dict +ogcapppkg_from_dict = Ogcapppkg.from_dict(ogcapppkg_dict) +``` +[[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/OgcapppkgExecutionUnit.md b/docs/OgcapppkgExecutionUnit.md new file mode 100644 index 0000000..5b6cba8 --- /dev/null +++ b/docs/OgcapppkgExecutionUnit.md @@ -0,0 +1,39 @@ +# OgcapppkgExecutionUnit + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**additional_properties** | **object** | | [optional] +**config** | [**ExecutionUnitConfig**](ExecutionUnitConfig.md) | | [optional] +**deployment** | **str** | | [optional] +**image** | **str** | Container image reference for the execution unit. | +**type** | **str** | | +**href** | **str** | | +**hreflang** | **str** | | [optional] +**rel** | **str** | | [optional] +**title** | **str** | | [optional] +**encoding** | **str** | | [optional] +**media_type** | **str** | | [optional] +**var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] +**value** | [**InputValueInput**](InputValueInput.md) | | + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.ogcapppkg_execution_unit import OgcapppkgExecutionUnit + +# TODO update the JSON string below +json = "{}" +# create an instance of OgcapppkgExecutionUnit from a JSON string +ogcapppkg_execution_unit_instance = OgcapppkgExecutionUnit.from_json(json) +# print the JSON string representation of the object +print(OgcapppkgExecutionUnit.to_json()) + +# convert the object into a dict +ogcapppkg_execution_unit_dict = ogcapppkg_execution_unit_instance.to_dict() +# create an instance of OgcapppkgExecutionUnit from a dict +ogcapppkg_execution_unit_from_dict = OgcapppkgExecutionUnit.from_dict(ogcapppkg_execution_unit_dict) +``` +[[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/OgcapppkgExecutionUnitAnyOfInner.md b/docs/OgcapppkgExecutionUnitAnyOfInner.md new file mode 100644 index 0000000..353b16d --- /dev/null +++ b/docs/OgcapppkgExecutionUnitAnyOfInner.md @@ -0,0 +1,39 @@ +# OgcapppkgExecutionUnitAnyOfInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**additional_properties** | **object** | | [optional] +**config** | [**ExecutionUnitConfig**](ExecutionUnitConfig.md) | | [optional] +**deployment** | **str** | | [optional] +**image** | **str** | Container image reference for the execution unit. | +**type** | **str** | | +**href** | **str** | | +**hreflang** | **str** | | [optional] +**rel** | **str** | | [optional] +**title** | **str** | | [optional] +**encoding** | **str** | | [optional] +**media_type** | **str** | | [optional] +**var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] +**value** | [**InputValueInput**](InputValueInput.md) | | + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.ogcapppkg_execution_unit_any_of_inner import OgcapppkgExecutionUnitAnyOfInner + +# TODO update the JSON string below +json = "{}" +# create an instance of OgcapppkgExecutionUnitAnyOfInner from a JSON string +ogcapppkg_execution_unit_any_of_inner_instance = OgcapppkgExecutionUnitAnyOfInner.from_json(json) +# print the JSON string representation of the object +print(OgcapppkgExecutionUnitAnyOfInner.to_json()) + +# convert the object into a dict +ogcapppkg_execution_unit_any_of_inner_dict = ogcapppkg_execution_unit_any_of_inner_instance.to_dict() +# create an instance of OgcapppkgExecutionUnitAnyOfInner from a dict +ogcapppkg_execution_unit_any_of_inner_from_dict = OgcapppkgExecutionUnitAnyOfInner.from_dict(ogcapppkg_execution_unit_any_of_inner_dict) +``` +[[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/OneofSchema2Validator.md b/docs/OneofSchema2Validator.md new file mode 100644 index 0000000..96b0027 --- /dev/null +++ b/docs/OneofSchema2Validator.md @@ -0,0 +1,26 @@ +# OneofSchema2Validator + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.oneof_schema2_validator import OneofSchema2Validator + +# TODO update the JSON string below +json = "{}" +# create an instance of OneofSchema2Validator from a JSON string +oneof_schema2_validator_instance = OneofSchema2Validator.from_json(json) +# print the JSON string representation of the object +print(OneofSchema2Validator.to_json()) + +# convert the object into a dict +oneof_schema2_validator_dict = oneof_schema2_validator_instance.to_dict() +# create an instance of OneofSchema2Validator from a dict +oneof_schema2_validator_from_dict = OneofSchema2Validator.from_dict(oneof_schema2_validator_dict) +``` +[[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/OneofSchema6Validator.md b/docs/OneofSchema6Validator.md new file mode 100644 index 0000000..c73d5d9 --- /dev/null +++ b/docs/OneofSchema6Validator.md @@ -0,0 +1,26 @@ +# OneofSchema6Validator + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.oneof_schema6_validator import OneofSchema6Validator + +# TODO update the JSON string below +json = "{}" +# create an instance of OneofSchema6Validator from a JSON string +oneof_schema6_validator_instance = OneofSchema6Validator.from_json(json) +# print the JSON string representation of the object +print(OneofSchema6Validator.to_json()) + +# convert the object into a dict +oneof_schema6_validator_dict = oneof_schema6_validator_instance.to_dict() +# create an instance of OneofSchema6Validator from a dict +oneof_schema6_validator_from_dict = OneofSchema6Validator.from_dict(oneof_schema6_validator_dict) +``` +[[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/OutputDescriptionInput.md b/docs/OutputDescriptionInput.md new file mode 100644 index 0000000..45e3f15 --- /dev/null +++ b/docs/OutputDescriptionInput.md @@ -0,0 +1,32 @@ +# OutputDescriptionInput + +OutputDescription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | | [optional] +**keywords** | **List[str]** | | [optional] +**metadata** | [**List[MetadataInput]**](MetadataInput.md) | | [optional] +**var_schema** | [**ModelSchemaInput**](ModelSchemaInput.md) | | +**title** | **str** | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.output_description_input import OutputDescriptionInput + +# TODO update the JSON string below +json = "{}" +# create an instance of OutputDescriptionInput from a JSON string +output_description_input_instance = OutputDescriptionInput.from_json(json) +# print the JSON string representation of the object +print(OutputDescriptionInput.to_json()) + +# convert the object into a dict +output_description_input_dict = output_description_input_instance.to_dict() +# create an instance of OutputDescriptionInput from a dict +output_description_input_from_dict = OutputDescriptionInput.from_dict(output_description_input_dict) +``` +[[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/OutputDescriptionOutput.md b/docs/OutputDescriptionOutput.md new file mode 100644 index 0000000..f5c6aeb --- /dev/null +++ b/docs/OutputDescriptionOutput.md @@ -0,0 +1,32 @@ +# OutputDescriptionOutput + +OutputDescription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | | [optional] +**keywords** | **List[str]** | | [optional] +**metadata** | [**List[MetadataOutput]**](MetadataOutput.md) | | [optional] +**var_schema** | [**ModelSchemaOutput**](ModelSchemaOutput.md) | | +**title** | **str** | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.output_description_output import OutputDescriptionOutput + +# TODO update the JSON string below +json = "{}" +# create an instance of OutputDescriptionOutput from a JSON string +output_description_output_instance = OutputDescriptionOutput.from_json(json) +# print the JSON string representation of the object +print(OutputDescriptionOutput.to_json()) + +# convert the object into a dict +output_description_output_dict = output_description_output_instance.to_dict() +# create an instance of OutputDescriptionOutput from a dict +output_description_output_from_dict = OutputDescriptionOutput.from_dict(output_description_output_dict) +``` +[[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/OutputWorkflows.md b/docs/OutputWorkflows.md new file mode 100644 index 0000000..77cafe2 --- /dev/null +++ b/docs/OutputWorkflows.md @@ -0,0 +1,29 @@ +# OutputWorkflows + +OutputWorkflows + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**output** | **str** | | [optional] +**format** | [**Format**](Format.md) | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.output_workflows import OutputWorkflows + +# TODO update the JSON string below +json = "{}" +# create an instance of OutputWorkflows from a JSON string +output_workflows_instance = OutputWorkflows.from_json(json) +# print the JSON string representation of the object +print(OutputWorkflows.to_json()) + +# convert the object into a dict +output_workflows_dict = output_workflows_instance.to_dict() +# create an instance of OutputWorkflows from a dict +output_workflows_from_dict = OutputWorkflows.from_dict(output_workflows_dict) +``` +[[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/OutputWorkflows1.md b/docs/OutputWorkflows1.md new file mode 100644 index 0000000..cb0d36d --- /dev/null +++ b/docs/OutputWorkflows1.md @@ -0,0 +1,29 @@ +# OutputWorkflows1 + +OutputWorkflows1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**output** | **str** | | [optional] +**format** | [**Format**](Format.md) | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.output_workflows1 import OutputWorkflows1 + +# TODO update the JSON string below +json = "{}" +# create an instance of OutputWorkflows1 from a JSON string +output_workflows1_instance = OutputWorkflows1.from_json(json) +# print the JSON string representation of the object +print(OutputWorkflows1.to_json()) + +# convert the object into a dict +output_workflows1_dict = output_workflows1_instance.to_dict() +# create an instance of OutputWorkflows1 from a dict +output_workflows1_from_dict = OutputWorkflows1.from_dict(output_workflows1_dict) +``` +[[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/ProcessInput.md b/docs/ProcessInput.md index 95dcbd8..2849e5e 100644 --- a/docs/ProcessInput.md +++ b/docs/ProcessInput.md @@ -1,5 +1,6 @@ # ProcessInput +Process ## Properties @@ -7,12 +8,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **str** | | [optional] **id** | **str** | | -**inputs** | [**List[InputValueInput]**](InputValueInput.md) | | [optional] +**inputs** | [**Dict[str, InputDescriptionInput]**](InputDescriptionInput.md) | | [optional] **job_control_options** | [**List[JobControlOptions]**](JobControlOptions.md) | | [optional] **keywords** | **List[str]** | | [optional] **links** | [**List[Link]**](Link.md) | | [optional] -**metadata** | [**List[Metadata]**](Metadata.md) | | [optional] -**outputs** | [**List[InputValueInput]**](InputValueInput.md) | | [optional] +**metadata** | [**List[MetadataInput]**](MetadataInput.md) | | [optional] +**outputs** | [**Dict[str, OutputDescriptionInput]**](OutputDescriptionInput.md) | | [optional] **title** | **str** | | [optional] **version** | **str** | | diff --git a/docs/ProcessListInput.md b/docs/ProcessListInput.md new file mode 100644 index 0000000..a3671a4 --- /dev/null +++ b/docs/ProcessListInput.md @@ -0,0 +1,29 @@ +# ProcessListInput + +ProcessList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**List[Link]**](Link.md) | | +**processes** | [**List[ProcessSummaryInput]**](ProcessSummaryInput.md) | | + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.process_list_input import ProcessListInput + +# TODO update the JSON string below +json = "{}" +# create an instance of ProcessListInput from a JSON string +process_list_input_instance = ProcessListInput.from_json(json) +# print the JSON string representation of the object +print(ProcessListInput.to_json()) + +# convert the object into a dict +process_list_input_dict = process_list_input_instance.to_dict() +# create an instance of ProcessListInput from a dict +process_list_input_from_dict = ProcessListInput.from_dict(process_list_input_dict) +``` +[[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/ProcessListOutput.md b/docs/ProcessListOutput.md new file mode 100644 index 0000000..cb80051 --- /dev/null +++ b/docs/ProcessListOutput.md @@ -0,0 +1,29 @@ +# ProcessListOutput + +ProcessList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**List[Link]**](Link.md) | | +**processes** | [**List[ProcessSummaryOutput]**](ProcessSummaryOutput.md) | | + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.process_list_output import ProcessListOutput + +# TODO update the JSON string below +json = "{}" +# create an instance of ProcessListOutput from a JSON string +process_list_output_instance = ProcessListOutput.from_json(json) +# print the JSON string representation of the object +print(ProcessListOutput.to_json()) + +# convert the object into a dict +process_list_output_dict = process_list_output_instance.to_dict() +# create an instance of ProcessListOutput from a dict +process_list_output_from_dict = ProcessListOutput.from_dict(process_list_output_dict) +``` +[[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/ProcessOutput.md b/docs/ProcessOutput.md index 61366ce..2aa6e08 100644 --- a/docs/ProcessOutput.md +++ b/docs/ProcessOutput.md @@ -1,5 +1,6 @@ # ProcessOutput +Process ## Properties @@ -7,12 +8,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **str** | | [optional] **id** | **str** | | -**inputs** | [**List[InputValueOutput]**](InputValueOutput.md) | | [optional] +**inputs** | [**Dict[str, InputDescriptionOutput]**](InputDescriptionOutput.md) | | [optional] **job_control_options** | [**List[JobControlOptions]**](JobControlOptions.md) | | [optional] **keywords** | **List[str]** | | [optional] **links** | [**List[Link]**](Link.md) | | [optional] -**metadata** | [**List[Metadata]**](Metadata.md) | | [optional] -**outputs** | [**List[InputValueOutput]**](InputValueOutput.md) | | [optional] +**metadata** | [**List[MetadataOutput]**](MetadataOutput.md) | | [optional] +**outputs** | [**Dict[str, OutputDescriptionOutput]**](OutputDescriptionOutput.md) | | [optional] **title** | **str** | | [optional] **version** | **str** | | diff --git a/docs/ProcessSummaryInput.md b/docs/ProcessSummaryInput.md new file mode 100644 index 0000000..b680038 --- /dev/null +++ b/docs/ProcessSummaryInput.md @@ -0,0 +1,35 @@ +# ProcessSummaryInput + +ProcessSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | | [optional] +**id** | **str** | | +**job_control_options** | [**List[JobControlOptions]**](JobControlOptions.md) | | [optional] +**keywords** | **List[str]** | | [optional] +**links** | [**List[Link]**](Link.md) | | [optional] +**metadata** | [**List[MetadataInput]**](MetadataInput.md) | | [optional] +**title** | **str** | | [optional] +**version** | **str** | | + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.process_summary_input import ProcessSummaryInput + +# TODO update the JSON string below +json = "{}" +# create an instance of ProcessSummaryInput from a JSON string +process_summary_input_instance = ProcessSummaryInput.from_json(json) +# print the JSON string representation of the object +print(ProcessSummaryInput.to_json()) + +# convert the object into a dict +process_summary_input_dict = process_summary_input_instance.to_dict() +# create an instance of ProcessSummaryInput from a dict +process_summary_input_from_dict = ProcessSummaryInput.from_dict(process_summary_input_dict) +``` +[[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/ProcessSummaryOutput.md b/docs/ProcessSummaryOutput.md new file mode 100644 index 0000000..725e274 --- /dev/null +++ b/docs/ProcessSummaryOutput.md @@ -0,0 +1,35 @@ +# ProcessSummaryOutput + +ProcessSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | | [optional] +**id** | **str** | | +**job_control_options** | [**List[JobControlOptions]**](JobControlOptions.md) | | [optional] +**keywords** | **List[str]** | | [optional] +**links** | [**List[Link]**](Link.md) | | [optional] +**metadata** | [**List[MetadataOutput]**](MetadataOutput.md) | | [optional] +**title** | **str** | | [optional] +**version** | **str** | | + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.process_summary_output import ProcessSummaryOutput + +# TODO update the JSON string below +json = "{}" +# create an instance of ProcessSummaryOutput from a JSON string +process_summary_output_instance = ProcessSummaryOutput.from_json(json) +# print the JSON string representation of the object +print(ProcessSummaryOutput.to_json()) + +# convert the object into a dict +process_summary_output_dict = process_summary_output_instance.to_dict() +# create an instance of ProcessSummaryOutput from a dict +process_summary_output_from_dict = ProcessSummaryOutput.from_dict(process_summary_output_dict) +``` +[[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/ProcessesApi.md b/docs/ProcessesApi.md new file mode 100644 index 0000000..23e9c90 --- /dev/null +++ b/docs/ProcessesApi.md @@ -0,0 +1,248 @@ +# unity_sps_ogc_processes_api_python_client.ProcessesApi + +All URIs are relative to ** + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**execute_processes_process_id_execution_post**](ProcessesApi.md#execute_processes_process_id_execution_post) | **POST** /processes/{processId}/execution | execute a process. +[**get_process_description_processes_process_id_get**](ProcessesApi.md#get_process_description_processes_process_id_get) | **GET** /processes/{processId} | retrieve a process description +[**get_processes_processes_get**](ProcessesApi.md#get_processes_processes_get) | **GET** /processes | retrieve the list of available processes + +# **execute_processes_process_id_execution_post** +> +> Execute200ResponseInput execute_processes_process_id_execution_post(process_id, response=response, prefer=prefer, execute_workflows=execute_workflows) + +execute a process. + +Executes a process (this may result in the creation of a job resource e.g., for *asynchronous execution*). For more information, see [Section 7.9](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_create_job). + +### Example + +* Bearer (JWT) Authentication (bearerAuth): + +```python +import unity_sps_ogc_processes_api_python_client +from unity_sps_ogc_processes_api_python_client.models.execute200_response_input import Execute200ResponseInput +from unity_sps_ogc_processes_api_python_client.models.execute_workflows import ExecuteWorkflows +from unity_sps_ogc_processes_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearerAuth +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with unity_sps_ogc_processes_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = unity_sps_ogc_processes_api_python_client.ProcessesApi(api_client) + process_id = 'process_id_example' # str | + response = 'response_example' # str | For executing the process using the _Collection Output_ mechanism, where the client is redirected (_303_ status) to either an OGC API landing page or collection resource, from which one or more OGC API data access mechanism is available. Data access requests may trigger processing on-demand for a given area, time and resolution of interest. (optional) + prefer = 'prefer_example' # str | Indicates client preferences, including whether the client is capable of asynchronous processing. A `respond-async` preference indicates a preference for asynchronous processing. A `wait: <x>s` preference indicates that the client prefers to wait up to x seconds to receive a reponse synchronously before the server falls back to asynchronous processing. (optional) + execute_workflows = unity_sps_ogc_processes_api_python_client.ExecuteWorkflows() # ExecuteWorkflows | (optional) + + try: + # execute a process. + api_response = api_instance.execute_processes_process_id_execution_post(process_id, response=response, prefer=prefer, execute_workflows=execute_workflows) + print("The response of ProcessesApi->execute_processes_process_id_execution_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ProcessesApi->execute_processes_process_id_execution_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **process_id** | **str**| | + **response** | **str**| For executing the process using the *Collection Output* mechanism, where the client is redirected (*303* status) to either an OGC API landing page or collection resource, from which one or more OGC API data access mechanism is available. Data access requests may trigger processing on-demand for a given area, time and resolution of interest. | [optional] + **prefer** | **str**| Indicates client preferences, including whether the client is capable of asynchronous processing. A &#x60;respond-async&#x60; preference indicates a preference for asynchronous processing. A &#x60;wait: &lt;x&gt;s&#x60; preference indicates that the client prefers to wait up to x seconds to receive a reponse synchronously before the server falls back to asynchronous processing. | [optional] + **execute_workflows** | [**ExecuteWorkflows**](ExecuteWorkflows.md)| | [optional] + +### Return type + +[**Execute200ResponseInput**](Execute200ResponseInput.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +* **Content-Type**: application/json +* **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Result of synchronous execution | - | +**201** | Started asynchronous execution. Created job. | - | +**303** | For *Collection Output* execution, redirection to an OGC API landing page or collection. | - | +**404** | The requested resource does not exist on the server. For example, a path parameter had an incorrect value. | - | +**422** | Validation Error | - | +**500** | A server error occurred. | - | + +[[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_process_description_processes_process_id_get** +> +> ProcessInput get_process_description_processes_process_id_get(process_id) + +retrieve a process description + +The process description contains information about inputs and outputs and a link to the execution-endpoint for the process. The Core does not mandate the use of a specific process description to specify the interface of a process. That said, the Core requirements class makes the following recommendation: Implementations SHOULD consider supporting the OGC process description. For more information, see [Section 7.8](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_process_description). + +### Example + +* Bearer (JWT) Authentication (bearerAuth): + +```python +import unity_sps_ogc_processes_api_python_client +from unity_sps_ogc_processes_api_python_client.models.process_input import ProcessInput +from unity_sps_ogc_processes_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearerAuth +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with unity_sps_ogc_processes_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = unity_sps_ogc_processes_api_python_client.ProcessesApi(api_client) + process_id = 'process_id_example' # str | + + try: + # retrieve a process description + api_response = api_instance.get_process_description_processes_process_id_get(process_id) + print("The response of ProcessesApi->get_process_description_processes_process_id_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ProcessesApi->get_process_description_processes_process_id_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **process_id** | **str**| | + +### Return type + +[**ProcessInput**](ProcessInput.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +* **Content-Type**: Not defined +* **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A process description. | - | +**404** | The requested resource does not exist on the server. For example, a path parameter had an incorrect value. | - | +**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_processes_processes_get** +> +> ProcessListInput get_processes_processes_get() + +retrieve the list of available processes + +The list of processes contains a summary of each process the OGC API - Processes offers, including the link to a more detailed description of the process. For more information, see [Section 7.7]). + +### Example + +* Bearer (JWT) Authentication (bearerAuth): + +```python +import unity_sps_ogc_processes_api_python_client +from unity_sps_ogc_processes_api_python_client.models.process_list_input import ProcessListInput +from unity_sps_ogc_processes_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearerAuth +configuration = unity_sps_ogc_processes_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with unity_sps_ogc_processes_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = unity_sps_ogc_processes_api_python_client.ProcessesApi(api_client) + + try: + # retrieve the list of available processes + api_response = api_instance.get_processes_processes_get() + print("The response of ProcessesApi->get_processes_processes_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ProcessesApi->get_processes_processes_get: %s\n" % e) +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**ProcessListInput**](ProcessListInput.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +* **Content-Type**: Not defined +* **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Information about the available processes | - | + +[[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/QualifiedInputValueInput.md b/docs/QualifiedInputValueInput.md new file mode 100644 index 0000000..5379c97 --- /dev/null +++ b/docs/QualifiedInputValueInput.md @@ -0,0 +1,31 @@ +# QualifiedInputValueInput + +QualifiedInputValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**encoding** | **str** | | [optional] +**media_type** | **str** | | [optional] +**var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] +**value** | [**InputValueInput**](InputValueInput.md) | | + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_input import QualifiedInputValueInput + +# TODO update the JSON string below +json = "{}" +# create an instance of QualifiedInputValueInput from a JSON string +qualified_input_value_input_instance = QualifiedInputValueInput.from_json(json) +# print the JSON string representation of the object +print(QualifiedInputValueInput.to_json()) + +# convert the object into a dict +qualified_input_value_input_dict = qualified_input_value_input_instance.to_dict() +# create an instance of QualifiedInputValueInput from a dict +qualified_input_value_input_from_dict = QualifiedInputValueInput.from_dict(qualified_input_value_input_dict) +``` +[[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/QualifiedInputValueOutput.md b/docs/QualifiedInputValueOutput.md new file mode 100644 index 0000000..c3e1967 --- /dev/null +++ b/docs/QualifiedInputValueOutput.md @@ -0,0 +1,31 @@ +# QualifiedInputValueOutput + +QualifiedInputValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**encoding** | **str** | | [optional] +**media_type** | **str** | | [optional] +**var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] +**value** | [**InputValueOutput**](InputValueOutput.md) | | + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_output import QualifiedInputValueOutput + +# TODO update the JSON string below +json = "{}" +# create an instance of QualifiedInputValueOutput from a JSON string +qualified_input_value_output_instance = QualifiedInputValueOutput.from_json(json) +# print the JSON string representation of the object +print(QualifiedInputValueOutput.to_json()) + +# convert the object into a dict +qualified_input_value_output_dict = qualified_input_value_output_instance.to_dict() +# create an instance of QualifiedInputValueOutput from a dict +qualified_input_value_output_from_dict = QualifiedInputValueOutput.from_dict(qualified_input_value_output_dict) +``` +[[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/QualifiedInputValueWorkflows.md b/docs/QualifiedInputValueWorkflows.md new file mode 100644 index 0000000..e0db92f --- /dev/null +++ b/docs/QualifiedInputValueWorkflows.md @@ -0,0 +1,34 @@ +# QualifiedInputValueWorkflows + +QualifiedInputValueWorkflows + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**encoding** | **str** | | [optional] +**filter** | **str** | | [optional] +**media_type** | **str** | | [optional] +**properties** | [**FieldsModifiersProperties**](FieldsModifiersProperties.md) | | [optional] +**var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] +**sort_by** | **List[str]** | | [optional] +**value** | [**InputValueWorkflows**](InputValueWorkflows.md) | | + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows import QualifiedInputValueWorkflows + +# TODO update the JSON string below +json = "{}" +# create an instance of QualifiedInputValueWorkflows from a JSON string +qualified_input_value_workflows_instance = QualifiedInputValueWorkflows.from_json(json) +# print the JSON string representation of the object +print(QualifiedInputValueWorkflows.to_json()) + +# convert the object into a dict +qualified_input_value_workflows_dict = qualified_input_value_workflows_instance.to_dict() +# create an instance of QualifiedInputValueWorkflows from a dict +qualified_input_value_workflows_from_dict = QualifiedInputValueWorkflows.from_dict(qualified_input_value_workflows_dict) +``` +[[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/Reference.md b/docs/Reference.md new file mode 100644 index 0000000..922ad9a --- /dev/null +++ b/docs/Reference.md @@ -0,0 +1,28 @@ +# Reference + +Reference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ref** | **str** | | + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.reference import Reference + +# TODO update the JSON string below +json = "{}" +# create an instance of Reference from a JSON string +reference_instance = Reference.from_json(json) +# print the JSON string representation of the object +print(Reference.to_json()) + +# convert the object into a dict +reference_dict = reference_instance.to_dict() +# create an instance of Reference from a dict +reference_from_dict = Reference.from_dict(reference_dict) +``` +[[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/Schema1Input.md b/docs/Schema1Input.md new file mode 100644 index 0000000..c986f64 --- /dev/null +++ b/docs/Schema1Input.md @@ -0,0 +1,31 @@ +# Schema1Input + +Schema1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actual_instance** | [**ActualInstance3**](ActualInstance3.md) | | [optional] +**one_of_schemas** | **List[str]** | | [optional] +**oneof_schema_1_validator** | [**Reference**](Reference.md) | | [optional] +**oneof_schema_2_validator** | [**SchemaOneOfInput**](SchemaOneOfInput.md) | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.schema1_input import Schema1Input + +# TODO update the JSON string below +json = "{}" +# create an instance of Schema1Input from a JSON string +schema1_input_instance = Schema1Input.from_json(json) +# print the JSON string representation of the object +print(Schema1Input.to_json()) + +# convert the object into a dict +schema1_input_dict = schema1_input_instance.to_dict() +# create an instance of Schema1Input from a dict +schema1_input_from_dict = Schema1Input.from_dict(schema1_input_dict) +``` +[[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/Schema1Output.md b/docs/Schema1Output.md new file mode 100644 index 0000000..292ed5f --- /dev/null +++ b/docs/Schema1Output.md @@ -0,0 +1,31 @@ +# Schema1Output + +Schema1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actual_instance** | [**ActualInstance4**](ActualInstance4.md) | | [optional] +**one_of_schemas** | **List[str]** | | [optional] +**oneof_schema_1_validator** | [**Reference**](Reference.md) | | [optional] +**oneof_schema_2_validator** | [**SchemaOneOfOutput**](SchemaOneOfOutput.md) | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.schema1_output import Schema1Output + +# TODO update the JSON string below +json = "{}" +# create an instance of Schema1Output from a JSON string +schema1_output_instance = Schema1Output.from_json(json) +# print the JSON string representation of the object +print(Schema1Output.to_json()) + +# convert the object into a dict +schema1_output_dict = schema1_output_instance.to_dict() +# create an instance of Schema1Output from a dict +schema1_output_from_dict = Schema1Output.from_dict(schema1_output_dict) +``` +[[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/SchemaOneOfAdditionalPropertiesInput.md b/docs/SchemaOneOfAdditionalPropertiesInput.md new file mode 100644 index 0000000..fbaf9ae --- /dev/null +++ b/docs/SchemaOneOfAdditionalPropertiesInput.md @@ -0,0 +1,31 @@ +# SchemaOneOfAdditionalPropertiesInput + +SchemaOneOfAdditionalProperties + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actual_instance** | [**ActualInstance5**](ActualInstance5.md) | | [optional] +**one_of_schemas** | **List[str]** | | [optional] +**oneof_schema_1_validator** | [**Schema1Input**](Schema1Input.md) | | [optional] +**oneof_schema_2_validator** | **bool** | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties_input import SchemaOneOfAdditionalPropertiesInput + +# TODO update the JSON string below +json = "{}" +# create an instance of SchemaOneOfAdditionalPropertiesInput from a JSON string +schema_one_of_additional_properties_input_instance = SchemaOneOfAdditionalPropertiesInput.from_json(json) +# print the JSON string representation of the object +print(SchemaOneOfAdditionalPropertiesInput.to_json()) + +# convert the object into a dict +schema_one_of_additional_properties_input_dict = schema_one_of_additional_properties_input_instance.to_dict() +# create an instance of SchemaOneOfAdditionalPropertiesInput from a dict +schema_one_of_additional_properties_input_from_dict = SchemaOneOfAdditionalPropertiesInput.from_dict(schema_one_of_additional_properties_input_dict) +``` +[[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/SchemaOneOfAdditionalPropertiesOutput.md b/docs/SchemaOneOfAdditionalPropertiesOutput.md new file mode 100644 index 0000000..bdb3514 --- /dev/null +++ b/docs/SchemaOneOfAdditionalPropertiesOutput.md @@ -0,0 +1,31 @@ +# SchemaOneOfAdditionalPropertiesOutput + +SchemaOneOfAdditionalProperties + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actual_instance** | [**ActualInstance6**](ActualInstance6.md) | | [optional] +**one_of_schemas** | **List[str]** | | [optional] +**oneof_schema_1_validator** | [**Schema1Output**](Schema1Output.md) | | [optional] +**oneof_schema_2_validator** | **bool** | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties_output import SchemaOneOfAdditionalPropertiesOutput + +# TODO update the JSON string below +json = "{}" +# create an instance of SchemaOneOfAdditionalPropertiesOutput from a JSON string +schema_one_of_additional_properties_output_instance = SchemaOneOfAdditionalPropertiesOutput.from_json(json) +# print the JSON string representation of the object +print(SchemaOneOfAdditionalPropertiesOutput.to_json()) + +# convert the object into a dict +schema_one_of_additional_properties_output_dict = schema_one_of_additional_properties_output_instance.to_dict() +# create an instance of SchemaOneOfAdditionalPropertiesOutput from a dict +schema_one_of_additional_properties_output_from_dict = SchemaOneOfAdditionalPropertiesOutput.from_dict(schema_one_of_additional_properties_output_dict) +``` +[[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/SchemaOneOfInput.md b/docs/SchemaOneOfInput.md new file mode 100644 index 0000000..121e77c --- /dev/null +++ b/docs/SchemaOneOfInput.md @@ -0,0 +1,62 @@ +# SchemaOneOfInput + +SchemaOneOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**additional_properties** | [**SchemaOneOfAdditionalPropertiesInput**](SchemaOneOfAdditionalPropertiesInput.md) | | [optional] +**all_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] +**any_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] +**content_encoding** | **str** | | [optional] +**content_media_type** | **str** | | [optional] +**content_schema** | **str** | | [optional] +**default** | **object** | | [optional] +**deprecated** | **bool** | | [optional] +**description** | **str** | | [optional] +**enum** | **List[object]** | | [optional] +**example** | **object** | | [optional] +**exclusive_maximum** | **bool** | | [optional] +**exclusive_minimum** | **bool** | | [optional] +**format** | **str** | | [optional] +**items** | [**Schema1Input**](Schema1Input.md) | | [optional] +**max_items** | **int** | | [optional] +**max_length** | **int** | | [optional] +**max_properties** | **int** | | [optional] +**maximum** | [**Maximum**](Maximum.md) | | [optional] +**min_items** | **int** | | [optional] +**min_length** | **int** | | [optional] +**min_properties** | **int** | | [optional] +**minimum** | [**Minimum**](Minimum.md) | | [optional] +**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] +**var_not** | [**Schema1Input**](Schema1Input.md) | | [optional] +**nullable** | **bool** | | [optional] +**one_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] +**pattern** | **str** | | [optional] +**properties** | [**Dict[str, Schema1Input]**](Schema1Input.md) | | [optional] +**read_only** | **bool** | | [optional] +**required** | **List[str]** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] +**unique_items** | **bool** | | [optional] +**write_only** | **bool** | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_input import SchemaOneOfInput + +# TODO update the JSON string below +json = "{}" +# create an instance of SchemaOneOfInput from a JSON string +schema_one_of_input_instance = SchemaOneOfInput.from_json(json) +# print the JSON string representation of the object +print(SchemaOneOfInput.to_json()) + +# convert the object into a dict +schema_one_of_input_dict = schema_one_of_input_instance.to_dict() +# create an instance of SchemaOneOfInput from a dict +schema_one_of_input_from_dict = SchemaOneOfInput.from_dict(schema_one_of_input_dict) +``` +[[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/SchemaOneOfOutput.md b/docs/SchemaOneOfOutput.md new file mode 100644 index 0000000..99606ef --- /dev/null +++ b/docs/SchemaOneOfOutput.md @@ -0,0 +1,62 @@ +# SchemaOneOfOutput + +SchemaOneOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**additional_properties** | [**SchemaOneOfAdditionalPropertiesOutput**](SchemaOneOfAdditionalPropertiesOutput.md) | | [optional] +**all_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] +**any_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] +**content_encoding** | **str** | | [optional] +**content_media_type** | **str** | | [optional] +**content_schema** | **str** | | [optional] +**default** | **object** | | [optional] +**deprecated** | **bool** | | [optional] +**description** | **str** | | [optional] +**enum** | **List[object]** | | [optional] +**example** | **object** | | [optional] +**exclusive_maximum** | **bool** | | [optional] +**exclusive_minimum** | **bool** | | [optional] +**format** | **str** | | [optional] +**items** | [**Schema1Output**](Schema1Output.md) | | [optional] +**max_items** | **int** | | [optional] +**max_length** | **int** | | [optional] +**max_properties** | **int** | | [optional] +**maximum** | [**Maximum**](Maximum.md) | | [optional] +**min_items** | **int** | | [optional] +**min_length** | **int** | | [optional] +**min_properties** | **int** | | [optional] +**minimum** | [**Minimum**](Minimum.md) | | [optional] +**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] +**var_not** | [**Schema1Output**](Schema1Output.md) | | [optional] +**nullable** | **bool** | | [optional] +**one_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] +**pattern** | **str** | | [optional] +**properties** | [**Dict[str, Schema1Output]**](Schema1Output.md) | | [optional] +**read_only** | **bool** | | [optional] +**required** | **List[str]** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] +**unique_items** | **bool** | | [optional] +**write_only** | **bool** | | [optional] + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_output import SchemaOneOfOutput + +# TODO update the JSON string below +json = "{}" +# create an instance of SchemaOneOfOutput from a JSON string +schema_one_of_output_instance = SchemaOneOfOutput.from_json(json) +# print the JSON string representation of the object +print(SchemaOneOfOutput.to_json()) + +# convert the object into a dict +schema_one_of_output_dict = schema_one_of_output_instance.to_dict() +# create an instance of SchemaOneOfOutput from a dict +schema_one_of_output_from_dict = SchemaOneOfOutput.from_dict(schema_one_of_output_dict) +``` +[[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/StatusCode.md b/docs/StatusCode.md index 3f56325..aa01b48 100644 --- a/docs/StatusCode.md +++ b/docs/StatusCode.md @@ -1,9 +1,17 @@ # StatusCode +StatusCode -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `ACCEPTED` (value: `'accepted'`) + +* `RUNNING` (value: `'running'`) + +* `SUCCESSFUL` (value: `'successful'`) + +* `FAILED` (value: `'failed'`) + +* `DISMISSED` (value: `'dismissed'`) [[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/StatusInfo.md b/docs/StatusInfo.md index df9dc3a..a8b80db 100644 --- a/docs/StatusInfo.md +++ b/docs/StatusInfo.md @@ -1,5 +1,6 @@ # StatusInfo +StatusInfo ## Properties @@ -15,7 +16,7 @@ Name | Type | Description | Notes **progress** | **int** | | [optional] **started** | **datetime** | | [optional] **status** | [**StatusCode**](StatusCode.md) | | -**type** | **object** | | +**type** | **str** | | **updated** | **datetime** | | [optional] ## Example diff --git a/docs/Storageoutputsmin.md b/docs/Storageoutputsmin.md new file mode 100644 index 0000000..ec4bb79 --- /dev/null +++ b/docs/Storageoutputsmin.md @@ -0,0 +1,27 @@ +# Storageoutputsmin + +Minimum required output storage size (unit is GB) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.storageoutputsmin import Storageoutputsmin + +# TODO update the JSON string below +json = "{}" +# create an instance of Storageoutputsmin from a JSON string +storageoutputsmin_instance = Storageoutputsmin.from_json(json) +# print the JSON string representation of the object +print(Storageoutputsmin.to_json()) + +# convert the object into a dict +storageoutputsmin_dict = storageoutputsmin_instance.to_dict() +# create an instance of Storageoutputsmin from a dict +storageoutputsmin_from_dict = Storageoutputsmin.from_dict(storageoutputsmin_dict) +``` +[[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/Storagetempmin.md b/docs/Storagetempmin.md new file mode 100644 index 0000000..cac8949 --- /dev/null +++ b/docs/Storagetempmin.md @@ -0,0 +1,27 @@ +# Storagetempmin + +Minimum required temporary storage size (unit is GB) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from unity_sps_ogc_processes_api_python_client.models.storagetempmin import Storagetempmin + +# TODO update the JSON string below +json = "{}" +# create an instance of Storagetempmin from a JSON string +storagetempmin_instance = Storagetempmin.from_json(json) +# print the JSON string representation of the object +print(Storagetempmin.to_json()) + +# convert the object into a dict +storagetempmin_dict = storagetempmin_instance.to_dict() +# create an instance of Storagetempmin from a dict +storagetempmin_from_dict = Storagetempmin.from_dict(storagetempmin_dict) +``` +[[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/Subscriber.md b/docs/Subscriber.md index af868ba..4c9b1d2 100644 --- a/docs/Subscriber.md +++ b/docs/Subscriber.md @@ -1,5 +1,6 @@ # Subscriber +Optional URIs for callbacks for this job. Support for this parameter is not required and the parameter may be removed from the API definition, if conformance class **'callback'** is not listed in the conformance declaration under `/conformance`. ## Properties diff --git a/openapi.json b/openapi.json index f062bc4..09af8ac 100644 --- a/openapi.json +++ b/openapi.json @@ -2,10 +2,18 @@ "components": { "schemas": { "Bbox": { + "description": "Bbox", "properties": { "bbox": { "items": { - "type": "number" + "anyOf": [ + { + "type": "number" + }, + { + "type": "integer" + } + ] }, "title": "Bbox", "type": "array" @@ -13,32 +21,97 @@ "crs": { "anyOf": [ { - "$ref": "#/components/schemas/Crs5" + "$ref": "#/components/schemas/BboxDefCrs" }, { - "format": "uri", - "minLength": 1, - "type": "string" + "type": "null" + } + ] + } + }, + "required": [ + "bbox" + ], + "title": "Bbox", + "type": "object" + }, + "Bbox1": { + "description": "Bbox1", + "properties": { + "bbox": { + "items": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "integer" + } + ] + }, + "title": "Bbox", + "type": "array" + }, + "crs": { + "anyOf": [ + { + "$ref": "#/components/schemas/BboxDefCrs" }, { "type": "null" } - ], - "default": "http://www.opengis.net/def/crs/OGC/1.3/CRS84", - "title": "Crs" + ] } }, "required": [ "bbox" ], - "title": "Bbox", + "title": "Bbox1", "type": "object" }, - "BinaryInputValue": { - "title": "BinaryInputValue", - "type": "string" + "BboxDefCrs": { + "description": "BboxDefCrs", + "properties": { + "actual_instance": { + "title": "Actual Instance" + }, + "any_of_schemas": { + "items": { + "type": "string" + }, + "title": "Any Of Schemas", + "type": "array" + }, + "anyof_schema_1_validator": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "http://www.opengis.net/def/crs/OGC/1.3/CRS84", + "title": "Anyof Schema 1 Validator" + }, + "anyof_schema_2_validator": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "http://www.opengis.net/def/crs/OGC/1.3/CRS84", + "title": "Anyof Schema 2 Validator" + } + }, + "title": "BboxDefCrs", + "type": "object" }, "ConfClasses": { + "description": "ConfClasses", "properties": { "conformsTo": { "items": { @@ -54,17 +127,36 @@ "title": "ConfClasses", "type": "object" }, - "Crs5": { - "enum": [ - "http://www.opengis.net/def/crs/OGC/1.3/CRS84", - "http://www.opengis.net/def/crs/OGC/0/CRS84h" + "Enumeration": { + "description": "Enumeration", + "properties": { + "enum": { + "items": { + "type": "string" + }, + "title": "Enum", + "type": "array" + }, + "type": { + "title": "Type", + "type": "string" + } + }, + "required": [ + "type", + "enum" ], - "title": "Crs5", - "type": "string" + "title": "Enumeration", + "type": "object" }, "Exception": { - "additionalProperties": true, + "description": "JSON schema for exceptions based on RFC 7807", "properties": { + "additional_properties": { + "default": {}, + "title": "Additional Properties", + "type": "object" + }, "detail": { "anyOf": [ { @@ -120,90 +212,49 @@ "title": "Exception", "type": "object" }, - "Execute": { - "properties": { - "inputs": { - "anyOf": [ - {}, - { - "type": "null" - } - ], - "title": "Inputs" - }, - "outputs": { - "anyOf": [ - {}, - { - "type": "null" - } - ], - "title": "Outputs" - }, - "subscriber": { - "anyOf": [ - { - "$ref": "#/components/schemas/Subscriber" - }, - { - "type": "null" - } - ] - } - }, - "title": "Execute", - "type": "object" - }, - "HTTPValidationError": { - "properties": { - "detail": { - "items": { - "$ref": "#/components/schemas/ValidationError" - }, - "title": "Detail", - "type": "array" - } - }, - "title": "HTTPValidationError", - "type": "object" - }, - "HealthCheck": { - "description": "Response model to validate and return when performing a health check.", - "properties": { - "status": { - "default": "OK", - "title": "Status", - "type": "string" - } - }, - "title": "HealthCheck", - "type": "object" - }, - "InputValue-Input": { + "Execute200Response-Input": { "anyOf": [ { - "$ref": "#/components/schemas/InputValueNoObject-Input" - }, - { + "additionalProperties": { + "anyOf": [ + { + "$ref": "#/components/schemas/Bbox" + }, + { + "items": {}, + "type": "array" + }, + { + "type": "boolean" + }, + { + "type": "number" + }, + { + "type": "integer" + }, + { + "type": "string" + }, + { + "$ref": "#/components/schemas/Link" + }, + { + "$ref": "#/components/schemas/QualifiedInputValue-Input" + } + ] + }, "type": "object" - } - ], - "title": "InputValue" - }, - "InputValue-Output": { - "anyOf": [ + }, { - "$ref": "#/components/schemas/InputValueNoObject-Output" + "items": {}, + "type": "array" }, { - "type": "object" - } - ], - "title": "InputValue" - }, - "InputValueNoObject-Input": { - "anyOf": [ + "type": "boolean" + }, { + "format": "file-path", "type": "string" }, { @@ -213,84 +264,354 @@ "type": "integer" }, { - "type": "boolean" - }, - { - "items": {}, - "type": "array" - }, - { - "$ref": "#/components/schemas/BinaryInputValue" + "type": "object" }, { - "$ref": "#/components/schemas/Bbox" + "type": "string" } ], - "title": "InputValueNoObject" + "title": "Execute200Response" }, - "InputValueNoObject-Output": { + "Execute200Response-Output": { "anyOf": [ { - "type": "string" + "additionalProperties": { + "anyOf": [ + { + "$ref": "#/components/schemas/Bbox" + }, + { + "items": {}, + "type": "array" + }, + { + "type": "boolean" + }, + { + "type": "number" + }, + { + "type": "integer" + }, + { + "type": "string" + }, + { + "$ref": "#/components/schemas/Link" + }, + { + "$ref": "#/components/schemas/QualifiedInputValue-Output" + } + ] + }, + "type": "object" }, { - "type": "number" + "items": {}, + "type": "array" }, { - "type": "integer" + "type": "boolean" }, { - "type": "boolean" + "format": "file-path", + "type": "string" }, { - "items": {}, - "type": "array" + "type": "number" }, { - "$ref": "#/components/schemas/BinaryInputValue" + "type": "integer" }, { - "$ref": "#/components/schemas/Bbox" + "type": "object" + }, + { + "type": "string" } ], - "title": "InputValueNoObject" - }, - "JobControlOptions": { - "enum": [ - "sync-execute", - "async-execute", - "dismiss" - ], - "title": "JobControlOptions", - "type": "string" + "title": "Execute200Response" }, - "JobList": { + "ExecuteWorkflows": { + "description": "ExecuteWorkflows", "properties": { - "jobs": { - "items": { - "$ref": "#/components/schemas/StatusInfo" - }, - "title": "Jobs", - "type": "array" - }, - "links": { - "items": { - "$ref": "#/components/schemas/Link" - }, - "title": "Links", - "type": "array" + "filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Filter" + }, + "inputs": { + "anyOf": [ + { + "additionalProperties": { + "$ref": "#/components/schemas/InputWorkflows" + }, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Inputs" + }, + "outputs": { + "anyOf": [ + { + "additionalProperties": { + "$ref": "#/components/schemas/OutputWorkflows" + }, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Outputs" + }, + "process": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "URI to the process execution end point (i.e., `.../processes/{processId}/execution`)", + "title": "Process" + }, + "properties": { + "anyOf": [ + { + "$ref": "#/components/schemas/FieldsModifiersProperties" + }, + { + "type": "null" + } + ] + }, + "sortBy": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Sortby" + }, + "subscriber": { + "anyOf": [ + { + "$ref": "#/components/schemas/Subscriber" + }, + { + "type": "null" + } + ] + } + }, + "title": "ExecuteWorkflows", + "type": "object" + }, + "ExecutionUnit": { + "description": "Resource containing an executable or runtime information for executing the process.", + "properties": { + "additional_properties": { + "default": {}, + "title": "Additional Properties", + "type": "object" + }, + "config": { + "anyOf": [ + { + "$ref": "#/components/schemas/ExecutionUnitConfig" + }, + { + "type": "null" + } + ] + }, + "deployment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "Deployment information for the execution unit.", + "title": "Deployment" + }, + "image": { + "description": "Container image reference for the execution unit.", + "title": "Image", + "type": "string" + }, + "type": { + "description": "Type of execution unit.", + "title": "Type", + "type": "string" } }, "required": [ - "jobs", - "links" + "type", + "image" ], - "title": "JobList", + "title": "ExecutionUnit", "type": "object" }, - "LandingPage": { + "ExecutionUnitConfig": { + "description": "Hardware requirements and configuration properties for executing the process.", "properties": { - "attribution": { + "additional_properties": { + "default": {}, + "title": "Additional Properties", + "type": "object" + }, + "cpuMax": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ], + "description": "Maximum number of CPU dedicated to the process (unit is CPU core)", + "title": "Cpumax" + }, + "cpuMin": { + "anyOf": [ + { + "minimum": 1.0, + "type": "number" + }, + { + "minimum": 1.0, + "type": "integer" + }, + { + "type": "null" + } + ], + "description": "Minimum number of CPUs required to run the process (unit is CPU core).", + "title": "Cpumin" + }, + "jobTimeout": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ], + "description": "Timeout delay for a job execution (in seconds)", + "title": "Jobtimeout" + }, + "memoryMax": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ], + "description": "Maximum RAM memory dedicated to the application (unit is GB)", + "title": "Memorymax" + }, + "memoryMin": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ], + "description": "Minimum RAM memory required to run the application (unit is GB)", + "title": "Memorymin" + }, + "storageOutputsMin": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ], + "description": "Minimum required output storage size (unit is GB)", + "title": "Storageoutputsmin" + }, + "storageTempMin": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ], + "description": "Minimum required temporary storage size (unit is GB)", + "title": "Storagetempmin" + } + }, + "title": "ExecutionUnitConfig", + "type": "object" + }, + "FieldsModifiersProperties": { + "anyOf": [ + { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + { + "items": { + "type": "string" + }, + "type": "array" + } + ], + "title": "FieldsModifiersProperties" + }, + "Format": { + "description": "Format", + "properties": { + "encoding": { "anyOf": [ { "type": "string" @@ -299,10 +620,9 @@ "type": "null" } ], - "description": "The `attribution` should be short and intended for presentation to a user, for example, in a corner of a map. Parts of the text can be links to other resources if additional information is needed. The string can include HTML markup.", - "title": "attribution for the Processes API" + "title": "Encoding" }, - "description": { + "mediaType": { "anyOf": [ { "type": "string" @@ -311,66 +631,3144 @@ "type": "null" } ], - "example": "Example server implementing the OGC API - Processes 1.0 Standard", - "title": "Description" + "title": "Mediatype" }, - "links": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/FormatSchema" + }, + { + "type": "null" + } + ] + } + }, + "title": "Format", + "type": "object" + }, + "FormatSchema": { + "description": "FormatSchema", + "properties": { + "actual_instance": { + "anyOf": [ + {}, + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Actual Instance" + }, + "one_of_schemas": { "items": { - "$ref": "#/components/schemas/Link" + "type": "string" }, - "title": "Links", + "title": "One Of Schemas", "type": "array" }, - "title": { + "oneof_schema_1_validator": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 1 Validator" + }, + "oneof_schema_2_validator": { + "anyOf": [ + { + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 2 Validator" + } + }, + "title": "FormatSchema", + "type": "object" + }, + "HTTPValidationError": { + "properties": { + "detail": { + "items": { + "$ref": "#/components/schemas/ValidationError" + }, + "title": "Detail", + "type": "array" + } + }, + "title": "HTTPValidationError", + "type": "object" + }, + "HealthCheck": { + "properties": { + "status": { + "const": "OK", + "title": "Status" + } + }, + "required": [ + "status" + ], + "title": "HealthCheck", + "type": "object" + }, + "InlineOrRefData-Input": { + "anyOf": [ + { + "$ref": "#/components/schemas/Bbox" + }, + { + "items": {}, + "type": "array" + }, + { + "type": "boolean" + }, + { + "type": "number" + }, + { + "type": "integer" + }, + { + "type": "string" + }, + { + "$ref": "#/components/schemas/Link" + }, + { + "$ref": "#/components/schemas/QualifiedInputValue-Input" + } + ], + "title": "InlineOrRefData" + }, + "InlineOrRefData-Output": { + "anyOf": [ + { + "$ref": "#/components/schemas/Bbox" + }, + { + "items": {}, + "type": "array" + }, + { + "type": "boolean" + }, + { + "type": "number" + }, + { + "type": "integer" + }, + { + "type": "string" + }, + { + "$ref": "#/components/schemas/Link" + }, + { + "$ref": "#/components/schemas/QualifiedInputValue-Output" + } + ], + "title": "InlineOrRefData" + }, + "InlineOrRefDataWorkflows": { + "description": "InlineOrRefDataWorkflows", + "properties": { + "actual_instance": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputValueNoObjectWorkflows" + }, + { + "$ref": "#/components/schemas/Link" + }, + { + "$ref": "#/components/schemas/QualifiedInputValueWorkflows" + }, + { + "type": "null" + } + ], + "title": "Actual Instance" + }, + "one_of_schemas": { + "items": { + "type": "string" + }, + "title": "One Of Schemas", + "type": "array" + }, + "oneof_schema_1_validator": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputValueNoObjectWorkflows" + }, + { + "type": "null" + } + ] + }, + "oneof_schema_2_validator": { + "anyOf": [ + { + "$ref": "#/components/schemas/QualifiedInputValueWorkflows" + }, + { + "type": "null" + } + ] + }, + "oneof_schema_3_validator": { + "anyOf": [ + { + "$ref": "#/components/schemas/Link" + }, + { + "type": "null" + } + ] + } + }, + "title": "InlineOrRefDataWorkflows", + "type": "object" + }, + "InputCollection": { + "description": "InputCollection", + "properties": { + "collection": { + "title": "Collection", + "type": "string" + }, + "filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Filter" + }, + "properties": { + "anyOf": [ + { + "$ref": "#/components/schemas/FieldsModifiersProperties" + }, + { + "type": "null" + } + ] + }, + "sortBy": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Sortby" + } + }, + "required": [ + "collection" + ], + "title": "InputCollection", + "type": "object" + }, + "InputDescription-Input": { + "description": "InputDescription", + "properties": { + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Description" + }, + "keywords": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Keywords" + }, + "maxOccurs": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Maxoccurs" + }, + "metadata": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/Metadata-Input" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, + "minOccurs": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": 1, + "title": "Minoccurs" + }, + "schema": { + "$ref": "#/components/schemas/ModelSchema-Input" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Title" + }, + "valuePassing": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Valuepassing" + } + }, + "required": [ + "schema", + "maxOccurs" + ], + "title": "InputDescription", + "type": "object" + }, + "InputDescription-Output": { + "description": "InputDescription", + "properties": { + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Description" + }, + "keywords": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Keywords" + }, + "maxOccurs": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Maxoccurs" + }, + "metadata": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/Metadata-Output" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, + "minOccurs": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": 1, + "title": "Minoccurs" + }, + "schema": { + "$ref": "#/components/schemas/ModelSchema-Output" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Title" + }, + "valuePassing": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Valuepassing" + } + }, + "required": [ + "schema", + "maxOccurs" + ], + "title": "InputDescription", + "type": "object" + }, + "InputParameterized": { + "description": "InputParameterized", + "properties": { + "$input": { + "title": "$Input", + "type": "string" + }, + "filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Filter" + }, + "properties": { + "anyOf": [ + { + "$ref": "#/components/schemas/FieldsModifiersProperties" + }, + { + "type": "null" + } + ] + }, + "sortBy": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Sortby" + } + }, + "required": [ + "$input" + ], + "title": "InputParameterized", + "type": "object" + }, + "InputProcess": { + "description": "InputProcess", + "properties": { + "filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Filter" + }, + "inputs": { + "anyOf": [ + { + "additionalProperties": { + "$ref": "#/components/schemas/InputWorkflows1" + }, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Inputs" + }, + "outputs": { + "anyOf": [ + { + "additionalProperties": { + "$ref": "#/components/schemas/OutputWorkflows1" + }, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Outputs" + }, + "process": { + "description": "URI to the process execution end point (i.e., `.../processes/{processId}/execution`)", + "title": "Process", + "type": "string" + }, + "properties": { + "anyOf": [ + { + "$ref": "#/components/schemas/FieldsModifiersProperties" + }, + { + "type": "null" + } + ] + }, + "sortBy": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Sortby" + }, + "subscriber": { + "anyOf": [ + { + "$ref": "#/components/schemas/Subscriber" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "process" + ], + "title": "InputProcess", + "type": "object" + }, + "InputValue-Input": { + "description": "InputValue", + "properties": { + "actual_instance": { + "title": "Actual Instance" + }, + "any_of_schemas": { + "items": { + "type": "string" + }, + "title": "Any Of Schemas", + "type": "array" + }, + "anyof_schema_1_validator": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputValueNoObject-Input" + }, + { + "type": "null" + } + ] + }, + "anyof_schema_2_validator": { + "anyOf": [ + { + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Anyof Schema 2 Validator" + } + }, + "title": "InputValue", + "type": "object" + }, + "InputValue-Output": { + "description": "InputValue", + "properties": { + "actual_instance": { + "title": "Actual Instance" + }, + "any_of_schemas": { + "items": { + "type": "string" + }, + "title": "Any Of Schemas", + "type": "array" + }, + "anyof_schema_1_validator": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputValueNoObject-Output" + }, + { + "type": "null" + } + ] + }, + "anyof_schema_2_validator": { + "anyOf": [ + { + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Anyof Schema 2 Validator" + } + }, + "title": "InputValue", + "type": "object" + }, + "InputValueNoObject-Input": { + "description": "InputValueNoObject", + "properties": { + "actual_instance": { + "anyOf": [ + { + "$ref": "#/components/schemas/Bbox" + }, + { + "items": {}, + "type": "array" + }, + { + "type": "boolean" + }, + { + "type": "number" + }, + { + "type": "integer" + }, + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Actual Instance" + }, + "one_of_schemas": { + "items": { + "type": "string" + }, + "title": "One Of Schemas", + "type": "array" + }, + "oneof_schema_1_validator": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 1 Validator" + }, + "oneof_schema_2_validator": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 2 Validator" + }, + "oneof_schema_3_validator": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 3 Validator" + }, + "oneof_schema_4_validator": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 4 Validator" + }, + "oneof_schema_5_validator": { + "anyOf": [ + { + "items": { + "type": "object" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 5 Validator" + }, + "oneof_schema_6_validator": { + "anyOf": [ + { + "format": "binary", + "type": "string" + }, + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 6 Validator" + }, + "oneof_schema_7_validator": { + "anyOf": [ + { + "$ref": "#/components/schemas/Bbox" + }, + { + "type": "null" + } + ] + } + }, + "title": "InputValueNoObject", + "type": "object" + }, + "InputValueNoObject-Output": { + "description": "InputValueNoObject", + "properties": { + "actual_instance": { + "anyOf": [ + { + "$ref": "#/components/schemas/Bbox" + }, + { + "items": {}, + "type": "array" + }, + { + "type": "boolean" + }, + { + "type": "number" + }, + { + "type": "integer" + }, + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Actual Instance" + }, + "one_of_schemas": { + "items": { + "type": "string" + }, + "title": "One Of Schemas", + "type": "array" + }, + "oneof_schema_1_validator": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 1 Validator" + }, + "oneof_schema_2_validator": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 2 Validator" + }, + "oneof_schema_3_validator": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 3 Validator" + }, + "oneof_schema_4_validator": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 4 Validator" + }, + "oneof_schema_5_validator": { + "anyOf": [ + { + "items": { + "type": "object" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 5 Validator" + }, + "oneof_schema_6_validator": { + "anyOf": [ + { + "format": "binary", + "type": "string" + }, + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 6 Validator" + }, + "oneof_schema_7_validator": { + "anyOf": [ + { + "$ref": "#/components/schemas/Bbox" + }, + { + "type": "null" + } + ] + } + }, + "title": "InputValueNoObject", + "type": "object" + }, + "InputValueNoObjectWorkflows": { + "description": "InputValueNoObjectWorkflows", + "properties": { + "actual_instance": { + "anyOf": [ + { + "$ref": "#/components/schemas/Bbox1" + }, + { + "$ref": "#/components/schemas/InputCollection" + }, + { + "$ref": "#/components/schemas/InputParameterized" + }, + { + "$ref": "#/components/schemas/InputProcess" + }, + { + "items": {}, + "type": "array" + }, + { + "type": "boolean" + }, + { + "type": "number" + }, + { + "type": "integer" + }, + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Actual Instance" + }, + "one_of_schemas": { + "items": { + "type": "string" + }, + "title": "One Of Schemas", + "type": "array" + }, + "oneof_schema_10_validator": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputParameterized" + }, + { + "type": "null" + } + ] + }, + "oneof_schema_1_validator": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 1 Validator" + }, + "oneof_schema_2_validator": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 2 Validator" + }, + "oneof_schema_3_validator": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 3 Validator" + }, + "oneof_schema_4_validator": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 4 Validator" + }, + "oneof_schema_5_validator": { + "anyOf": [ + { + "items": { + "type": "object" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 5 Validator" + }, + "oneof_schema_6_validator": { + "anyOf": [ + { + "format": "binary", + "type": "string" + }, + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 6 Validator" + }, + "oneof_schema_7_validator": { + "anyOf": [ + { + "$ref": "#/components/schemas/Bbox1" + }, + { + "type": "null" + } + ] + }, + "oneof_schema_8_validator": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputCollection" + }, + { + "type": "null" + } + ] + }, + "oneof_schema_9_validator": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputProcess" + }, + { + "type": "null" + } + ] + } + }, + "title": "InputValueNoObjectWorkflows", + "type": "object" + }, + "InputValueWorkflows": { + "description": "InputValueWorkflows", + "properties": { + "actual_instance": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputValueNoObjectWorkflows" + }, + {}, + { + "type": "null" + } + ], + "title": "Actual Instance" + }, + "one_of_schemas": { + "items": { + "type": "string" + }, + "title": "One Of Schemas", + "type": "array" + }, + "oneof_schema_1_validator": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputValueNoObjectWorkflows" + }, + { + "type": "null" + } + ] + }, + "oneof_schema_2_validator": { + "anyOf": [ + { + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 2 Validator" + } + }, + "title": "InputValueWorkflows", + "type": "object" + }, + "InputWorkflows": { + "anyOf": [ + { + "$ref": "#/components/schemas/Bbox1" + }, + { + "$ref": "#/components/schemas/InputCollection" + }, + { + "$ref": "#/components/schemas/InputParameterized" + }, + { + "$ref": "#/components/schemas/InputProcess" + }, + { + "items": {}, + "type": "array" + }, + { + "type": "boolean" + }, + { + "type": "number" + }, + { + "type": "integer" + }, + { + "type": "string" + }, + { + "$ref": "#/components/schemas/Link" + }, + { + "$ref": "#/components/schemas/QualifiedInputValueWorkflows" + }, + { + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/Bbox1" + }, + { + "$ref": "#/components/schemas/InputCollection" + }, + { + "$ref": "#/components/schemas/InputParameterized" + }, + { + "$ref": "#/components/schemas/InputProcess" + }, + { + "items": {}, + "type": "array" + }, + { + "type": "boolean" + }, + { + "type": "number" + }, + { + "type": "integer" + }, + { + "type": "string" + }, + { + "$ref": "#/components/schemas/Link" + }, + { + "$ref": "#/components/schemas/QualifiedInputValueWorkflows" + } + ] + }, + "type": "array" + } + ], + "title": "InputWorkflows" + }, + "InputWorkflows1": { + "description": "InputWorkflows1", + "properties": { + "actual_instance": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineOrRefDataWorkflows" + }, + { + "items": { + "$ref": "#/components/schemas/InlineOrRefDataWorkflows" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Actual Instance" + }, + "one_of_schemas": { + "items": { + "type": "string" + }, + "title": "One Of Schemas", + "type": "array" + }, + "oneof_schema_1_validator": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineOrRefDataWorkflows" + }, + { + "type": "null" + } + ] + }, + "oneof_schema_2_validator": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/InlineOrRefDataWorkflows" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 2 Validator" + } + }, + "title": "InputWorkflows1", + "type": "object" + }, + "JobControlOptions": { + "description": "JobControlOptions", + "enum": [ + "sync-execute", + "async-execute", + "dismiss" + ], + "title": "JobControlOptions", + "type": "string" + }, + "JobList-Input": { + "description": "JobList", + "properties": { + "jobs": { + "items": { + "$ref": "#/components/schemas/StatusInfo" + }, + "title": "Jobs", + "type": "array" + }, + "links": { + "items": { + "$ref": "#/components/schemas/Link" + }, + "title": "Links", + "type": "array" + } + }, + "required": [ + "jobs", + "links" + ], + "title": "JobList", + "type": "object" + }, + "JobList-Output": { + "description": "JobList", + "properties": { + "jobs": { + "items": { + "$ref": "#/components/schemas/StatusInfo" + }, + "title": "Jobs", + "type": "array" + }, + "links": { + "items": { + "$ref": "#/components/schemas/Link" + }, + "title": "Links", + "type": "array" + } + }, + "required": [ + "jobs", + "links" + ], + "title": "JobList", + "type": "object" + }, + "LandingPage": { + "description": "LandingPage", + "properties": { + "attribution": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "The `attribution` should be short and intended for presentation to a user, for example, in a corner of a map. Parts of the text can be links to other resources if additional information is needed. The string can include HTML markup.", + "title": "Attribution" + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Description" + }, + "links": { + "items": { + "$ref": "#/components/schemas/Link" + }, + "title": "Links", + "type": "array" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Title" + } + }, + "required": [ + "links" + ], + "title": "LandingPage", + "type": "object" + }, + "Link": { + "description": "Link", + "properties": { + "href": { + "title": "Href", + "type": "string" + }, + "hreflang": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Hreflang" + }, + "rel": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Rel" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Title" + }, + "type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Type" + } + }, + "required": [ + "href" + ], + "title": "Link", + "type": "object" + }, + "Metadata-Input": { + "anyOf": [ + { + "$ref": "#/components/schemas/MetadataOneOf" + }, + { + "$ref": "#/components/schemas/MetadataOneOf1" + } + ], + "title": "Metadata" + }, + "Metadata-Output": { + "anyOf": [ + { + "$ref": "#/components/schemas/MetadataOneOf" + }, + { + "$ref": "#/components/schemas/MetadataOneOf1" + } + ], + "title": "Metadata" + }, + "MetadataOneOf": { + "description": "MetadataOneOf", + "properties": { + "href": { + "title": "Href", + "type": "string" + }, + "hreflang": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Hreflang" + }, + "rel": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Rel" + }, + "role": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Role" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Title" + }, + "type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Type" + } + }, + "required": [ + "href" + ], + "title": "MetadataOneOf", + "type": "object" + }, + "MetadataOneOf1": { + "description": "MetadataOneOf1", + "properties": { + "lang": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Lang" + }, + "role": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Role" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Title" + }, + "value": { + "anyOf": [ + { + "$ref": "#/components/schemas/MetadataOneOf1Value" + }, + { + "type": "null" + } + ] + } + }, + "title": "MetadataOneOf1", + "type": "object" + }, + "MetadataOneOf1Value": { + "description": "MetadataOneOf1Value", + "properties": { + "actual_instance": { + "anyOf": [ + {}, + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Actual Instance" + }, + "one_of_schemas": { + "items": { + "type": "string" + }, + "title": "One Of Schemas", + "type": "array" + }, + "oneof_schema_1_validator": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 1 Validator" + }, + "oneof_schema_2_validator": { + "anyOf": [ + { + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Oneof Schema 2 Validator" + } + }, + "title": "MetadataOneOf1Value", + "type": "object" + }, + "ModelSchema-Input": { + "anyOf": [ + { + "$ref": "#/components/schemas/Reference" + }, + { + "$ref": "#/components/schemas/SchemaOneOf-Input" + } + ], + "title": "ModelSchema" + }, + "ModelSchema-Output": { + "anyOf": [ + { + "$ref": "#/components/schemas/Reference" + }, + { + "$ref": "#/components/schemas/SchemaOneOf-Output" + } + ], + "title": "ModelSchema" + }, + "Ogcapppkg": { + "description": "Ogcapppkg", + "properties": { + "executionUnit": { + "$ref": "#/components/schemas/OgcapppkgExecutionUnit" + }, + "processDescription": { + "$ref": "#/components/schemas/Process-Input" + } + }, + "required": [ + "processDescription", + "executionUnit" + ], + "title": "Ogcapppkg", + "type": "object" + }, + "OgcapppkgExecutionUnit": { + "anyOf": [ + { + "$ref": "#/components/schemas/ExecutionUnit" + }, + { + "$ref": "#/components/schemas/Link" + }, + { + "$ref": "#/components/schemas/QualifiedInputValue-Input" + }, + { + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/ExecutionUnit" + }, + { + "$ref": "#/components/schemas/Link" + }, + { + "$ref": "#/components/schemas/QualifiedInputValue-Input" + } + ] + }, + "type": "array" + } + ], + "title": "OgcapppkgExecutionUnit" + }, + "OutputDescription-Input": { + "description": "OutputDescription", + "properties": { + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Description" + }, + "keywords": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Keywords" + }, + "metadata": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/Metadata-Input" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, + "schema": { + "$ref": "#/components/schemas/ModelSchema-Input" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Title" + } + }, + "required": [ + "schema" + ], + "title": "OutputDescription", + "type": "object" + }, + "OutputDescription-Output": { + "description": "OutputDescription", + "properties": { + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Description" + }, + "keywords": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Keywords" + }, + "metadata": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/Metadata-Output" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, + "schema": { + "$ref": "#/components/schemas/ModelSchema-Output" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Title" + } + }, + "required": [ + "schema" + ], + "title": "OutputDescription", + "type": "object" + }, + "OutputWorkflows": { + "description": "OutputWorkflows", + "properties": { + "$output": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "$Output" + }, + "format": { + "anyOf": [ + { + "$ref": "#/components/schemas/Format" + }, + { + "type": "null" + } + ] + } + }, + "title": "OutputWorkflows", + "type": "object" + }, + "OutputWorkflows1": { + "description": "OutputWorkflows1", + "properties": { + "$output": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "$Output" + }, + "format": { + "anyOf": [ + { + "$ref": "#/components/schemas/Format" + }, + { + "type": "null" + } + ] + } + }, + "title": "OutputWorkflows1", + "type": "object" + }, + "Process-Input": { + "description": "Process", + "properties": { + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Description" + }, + "id": { + "title": "Id", + "type": "string" + }, + "inputs": { + "anyOf": [ + { + "additionalProperties": { + "$ref": "#/components/schemas/InputDescription-Input" + }, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Inputs" + }, + "jobControlOptions": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/JobControlOptions" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Jobcontroloptions" + }, + "keywords": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Keywords" + }, + "links": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/Link" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Links" + }, + "metadata": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/Metadata-Input" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, + "outputs": { + "anyOf": [ + { + "additionalProperties": { + "$ref": "#/components/schemas/OutputDescription-Input" + }, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Outputs" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Title" + }, + "version": { + "title": "Version", + "type": "string" + } + }, + "required": [ + "id", + "version" + ], + "title": "Process", + "type": "object" + }, + "Process-Output": { + "description": "Process", + "properties": { + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Description" + }, + "id": { + "title": "Id", + "type": "string" + }, + "inputs": { + "anyOf": [ + { + "additionalProperties": { + "$ref": "#/components/schemas/InputDescription-Output" + }, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Inputs" + }, + "jobControlOptions": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/JobControlOptions" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Jobcontroloptions" + }, + "keywords": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Keywords" + }, + "links": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/Link" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Links" + }, + "metadata": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/Metadata-Output" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, + "outputs": { + "anyOf": [ + { + "additionalProperties": { + "$ref": "#/components/schemas/OutputDescription-Output" + }, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Outputs" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Title" + }, + "version": { + "title": "Version", + "type": "string" + } + }, + "required": [ + "id", + "version" + ], + "title": "Process", + "type": "object" + }, + "ProcessList-Input": { + "description": "ProcessList", + "properties": { + "links": { + "items": { + "$ref": "#/components/schemas/Link" + }, + "title": "Links", + "type": "array" + }, + "processes": { + "items": { + "$ref": "#/components/schemas/ProcessSummary-Input" + }, + "title": "Processes", + "type": "array" + } + }, + "required": [ + "processes", + "links" + ], + "title": "ProcessList", + "type": "object" + }, + "ProcessList-Output": { + "description": "ProcessList", + "properties": { + "links": { + "items": { + "$ref": "#/components/schemas/Link" + }, + "title": "Links", + "type": "array" + }, + "processes": { + "items": { + "$ref": "#/components/schemas/ProcessSummary-Output" + }, + "title": "Processes", + "type": "array" + } + }, + "required": [ + "processes", + "links" + ], + "title": "ProcessList", + "type": "object" + }, + "ProcessSummary-Input": { + "description": "ProcessSummary", + "properties": { + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Description" + }, + "id": { + "title": "Id", + "type": "string" + }, + "jobControlOptions": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/JobControlOptions" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Jobcontroloptions" + }, + "keywords": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Keywords" + }, + "links": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/Link" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Links" + }, + "metadata": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/Metadata-Input" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Title" + }, + "version": { + "title": "Version", + "type": "string" + } + }, + "required": [ + "id", + "version" + ], + "title": "ProcessSummary", + "type": "object" + }, + "ProcessSummary-Output": { + "description": "ProcessSummary", + "properties": { + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Description" + }, + "id": { + "title": "Id", + "type": "string" + }, + "jobControlOptions": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/JobControlOptions" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Jobcontroloptions" + }, + "keywords": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Keywords" + }, + "links": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/Link" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Links" + }, + "metadata": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/Metadata-Output" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Title" + }, + "version": { + "title": "Version", + "type": "string" + } + }, + "required": [ + "id", + "version" + ], + "title": "ProcessSummary", + "type": "object" + }, + "QualifiedInputValue-Input": { + "description": "QualifiedInputValue", + "properties": { + "encoding": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Encoding" + }, + "mediaType": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Mediatype" + }, + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/FormatSchema" + }, + { + "type": "null" + } + ] + }, + "value": { + "$ref": "#/components/schemas/InputValue-Input" + } + }, + "required": [ + "value" + ], + "title": "QualifiedInputValue", + "type": "object" + }, + "QualifiedInputValue-Output": { + "description": "QualifiedInputValue", + "properties": { + "encoding": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Encoding" + }, + "mediaType": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Mediatype" + }, + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/FormatSchema" + }, + { + "type": "null" + } + ] + }, + "value": { + "$ref": "#/components/schemas/InputValue-Output" + } + }, + "required": [ + "value" + ], + "title": "QualifiedInputValue", + "type": "object" + }, + "QualifiedInputValueWorkflows": { + "description": "QualifiedInputValueWorkflows", + "properties": { + "encoding": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Encoding" + }, + "filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Filter" + }, + "mediaType": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Mediatype" + }, + "properties": { + "anyOf": [ + { + "$ref": "#/components/schemas/FieldsModifiersProperties" + }, + { + "type": "null" + } + ] + }, + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/FormatSchema" + }, + { + "type": "null" + } + ] + }, + "sortBy": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Sortby" + }, + "value": { + "$ref": "#/components/schemas/InputValueWorkflows" + } + }, + "required": [ + "value" + ], + "title": "QualifiedInputValueWorkflows", + "type": "object" + }, + "Reference": { + "description": "Reference", + "properties": { + "$ref": { + "title": "$Ref", + "type": "string" + } + }, + "required": [ + "$ref" + ], + "title": "Reference", + "type": "object" + }, + "Schema1-Input": { + "description": "Schema1", + "properties": { + "actual_instance": { + "anyOf": [ + { + "$ref": "#/components/schemas/Reference" + }, + { + "$ref": "#/components/schemas/SchemaOneOf-Input" + }, + { + "type": "null" + } + ], + "title": "Actual Instance" + }, + "one_of_schemas": { + "items": { + "type": "string" + }, + "title": "One Of Schemas", + "type": "array" + }, + "oneof_schema_1_validator": { + "anyOf": [ + { + "$ref": "#/components/schemas/Reference" + }, + { + "type": "null" + } + ] + }, + "oneof_schema_2_validator": { + "anyOf": [ + { + "$ref": "#/components/schemas/SchemaOneOf-Input" + }, + { + "type": "null" + } + ] + } + }, + "title": "Schema1", + "type": "object" + }, + "Schema1-Output": { + "description": "Schema1", + "properties": { + "actual_instance": { + "anyOf": [ + { + "$ref": "#/components/schemas/Reference" + }, + { + "$ref": "#/components/schemas/SchemaOneOf-Output" + }, + { + "type": "null" + } + ], + "title": "Actual Instance" + }, + "one_of_schemas": { + "items": { + "type": "string" + }, + "title": "One Of Schemas", + "type": "array" + }, + "oneof_schema_1_validator": { + "anyOf": [ + { + "$ref": "#/components/schemas/Reference" + }, + { + "type": "null" + } + ] + }, + "oneof_schema_2_validator": { + "anyOf": [ + { + "$ref": "#/components/schemas/SchemaOneOf-Output" + }, + { + "type": "null" + } + ] + } + }, + "title": "Schema1", + "type": "object" + }, + "SchemaOneOf-Input": { + "description": "SchemaOneOf", + "properties": { + "additionalProperties": { + "anyOf": [ + { + "$ref": "#/components/schemas/SchemaOneOfAdditionalProperties-Input" + }, + { + "type": "null" + } + ] + }, + "allOf": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/Schema1-Input" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Allof" + }, + "anyOf": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/Schema1-Input" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Anyof" + }, + "contentEncoding": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Contentencoding" + }, + "contentMediaType": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Contentmediatype" + }, + "contentSchema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Contentschema" + }, + "default": { + "anyOf": [ + { + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Default" + }, + "deprecated": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": false, + "title": "Deprecated" + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Description" + }, + "enum": { + "anyOf": [ + { + "items": { + "type": "object" + }, + "minItems": 1, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Enum" + }, + "example": { + "anyOf": [ + { + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Example" + }, + "exclusiveMaximum": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": false, + "title": "Exclusivemaximum" + }, + "exclusiveMinimum": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": false, + "title": "Exclusiveminimum" + }, + "format": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Format" + }, + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/Schema1-Input" + }, + { + "type": "null" + } + ] + }, + "maxItems": { + "anyOf": [ + { + "minimum": 0.0, + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Maxitems" + }, + "maxLength": { + "anyOf": [ + { + "minimum": 0.0, + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Maxlength" + }, + "maxProperties": { + "anyOf": [ + { + "minimum": 0.0, + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Maxproperties" + }, + "maximum": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Maximum" + }, + "minItems": { + "anyOf": [ + { + "minimum": 0.0, + "type": "integer" + }, + { + "type": "null" + } + ], + "default": 0, + "title": "Minitems" + }, + "minLength": { + "anyOf": [ + { + "minimum": 0.0, + "type": "integer" + }, + { + "type": "null" + } + ], + "default": 0, + "title": "Minlength" + }, + "minProperties": { + "anyOf": [ + { + "minimum": 0.0, + "type": "integer" + }, + { + "type": "null" + } + ], + "default": 0, + "title": "Minproperties" + }, + "minimum": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Minimum" + }, + "multipleOf": { + "anyOf": [ + { + "exclusiveMinimum": 0.0, + "type": "number" + }, + { + "exclusiveMinimum": 0.0, + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Multipleof" + }, + "not": { + "anyOf": [ + { + "$ref": "#/components/schemas/Schema1-Input" + }, + { + "type": "null" + } + ] + }, + "nullable": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": false, + "title": "Nullable" + }, + "oneOf": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/Schema1-Input" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Oneof" + }, + "pattern": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Pattern" + }, + "properties": { + "anyOf": [ + { + "additionalProperties": { + "$ref": "#/components/schemas/Schema1-Input" + }, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Properties" + }, + "readOnly": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": false, + "title": "Readonly" + }, + "required": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "minItems": 1, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Required" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Title" + }, + "type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Type" + }, + "uniqueItems": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": false, + "title": "Uniqueitems" + }, + "writeOnly": { "anyOf": [ { - "type": "string" + "type": "boolean" }, { "type": "null" } ], - "example": "Example processing server", - "title": "Title" + "default": false, + "title": "Writeonly" } }, - "required": [ - "links" - ], - "title": "LandingPage", + "title": "SchemaOneOf", "type": "object" }, - "Link": { + "SchemaOneOf-Output": { + "description": "SchemaOneOf", "properties": { - "href": { - "title": "Href", - "type": "string" + "additionalProperties": { + "anyOf": [ + { + "$ref": "#/components/schemas/SchemaOneOfAdditionalProperties-Output" + }, + { + "type": "null" + } + ] }, - "hreflang": { + "allOf": { "anyOf": [ { - "type": "string" + "items": { + "$ref": "#/components/schemas/Schema1-Output" + }, + "type": "array" }, { "type": "null" } ], - "example": "en", - "title": "Hreflang" + "title": "Allof" }, - "rel": { + "anyOf": { "anyOf": [ { - "type": "string" + "items": { + "$ref": "#/components/schemas/Schema1-Output" + }, + "type": "array" }, { "type": "null" } ], - "example": "service", - "title": "Rel" + "title": "Anyof" }, - "title": { + "contentEncoding": { "anyOf": [ { "type": "string" @@ -379,9 +3777,9 @@ "type": "null" } ], - "title": "Title" + "title": "Contentencoding" }, - "type": { + "contentMediaType": { "anyOf": [ { "type": "string" @@ -390,34 +3788,9 @@ "type": "null" } ], - "example": "application/json", - "title": "Type" - } - }, - "required": [ - "href" - ], - "title": "Link", - "type": "object" - }, - "Metadata": { - "anyOf": [ - { - "$ref": "#/components/schemas/Metadata1" - }, - { - "$ref": "#/components/schemas/Metadata2" - } - ], - "title": "Metadata" - }, - "Metadata1": { - "properties": { - "href": { - "title": "Href", - "type": "string" + "title": "Contentmediatype" }, - "hreflang": { + "contentSchema": { "anyOf": [ { "type": "string" @@ -426,33 +3799,32 @@ "type": "null" } ], - "example": "en", - "title": "Hreflang" + "title": "Contentschema" }, - "rel": { + "default": { "anyOf": [ { - "type": "string" + "type": "object" }, { "type": "null" } ], - "example": "service", - "title": "Rel" + "title": "Default" }, - "role": { + "deprecated": { "anyOf": [ { - "type": "string" + "type": "boolean" }, { "type": "null" } ], - "title": "Role" + "default": false, + "title": "Deprecated" }, - "title": { + "description": { "anyOf": [ { "type": "string" @@ -461,240 +3833,225 @@ "type": "null" } ], - "title": "Title" + "title": "Description" }, - "type": { + "enum": { "anyOf": [ { - "type": "string" + "items": { + "type": "object" + }, + "minItems": 1, + "type": "array" }, { "type": "null" } ], - "example": "application/json", - "title": "Type" - } - }, - "required": [ - "href" - ], - "title": "Metadata1", - "type": "object" - }, - "Metadata2": { - "properties": { - "lang": { + "title": "Enum" + }, + "example": { "anyOf": [ { - "type": "string" + "type": "object" }, { "type": "null" } ], - "title": "Lang" + "title": "Example" }, - "role": { + "exclusiveMaximum": { "anyOf": [ { - "type": "string" + "type": "boolean" }, { "type": "null" } ], - "title": "Role" + "default": false, + "title": "Exclusivemaximum" }, - "title": { + "exclusiveMinimum": { "anyOf": [ { - "type": "string" + "type": "boolean" }, { "type": "null" } ], - "title": "Title" + "default": false, + "title": "Exclusiveminimum" }, - "value": { + "format": { "anyOf": [ { "type": "string" }, { - "type": "object" + "type": "null" + } + ], + "title": "Format" + }, + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/Schema1-Output" }, { "type": "null" } - ], - "title": "Value" - } - }, - "title": "Metadata2", - "type": "object" - }, - "Process-Input": { - "properties": { - "description": { + ] + }, + "maxItems": { "anyOf": [ { - "type": "string" + "minimum": 0.0, + "type": "integer" }, { "type": "null" } ], - "title": "Description" - }, - "id": { - "title": "Id", - "type": "string" + "title": "Maxitems" }, - "inputs": { + "maxLength": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/InputValue-Input" - }, - "type": "array" + "minimum": 0.0, + "type": "integer" }, { "type": "null" } ], - "title": "Inputs" + "title": "Maxlength" }, - "jobControlOptions": { + "maxProperties": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/JobControlOptions" - }, - "type": "array" + "minimum": 0.0, + "type": "integer" }, { "type": "null" } ], - "title": "Jobcontroloptions" + "title": "Maxproperties" }, - "keywords": { + "maximum": { "anyOf": [ { - "items": { - "type": "string" - }, - "type": "array" + "type": "number" + }, + { + "type": "integer" }, { "type": "null" } ], - "title": "Keywords" + "title": "Maximum" }, - "links": { + "minItems": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/Link" - }, - "type": "array" + "minimum": 0.0, + "type": "integer" }, { "type": "null" } ], - "title": "Links" + "default": 0, + "title": "Minitems" }, - "metadata": { + "minLength": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/Metadata" - }, - "type": "array" + "minimum": 0.0, + "type": "integer" }, { "type": "null" } ], - "title": "Metadata" + "default": 0, + "title": "Minlength" }, - "outputs": { + "minProperties": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/InputValue-Input" - }, - "type": "array" + "minimum": 0.0, + "type": "integer" }, { "type": "null" } ], - "title": "Outputs" + "default": 0, + "title": "Minproperties" }, - "title": { + "minimum": { "anyOf": [ { - "type": "string" + "type": "number" + }, + { + "type": "integer" }, { "type": "null" } ], - "title": "Title" + "title": "Minimum" }, - "version": { - "title": "Version", - "type": "string" - } - }, - "required": [ - "id", - "version" - ], - "title": "Process", - "type": "object" - }, - "Process-Output": { - "properties": { - "description": { + "multipleOf": { "anyOf": [ { - "type": "string" + "exclusiveMinimum": 0.0, + "type": "number" + }, + { + "exclusiveMinimum": 0.0, + "type": "integer" }, { "type": "null" } ], - "title": "Description" + "title": "Multipleof" }, - "id": { - "title": "Id", - "type": "string" + "not": { + "anyOf": [ + { + "$ref": "#/components/schemas/Schema1-Output" + }, + { + "type": "null" + } + ] }, - "inputs": { + "nullable": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/InputValue-Output" - }, - "type": "array" + "type": "boolean" }, { "type": "null" } ], - "title": "Inputs" + "default": false, + "title": "Nullable" }, - "jobControlOptions": { + "oneOf": { "anyOf": [ { "items": { - "$ref": "#/components/schemas/JobControlOptions" + "$ref": "#/components/schemas/Schema1-Output" }, "type": "array" }, @@ -702,63 +4059,59 @@ "type": "null" } ], - "title": "Jobcontroloptions" + "title": "Oneof" }, - "keywords": { + "pattern": { "anyOf": [ { - "items": { - "type": "string" - }, - "type": "array" + "type": "string" }, { "type": "null" } ], - "title": "Keywords" + "title": "Pattern" }, - "links": { + "properties": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/Link" + "additionalProperties": { + "$ref": "#/components/schemas/Schema1-Output" }, - "type": "array" + "type": "object" }, { "type": "null" } ], - "title": "Links" + "title": "Properties" }, - "metadata": { + "readOnly": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/Metadata" - }, - "type": "array" + "type": "boolean" }, { "type": "null" } ], - "title": "Metadata" + "default": false, + "title": "Readonly" }, - "outputs": { + "required": { "anyOf": [ { "items": { - "$ref": "#/components/schemas/InputValue-Output" + "type": "string" }, + "minItems": 1, "type": "array" }, { "type": "null" } ], - "title": "Outputs" + "title": "Required" }, "title": { "anyOf": [ @@ -771,142 +4124,145 @@ ], "title": "Title" }, - "version": { - "title": "Version", - "type": "string" - } - }, - "required": [ - "id", - "version" - ], - "title": "Process", - "type": "object" - }, - "ProcessList": { - "properties": { - "links": { - "items": { - "$ref": "#/components/schemas/Link" - }, - "title": "Links", - "type": "array" + "type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Type" }, - "processes": { - "items": { - "$ref": "#/components/schemas/ProcessSummary" - }, - "title": "Processes", - "type": "array" + "uniqueItems": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": false, + "title": "Uniqueitems" + }, + "writeOnly": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": false, + "title": "Writeonly" } }, - "required": [ - "processes", - "links" - ], - "title": "ProcessList", + "title": "SchemaOneOf", "type": "object" }, - "ProcessSummary": { + "SchemaOneOfAdditionalProperties-Input": { + "description": "SchemaOneOfAdditionalProperties", "properties": { - "description": { + "actual_instance": { "anyOf": [ { - "type": "string" + "$ref": "#/components/schemas/Schema1-Input" + }, + { + "type": "boolean" }, { "type": "null" } ], - "title": "Description" + "title": "Actual Instance" }, - "id": { - "title": "Id", - "type": "string" + "one_of_schemas": { + "items": { + "type": "string" + }, + "title": "One Of Schemas", + "type": "array" }, - "jobControlOptions": { + "oneof_schema_1_validator": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/JobControlOptions" - }, - "type": "array" + "$ref": "#/components/schemas/Schema1-Input" }, { "type": "null" } - ], - "title": "Jobcontroloptions" + ] }, - "keywords": { + "oneof_schema_2_validator": { "anyOf": [ { - "items": { - "type": "string" - }, - "type": "array" + "type": "boolean" }, { "type": "null" } ], - "title": "Keywords" - }, - "links": { + "title": "Oneof Schema 2 Validator" + } + }, + "title": "SchemaOneOfAdditionalProperties", + "type": "object" + }, + "SchemaOneOfAdditionalProperties-Output": { + "description": "SchemaOneOfAdditionalProperties", + "properties": { + "actual_instance": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/Link" - }, - "type": "array" + "$ref": "#/components/schemas/Schema1-Output" + }, + { + "type": "boolean" }, { "type": "null" } ], - "title": "Links" + "title": "Actual Instance" }, - "metadata": { + "one_of_schemas": { + "items": { + "type": "string" + }, + "title": "One Of Schemas", + "type": "array" + }, + "oneof_schema_1_validator": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/Metadata" - }, - "type": "array" + "$ref": "#/components/schemas/Schema1-Output" }, { "type": "null" } - ], - "title": "Metadata" + ] }, - "title": { + "oneof_schema_2_validator": { "anyOf": [ { - "type": "string" + "type": "boolean" }, { "type": "null" } ], - "title": "Title" - }, - "version": { - "title": "Version", - "type": "string" + "title": "Oneof Schema 2 Validator" } }, - "required": [ - "id", - "version" - ], - "title": "ProcessSummary", + "title": "SchemaOneOfAdditionalProperties", "type": "object" }, - "Results": { - "title": "Results" - }, "StatusCode": { + "description": "StatusCode", "enum": [ "accepted", "running", @@ -918,6 +4274,7 @@ "type": "string" }, "StatusInfo": { + "description": "StatusInfo", "properties": { "created": { "anyOf": [ @@ -1022,7 +4379,8 @@ "$ref": "#/components/schemas/StatusCode" }, "type": { - "$ref": "#/components/schemas/Type2" + "title": "Type", + "type": "string" }, "updated": { "anyOf": [ @@ -1046,12 +4404,11 @@ "type": "object" }, "Subscriber": { + "description": "Optional URIs for callbacks for this job. Support for this parameter is not required and the parameter may be removed from the API definition, if conformance class **'callback'** is not listed in the conformance declaration under `/conformance`.", "properties": { "failedUri": { "anyOf": [ { - "format": "uri", - "minLength": 1, "type": "string" }, { @@ -1063,8 +4420,6 @@ "inProgressUri": { "anyOf": [ { - "format": "uri", - "minLength": 1, "type": "string" }, { @@ -1074,8 +4429,6 @@ "title": "Inprogressuri" }, "successUri": { - "format": "uri", - "minLength": 1, "title": "Successuri", "type": "string" } @@ -1086,10 +4439,6 @@ "title": "Subscriber", "type": "object" }, - "Type2": { - "const": "process", - "title": "Type2" - }, "ValidationError": { "properties": { "loc": { @@ -1134,15 +4483,27 @@ }, "info": { "description": "This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application.", - "title": "Unity Processing API conforming to the OGC API - Processes - Part 1 standard", - "version": "1.0.0" + "title": "Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy", + "version": "2.0.0" }, "openapi": "3.1.0", "paths": { "/": { "get": { - "description": "The landing page provides links to the:\n- API Definition (no fixed path),\n- Conformance Statements (`/conformance`),\n- Processes Metadata (`/processes`),\n- Endpoint for Job Monitoring (`/jobs`).\n\nFor more information, see [Section 7.2](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_landing_page).", - "operationId": "landing_page__get", + "operationId": "get_landing_page__get", + "parameters": [ + { + "description": "The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'.", + "in": "query", + "name": "f", + "required": false, + "schema": { + "description": "The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'.", + "title": "F", + "type": "string" + } + } + ], "responses": { "200": { "content": { @@ -1152,34 +4513,250 @@ } } }, - "description": "Successful Response" + "description": "The landing page provides links to the API definition (link relation `service-desc`, in this case path `/api`), to the Conformance declaration (path `/conformance`, link relation `http://www.opengis.net/def/rel/ogc/1.0/conformance`), and to other resources." + }, + "406": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "Content negotiation failed. For example, the `Accept` header submitted in the request did not support any of the media types supported by the server for the requested resource." + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + }, + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "A server error occurred." + } + }, + "summary": "Retrieve the OGC API landing page for this service.", + "tags": [ + "Landing Page" + ] + } + }, + "/api": { + "get": { + "operationId": "get_api_api_get", + "parameters": [ + { + "description": "The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'.", + "in": "query", + "name": "f", + "required": false, + "schema": { + "description": "The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'.", + "title": "F", + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "title": "Response 200 Get Api Api Get" + } + } + }, + "description": "The OpenAPI definition of the API." + }, + "406": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "Content negotiation failed. For example, the `Accept` header submitted in the request did not support any of the media types supported by the server for the requested resource." + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + }, + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "A server error occurred." + } + }, + "summary": "Retrieve this API definition.", + "tags": [ + "API" + ] + } + }, + "/api/processes-list": { + "get": { + "operationId": "get_api_processes_api_processes_list_get", + "parameters": [ + { + "description": "The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'.", + "in": "query", + "name": "f", + "required": false, + "schema": { + "description": "The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'.", + "title": "F", + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Enumeration" + } + } + }, + "description": "An enumerated list of valid string values for API parameters." + }, + "404": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "The requested resource does not exist on the server. For example, a path parameter had an incorrect value." + }, + "406": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "Content negotiation failed. For example, the `Accept` header submitted in the request did not support any of the media types supported by the server for the requested resource." + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + }, + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "A server error occurred." } }, - "summary": "Landing page of this API" + "summary": "Retrieve the list of processes available from this API implementation & deployment.", + "tags": [ + "API" + ] } }, "/conformance": { "get": { - "description": "A list of all conformance classes, specified in a standard, that the server conforms to.\n\n| Conformance class | URI |\n| -------- | ------- |\n| Core | http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/core |\n| OGC Process Description | http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/ogc-process-description |\n| JSON | http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/json |\n| HTML | http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/html |\n| OpenAPI | Specification 3.0 http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/oas30 |\n| Job list | http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/job-list |\n| Callback | http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/callback |\n| Dismiss | http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/dismiss |\n\nFor more information, see [Section 7.4](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_conformance_classes).", - "operationId": "conformance_declaration_conformance_get", + "operationId": "get_conformance_conformance_get", + "parameters": [ + { + "description": "The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'.", + "in": "query", + "name": "f", + "required": false, + "schema": { + "description": "The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'.", + "title": "F", + "type": "string" + } + } + ], "responses": { "200": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ConfClasses" + "$ref": "#/components/schemas/ConfClasses" + } + } + }, + "description": "The URIs of all conformance classes supported by the server To support \\"generic\\" clients that want to access multiple OGC API - Processes implementations - and not \\"just\\" a specific API / server, the server declares the conformance classes it implements and conforms to." + }, + "406": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "Content negotiation failed. For example, the `Accept` header submitted in the request did not support any of the media types supported by the server for the requested resource." + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + }, + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" } } }, - "description": "Successful Response" + "description": "A server error occurred." } }, - "summary": "Information about standards that this API conforms to" + "summary": "Retrieve the set of OGC API conformance classes that are supported by this service.", + "tags": [ + "Conformance" + ] } }, "/health": { "get": { - "description": "Endpoint to perform a healthcheck on. This endpoint can primarily be used Docker\nto ensure a robust container orchestration and management is in place. Other\nservices which rely on proper functioning of the API service will not deploy if this\nendpoint returns any other HTTP status code except 200 (OK).\nReturns:\n HealthCheck: Returns a JSON response with the health status", + "description": "Retrieves the health status of the API.", "operationId": "get_health_health_get", "responses": { "200": { @@ -1190,42 +4767,70 @@ } } }, - "description": "Return HTTP Status Code 200 (OK)" + "description": "The health status of the API." + }, + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "A server error occurred." } }, - "summary": "Perform a Health Check" + "summary": "Retrieve the health status of the API.", + "tags": [ + "Health" + ] } }, "/jobs": { "get": { - "description": "Lists available jobs.\n\nFor more information, see [Section 11](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_job_list).", - "operationId": "job_list_jobs_get", + "description": "Lists available jobs. For more information, see [Section 12](https://docs.ogc.org/is/18-062r2/18-062r2.html#Job_list).", + "operationId": "get_jobs_jobs_get", "responses": { "200": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/JobList" + "$ref": "#/components/schemas/JobList-Input" } } }, - "description": "Successful Response" + "description": "A list of jobs for this process." + }, + "404": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "The requested resource does not exist on the server. For example, a path parameter had an incorrect value." } }, - "summary": "Retrieve the list of jobs" + "summary": "retrieve the list of jobs.", + "tags": [ + "Jobs" + ] } }, - "/jobs/{job_id}": { + "/jobs/{jobId}": { "delete": { - "description": "Cancel a job execution and remove it from the jobs list.\n\nFor more information, see [Section 13](https://docs.ogc.org/is/18-062r2/18-062r2.html#Dismiss).", - "operationId": "dismiss_jobs__job_id__delete", + "description": "Cancel a job execution and remove it from the jobs list. For more information, see [Section 14]https://docs.ogc.org/is/18-062r2/18-062r2.html#Dismiss).", + "operationId": "dismiss_jobs__jobId__delete", "parameters": [ { + "description": "local identifier of a job", "in": "path", - "name": "job_id", + "name": "jobId", "required": true, "schema": { - "title": "Job Id", + "description": "local identifier of a job", + "title": "Jobid", "type": "string" } } @@ -1239,7 +4844,17 @@ } } }, - "description": "Successful Response" + "description": "The status of a job." + }, + "404": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "The requested resource does not exist on the server. For example, a path parameter had an incorrect value." }, "422": { "content": { @@ -1250,20 +4865,35 @@ } }, "description": "Validation Error" + }, + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "A server error occurred." } }, - "summary": "Cancel a job execution, remove a finished job" + "summary": "cancel a job execution, remove a finished job", + "tags": [ + "Jobs" + ] }, "get": { - "description": "Shows the status of a job.\n\nFor more information, see [Section 7.12](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_retrieve_status_info).", - "operationId": "status_jobs__job_id__get", + "description": "Shows the status of a job. For more information, see [Section 7.10](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_retrieve_status_info).", + "operationId": "get_status_jobs__jobId__get", "parameters": [ { + "description": "local identifier of a job", "in": "path", - "name": "job_id", + "name": "jobId", "required": true, "schema": { - "title": "Job Id", + "description": "local identifier of a job", + "title": "Jobid", "type": "string" } } @@ -1277,7 +4907,17 @@ } } }, - "description": "Successful Response" + "description": "The status of a job." + }, + "404": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "The requested resource does not exist on the server. For example, a path parameter had an incorrect value." }, "422": { "content": { @@ -1288,22 +4928,48 @@ } }, "description": "Validation Error" + }, + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "A server error occurred." } }, - "summary": "Retrieve the status of a job" + "summary": "retrieve the status of a job", + "tags": [ + "Jobs" + ] } }, - "/jobs/{job_id}/results": { + "/jobs/{jobId}/results": { "get": { - "description": "Lists available results of a job. In case of a failure, lists exceptions instead.\n\nFor more information, see [Section 7.13](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_retrieve_job_results).", - "operationId": "results_jobs__job_id__results_get", + "description": "Lists available results of a job. In case of a failure, lists exceptions instead. For more information, see [Section 7.11](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_retrieve_job_results).", + "operationId": "get_result_jobs__jobId__results_get", "parameters": [ { + "description": "local identifier of a job", "in": "path", - "name": "job_id", + "name": "jobId", "required": true, "schema": { - "title": "Job Id", + "description": "local identifier of a job", + "title": "Jobid", + "type": "string" + } + }, + { + "description": "Indicates client preferences, such as whether the client wishes a self-contained or minimal response. A `return=minimal` preference indicates that the client would prefer that links be returned to larger object to minimize the response payload. A `return=representation` indicates that the client would prefer if the server can return a self-contained response.", + "in": "header", + "name": "prefer", + "required": false, + "schema": { + "description": "Indicates client preferences, such as whether the client wishes a self-contained or minimal response. A `return=minimal` preference indicates that the client would prefer that links be returned to larger object to minimize the response payload. A `return=representation` indicates that the client would prefer if the server can return a self-contained response.", + "title": "Prefer", "type": "string" } } @@ -1313,11 +4979,25 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Results" + "additionalProperties": { + "$ref": "#/components/schemas/InlineOrRefData-Input" + }, + "title": "Response 200 Get Result Jobs Jobid Results Get", + "type": "object" } } }, - "description": "Successful Response" + "description": "The processing results of a job." + }, + "404": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "The requested resource does not exist on the server. For example, a path parameter had an incorrect value." }, "422": { "content": { @@ -1328,52 +5008,107 @@ } }, "description": "Validation Error" + }, + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "A server error occurred." } }, - "summary": "Retrieve the result(s) of a job" + "summary": "retrieve the result(s) of a job", + "tags": [ + "Jobs" + ] } }, "/processes": { "get": { - "description": "The list of processes contains a summary of each process the OGC API - Processes offers, including the link to a more detailed description of the process.\n\nFor more information, see [Section 7.9](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_process_list).", - "operationId": "process_list_processes_get", + "description": "The list of processes contains a summary of each process the OGC API - Processes offers, including the link to a more detailed description of the process. For more information, see [Section 7.7]https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_process_list).", + "operationId": "get_processes_processes_get", "responses": { "200": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProcessList" + "$ref": "#/components/schemas/ProcessList-Input" } } }, - "description": "Successful Response" + "description": "Information about the available processes" } }, - "summary": "Retrieve the list of available processes" + "summary": "retrieve the list of available processes", + "tags": [ + "Processes" + ] }, "post": { - "description": "Deploy a new process.\n\n**Note:** This is not an officially supported endpoint in the OGC Processes specification.", - "operationId": "deploy_process_processes_post", + "description": "Deploys a process. For more information, see [Section 6.3](http://docs.ogc.org/DRAFTS/20-044.html#_87a6983e-d060-458c-95ab-27e232e64822).", + "operationId": "deploy_processes_post", + "parameters": [ + { + "description": "Point to the workflow identifier for deploying a CWL containing multiple workflow definitions", + "in": "query", + "name": "w", + "required": false, + "schema": { + "description": "Point to the workflow identifier for deploying a CWL containing multiple workflow definitions", + "title": "W", + "type": "string" + } + } + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Process-Input" + "allOf": [ + { + "$ref": "#/components/schemas/Ogcapppkg" + } + ], + "description": "An OGC Application Package used to deploy a new process.", + "title": "Ogcapppkg" } } - }, - "required": true + } }, "responses": { "200": { + "content": { + "application/json": { + "schema": {} + } + }, + "description": "Successful Response" + }, + "201": { + "description": "Created" + }, + "403": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Process-Output" + "$ref": "#/components/schemas/Exception" } } }, - "description": "Successful Response" + "description": "the processes is not mutable" + }, + "409": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "the processes being added is already deployed (i.e. duplicate)" }, "422": { "content": { @@ -1384,40 +5119,93 @@ } }, "description": "Validation Error" + }, + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "A server error occurred." } }, - "summary": "Deploy a process" + "summary": "deploy a process.", + "tags": [ + "DRU" + ] } }, - "/processes/{process_id}": { + "/processes/{processId}": { "delete": { - "description": "Undeploy an existing process.\n\n**Note:** This is not an officially supported endpoint in the OGC Processes specification.", - "operationId": "undeploy_process_processes__process_id__delete", + "description": "Undeploys a process. For more information, see [Section 6.5](http://docs.ogc.org/DRAFTS/20-044.html#_16391f9e-538f-4a84-9710-72a6bab82842).", + "operationId": "undeploy_processes__processId__delete", "parameters": [ { "in": "path", - "name": "process_id", + "name": "processId", "required": true, "schema": { - "title": "Process Id", + "title": "Processid", "type": "string" } }, { + "description": "Force undeployment even if there are active DAG runs", "in": "query", "name": "force", "required": false, "schema": { "default": false, + "description": "Force undeployment even if there are active DAG runs", "title": "Force", "type": "boolean" } } ], "responses": { - "204": { + "200": { + "content": { + "application/json": { + "schema": {} + } + }, "description": "Successful Response" }, + "204": { + "description": "successful operation (no response body)" + }, + "403": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "the processes is not mutable" + }, + "404": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "The requested resource does not exist on the server. For example, a path parameter had an incorrect value." + }, + "409": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "The process has active DAG runs and force is not set to true." + }, "422": { "content": { "application/json": { @@ -1427,20 +5215,33 @@ } }, "description": "Validation Error" + }, + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "A server error occurred." } }, - "summary": "Undeploy a process" + "summary": "undeploy a process.", + "tags": [ + "DRU" + ] }, "get": { - "description": "The process description contains information about inputs and outputs and a link to the execution-endpoint for the process. The Core does not mandate the use of a specific process description to specify the interface of a process. That said, the Core requirements class makes the following recommendation:\n\nImplementations SHOULD consider supporting the OGC process description.\n\nFor more information, see [Section 7.10](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_process_description).", - "operationId": "process_description_processes__process_id__get", + "description": "The process description contains information about inputs and outputs and a link to the execution-endpoint for the process. The Core does not mandate the use of a specific process description to specify the interface of a process. That said, the Core requirements class makes the following recommendation: Implementations SHOULD consider supporting the OGC process description. For more information, see [Section 7.8](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_process_description).", + "operationId": "get_process_description_processes__processId__get", "parameters": [ { "in": "path", - "name": "process_id", + "name": "processId", "required": true, "schema": { - "title": "Process Id", + "title": "Processid", "type": "string" } } @@ -1450,12 +5251,109 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Process-Output" + "$ref": "#/components/schemas/Process-Input" + } + } + }, + "description": "A process description." + }, + "404": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "The requested resource does not exist on the server. For example, a path parameter had an incorrect value." + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" } } }, + "description": "Validation Error" + } + }, + "summary": "retrieve a process description", + "tags": [ + "Processes" + ] + }, + "put": { + "description": "Replaces a process. For more information, see [Section 6.4](http://docs.ogc.org/DRAFTS/20-044.html#_18582f42-ebc6-4284-9333-c089068f62b6).", + "operationId": "replace_processes__processId__put", + "parameters": [ + { + "in": "path", + "name": "processId", + "required": true, + "schema": { + "title": "Processid", + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Ogcapppkg" + } + ], + "description": "An OGC Application Package used to deploy a new process.", + "title": "Ogcapppkg" + } + } + } + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": {} + } + }, "description": "Successful Response" }, + "204": { + "description": "successful operation (no response body)" + }, + "403": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "the processes is not mutable" + }, + "404": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "The requested resource does not exist on the server. For example, a path parameter had an incorrect value." + }, + "409": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "the processes being added is already deployed (i.e. duplicate)" + }, "422": { "content": { "application/json": { @@ -1465,22 +5363,57 @@ } }, "description": "Validation Error" + }, + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "A server error occurred." } }, - "summary": "Retrieve a process description" + "summary": "replace a process.", + "tags": [ + "DRU" + ] } }, - "/processes/{process_id}/execution": { + "/processes/{processId}/execution": { "post": { - "description": "Create a new job.\n\nFor more information, see [Section 7.11](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_create_job).", - "operationId": "execute_processes__process_id__execution_post", + "description": "Executes a process (this may result in the creation of a job resource e.g., for _asynchronous execution_). For more information, see [Section 7.9](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_create_job).", + "operationId": "execute_processes__processId__execution_post", "parameters": [ { "in": "path", - "name": "process_id", + "name": "processId", "required": true, "schema": { - "title": "Process Id", + "title": "Processid", + "type": "string" + } + }, + { + "description": "For executing the process using the _Collection Output_ mechanism, where the client is redirected (_303_ status) to either an OGC API landing page or collection resource, from which one or more OGC API data access mechanism is available. Data access requests may trigger processing on-demand for a given area, time and resolution of interest.", + "in": "query", + "name": "response", + "required": false, + "schema": { + "description": "For executing the process using the _Collection Output_ mechanism, where the client is redirected (_303_ status) to either an OGC API landing page or collection resource, from which one or more OGC API data access mechanism is available. Data access requests may trigger processing on-demand for a given area, time and resolution of interest.", + "title": "Response", + "type": "string" + } + }, + { + "description": "Indicates client preferences, including whether the client is capable of asynchronous processing. A `respond-async` preference indicates a preference for asynchronous processing. A `wait: <x>s` preference indicates that the client prefers to wait up to x seconds to receive a reponse synchronously before the server falls back to asynchronous processing.", + "in": "header", + "name": "prefer", + "required": false, + "schema": { + "description": "Indicates client preferences, including whether the client is capable of asynchronous processing. A `respond-async` preference indicates a preference for asynchronous processing. A `wait: <x>s` preference indicates that the client prefers to wait up to x seconds to receive a reponse synchronously before the server falls back to asynchronous processing.", + "title": "Prefer", "type": "string" } } @@ -1489,14 +5422,29 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Execute" + "allOf": [ + { + "$ref": "#/components/schemas/ExecuteWorkflows" + } + ], + "description": "An execution request specifying any inputs for the process to execute, and optionally to select specific outputs.", + "title": "Execute Workflows" } } - }, - "required": true + } }, "responses": { "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Execute200Response-Input" + } + } + }, + "description": "Result of synchronous execution" + }, + "201": { "content": { "application/json": { "schema": { @@ -1504,7 +5452,20 @@ } } }, - "description": "Successful Response" + "description": "Started asynchronous execution. Created job." + }, + "303": { + "description": "For _Collection Output_ execution, redirection to an OGC API landing page or collection." + }, + "404": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "The requested resource does not exist on the server. For example, a path parameter had an incorrect value." }, "422": { "content": { @@ -1515,9 +5476,22 @@ } }, "description": "Validation Error" + }, + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Exception" + } + } + }, + "description": "A server error occurred." } }, - "summary": "Execute a process" + "summary": "execute a process.", + "tags": [ + "Processes" + ] } } }, diff --git a/pyproject.toml b/pyproject.toml index 9a7a5fd..72e76b1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,16 +1,16 @@ [tool.poetry] name = "unity_sps_ogc_processes_api_python_client" version = "1.0.0" -description = "Unity Processing API conforming to the OGC API - Processes - Part 1 standard" +description = "Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy" authors = ["OpenAPI Generator Community "] license = "NoLicense" readme = "README.md" repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" -keywords = ["OpenAPI", "OpenAPI-Generator", "Unity Processing API conforming to the OGC API - Processes - Part 1 standard"] +keywords = ["OpenAPI", "OpenAPI-Generator", "Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy"] include = ["unity_sps_ogc_processes_api_python_client/py.typed"] [tool.poetry.dependencies] -python = "^3.7" +python = "^3.8" urllib3 = ">= 1.25.3" python-dateutil = ">=2.8.2" diff --git a/setup.py b/setup.py index 5c242bd..b59a791 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -33,14 +33,14 @@ setup( name=NAME, version=VERSION, - description="Unity Processing API conforming to the OGC API - Processes - Part 1 standard", + description="Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy", author="OpenAPI Generator community", author_email="team@openapitools.org", url="", keywords=[ "OpenAPI", "OpenAPI-Generator", - "Unity Processing API conforming to the OGC API - Processes - Part 1 standard", + "Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy", ], install_requires=REQUIRES, packages=find_packages(exclude=["test", "tests"]), diff --git a/test/test_actual_instance.py b/test/test_actual_instance.py new file mode 100644 index 0000000..d557580 --- /dev/null +++ b/test/test_actual_instance.py @@ -0,0 +1,307 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.actual_instance import ( + ActualInstance, +) + + +class TestActualInstance(unittest.TestCase): + """ActualInstance unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ActualInstance: + """Test ActualInstance + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `ActualInstance` + """ + model = ActualInstance() + if include_optional: + return ActualInstance( + oneof_schema_1_validator = '', + oneof_schema_2_validator = None, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = None, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + properties = null, + sort_by = [ + '' + ], + collection = '', ), + oneof_schema_9_validator = unity_sps_ogc_processes_api_python_client.models.input_process.InputProcess( + process = '', + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_workflows1.InputWorkflows1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows.InlineOrRefDataWorkflows( + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows.QualifiedInputValueWorkflows( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + actual_instance = '', + one_of_schemas = [ + '' + ], ), + filter = '', + properties = null, + sort_by = [ + '' + ], + value = unity_sps_ogc_processes_api_python_client.models.input_value_workflows.InputValueWorkflows( + actual_instance = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + collection = '', ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + __input = '', ), ), ), ), + oneof_schema_3_validator = unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = [ + unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows.InlineOrRefDataWorkflows() + ], + actual_instance = null, + one_of_schemas = , ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', + properties = null, + sort_by = [ + '' + ], ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + properties = null, + sort_by = [ + '' + ], + __input = '', ), + actual_instance = None, + one_of_schemas = [ + '' + ], + href = '', + rel = '', + type = '', + hreflang = '', + title = '', + media_type = '', + encoding = '', + var_schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ), + filter = '', + properties = None, + sort_by = [ + '' + ], + value = unity_sps_ogc_processes_api_python_client.models.input_value_workflows.InputValueWorkflows( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + properties = null, + sort_by = [ + '' + ], + collection = '', ), + oneof_schema_9_validator = unity_sps_ogc_processes_api_python_client.models.input_process.InputProcess( + process = '', + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_workflows1.InputWorkflows1( + actual_instance = null, + one_of_schemas = [ + '' + ], ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema(), ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + __input = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, ), + one_of_schemas = , ) + ) + else: + return ActualInstance( + href = '', + value = unity_sps_ogc_processes_api_python_client.models.input_value_workflows.InputValueWorkflows( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + properties = null, + sort_by = [ + '' + ], + collection = '', ), + oneof_schema_9_validator = unity_sps_ogc_processes_api_python_client.models.input_process.InputProcess( + process = '', + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_workflows1.InputWorkflows1( + actual_instance = null, + one_of_schemas = [ + '' + ], ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema(), ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + __input = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, ), + one_of_schemas = , ), + ) + """ + + def testActualInstance(self): + """Test ActualInstance""" + # 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_actual_instance1.py b/test/test_actual_instance1.py new file mode 100644 index 0000000..81ecaa4 --- /dev/null +++ b/test/test_actual_instance1.py @@ -0,0 +1,166 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.actual_instance1 import ( + ActualInstance1, +) + + +class TestActualInstance1(unittest.TestCase): + """ActualInstance1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ActualInstance1: + """Test ActualInstance1 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `ActualInstance1` + """ + model = ActualInstance1() + if include_optional: + return ActualInstance1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), + filter = '', + properties = None, + sort_by = [ + '' + ], + collection = '', + input = '', + process = '', + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_workflows1.InputWorkflows1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows.InlineOrRefDataWorkflows( + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows.QualifiedInputValueWorkflows( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + actual_instance = '', + one_of_schemas = [ + '' + ], ), + filter = '', + properties = null, + sort_by = [ + '' + ], + value = unity_sps_ogc_processes_api_python_client.models.input_value_workflows.InputValueWorkflows( + actual_instance = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + collection = '', ), + oneof_schema_9_validator = unity_sps_ogc_processes_api_python_client.models.input_process.InputProcess( + process = '', + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + __input = '', ), ), ), ), + oneof_schema_3_validator = unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = [ + unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows.InlineOrRefDataWorkflows() + ], + actual_instance = null, + one_of_schemas = , ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ), ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ) + ) + else: + return ActualInstance1( + bbox = [ + null + ], + collection = '', + input = '', + process = '', + ) + """ + + def testActualInstance1(self): + """Test ActualInstance1""" + # 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_actual_instance2.py b/test/test_actual_instance2.py new file mode 100644 index 0000000..5e0e389 --- /dev/null +++ b/test/test_actual_instance2.py @@ -0,0 +1,180 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.actual_instance2 import ( + ActualInstance2, +) + + +class TestActualInstance2(unittest.TestCase): + """ActualInstance2 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ActualInstance2: + """Test ActualInstance2 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `ActualInstance2` + """ + model = ActualInstance2() + if include_optional: + return ActualInstance2( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + properties = null, + sort_by = [ + '' + ], + collection = '', ), + oneof_schema_9_validator = unity_sps_ogc_processes_api_python_client.models.input_process.InputProcess( + process = '', + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_workflows1.InputWorkflows1( + actual_instance = null, + one_of_schemas = [ + '' + ], ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema(), ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + __input = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows.QualifiedInputValueWorkflows( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + oneof_schema_1_validator = '', + actual_instance = '', + one_of_schemas = [ + '' + ], ), + filter = '', + properties = null, + sort_by = [ + '' + ], + value = unity_sps_ogc_processes_api_python_client.models.input_value_workflows.InputValueWorkflows( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + collection = '', ), + oneof_schema_9_validator = unity_sps_ogc_processes_api_python_client.models.input_process.InputProcess( + process = '', + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_workflows1.InputWorkflows1( + actual_instance = null, ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + __input = '', ), + actual_instance = null, ), + actual_instance = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, ), ), ), + oneof_schema_3_validator = unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ), + actual_instance = None, + one_of_schemas = [ + '' + ] + ) + else: + return ActualInstance2( + ) + """ + + def testActualInstance2(self): + """Test ActualInstance2""" + # 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_actual_instance3.py b/test/test_actual_instance3.py new file mode 100644 index 0000000..602ea33 --- /dev/null +++ b/test/test_actual_instance3.py @@ -0,0 +1,496 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.actual_instance3 import ( + ActualInstance3, +) + + +class TestActualInstance3(unittest.TestCase): + """ActualInstance3 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ActualInstance3: + """Test ActualInstance3 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `ActualInstance3` + """ + model = ActualInstance3() + if include_optional: + return ActualInstance3( + ref = '', + title = '', + multiple_of = None, + maximum = None, + exclusive_maximum = True, + minimum = None, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + var_not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + all_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + one_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + any_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + items = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + any_of = [ + + ], + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + properties = { + 'key' : unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = True, + actual_instance = null, + one_of_schemas = , ), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '' + ) + else: + return ActualInstance3( + ref = '', + ) + """ + + def testActualInstance3(self): + """Test ActualInstance3""" + # 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_actual_instance4.py b/test/test_actual_instance4.py new file mode 100644 index 0000000..243ad2b --- /dev/null +++ b/test/test_actual_instance4.py @@ -0,0 +1,496 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.actual_instance4 import ( + ActualInstance4, +) + + +class TestActualInstance4(unittest.TestCase): + """ActualInstance4 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ActualInstance4: + """Test ActualInstance4 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `ActualInstance4` + """ + model = ActualInstance4() + if include_optional: + return ActualInstance4( + ref = '', + title = '', + multiple_of = None, + maximum = None, + exclusive_maximum = True, + minimum = None, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + var_not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + all_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + one_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + any_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + items = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + any_of = [ + + ], + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + properties = { + 'key' : unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = True, + actual_instance = null, + one_of_schemas = , ), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '' + ) + else: + return ActualInstance4( + ref = '', + ) + """ + + def testActualInstance4(self): + """Test ActualInstance4""" + # 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_actual_instance5.py b/test/test_actual_instance5.py new file mode 100644 index 0000000..008066d --- /dev/null +++ b/test/test_actual_instance5.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.actual_instance5 import ( + ActualInstance5, +) + + +class TestActualInstance5(unittest.TestCase): + """ActualInstance5 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ActualInstance5: + """Test ActualInstance5 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `ActualInstance5` + """ + model = ActualInstance5() + if include_optional: + return ActualInstance5( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1() + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = None, + one_of_schemas = [ + '' + ] + ) + else: + return ActualInstance5( + ) + """ + + def testActualInstance5(self): + """Test ActualInstance5""" + # 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_actual_instance6.py b/test/test_actual_instance6.py new file mode 100644 index 0000000..9cc7ba1 --- /dev/null +++ b/test/test_actual_instance6.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.actual_instance6 import ( + ActualInstance6, +) + + +class TestActualInstance6(unittest.TestCase): + """ActualInstance6 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ActualInstance6: + """Test ActualInstance6 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `ActualInstance6` + """ + model = ActualInstance6() + if include_optional: + return ActualInstance6( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1() + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = None, + one_of_schemas = [ + '' + ] + ) + else: + return ActualInstance6( + ) + """ + + def testActualInstance6(self): + """Test ActualInstance6""" + # 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_api_api.py b/test/test_api_api.py new file mode 100644 index 0000000..52522b1 --- /dev/null +++ b/test/test_api_api.py @@ -0,0 +1,45 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.api.api_api import APIApi + + +class TestAPIApi(unittest.TestCase): + """APIApi unit test stubs""" + + def setUp(self) -> None: + self.api = APIApi() + + def tearDown(self) -> None: + pass + + def test_get_api_api_get(self) -> None: + """Test case for get_api_api_get + + Retrieve this API definition. + """ + pass + + def test_get_api_processes_api_processes_list_get(self) -> None: + """Test case for get_api_processes_api_processes_list_get + + Retrieve the list of processes available from this API implementation & deployment. + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_bbox1.py b/test/test_bbox1.py new file mode 100644 index 0000000..2ce9fe1 --- /dev/null +++ b/test/test_bbox1.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.bbox1 import Bbox1 + + +class TestBbox1(unittest.TestCase): + """Bbox1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Bbox1: + """Test Bbox1 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `Bbox1` + """ + model = Bbox1() + if include_optional: + return Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ) + ) + else: + return Bbox1( + bbox = [ + null + ], + ) + """ + + def testBbox1(self): + """Test Bbox1""" + # 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_bbox_bbox_inner.py b/test/test_bbox_bbox_inner.py new file mode 100644 index 0000000..99b2784 --- /dev/null +++ b/test/test_bbox_bbox_inner.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.bbox_bbox_inner import ( + BboxBboxInner, +) + + +class TestBboxBboxInner(unittest.TestCase): + """BboxBboxInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BboxBboxInner: + """Test BboxBboxInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `BboxBboxInner` + """ + model = BboxBboxInner() + if include_optional: + return BboxBboxInner( + ) + else: + return BboxBboxInner( + ) + """ + + def testBboxBboxInner(self): + """Test BboxBboxInner""" + # 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_bbox_def_crs.py b/test/test_bbox_def_crs.py new file mode 100644 index 0000000..243bd53 --- /dev/null +++ b/test/test_bbox_def_crs.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.bbox_def_crs import BboxDefCrs + + +class TestBboxDefCrs(unittest.TestCase): + """BboxDefCrs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BboxDefCrs: + """Test BboxDefCrs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `BboxDefCrs` + """ + model = BboxDefCrs() + if include_optional: + return BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = None, + any_of_schemas = [ + '' + ] + ) + else: + return BboxDefCrs( + ) + """ + + def testBboxDefCrs(self): + """Test BboxDefCrs""" + # 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_conformance_api.py b/test/test_conformance_api.py new file mode 100644 index 0000000..c948473 --- /dev/null +++ b/test/test_conformance_api.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.api.conformance_api import ConformanceApi + + +class TestConformanceApi(unittest.TestCase): + """ConformanceApi unit test stubs""" + + def setUp(self) -> None: + self.api = ConformanceApi() + + def tearDown(self) -> None: + pass + + def test_get_conformance_conformance_get(self) -> None: + """Test case for get_conformance_conformance_get + + Retrieve the set of OGC API conformance classes that are supported by this service. + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_cpumax.py b/test/test_cpumax.py new file mode 100644 index 0000000..12b60f0 --- /dev/null +++ b/test/test_cpumax.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.cpumax import Cpumax + + +class TestCpumax(unittest.TestCase): + """Cpumax unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Cpumax: + """Test Cpumax + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `Cpumax` + """ + model = Cpumax() + if include_optional: + return Cpumax( + ) + else: + return Cpumax( + ) + """ + + def testCpumax(self): + """Test Cpumax""" + # 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_cpumin.py b/test/test_cpumin.py new file mode 100644 index 0000000..e5402b1 --- /dev/null +++ b/test/test_cpumin.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.cpumin import Cpumin + + +class TestCpumin(unittest.TestCase): + """Cpumin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Cpumin: + """Test Cpumin + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `Cpumin` + """ + model = Cpumin() + if include_optional: + return Cpumin( + ) + else: + return Cpumin( + ) + """ + + def testCpumin(self): + """Test Cpumin""" + # 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_dru_api.py b/test/test_dru_api.py new file mode 100644 index 0000000..3b4cd7a --- /dev/null +++ b/test/test_dru_api.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.api.dru_api import DRUApi + + +class TestDRUApi(unittest.TestCase): + """DRUApi unit test stubs""" + + def setUp(self) -> None: + self.api = DRUApi() + + def tearDown(self) -> None: + pass + + def test_deploy_processes_post(self) -> None: + """Test case for deploy_processes_post + + deploy a process. + """ + pass + + def test_replace_processes_process_id_put(self) -> None: + """Test case for replace_processes_process_id_put + + replace a process. + """ + pass + + def test_undeploy_processes_process_id_delete(self) -> None: + """Test case for undeploy_processes_process_id_delete + + undeploy a process. + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_enumeration.py b/test/test_enumeration.py new file mode 100644 index 0000000..d5063ad --- /dev/null +++ b/test/test_enumeration.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.enumeration import Enumeration + + +class TestEnumeration(unittest.TestCase): + """Enumeration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Enumeration: + """Test Enumeration + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `Enumeration` + """ + model = Enumeration() + if include_optional: + return Enumeration( + type = '', + enum = [ + '' + ] + ) + else: + return Enumeration( + type = '', + enum = [ + '' + ], + ) + """ + + def testEnumeration(self): + """Test Enumeration""" + # 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_execute200_response_input.py b/test/test_execute200_response_input.py new file mode 100644 index 0000000..4b00be0 --- /dev/null +++ b/test/test_execute200_response_input.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.execute200_response_input import ( + Execute200ResponseInput, +) + + +class TestExecute200ResponseInput(unittest.TestCase): + """Execute200ResponseInput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Execute200ResponseInput: + """Test Execute200ResponseInput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `Execute200ResponseInput` + """ + model = Execute200ResponseInput() + if include_optional: + return Execute200ResponseInput( + ) + else: + return Execute200ResponseInput( + ) + """ + + def testExecute200ResponseInput(self): + """Test Execute200ResponseInput""" + # 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_execute200_response_input_any_of_value.py b/test/test_execute200_response_input_any_of_value.py new file mode 100644 index 0000000..3c4cd4d --- /dev/null +++ b/test/test_execute200_response_input_any_of_value.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.execute200_response_input_any_of_value import ( + Execute200ResponseInputAnyOfValue, +) + + +class TestExecute200ResponseInputAnyOfValue(unittest.TestCase): + """Execute200ResponseInputAnyOfValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Execute200ResponseInputAnyOfValue: + """Test Execute200ResponseInputAnyOfValue + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `Execute200ResponseInputAnyOfValue` + """ + model = Execute200ResponseInputAnyOfValue() + if include_optional: + return Execute200ResponseInputAnyOfValue( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), + href = '', + rel = '', + type = '', + hreflang = '', + title = '', + media_type = '', + encoding = '', + var_schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ), + value = unity_sps_ogc_processes_api_python_client.models.input_value.InputValue( + anyof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object.InputValueNoObject( + oneof_schema_1_validator = '', + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox.Bbox( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + anyof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.anyof_schema_2_validator.anyof_schema_2_validator(), + actual_instance = null, + any_of_schemas = [ + '' + ], ) + ) + else: + return Execute200ResponseInputAnyOfValue( + bbox = [ + null + ], + href = '', + value = unity_sps_ogc_processes_api_python_client.models.input_value.InputValue( + anyof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object.InputValueNoObject( + oneof_schema_1_validator = '', + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox.Bbox( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + anyof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.anyof_schema_2_validator.anyof_schema_2_validator(), + actual_instance = null, + any_of_schemas = [ + '' + ], ), + ) + """ + + def testExecute200ResponseInputAnyOfValue(self): + """Test Execute200ResponseInputAnyOfValue""" + # 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_execute200_response_output.py b/test/test_execute200_response_output.py new file mode 100644 index 0000000..a8eed4e --- /dev/null +++ b/test/test_execute200_response_output.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.execute200_response_output import ( + Execute200ResponseOutput, +) + + +class TestExecute200ResponseOutput(unittest.TestCase): + """Execute200ResponseOutput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Execute200ResponseOutput: + """Test Execute200ResponseOutput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `Execute200ResponseOutput` + """ + model = Execute200ResponseOutput() + if include_optional: + return Execute200ResponseOutput( + ) + else: + return Execute200ResponseOutput( + ) + """ + + def testExecute200ResponseOutput(self): + """Test Execute200ResponseOutput""" + # 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_execute200_response_output_any_of_value.py b/test/test_execute200_response_output_any_of_value.py new file mode 100644 index 0000000..c9240de --- /dev/null +++ b/test/test_execute200_response_output_any_of_value.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.execute200_response_output_any_of_value import ( + Execute200ResponseOutputAnyOfValue, +) + + +class TestExecute200ResponseOutputAnyOfValue(unittest.TestCase): + """Execute200ResponseOutputAnyOfValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Execute200ResponseOutputAnyOfValue: + """Test Execute200ResponseOutputAnyOfValue + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `Execute200ResponseOutputAnyOfValue` + """ + model = Execute200ResponseOutputAnyOfValue() + if include_optional: + return Execute200ResponseOutputAnyOfValue( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), + href = '', + rel = '', + type = '', + hreflang = '', + title = '', + media_type = '', + encoding = '', + var_schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ), + value = unity_sps_ogc_processes_api_python_client.models.input_value.InputValue( + anyof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object.InputValueNoObject( + oneof_schema_1_validator = '', + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox.Bbox( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + anyof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.anyof_schema_2_validator.anyof_schema_2_validator(), + actual_instance = null, + any_of_schemas = [ + '' + ], ) + ) + else: + return Execute200ResponseOutputAnyOfValue( + bbox = [ + null + ], + href = '', + value = unity_sps_ogc_processes_api_python_client.models.input_value.InputValue( + anyof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object.InputValueNoObject( + oneof_schema_1_validator = '', + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox.Bbox( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + anyof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.anyof_schema_2_validator.anyof_schema_2_validator(), + actual_instance = null, + any_of_schemas = [ + '' + ], ), + ) + """ + + def testExecute200ResponseOutputAnyOfValue(self): + """Test Execute200ResponseOutputAnyOfValue""" + # 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_execute_workflows.py b/test/test_execute_workflows.py new file mode 100644 index 0000000..bfbbb4f --- /dev/null +++ b/test/test_execute_workflows.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.execute_workflows import ( + ExecuteWorkflows, +) + + +class TestExecuteWorkflows(unittest.TestCase): + """ExecuteWorkflows unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ExecuteWorkflows: + """Test ExecuteWorkflows + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `ExecuteWorkflows` + """ + model = ExecuteWorkflows() + if include_optional: + return ExecuteWorkflows( + filter = '', + properties = None, + sort_by = [ + '' + ], + process = '', + inputs = { + 'key' : null + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows.OutputWorkflows( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ), ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ) + ) + else: + return ExecuteWorkflows( + ) + """ + + def testExecuteWorkflows(self): + """Test ExecuteWorkflows""" + # 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_execution_unit.py b/test/test_execution_unit.py new file mode 100644 index 0000000..0376873 --- /dev/null +++ b/test/test_execution_unit.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.execution_unit import ( + ExecutionUnit, +) + + +class TestExecutionUnit(unittest.TestCase): + """ExecutionUnit unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ExecutionUnit: + """Test ExecutionUnit + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `ExecutionUnit` + """ + model = ExecutionUnit() + if include_optional: + return ExecutionUnit( + type = '', + image = '', + deployment = '', + config = unity_sps_ogc_processes_api_python_client.models.execution_unit_config.ExecutionUnitConfig( + cpu_min = null, + cpu_max = null, + memory_min = null, + memory_max = null, + storage_temp_min = null, + storage_outputs_min = null, + job_timeout = null, + additional_properties = unity_sps_ogc_processes_api_python_client.models.additional_properties.Additional Properties(), ), + additional_properties = unity_sps_ogc_processes_api_python_client.models.additional_properties.Additional Properties() + ) + else: + return ExecutionUnit( + type = '', + image = '', + ) + """ + + def testExecutionUnit(self): + """Test ExecutionUnit""" + # 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_execution_unit_config.py b/test/test_execution_unit_config.py new file mode 100644 index 0000000..98eb0ae --- /dev/null +++ b/test/test_execution_unit_config.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.execution_unit_config import ( + ExecutionUnitConfig, +) + + +class TestExecutionUnitConfig(unittest.TestCase): + """ExecutionUnitConfig unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ExecutionUnitConfig: + """Test ExecutionUnitConfig + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `ExecutionUnitConfig` + """ + model = ExecutionUnitConfig() + if include_optional: + return ExecutionUnitConfig( + cpu_min = None, + cpu_max = None, + memory_min = None, + memory_max = None, + storage_temp_min = None, + storage_outputs_min = None, + job_timeout = None, + additional_properties = unity_sps_ogc_processes_api_python_client.models.additional_properties.Additional Properties() + ) + else: + return ExecutionUnitConfig( + ) + """ + + def testExecutionUnitConfig(self): + """Test ExecutionUnitConfig""" + # 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_fields_modifiers_properties.py b/test/test_fields_modifiers_properties.py new file mode 100644 index 0000000..f1e4027 --- /dev/null +++ b/test/test_fields_modifiers_properties.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.fields_modifiers_properties import ( + FieldsModifiersProperties, +) + + +class TestFieldsModifiersProperties(unittest.TestCase): + """FieldsModifiersProperties unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FieldsModifiersProperties: + """Test FieldsModifiersProperties + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `FieldsModifiersProperties` + """ + model = FieldsModifiersProperties() + if include_optional: + return FieldsModifiersProperties( + ) + else: + return FieldsModifiersProperties( + ) + """ + + def testFieldsModifiersProperties(self): + """Test FieldsModifiersProperties""" + # 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_format.py b/test/test_format.py new file mode 100644 index 0000000..829176e --- /dev/null +++ b/test/test_format.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.format import Format + + +class TestFormat(unittest.TestCase): + """Format unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Format: + """Test Format + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `Format` + """ + model = Format() + if include_optional: + return Format( + media_type = '', + encoding = '', + var_schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ) + ) + else: + return Format( + ) + """ + + def testFormat(self): + """Test Format""" + # 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_format_schema.py b/test/test_format_schema.py new file mode 100644 index 0000000..027f71e --- /dev/null +++ b/test/test_format_schema.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.format_schema import FormatSchema + + +class TestFormatSchema(unittest.TestCase): + """FormatSchema unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FormatSchema: + """Test FormatSchema + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `FormatSchema` + """ + model = FormatSchema() + if include_optional: + return FormatSchema( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ] + ) + else: + return FormatSchema( + ) + """ + + def testFormatSchema(self): + """Test FormatSchema""" + # 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_health_api.py b/test/test_health_api.py new file mode 100644 index 0000000..2d119fe --- /dev/null +++ b/test/test_health_api.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.api.health_api import HealthApi + + +class TestHealthApi(unittest.TestCase): + """HealthApi unit test stubs""" + + def setUp(self) -> None: + self.api = HealthApi() + + def tearDown(self) -> None: + pass + + def test_get_health_health_get(self) -> None: + """Test case for get_health_health_get + + Retrieve the health status of the API. + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_inline_or_ref_data_input.py b/test/test_inline_or_ref_data_input.py new file mode 100644 index 0000000..9f08554 --- /dev/null +++ b/test/test_inline_or_ref_data_input.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_input import ( + InlineOrRefDataInput, +) + + +class TestInlineOrRefDataInput(unittest.TestCase): + """InlineOrRefDataInput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InlineOrRefDataInput: + """Test InlineOrRefDataInput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `InlineOrRefDataInput` + """ + model = InlineOrRefDataInput() + if include_optional: + return InlineOrRefDataInput( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), + href = '', + rel = '', + type = '', + hreflang = '', + title = '', + media_type = '', + encoding = '', + var_schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ), + value = unity_sps_ogc_processes_api_python_client.models.input_value.InputValue( + anyof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object.InputValueNoObject( + oneof_schema_1_validator = '', + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox.Bbox( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + anyof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.anyof_schema_2_validator.anyof_schema_2_validator(), + actual_instance = null, + any_of_schemas = [ + '' + ], ) + ) + else: + return InlineOrRefDataInput( + bbox = [ + null + ], + href = '', + value = unity_sps_ogc_processes_api_python_client.models.input_value.InputValue( + anyof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object.InputValueNoObject( + oneof_schema_1_validator = '', + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox.Bbox( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + anyof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.anyof_schema_2_validator.anyof_schema_2_validator(), + actual_instance = null, + any_of_schemas = [ + '' + ], ), + ) + """ + + def testInlineOrRefDataInput(self): + """Test InlineOrRefDataInput""" + # 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_inline_or_ref_data_output.py b/test/test_inline_or_ref_data_output.py new file mode 100644 index 0000000..a775235 --- /dev/null +++ b/test/test_inline_or_ref_data_output.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_output import ( + InlineOrRefDataOutput, +) + + +class TestInlineOrRefDataOutput(unittest.TestCase): + """InlineOrRefDataOutput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InlineOrRefDataOutput: + """Test InlineOrRefDataOutput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `InlineOrRefDataOutput` + """ + model = InlineOrRefDataOutput() + if include_optional: + return InlineOrRefDataOutput( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), + href = '', + rel = '', + type = '', + hreflang = '', + title = '', + media_type = '', + encoding = '', + var_schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ), + value = unity_sps_ogc_processes_api_python_client.models.input_value.InputValue( + anyof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object.InputValueNoObject( + oneof_schema_1_validator = '', + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox.Bbox( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + anyof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.anyof_schema_2_validator.anyof_schema_2_validator(), + actual_instance = null, + any_of_schemas = [ + '' + ], ) + ) + else: + return InlineOrRefDataOutput( + bbox = [ + null + ], + href = '', + value = unity_sps_ogc_processes_api_python_client.models.input_value.InputValue( + anyof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object.InputValueNoObject( + oneof_schema_1_validator = '', + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox.Bbox( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + anyof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.anyof_schema_2_validator.anyof_schema_2_validator(), + actual_instance = null, + any_of_schemas = [ + '' + ], ), + ) + """ + + def testInlineOrRefDataOutput(self): + """Test InlineOrRefDataOutput""" + # 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_inline_or_ref_data_workflows.py b/test/test_inline_or_ref_data_workflows.py new file mode 100644 index 0000000..499c3d3 --- /dev/null +++ b/test/test_inline_or_ref_data_workflows.py @@ -0,0 +1,193 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows import ( + InlineOrRefDataWorkflows, +) + + +class TestInlineOrRefDataWorkflows(unittest.TestCase): + """InlineOrRefDataWorkflows unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InlineOrRefDataWorkflows: + """Test InlineOrRefDataWorkflows + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `InlineOrRefDataWorkflows` + """ + model = InlineOrRefDataWorkflows() + if include_optional: + return InlineOrRefDataWorkflows( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_1_validator = '', + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + properties = null, + sort_by = [ + '' + ], + collection = '', ), + oneof_schema_9_validator = unity_sps_ogc_processes_api_python_client.models.input_process.InputProcess( + process = '', + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_workflows1.InputWorkflows1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows.InlineOrRefDataWorkflows( + oneof_schema_3_validator = unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema(), ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + __input = '', ), + actual_instance = null, + one_of_schemas = , ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows.QualifiedInputValueWorkflows( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ), + filter = '', + properties = null, + sort_by = [ + '' + ], + value = unity_sps_ogc_processes_api_python_client.models.input_value_workflows.InputValueWorkflows( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + collection = '', ), + oneof_schema_9_validator = unity_sps_ogc_processes_api_python_client.models.input_process.InputProcess( + process = '', + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_workflows1.InputWorkflows1( + actual_instance = null, ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + __input = '', ), + actual_instance = null, ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, ), ), ), + oneof_schema_3_validator = unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ), + actual_instance = None, + one_of_schemas = [ + '' + ] + ) + else: + return InlineOrRefDataWorkflows( + ) + """ + + def testInlineOrRefDataWorkflows(self): + """Test InlineOrRefDataWorkflows""" + # 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_input_collection.py b/test/test_input_collection.py new file mode 100644 index 0000000..5bbefd3 --- /dev/null +++ b/test/test_input_collection.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.input_collection import ( + InputCollection, +) + + +class TestInputCollection(unittest.TestCase): + """InputCollection unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InputCollection: + """Test InputCollection + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `InputCollection` + """ + model = InputCollection() + if include_optional: + return InputCollection( + filter = '', + properties = None, + sort_by = [ + '' + ], + collection = '' + ) + else: + return InputCollection( + collection = '', + ) + """ + + def testInputCollection(self): + """Test InputCollection""" + # 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_input_description_input.py b/test/test_input_description_input.py new file mode 100644 index 0000000..7b583f9 --- /dev/null +++ b/test/test_input_description_input.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.input_description_input import ( + InputDescriptionInput, +) + + +class TestInputDescriptionInput(unittest.TestCase): + """InputDescriptionInput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InputDescriptionInput: + """Test InputDescriptionInput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `InputDescriptionInput` + """ + model = InputDescriptionInput() + if include_optional: + return InputDescriptionInput( + title = '', + description = '', + keywords = [ + '' + ], + metadata = [ + null + ], + var_schema = None, + min_occurs = 56, + max_occurs = 56, + value_passing = [ + '' + ] + ) + else: + return InputDescriptionInput( + var_schema = None, + max_occurs = 56, + ) + """ + + def testInputDescriptionInput(self): + """Test InputDescriptionInput""" + # 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_input_description_output.py b/test/test_input_description_output.py new file mode 100644 index 0000000..cd322d7 --- /dev/null +++ b/test/test_input_description_output.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.input_description_output import ( + InputDescriptionOutput, +) + + +class TestInputDescriptionOutput(unittest.TestCase): + """InputDescriptionOutput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InputDescriptionOutput: + """Test InputDescriptionOutput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `InputDescriptionOutput` + """ + model = InputDescriptionOutput() + if include_optional: + return InputDescriptionOutput( + title = '', + description = '', + keywords = [ + '' + ], + metadata = [ + null + ], + var_schema = None, + min_occurs = 56, + max_occurs = 56, + value_passing = [ + '' + ] + ) + else: + return InputDescriptionOutput( + var_schema = None, + max_occurs = 56, + ) + """ + + def testInputDescriptionOutput(self): + """Test InputDescriptionOutput""" + # 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_input_parameterized.py b/test/test_input_parameterized.py new file mode 100644 index 0000000..f936419 --- /dev/null +++ b/test/test_input_parameterized.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.input_parameterized import ( + InputParameterized, +) + + +class TestInputParameterized(unittest.TestCase): + """InputParameterized unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InputParameterized: + """Test InputParameterized + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `InputParameterized` + """ + model = InputParameterized() + if include_optional: + return InputParameterized( + filter = '', + properties = None, + sort_by = [ + '' + ], + input = '' + ) + else: + return InputParameterized( + input = '', + ) + """ + + def testInputParameterized(self): + """Test InputParameterized""" + # 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_input_process.py b/test/test_input_process.py new file mode 100644 index 0000000..6ab75cb --- /dev/null +++ b/test/test_input_process.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.input_process import InputProcess + + +class TestInputProcess(unittest.TestCase): + """InputProcess unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InputProcess: + """Test InputProcess + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `InputProcess` + """ + model = InputProcess() + if include_optional: + return InputProcess( + process = '', + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_workflows1.InputWorkflows1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows.InlineOrRefDataWorkflows( + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows.QualifiedInputValueWorkflows( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + actual_instance = '', + one_of_schemas = [ + '' + ], ), + filter = '', + properties = null, + sort_by = [ + '' + ], + value = unity_sps_ogc_processes_api_python_client.models.input_value_workflows.InputValueWorkflows( + actual_instance = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + collection = '', ), + oneof_schema_9_validator = unity_sps_ogc_processes_api_python_client.models.input_process.InputProcess( + process = '', + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + __input = '', ), ), ), ), + oneof_schema_3_validator = unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = [ + unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows.InlineOrRefDataWorkflows() + ], + actual_instance = null, + one_of_schemas = , ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ), ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', + properties = None, + sort_by = [ + '' + ] + ) + else: + return InputProcess( + process = '', + ) + """ + + def testInputProcess(self): + """Test InputProcess""" + # 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_input_value_no_object_workflows.py b/test/test_input_value_no_object_workflows.py new file mode 100644 index 0000000..81de224 --- /dev/null +++ b/test/test_input_value_no_object_workflows.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows import ( + InputValueNoObjectWorkflows, +) + + +class TestInputValueNoObjectWorkflows(unittest.TestCase): + """InputValueNoObjectWorkflows unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InputValueNoObjectWorkflows: + """Test InputValueNoObjectWorkflows + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `InputValueNoObjectWorkflows` + """ + model = InputValueNoObjectWorkflows() + if include_optional: + return InputValueNoObjectWorkflows( + oneof_schema_1_validator = '', + oneof_schema_2_validator = None, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = None, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + properties = null, + sort_by = [ + '' + ], + collection = '', ), + oneof_schema_9_validator = unity_sps_ogc_processes_api_python_client.models.input_process.InputProcess( + process = '', + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_workflows1.InputWorkflows1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows.InlineOrRefDataWorkflows( + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows.QualifiedInputValueWorkflows( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + actual_instance = '', + one_of_schemas = [ + '' + ], ), + filter = '', + properties = null, + sort_by = [ + '' + ], + value = unity_sps_ogc_processes_api_python_client.models.input_value_workflows.InputValueWorkflows( + actual_instance = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + collection = '', ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + __input = '', ), ), ), ), + oneof_schema_3_validator = unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = [ + unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows.InlineOrRefDataWorkflows() + ], + actual_instance = null, + one_of_schemas = , ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', + properties = null, + sort_by = [ + '' + ], ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + properties = null, + sort_by = [ + '' + ], + __input = '', ), + actual_instance = None, + one_of_schemas = [ + '' + ] + ) + else: + return InputValueNoObjectWorkflows( + ) + """ + + def testInputValueNoObjectWorkflows(self): + """Test InputValueNoObjectWorkflows""" + # 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_input_value_workflows.py b/test/test_input_value_workflows.py new file mode 100644 index 0000000..5f68577 --- /dev/null +++ b/test/test_input_value_workflows.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.input_value_workflows import ( + InputValueWorkflows, +) + + +class TestInputValueWorkflows(unittest.TestCase): + """InputValueWorkflows unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InputValueWorkflows: + """Test InputValueWorkflows + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `InputValueWorkflows` + """ + model = InputValueWorkflows() + if include_optional: + return InputValueWorkflows( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + properties = null, + sort_by = [ + '' + ], + collection = '', ), + oneof_schema_9_validator = unity_sps_ogc_processes_api_python_client.models.input_process.InputProcess( + process = '', + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_workflows1.InputWorkflows1( + actual_instance = null, + one_of_schemas = [ + '' + ], ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema(), ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + __input = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_1_validator = '', + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + properties = null, + sort_by = [ + '' + ], + collection = '', ), + oneof_schema_9_validator = unity_sps_ogc_processes_api_python_client.models.input_process.InputProcess( + process = '', + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_workflows1.InputWorkflows1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows.InlineOrRefDataWorkflows( + oneof_schema_3_validator = unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ), + one_of_schemas = [ + '' + ], ), + one_of_schemas = [ + '' + ], ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema(), ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + __input = '', ), + one_of_schemas = , ), + one_of_schemas = [ + '' + ] + ) + else: + return InputValueWorkflows( + ) + """ + + def testInputValueWorkflows(self): + """Test InputValueWorkflows""" + # 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_input_workflows.py b/test/test_input_workflows.py new file mode 100644 index 0000000..d398e95 --- /dev/null +++ b/test/test_input_workflows.py @@ -0,0 +1,303 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.input_workflows import ( + InputWorkflows, +) + + +class TestInputWorkflows(unittest.TestCase): + """InputWorkflows unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InputWorkflows: + """Test InputWorkflows + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `InputWorkflows` + """ + model = InputWorkflows() + if include_optional: + return InputWorkflows( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), + filter = '', + properties = None, + sort_by = [ + '' + ], + collection = '', + input = '', + process = '', + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_workflows1.InputWorkflows1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows.InlineOrRefDataWorkflows( + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows.QualifiedInputValueWorkflows( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + actual_instance = '', + one_of_schemas = [ + '' + ], ), + filter = '', + properties = null, + sort_by = [ + '' + ], + value = unity_sps_ogc_processes_api_python_client.models.input_value_workflows.InputValueWorkflows( + actual_instance = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + collection = '', ), + oneof_schema_9_validator = unity_sps_ogc_processes_api_python_client.models.input_process.InputProcess( + process = '', + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + __input = '', ), ), ), ), + oneof_schema_3_validator = unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = [ + unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows.InlineOrRefDataWorkflows() + ], + actual_instance = null, + one_of_schemas = , ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ), ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + href = '', + rel = '', + type = '', + hreflang = '', + title = '', + media_type = '', + encoding = '', + var_schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ), + value = unity_sps_ogc_processes_api_python_client.models.input_value_workflows.InputValueWorkflows( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + properties = null, + sort_by = [ + '' + ], + collection = '', ), + oneof_schema_9_validator = unity_sps_ogc_processes_api_python_client.models.input_process.InputProcess( + process = '', + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_workflows1.InputWorkflows1( + actual_instance = null, + one_of_schemas = [ + '' + ], ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema(), ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + __input = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, ), + one_of_schemas = , ) + ) + else: + return InputWorkflows( + bbox = [ + null + ], + collection = '', + input = '', + process = '', + href = '', + value = unity_sps_ogc_processes_api_python_client.models.input_value_workflows.InputValueWorkflows( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + properties = null, + sort_by = [ + '' + ], + collection = '', ), + oneof_schema_9_validator = unity_sps_ogc_processes_api_python_client.models.input_process.InputProcess( + process = '', + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_workflows1.InputWorkflows1( + actual_instance = null, + one_of_schemas = [ + '' + ], ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema(), ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + __input = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, ), + one_of_schemas = , ), + ) + """ + + def testInputWorkflows(self): + """Test InputWorkflows""" + # 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_input_workflows1.py b/test/test_input_workflows1.py new file mode 100644 index 0000000..3e5bb18 --- /dev/null +++ b/test/test_input_workflows1.py @@ -0,0 +1,188 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.input_workflows1 import ( + InputWorkflows1, +) + + +class TestInputWorkflows1(unittest.TestCase): + """InputWorkflows1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InputWorkflows1: + """Test InputWorkflows1 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `InputWorkflows1` + """ + model = InputWorkflows1() + if include_optional: + return InputWorkflows1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows.InlineOrRefDataWorkflows( + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows.QualifiedInputValueWorkflows( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + actual_instance = '', + one_of_schemas = [ + '' + ], ), + filter = '', + properties = null, + sort_by = [ + '' + ], + value = unity_sps_ogc_processes_api_python_client.models.input_value_workflows.InputValueWorkflows( + actual_instance = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + collection = '', ), + oneof_schema_9_validator = unity_sps_ogc_processes_api_python_client.models.input_process.InputProcess( + process = '', + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_workflows1.InputWorkflows1() + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + __input = '', ), ), ), ), + oneof_schema_3_validator = unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = [ + unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows.InlineOrRefDataWorkflows( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + properties = null, + sort_by = [ + '' + ], + collection = '', ), + oneof_schema_9_validator = unity_sps_ogc_processes_api_python_client.models.input_process.InputProcess( + process = '', + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_workflows1.InputWorkflows1( + actual_instance = null, + one_of_schemas = [ + '' + ], ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema(), ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + __input = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_3_validator = unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ), + actual_instance = null, + one_of_schemas = , ) + ], + actual_instance = None, + one_of_schemas = [ + '' + ] + ) + else: + return InputWorkflows1( + ) + """ + + def testInputWorkflows1(self): + """Test InputWorkflows1""" + # 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_input_workflows_any_of_inner.py b/test/test_input_workflows_any_of_inner.py new file mode 100644 index 0000000..f0887ec --- /dev/null +++ b/test/test_input_workflows_any_of_inner.py @@ -0,0 +1,303 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.input_workflows_any_of_inner import ( + InputWorkflowsAnyOfInner, +) + + +class TestInputWorkflowsAnyOfInner(unittest.TestCase): + """InputWorkflowsAnyOfInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InputWorkflowsAnyOfInner: + """Test InputWorkflowsAnyOfInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `InputWorkflowsAnyOfInner` + """ + model = InputWorkflowsAnyOfInner() + if include_optional: + return InputWorkflowsAnyOfInner( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), + filter = '', + properties = None, + sort_by = [ + '' + ], + collection = '', + input = '', + process = '', + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_workflows1.InputWorkflows1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows.InlineOrRefDataWorkflows( + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows.QualifiedInputValueWorkflows( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + actual_instance = '', + one_of_schemas = [ + '' + ], ), + filter = '', + properties = null, + sort_by = [ + '' + ], + value = unity_sps_ogc_processes_api_python_client.models.input_value_workflows.InputValueWorkflows( + actual_instance = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + collection = '', ), + oneof_schema_9_validator = unity_sps_ogc_processes_api_python_client.models.input_process.InputProcess( + process = '', + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + __input = '', ), ), ), ), + oneof_schema_3_validator = unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = [ + unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows.InlineOrRefDataWorkflows() + ], + actual_instance = null, + one_of_schemas = , ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ), ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + href = '', + rel = '', + type = '', + hreflang = '', + title = '', + media_type = '', + encoding = '', + var_schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ), + value = unity_sps_ogc_processes_api_python_client.models.input_value_workflows.InputValueWorkflows( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + properties = null, + sort_by = [ + '' + ], + collection = '', ), + oneof_schema_9_validator = unity_sps_ogc_processes_api_python_client.models.input_process.InputProcess( + process = '', + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_workflows1.InputWorkflows1( + actual_instance = null, + one_of_schemas = [ + '' + ], ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema(), ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + __input = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, ), + one_of_schemas = , ) + ) + else: + return InputWorkflowsAnyOfInner( + bbox = [ + null + ], + collection = '', + input = '', + process = '', + href = '', + value = unity_sps_ogc_processes_api_python_client.models.input_value_workflows.InputValueWorkflows( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + properties = null, + sort_by = [ + '' + ], + collection = '', ), + oneof_schema_9_validator = unity_sps_ogc_processes_api_python_client.models.input_process.InputProcess( + process = '', + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_workflows1.InputWorkflows1( + actual_instance = null, + one_of_schemas = [ + '' + ], ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema(), ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + __input = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, ), + one_of_schemas = , ), + ) + """ + + def testInputWorkflowsAnyOfInner(self): + """Test InputWorkflowsAnyOfInner""" + # 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_list_input.py b/test/test_job_list_input.py new file mode 100644 index 0000000..0bc8189 --- /dev/null +++ b/test/test_job_list_input.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.job_list_input import JobListInput + + +class TestJobListInput(unittest.TestCase): + """JobListInput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> JobListInput: + """Test JobListInput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `JobListInput` + """ + model = JobListInput() + if include_optional: + return JobListInput( + jobs = [ + unity_sps_ogc_processes_api_python_client.models.status_info.StatusInfo( + process_id = '', + type = '', + job_id = '', + status = 'accepted', + message = '', + exception = unity_sps_ogc_processes_api_python_client.models.exception.Exception( + type = '', + title = '', + detail = '', + instance = '', + additional_properties = unity_sps_ogc_processes_api_python_client.models.additional_properties.Additional Properties(), ), + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + started = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + finished = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + progress = 0.0, + links = [ + unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ) + ], ) + ], + links = [ + unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ) + ] + ) + else: + return JobListInput( + jobs = [ + unity_sps_ogc_processes_api_python_client.models.status_info.StatusInfo( + process_id = '', + type = '', + job_id = '', + status = 'accepted', + message = '', + exception = unity_sps_ogc_processes_api_python_client.models.exception.Exception( + type = '', + title = '', + detail = '', + instance = '', + additional_properties = unity_sps_ogc_processes_api_python_client.models.additional_properties.Additional Properties(), ), + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + started = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + finished = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + progress = 0.0, + links = [ + unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ) + ], ) + ], + links = [ + unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ) + ], + ) + """ + + def testJobListInput(self): + """Test JobListInput""" + # 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_list_output.py b/test/test_job_list_output.py new file mode 100644 index 0000000..3789381 --- /dev/null +++ b/test/test_job_list_output.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.job_list_output import ( + JobListOutput, +) + + +class TestJobListOutput(unittest.TestCase): + """JobListOutput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> JobListOutput: + """Test JobListOutput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `JobListOutput` + """ + model = JobListOutput() + if include_optional: + return JobListOutput( + jobs = [ + unity_sps_ogc_processes_api_python_client.models.status_info.StatusInfo( + process_id = '', + type = '', + job_id = '', + status = 'accepted', + message = '', + exception = unity_sps_ogc_processes_api_python_client.models.exception.Exception( + type = '', + title = '', + detail = '', + instance = '', + additional_properties = unity_sps_ogc_processes_api_python_client.models.additional_properties.Additional Properties(), ), + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + started = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + finished = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + progress = 0.0, + links = [ + unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ) + ], ) + ], + links = [ + unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ) + ] + ) + else: + return JobListOutput( + jobs = [ + unity_sps_ogc_processes_api_python_client.models.status_info.StatusInfo( + process_id = '', + type = '', + job_id = '', + status = 'accepted', + message = '', + exception = unity_sps_ogc_processes_api_python_client.models.exception.Exception( + type = '', + title = '', + detail = '', + instance = '', + additional_properties = unity_sps_ogc_processes_api_python_client.models.additional_properties.Additional Properties(), ), + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + started = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + finished = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + progress = 0.0, + links = [ + unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ) + ], ) + ], + links = [ + unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ) + ], + ) + """ + + def testJobListOutput(self): + """Test JobListOutput""" + # 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_jobs_api.py b/test/test_jobs_api.py new file mode 100644 index 0000000..991b360 --- /dev/null +++ b/test/test_jobs_api.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.api.jobs_api import JobsApi + + +class TestJobsApi(unittest.TestCase): + """JobsApi unit test stubs""" + + def setUp(self) -> None: + self.api = JobsApi() + + def tearDown(self) -> None: + pass + + def test_dismiss_jobs_job_id_delete(self) -> None: + """Test case for dismiss_jobs_job_id_delete + + cancel a job execution, remove a finished job + """ + pass + + def test_get_jobs_jobs_get(self) -> None: + """Test case for get_jobs_jobs_get + + retrieve the list of jobs. + """ + pass + + def test_get_result_jobs_job_id_results_get(self) -> None: + """Test case for get_result_jobs_job_id_results_get + + retrieve the result(s) of a job + """ + pass + + def test_get_status_jobs_job_id_get(self) -> None: + """Test case for get_status_jobs_job_id_get + + retrieve the status of a job + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_jobtimeout.py b/test/test_jobtimeout.py new file mode 100644 index 0000000..a11082d --- /dev/null +++ b/test/test_jobtimeout.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.jobtimeout import Jobtimeout + + +class TestJobtimeout(unittest.TestCase): + """Jobtimeout unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Jobtimeout: + """Test Jobtimeout + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `Jobtimeout` + """ + model = Jobtimeout() + if include_optional: + return Jobtimeout( + ) + else: + return Jobtimeout( + ) + """ + + def testJobtimeout(self): + """Test Jobtimeout""" + # 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_landing_page_api.py b/test/test_landing_page_api.py new file mode 100644 index 0000000..fad042c --- /dev/null +++ b/test/test_landing_page_api.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.api.landing_page_api import ( + LandingPageApi, +) + + +class TestLandingPageApi(unittest.TestCase): + """LandingPageApi unit test stubs""" + + def setUp(self) -> None: + self.api = LandingPageApi() + + def tearDown(self) -> None: + pass + + def test_get_landing_page_get(self) -> None: + """Test case for get_landing_page_get + + Retrieve the OGC API landing page for this service. + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_maximum.py b/test/test_maximum.py new file mode 100644 index 0000000..9c4bc0c --- /dev/null +++ b/test/test_maximum.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.maximum import Maximum + + +class TestMaximum(unittest.TestCase): + """Maximum unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Maximum: + """Test Maximum + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `Maximum` + """ + model = Maximum() + if include_optional: + return Maximum( + ) + else: + return Maximum( + ) + """ + + def testMaximum(self): + """Test Maximum""" + # 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_memorymax.py b/test/test_memorymax.py new file mode 100644 index 0000000..55db883 --- /dev/null +++ b/test/test_memorymax.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.memorymax import Memorymax + + +class TestMemorymax(unittest.TestCase): + """Memorymax unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Memorymax: + """Test Memorymax + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `Memorymax` + """ + model = Memorymax() + if include_optional: + return Memorymax( + ) + else: + return Memorymax( + ) + """ + + def testMemorymax(self): + """Test Memorymax""" + # 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_memorymin.py b/test/test_memorymin.py new file mode 100644 index 0000000..66aae8d --- /dev/null +++ b/test/test_memorymin.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.memorymin import Memorymin + + +class TestMemorymin(unittest.TestCase): + """Memorymin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Memorymin: + """Test Memorymin + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `Memorymin` + """ + model = Memorymin() + if include_optional: + return Memorymin( + ) + else: + return Memorymin( + ) + """ + + def testMemorymin(self): + """Test Memorymin""" + # 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_metadata_input.py b/test/test_metadata_input.py new file mode 100644 index 0000000..8fdcdbf --- /dev/null +++ b/test/test_metadata_input.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.metadata_input import ( + MetadataInput, +) + + +class TestMetadataInput(unittest.TestCase): + """MetadataInput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MetadataInput: + """Test MetadataInput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `MetadataInput` + """ + model = MetadataInput() + if include_optional: + return MetadataInput( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', + role = '', + lang = '', + value = unity_sps_ogc_processes_api_python_client.models.metadata_one_of1_value.MetadataOneOf1Value( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ) + ) + else: + return MetadataInput( + href = '', + ) + """ + + def testMetadataInput(self): + """Test MetadataInput""" + # 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_metadata_one_of.py b/test/test_metadata_one_of.py new file mode 100644 index 0000000..980d929 --- /dev/null +++ b/test/test_metadata_one_of.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.metadata_one_of import ( + MetadataOneOf, +) + + +class TestMetadataOneOf(unittest.TestCase): + """MetadataOneOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MetadataOneOf: + """Test MetadataOneOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `MetadataOneOf` + """ + model = MetadataOneOf() + if include_optional: + return MetadataOneOf( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', + role = '' + ) + else: + return MetadataOneOf( + href = '', + ) + """ + + def testMetadataOneOf(self): + """Test MetadataOneOf""" + # 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_metadata_one_of1.py b/test/test_metadata_one_of1.py new file mode 100644 index 0000000..6ea4c66 --- /dev/null +++ b/test/test_metadata_one_of1.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.metadata_one_of1 import ( + MetadataOneOf1, +) + + +class TestMetadataOneOf1(unittest.TestCase): + """MetadataOneOf1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MetadataOneOf1: + """Test MetadataOneOf1 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `MetadataOneOf1` + """ + model = MetadataOneOf1() + if include_optional: + return MetadataOneOf1( + role = '', + title = '', + lang = '', + value = unity_sps_ogc_processes_api_python_client.models.metadata_one_of1_value.MetadataOneOf1Value( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ) + ) + else: + return MetadataOneOf1( + ) + """ + + def testMetadataOneOf1(self): + """Test MetadataOneOf1""" + # 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_metadata_one_of1_value.py b/test/test_metadata_one_of1_value.py new file mode 100644 index 0000000..97b9351 --- /dev/null +++ b/test/test_metadata_one_of1_value.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.metadata_one_of1_value import ( + MetadataOneOf1Value, +) + + +class TestMetadataOneOf1Value(unittest.TestCase): + """MetadataOneOf1Value unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MetadataOneOf1Value: + """Test MetadataOneOf1Value + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `MetadataOneOf1Value` + """ + model = MetadataOneOf1Value() + if include_optional: + return MetadataOneOf1Value( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ] + ) + else: + return MetadataOneOf1Value( + ) + """ + + def testMetadataOneOf1Value(self): + """Test MetadataOneOf1Value""" + # 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_metadata_output.py b/test/test_metadata_output.py new file mode 100644 index 0000000..a3759a7 --- /dev/null +++ b/test/test_metadata_output.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.metadata_output import ( + MetadataOutput, +) + + +class TestMetadataOutput(unittest.TestCase): + """MetadataOutput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MetadataOutput: + """Test MetadataOutput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `MetadataOutput` + """ + model = MetadataOutput() + if include_optional: + return MetadataOutput( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', + role = '', + lang = '', + value = unity_sps_ogc_processes_api_python_client.models.metadata_one_of1_value.MetadataOneOf1Value( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ) + ) + else: + return MetadataOutput( + href = '', + ) + """ + + def testMetadataOutput(self): + """Test MetadataOutput""" + # 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_minimum.py b/test/test_minimum.py new file mode 100644 index 0000000..ed38824 --- /dev/null +++ b/test/test_minimum.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.minimum import Minimum + + +class TestMinimum(unittest.TestCase): + """Minimum unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Minimum: + """Test Minimum + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `Minimum` + """ + model = Minimum() + if include_optional: + return Minimum( + ) + else: + return Minimum( + ) + """ + + def testMinimum(self): + """Test Minimum""" + # 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_model_schema_input.py b/test/test_model_schema_input.py new file mode 100644 index 0000000..c5550b5 --- /dev/null +++ b/test/test_model_schema_input.py @@ -0,0 +1,496 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.model_schema_input import ( + ModelSchemaInput, +) + + +class TestModelSchemaInput(unittest.TestCase): + """ModelSchemaInput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ModelSchemaInput: + """Test ModelSchemaInput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `ModelSchemaInput` + """ + model = ModelSchemaInput() + if include_optional: + return ModelSchemaInput( + ref = '', + title = '', + multiple_of = None, + maximum = None, + exclusive_maximum = True, + minimum = None, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + var_not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + all_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + one_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + any_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + items = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + any_of = [ + + ], + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + properties = { + 'key' : unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = True, + actual_instance = null, + one_of_schemas = , ), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '' + ) + else: + return ModelSchemaInput( + ref = '', + ) + """ + + def testModelSchemaInput(self): + """Test ModelSchemaInput""" + # 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_model_schema_output.py b/test/test_model_schema_output.py new file mode 100644 index 0000000..77e262e --- /dev/null +++ b/test/test_model_schema_output.py @@ -0,0 +1,496 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.model_schema_output import ( + ModelSchemaOutput, +) + + +class TestModelSchemaOutput(unittest.TestCase): + """ModelSchemaOutput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ModelSchemaOutput: + """Test ModelSchemaOutput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `ModelSchemaOutput` + """ + model = ModelSchemaOutput() + if include_optional: + return ModelSchemaOutput( + ref = '', + title = '', + multiple_of = None, + maximum = None, + exclusive_maximum = True, + minimum = None, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + var_not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + all_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + one_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + any_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + items = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + any_of = [ + + ], + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + properties = { + 'key' : unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = True, + actual_instance = null, + one_of_schemas = , ), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '' + ) + else: + return ModelSchemaOutput( + ref = '', + ) + """ + + def testModelSchemaOutput(self): + """Test ModelSchemaOutput""" + # 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_multipleof.py b/test/test_multipleof.py new file mode 100644 index 0000000..bfa05be --- /dev/null +++ b/test/test_multipleof.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.multipleof import Multipleof + + +class TestMultipleof(unittest.TestCase): + """Multipleof unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Multipleof: + """Test Multipleof + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `Multipleof` + """ + model = Multipleof() + if include_optional: + return Multipleof( + ) + else: + return Multipleof( + ) + """ + + def testMultipleof(self): + """Test Multipleof""" + # 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_ogcapppkg.py b/test/test_ogcapppkg.py new file mode 100644 index 0000000..ab55fd2 --- /dev/null +++ b/test/test_ogcapppkg.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.ogcapppkg import Ogcapppkg + + +class TestOgcapppkg(unittest.TestCase): + """Ogcapppkg unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Ogcapppkg: + """Test Ogcapppkg + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `Ogcapppkg` + """ + model = Ogcapppkg() + if include_optional: + return Ogcapppkg( + process_description = unity_sps_ogc_processes_api_python_client.models.process.Process( + title = '', + description = '', + keywords = [ + '' + ], + metadata = [ + null + ], + id = '', + version = '', + job_control_options = [ + 'sync-execute' + ], + links = [ + unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ) + ], + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_description.InputDescription( + title = '', + description = '', + schema = null, + min_occurs = 56, + max_occurs = 56, + value_passing = [ + '' + ], ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_description.OutputDescription( + title = '', + description = '', + schema = null, ) + }, ), + execution_unit = None + ) + else: + return Ogcapppkg( + process_description = unity_sps_ogc_processes_api_python_client.models.process.Process( + title = '', + description = '', + keywords = [ + '' + ], + metadata = [ + null + ], + id = '', + version = '', + job_control_options = [ + 'sync-execute' + ], + links = [ + unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ) + ], + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_description.InputDescription( + title = '', + description = '', + schema = null, + min_occurs = 56, + max_occurs = 56, + value_passing = [ + '' + ], ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_description.OutputDescription( + title = '', + description = '', + schema = null, ) + }, ), + execution_unit = None, + ) + """ + + def testOgcapppkg(self): + """Test Ogcapppkg""" + # 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_ogcapppkg_execution_unit.py b/test/test_ogcapppkg_execution_unit.py new file mode 100644 index 0000000..7a75679 --- /dev/null +++ b/test/test_ogcapppkg_execution_unit.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.ogcapppkg_execution_unit import ( + OgcapppkgExecutionUnit, +) + + +class TestOgcapppkgExecutionUnit(unittest.TestCase): + """OgcapppkgExecutionUnit unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> OgcapppkgExecutionUnit: + """Test OgcapppkgExecutionUnit + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `OgcapppkgExecutionUnit` + """ + model = OgcapppkgExecutionUnit() + if include_optional: + return OgcapppkgExecutionUnit( + type = '', + image = '', + deployment = '', + config = unity_sps_ogc_processes_api_python_client.models.execution_unit_config.ExecutionUnitConfig( + cpu_min = null, + cpu_max = null, + memory_min = null, + memory_max = null, + storage_temp_min = null, + storage_outputs_min = null, + job_timeout = null, + additional_properties = unity_sps_ogc_processes_api_python_client.models.additional_properties.Additional Properties(), ), + additional_properties = unity_sps_ogc_processes_api_python_client.models.additional_properties.Additional Properties(), + href = '', + rel = '', + hreflang = '', + title = '', + media_type = '', + encoding = '', + var_schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ), + value = unity_sps_ogc_processes_api_python_client.models.input_value.InputValue( + anyof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object.InputValueNoObject( + oneof_schema_1_validator = '', + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox.Bbox( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + anyof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.anyof_schema_2_validator.anyof_schema_2_validator(), + actual_instance = null, + any_of_schemas = [ + '' + ], ) + ) + else: + return OgcapppkgExecutionUnit( + type = '', + image = '', + href = '', + value = unity_sps_ogc_processes_api_python_client.models.input_value.InputValue( + anyof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object.InputValueNoObject( + oneof_schema_1_validator = '', + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox.Bbox( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + anyof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.anyof_schema_2_validator.anyof_schema_2_validator(), + actual_instance = null, + any_of_schemas = [ + '' + ], ), + ) + """ + + def testOgcapppkgExecutionUnit(self): + """Test OgcapppkgExecutionUnit""" + # 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_ogcapppkg_execution_unit_any_of_inner.py b/test/test_ogcapppkg_execution_unit_any_of_inner.py new file mode 100644 index 0000000..c60c639 --- /dev/null +++ b/test/test_ogcapppkg_execution_unit_any_of_inner.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.ogcapppkg_execution_unit_any_of_inner import ( + OgcapppkgExecutionUnitAnyOfInner, +) + + +class TestOgcapppkgExecutionUnitAnyOfInner(unittest.TestCase): + """OgcapppkgExecutionUnitAnyOfInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> OgcapppkgExecutionUnitAnyOfInner: + """Test OgcapppkgExecutionUnitAnyOfInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `OgcapppkgExecutionUnitAnyOfInner` + """ + model = OgcapppkgExecutionUnitAnyOfInner() + if include_optional: + return OgcapppkgExecutionUnitAnyOfInner( + type = '', + image = '', + deployment = '', + config = unity_sps_ogc_processes_api_python_client.models.execution_unit_config.ExecutionUnitConfig( + cpu_min = null, + cpu_max = null, + memory_min = null, + memory_max = null, + storage_temp_min = null, + storage_outputs_min = null, + job_timeout = null, + additional_properties = unity_sps_ogc_processes_api_python_client.models.additional_properties.Additional Properties(), ), + additional_properties = unity_sps_ogc_processes_api_python_client.models.additional_properties.Additional Properties(), + href = '', + rel = '', + hreflang = '', + title = '', + media_type = '', + encoding = '', + var_schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ), + value = unity_sps_ogc_processes_api_python_client.models.input_value.InputValue( + anyof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object.InputValueNoObject( + oneof_schema_1_validator = '', + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox.Bbox( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + anyof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.anyof_schema_2_validator.anyof_schema_2_validator(), + actual_instance = null, + any_of_schemas = [ + '' + ], ) + ) + else: + return OgcapppkgExecutionUnitAnyOfInner( + type = '', + image = '', + href = '', + value = unity_sps_ogc_processes_api_python_client.models.input_value.InputValue( + anyof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object.InputValueNoObject( + oneof_schema_1_validator = '', + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox.Bbox( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + anyof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.anyof_schema_2_validator.anyof_schema_2_validator(), + actual_instance = null, + any_of_schemas = [ + '' + ], ), + ) + """ + + def testOgcapppkgExecutionUnitAnyOfInner(self): + """Test OgcapppkgExecutionUnitAnyOfInner""" + # 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_oneof_schema2_validator.py b/test/test_oneof_schema2_validator.py new file mode 100644 index 0000000..f96dfde --- /dev/null +++ b/test/test_oneof_schema2_validator.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.oneof_schema2_validator import ( + OneofSchema2Validator, +) + + +class TestOneofSchema2Validator(unittest.TestCase): + """OneofSchema2Validator unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> OneofSchema2Validator: + """Test OneofSchema2Validator + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `OneofSchema2Validator` + """ + model = OneofSchema2Validator() + if include_optional: + return OneofSchema2Validator( + ) + else: + return OneofSchema2Validator( + ) + """ + + def testOneofSchema2Validator(self): + """Test OneofSchema2Validator""" + # 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_oneof_schema6_validator.py b/test/test_oneof_schema6_validator.py new file mode 100644 index 0000000..94fb800 --- /dev/null +++ b/test/test_oneof_schema6_validator.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.oneof_schema6_validator import ( + OneofSchema6Validator, +) + + +class TestOneofSchema6Validator(unittest.TestCase): + """OneofSchema6Validator unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> OneofSchema6Validator: + """Test OneofSchema6Validator + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `OneofSchema6Validator` + """ + model = OneofSchema6Validator() + if include_optional: + return OneofSchema6Validator( + ) + else: + return OneofSchema6Validator( + ) + """ + + def testOneofSchema6Validator(self): + """Test OneofSchema6Validator""" + # 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_output_description_input.py b/test/test_output_description_input.py new file mode 100644 index 0000000..e94fa16 --- /dev/null +++ b/test/test_output_description_input.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.output_description_input import ( + OutputDescriptionInput, +) + + +class TestOutputDescriptionInput(unittest.TestCase): + """OutputDescriptionInput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> OutputDescriptionInput: + """Test OutputDescriptionInput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `OutputDescriptionInput` + """ + model = OutputDescriptionInput() + if include_optional: + return OutputDescriptionInput( + title = '', + description = '', + keywords = [ + '' + ], + metadata = [ + null + ], + var_schema = None + ) + else: + return OutputDescriptionInput( + var_schema = None, + ) + """ + + def testOutputDescriptionInput(self): + """Test OutputDescriptionInput""" + # 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_output_description_output.py b/test/test_output_description_output.py new file mode 100644 index 0000000..f1fe92c --- /dev/null +++ b/test/test_output_description_output.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.output_description_output import ( + OutputDescriptionOutput, +) + + +class TestOutputDescriptionOutput(unittest.TestCase): + """OutputDescriptionOutput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> OutputDescriptionOutput: + """Test OutputDescriptionOutput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `OutputDescriptionOutput` + """ + model = OutputDescriptionOutput() + if include_optional: + return OutputDescriptionOutput( + title = '', + description = '', + keywords = [ + '' + ], + metadata = [ + null + ], + var_schema = None + ) + else: + return OutputDescriptionOutput( + var_schema = None, + ) + """ + + def testOutputDescriptionOutput(self): + """Test OutputDescriptionOutput""" + # 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_output_workflows.py b/test/test_output_workflows.py new file mode 100644 index 0000000..0676ee6 --- /dev/null +++ b/test/test_output_workflows.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.output_workflows import ( + OutputWorkflows, +) + + +class TestOutputWorkflows(unittest.TestCase): + """OutputWorkflows unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> OutputWorkflows: + """Test OutputWorkflows + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `OutputWorkflows` + """ + model = OutputWorkflows() + if include_optional: + return OutputWorkflows( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ), ), + output = '' + ) + else: + return OutputWorkflows( + ) + """ + + def testOutputWorkflows(self): + """Test OutputWorkflows""" + # 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_output_workflows1.py b/test/test_output_workflows1.py new file mode 100644 index 0000000..a1c1aec --- /dev/null +++ b/test/test_output_workflows1.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.output_workflows1 import ( + OutputWorkflows1, +) + + +class TestOutputWorkflows1(unittest.TestCase): + """OutputWorkflows1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> OutputWorkflows1: + """Test OutputWorkflows1 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `OutputWorkflows1` + """ + model = OutputWorkflows1() + if include_optional: + return OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ), ), + output = '' + ) + else: + return OutputWorkflows1( + ) + """ + + def testOutputWorkflows1(self): + """Test OutputWorkflows1""" + # 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_process_list_input.py b/test/test_process_list_input.py new file mode 100644 index 0000000..d5d099d --- /dev/null +++ b/test/test_process_list_input.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.process_list_input import ( + ProcessListInput, +) + + +class TestProcessListInput(unittest.TestCase): + """ProcessListInput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ProcessListInput: + """Test ProcessListInput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `ProcessListInput` + """ + model = ProcessListInput() + if include_optional: + return ProcessListInput( + processes = [ + unity_sps_ogc_processes_api_python_client.models.process_summary.ProcessSummary( + title = '', + description = '', + keywords = [ + '' + ], + metadata = [ + null + ], + id = '', + version = '', + job_control_options = [ + 'sync-execute' + ], + links = [ + unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ) + ], ) + ], + links = [ + unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ) + ] + ) + else: + return ProcessListInput( + processes = [ + unity_sps_ogc_processes_api_python_client.models.process_summary.ProcessSummary( + title = '', + description = '', + keywords = [ + '' + ], + metadata = [ + null + ], + id = '', + version = '', + job_control_options = [ + 'sync-execute' + ], + links = [ + unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ) + ], ) + ], + links = [ + unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ) + ], + ) + """ + + def testProcessListInput(self): + """Test ProcessListInput""" + # 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_process_list_output.py b/test/test_process_list_output.py new file mode 100644 index 0000000..3ea4523 --- /dev/null +++ b/test/test_process_list_output.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.process_list_output import ( + ProcessListOutput, +) + + +class TestProcessListOutput(unittest.TestCase): + """ProcessListOutput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ProcessListOutput: + """Test ProcessListOutput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `ProcessListOutput` + """ + model = ProcessListOutput() + if include_optional: + return ProcessListOutput( + processes = [ + unity_sps_ogc_processes_api_python_client.models.process_summary.ProcessSummary( + title = '', + description = '', + keywords = [ + '' + ], + metadata = [ + null + ], + id = '', + version = '', + job_control_options = [ + 'sync-execute' + ], + links = [ + unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ) + ], ) + ], + links = [ + unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ) + ] + ) + else: + return ProcessListOutput( + processes = [ + unity_sps_ogc_processes_api_python_client.models.process_summary.ProcessSummary( + title = '', + description = '', + keywords = [ + '' + ], + metadata = [ + null + ], + id = '', + version = '', + job_control_options = [ + 'sync-execute' + ], + links = [ + unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ) + ], ) + ], + links = [ + unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ) + ], + ) + """ + + def testProcessListOutput(self): + """Test ProcessListOutput""" + # 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_process_summary_input.py b/test/test_process_summary_input.py new file mode 100644 index 0000000..b7c53a6 --- /dev/null +++ b/test/test_process_summary_input.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.process_summary_input import ( + ProcessSummaryInput, +) + + +class TestProcessSummaryInput(unittest.TestCase): + """ProcessSummaryInput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ProcessSummaryInput: + """Test ProcessSummaryInput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `ProcessSummaryInput` + """ + model = ProcessSummaryInput() + if include_optional: + return ProcessSummaryInput( + title = '', + description = '', + keywords = [ + '' + ], + metadata = [ + null + ], + id = '', + version = '', + job_control_options = [ + 'sync-execute' + ], + links = [ + unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ) + ] + ) + else: + return ProcessSummaryInput( + id = '', + version = '', + ) + """ + + def testProcessSummaryInput(self): + """Test ProcessSummaryInput""" + # 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_process_summary_output.py b/test/test_process_summary_output.py new file mode 100644 index 0000000..a9b83ed --- /dev/null +++ b/test/test_process_summary_output.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.process_summary_output import ( + ProcessSummaryOutput, +) + + +class TestProcessSummaryOutput(unittest.TestCase): + """ProcessSummaryOutput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ProcessSummaryOutput: + """Test ProcessSummaryOutput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `ProcessSummaryOutput` + """ + model = ProcessSummaryOutput() + if include_optional: + return ProcessSummaryOutput( + title = '', + description = '', + keywords = [ + '' + ], + metadata = [ + null + ], + id = '', + version = '', + job_control_options = [ + 'sync-execute' + ], + links = [ + unity_sps_ogc_processes_api_python_client.models.link.Link( + href = '', + rel = '', + type = '', + hreflang = '', + title = '', ) + ] + ) + else: + return ProcessSummaryOutput( + id = '', + version = '', + ) + """ + + def testProcessSummaryOutput(self): + """Test ProcessSummaryOutput""" + # 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_processes_api.py b/test/test_processes_api.py new file mode 100644 index 0000000..1cd4582 --- /dev/null +++ b/test/test_processes_api.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.api.processes_api import ProcessesApi + + +class TestProcessesApi(unittest.TestCase): + """ProcessesApi unit test stubs""" + + def setUp(self) -> None: + self.api = ProcessesApi() + + def tearDown(self) -> None: + pass + + def test_execute_processes_process_id_execution_post(self) -> None: + """Test case for execute_processes_process_id_execution_post + + execute a process. + """ + pass + + def test_get_process_description_processes_process_id_get(self) -> None: + """Test case for get_process_description_processes_process_id_get + + retrieve a process description + """ + pass + + def test_get_processes_processes_get(self) -> None: + """Test case for get_processes_processes_get + + retrieve the list of available processes + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_qualified_input_value_input.py b/test/test_qualified_input_value_input.py new file mode 100644 index 0000000..f271848 --- /dev/null +++ b/test/test_qualified_input_value_input.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_input import ( + QualifiedInputValueInput, +) + + +class TestQualifiedInputValueInput(unittest.TestCase): + """QualifiedInputValueInput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> QualifiedInputValueInput: + """Test QualifiedInputValueInput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `QualifiedInputValueInput` + """ + model = QualifiedInputValueInput() + if include_optional: + return QualifiedInputValueInput( + media_type = '', + encoding = '', + var_schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ), + value = unity_sps_ogc_processes_api_python_client.models.input_value.InputValue( + anyof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object.InputValueNoObject( + oneof_schema_1_validator = '', + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox.Bbox( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + anyof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.anyof_schema_2_validator.anyof_schema_2_validator(), + actual_instance = null, + any_of_schemas = [ + '' + ], ) + ) + else: + return QualifiedInputValueInput( + value = unity_sps_ogc_processes_api_python_client.models.input_value.InputValue( + anyof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object.InputValueNoObject( + oneof_schema_1_validator = '', + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox.Bbox( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + anyof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.anyof_schema_2_validator.anyof_schema_2_validator(), + actual_instance = null, + any_of_schemas = [ + '' + ], ), + ) + """ + + def testQualifiedInputValueInput(self): + """Test QualifiedInputValueInput""" + # 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_qualified_input_value_output.py b/test/test_qualified_input_value_output.py new file mode 100644 index 0000000..3e91102 --- /dev/null +++ b/test/test_qualified_input_value_output.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_output import ( + QualifiedInputValueOutput, +) + + +class TestQualifiedInputValueOutput(unittest.TestCase): + """QualifiedInputValueOutput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> QualifiedInputValueOutput: + """Test QualifiedInputValueOutput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `QualifiedInputValueOutput` + """ + model = QualifiedInputValueOutput() + if include_optional: + return QualifiedInputValueOutput( + media_type = '', + encoding = '', + var_schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ), + value = unity_sps_ogc_processes_api_python_client.models.input_value.InputValue( + anyof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object.InputValueNoObject( + oneof_schema_1_validator = '', + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox.Bbox( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + anyof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.anyof_schema_2_validator.anyof_schema_2_validator(), + actual_instance = null, + any_of_schemas = [ + '' + ], ) + ) + else: + return QualifiedInputValueOutput( + value = unity_sps_ogc_processes_api_python_client.models.input_value.InputValue( + anyof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object.InputValueNoObject( + oneof_schema_1_validator = '', + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox.Bbox( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + anyof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.anyof_schema_2_validator.anyof_schema_2_validator(), + actual_instance = null, + any_of_schemas = [ + '' + ], ), + ) + """ + + def testQualifiedInputValueOutput(self): + """Test QualifiedInputValueOutput""" + # 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_qualified_input_value_workflows.py b/test/test_qualified_input_value_workflows.py new file mode 100644 index 0000000..23a3c61 --- /dev/null +++ b/test/test_qualified_input_value_workflows.py @@ -0,0 +1,190 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows import ( + QualifiedInputValueWorkflows, +) + + +class TestQualifiedInputValueWorkflows(unittest.TestCase): + """QualifiedInputValueWorkflows unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> QualifiedInputValueWorkflows: + """Test QualifiedInputValueWorkflows + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `QualifiedInputValueWorkflows` + """ + model = QualifiedInputValueWorkflows() + if include_optional: + return QualifiedInputValueWorkflows( + media_type = '', + encoding = '', + var_schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema( + oneof_schema_1_validator = '', + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = '', + one_of_schemas = [ + '' + ], ), + filter = '', + properties = None, + sort_by = [ + '' + ], + value = unity_sps_ogc_processes_api_python_client.models.input_value_workflows.InputValueWorkflows( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + properties = null, + sort_by = [ + '' + ], + collection = '', ), + oneof_schema_9_validator = unity_sps_ogc_processes_api_python_client.models.input_process.InputProcess( + process = '', + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_workflows1.InputWorkflows1( + actual_instance = null, + one_of_schemas = [ + '' + ], ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema(), ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + __input = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, ), + one_of_schemas = , ) + ) + else: + return QualifiedInputValueWorkflows( + value = unity_sps_ogc_processes_api_python_client.models.input_value_workflows.InputValueWorkflows( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_2_validator = null, + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, + oneof_schema_5_validator = [ + None + ], + oneof_schema_6_validator = null, + oneof_schema_7_validator = unity_sps_ogc_processes_api_python_client.models.bbox1.Bbox1( + bbox = [ + null + ], + crs = unity_sps_ogc_processes_api_python_client.models.bbox_def_crs.BboxDefCrs( + anyof_schema_1_validator = '', + anyof_schema_2_validator = '', + actual_instance = null, + any_of_schemas = [ + '' + ], ), ), + oneof_schema_8_validator = unity_sps_ogc_processes_api_python_client.models.input_collection.InputCollection( + filter = '', + properties = null, + sort_by = [ + '' + ], + collection = '', ), + oneof_schema_9_validator = unity_sps_ogc_processes_api_python_client.models.input_process.InputProcess( + process = '', + inputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.input_workflows1.InputWorkflows1( + actual_instance = null, + one_of_schemas = [ + '' + ], ) + }, + outputs = { + 'key' : unity_sps_ogc_processes_api_python_client.models.output_workflows1.OutputWorkflows1( + format = unity_sps_ogc_processes_api_python_client.models.format.Format( + media_type = '', + encoding = '', + schema = unity_sps_ogc_processes_api_python_client.models.format_schema.FormatSchema(), ), + __output = '', ) + }, + subscriber = unity_sps_ogc_processes_api_python_client.models.subscriber.Subscriber( + success_uri = '', + in_progress_uri = '', + failed_uri = '', ), + filter = '', ), + oneof_schema_10_validator = unity_sps_ogc_processes_api_python_client.models.input_parameterized.InputParameterized( + filter = '', + __input = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.oneof_schema_2_validator.oneof_schema_2_validator(), + actual_instance = unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows.InputValueNoObjectWorkflows( + oneof_schema_3_validator = 56, + oneof_schema_4_validator = True, ), + one_of_schemas = , ), + ) + """ + + def testQualifiedInputValueWorkflows(self): + """Test QualifiedInputValueWorkflows""" + # 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_reference.py b/test/test_reference.py new file mode 100644 index 0000000..2a9b69e --- /dev/null +++ b/test/test_reference.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.reference import Reference + + +class TestReference(unittest.TestCase): + """Reference unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Reference: + """Test Reference + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `Reference` + """ + model = Reference() + if include_optional: + return Reference( + ref = '' + ) + else: + return Reference( + ref = '', + ) + """ + + def testReference(self): + """Test Reference""" + # 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_schema1_input.py b/test/test_schema1_input.py new file mode 100644 index 0000000..3ff53a9 --- /dev/null +++ b/test/test_schema1_input.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.schema1_input import Schema1Input + + +class TestSchema1Input(unittest.TestCase): + """Schema1Input unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Schema1Input: + """Test Schema1Input + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `Schema1Input` + """ + model = Schema1Input() + if include_optional: + return Schema1Input( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1() + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = None, + one_of_schemas = [ + '' + ] + ) + else: + return Schema1Input( + ) + """ + + def testSchema1Input(self): + """Test Schema1Input""" + # 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_schema1_output.py b/test/test_schema1_output.py new file mode 100644 index 0000000..d473f07 --- /dev/null +++ b/test/test_schema1_output.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.schema1_output import ( + Schema1Output, +) + + +class TestSchema1Output(unittest.TestCase): + """Schema1Output unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Schema1Output: + """Test Schema1Output + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `Schema1Output` + """ + model = Schema1Output() + if include_optional: + return Schema1Output( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1() + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = None, + one_of_schemas = [ + '' + ] + ) + else: + return Schema1Output( + ) + """ + + def testSchema1Output(self): + """Test Schema1Output""" + # 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_schema_one_of_additional_properties_input.py b/test/test_schema_one_of_additional_properties_input.py new file mode 100644 index 0000000..f7b94c0 --- /dev/null +++ b/test/test_schema_one_of_additional_properties_input.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties_input import ( + SchemaOneOfAdditionalPropertiesInput, +) + + +class TestSchemaOneOfAdditionalPropertiesInput(unittest.TestCase): + """SchemaOneOfAdditionalPropertiesInput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SchemaOneOfAdditionalPropertiesInput: + """Test SchemaOneOfAdditionalPropertiesInput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `SchemaOneOfAdditionalPropertiesInput` + """ + model = SchemaOneOfAdditionalPropertiesInput() + if include_optional: + return SchemaOneOfAdditionalPropertiesInput( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = True, + actual_instance = None, + one_of_schemas = [ + '' + ] + ) + else: + return SchemaOneOfAdditionalPropertiesInput( + ) + """ + + def testSchemaOneOfAdditionalPropertiesInput(self): + """Test SchemaOneOfAdditionalPropertiesInput""" + # 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_schema_one_of_additional_properties_output.py b/test/test_schema_one_of_additional_properties_output.py new file mode 100644 index 0000000..6cdbd97 --- /dev/null +++ b/test/test_schema_one_of_additional_properties_output.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties_output import ( + SchemaOneOfAdditionalPropertiesOutput, +) + + +class TestSchemaOneOfAdditionalPropertiesOutput(unittest.TestCase): + """SchemaOneOfAdditionalPropertiesOutput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SchemaOneOfAdditionalPropertiesOutput: + """Test SchemaOneOfAdditionalPropertiesOutput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `SchemaOneOfAdditionalPropertiesOutput` + """ + model = SchemaOneOfAdditionalPropertiesOutput() + if include_optional: + return SchemaOneOfAdditionalPropertiesOutput( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = True, + actual_instance = None, + one_of_schemas = [ + '' + ] + ) + else: + return SchemaOneOfAdditionalPropertiesOutput( + ) + """ + + def testSchemaOneOfAdditionalPropertiesOutput(self): + """Test SchemaOneOfAdditionalPropertiesOutput""" + # 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_schema_one_of_input.py b/test/test_schema_one_of_input.py new file mode 100644 index 0000000..d3e6335 --- /dev/null +++ b/test/test_schema_one_of_input.py @@ -0,0 +1,494 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_input import ( + SchemaOneOfInput, +) + + +class TestSchemaOneOfInput(unittest.TestCase): + """SchemaOneOfInput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SchemaOneOfInput: + """Test SchemaOneOfInput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `SchemaOneOfInput` + """ + model = SchemaOneOfInput() + if include_optional: + return SchemaOneOfInput( + title = '', + multiple_of = None, + maximum = None, + exclusive_maximum = True, + minimum = None, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + var_not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + all_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + one_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + any_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + items = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + any_of = [ + + ], + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + properties = { + 'key' : unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = True, + actual_instance = null, + one_of_schemas = , ), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '' + ) + else: + return SchemaOneOfInput( + ) + """ + + def testSchemaOneOfInput(self): + """Test SchemaOneOfInput""" + # 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_schema_one_of_output.py b/test/test_schema_one_of_output.py new file mode 100644 index 0000000..2ecd0aa --- /dev/null +++ b/test/test_schema_one_of_output.py @@ -0,0 +1,494 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_output import ( + SchemaOneOfOutput, +) + + +class TestSchemaOneOfOutput(unittest.TestCase): + """SchemaOneOfOutput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SchemaOneOfOutput: + """Test SchemaOneOfOutput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `SchemaOneOfOutput` + """ + model = SchemaOneOfOutput() + if include_optional: + return SchemaOneOfOutput( + title = '', + multiple_of = None, + maximum = None, + exclusive_maximum = True, + minimum = None, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + var_not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + all_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + one_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + any_of = [ + unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + items = , + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + ], + items = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + any_of = [ + + ], + properties = { + 'key' : + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + properties = { + 'key' : unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.reference.Reference( + __ref = '', ), + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties(), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ) + }, + additional_properties = unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties.SchemaOneOfAdditionalProperties( + oneof_schema_1_validator = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + oneof_schema_2_validator = unity_sps_ogc_processes_api_python_client.models.schema_one_of.SchemaOneOf( + title = '', + multiple_of = null, + maximum = null, + exclusive_maximum = True, + minimum = null, + exclusive_minimum = True, + max_length = 0.0, + min_length = 0.0, + pattern = '', + max_items = 0.0, + min_items = 0.0, + unique_items = True, + max_properties = 0.0, + min_properties = 0.0, + required = [ + '' + ], + enum = [ + None + ], + type = '', + not = unity_sps_ogc_processes_api_python_client.models.schema1.Schema1( + actual_instance = null, + one_of_schemas = [ + '' + ], ), + all_of = [ + + ], + one_of = [ + + ], + any_of = [ + + ], + items = , + properties = { + 'key' : + }, + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '', ), + actual_instance = null, + one_of_schemas = [ + '' + ], ), + oneof_schema_2_validator = True, + actual_instance = null, + one_of_schemas = , ), + description = '', + format = '', + default = unity_sps_ogc_processes_api_python_client.models.default.default(), + nullable = True, + read_only = True, + write_only = True, + example = unity_sps_ogc_processes_api_python_client.models.example.example(), + deprecated = True, + content_media_type = '', + content_encoding = '', + content_schema = '' + ) + else: + return SchemaOneOfOutput( + ) + """ + + def testSchemaOneOfOutput(self): + """Test SchemaOneOfOutput""" + # 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_storageoutputsmin.py b/test/test_storageoutputsmin.py new file mode 100644 index 0000000..578ec57 --- /dev/null +++ b/test/test_storageoutputsmin.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.storageoutputsmin import ( + Storageoutputsmin, +) + + +class TestStorageoutputsmin(unittest.TestCase): + """Storageoutputsmin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Storageoutputsmin: + """Test Storageoutputsmin + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `Storageoutputsmin` + """ + model = Storageoutputsmin() + if include_optional: + return Storageoutputsmin( + ) + else: + return Storageoutputsmin( + ) + """ + + def testStorageoutputsmin(self): + """Test Storageoutputsmin""" + # 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_storagetempmin.py b/test/test_storagetempmin.py new file mode 100644 index 0000000..998669e --- /dev/null +++ b/test/test_storagetempmin.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from unity_sps_ogc_processes_api_python_client.models.storagetempmin import ( + Storagetempmin, +) + + +class TestStoragetempmin(unittest.TestCase): + """Storagetempmin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Storagetempmin: + """Test Storagetempmin + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `Storagetempmin` + """ + model = Storagetempmin() + if include_optional: + return Storagetempmin( + ) + else: + return Storagetempmin( + ) + """ + + def testStoragetempmin(self): + """Test Storagetempmin""" + # 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/unity_sps_ogc_processes_api_python_client/__init__.py b/unity_sps_ogc_processes_api_python_client/__init__.py index 496d8e6..babaeea 100644 --- a/unity_sps_ogc_processes_api_python_client/__init__.py +++ b/unity_sps_ogc_processes_api_python_client/__init__.py @@ -3,11 +3,11 @@ # flake8: noqa """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,7 +17,15 @@ __version__ = "1.0.0" # import apis into sdk package -from unity_sps_ogc_processes_api_python_client.api.default_api import DefaultApi +from unity_sps_ogc_processes_api_python_client.api.api_api import APIApi +from unity_sps_ogc_processes_api_python_client.api.conformance_api import ConformanceApi +from unity_sps_ogc_processes_api_python_client.api.dru_api import DRUApi +from unity_sps_ogc_processes_api_python_client.api.health_api import HealthApi +from unity_sps_ogc_processes_api_python_client.api.jobs_api import JobsApi +from unity_sps_ogc_processes_api_python_client.api.landing_page_api import ( + LandingPageApi, +) +from unity_sps_ogc_processes_api_python_client.api.processes_api import ProcessesApi from unity_sps_ogc_processes_api_python_client.api_client import ApiClient # import ApiClient @@ -33,16 +41,90 @@ ) # import models into sdk package +from unity_sps_ogc_processes_api_python_client.models.actual_instance import ( + ActualInstance, +) +from unity_sps_ogc_processes_api_python_client.models.actual_instance1 import ( + ActualInstance1, +) +from unity_sps_ogc_processes_api_python_client.models.actual_instance2 import ( + ActualInstance2, +) +from unity_sps_ogc_processes_api_python_client.models.actual_instance3 import ( + ActualInstance3, +) +from unity_sps_ogc_processes_api_python_client.models.actual_instance4 import ( + ActualInstance4, +) +from unity_sps_ogc_processes_api_python_client.models.actual_instance5 import ( + ActualInstance5, +) +from unity_sps_ogc_processes_api_python_client.models.actual_instance6 import ( + ActualInstance6, +) from unity_sps_ogc_processes_api_python_client.models.bbox import Bbox +from unity_sps_ogc_processes_api_python_client.models.bbox1 import Bbox1 +from unity_sps_ogc_processes_api_python_client.models.bbox_bbox_inner import ( + BboxBboxInner, +) +from unity_sps_ogc_processes_api_python_client.models.bbox_def_crs import BboxDefCrs from unity_sps_ogc_processes_api_python_client.models.conf_classes import ConfClasses -from unity_sps_ogc_processes_api_python_client.models.crs import Crs -from unity_sps_ogc_processes_api_python_client.models.crs5 import Crs5 +from unity_sps_ogc_processes_api_python_client.models.cpumax import Cpumax +from unity_sps_ogc_processes_api_python_client.models.cpumin import Cpumin +from unity_sps_ogc_processes_api_python_client.models.enumeration import Enumeration from unity_sps_ogc_processes_api_python_client.models.exception import Exception -from unity_sps_ogc_processes_api_python_client.models.execute import Execute +from unity_sps_ogc_processes_api_python_client.models.execute200_response_input import ( + Execute200ResponseInput, +) +from unity_sps_ogc_processes_api_python_client.models.execute200_response_input_any_of_value import ( + Execute200ResponseInputAnyOfValue, +) +from unity_sps_ogc_processes_api_python_client.models.execute200_response_output import ( + Execute200ResponseOutput, +) +from unity_sps_ogc_processes_api_python_client.models.execute200_response_output_any_of_value import ( + Execute200ResponseOutputAnyOfValue, +) +from unity_sps_ogc_processes_api_python_client.models.execute_workflows import ( + ExecuteWorkflows, +) +from unity_sps_ogc_processes_api_python_client.models.execution_unit import ( + ExecutionUnit, +) +from unity_sps_ogc_processes_api_python_client.models.execution_unit_config import ( + ExecutionUnitConfig, +) +from unity_sps_ogc_processes_api_python_client.models.fields_modifiers_properties import ( + FieldsModifiersProperties, +) +from unity_sps_ogc_processes_api_python_client.models.format import Format +from unity_sps_ogc_processes_api_python_client.models.format_schema import FormatSchema from unity_sps_ogc_processes_api_python_client.models.health_check import HealthCheck from unity_sps_ogc_processes_api_python_client.models.http_validation_error import ( HTTPValidationError, ) +from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_input import ( + InlineOrRefDataInput, +) +from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_output import ( + InlineOrRefDataOutput, +) +from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows import ( + InlineOrRefDataWorkflows, +) +from unity_sps_ogc_processes_api_python_client.models.input_collection import ( + InputCollection, +) +from unity_sps_ogc_processes_api_python_client.models.input_description_input import ( + InputDescriptionInput, +) +from unity_sps_ogc_processes_api_python_client.models.input_description_output import ( + InputDescriptionOutput, +) +from unity_sps_ogc_processes_api_python_client.models.input_parameterized import ( + InputParameterized, +) +from unity_sps_ogc_processes_api_python_client.models.input_process import InputProcess from unity_sps_ogc_processes_api_python_client.models.input_value_input import ( InputValueInput, ) @@ -52,28 +134,135 @@ from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_output import ( InputValueNoObjectOutput, ) +from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows import ( + InputValueNoObjectWorkflows, +) from unity_sps_ogc_processes_api_python_client.models.input_value_output import ( InputValueOutput, ) +from unity_sps_ogc_processes_api_python_client.models.input_value_workflows import ( + InputValueWorkflows, +) +from unity_sps_ogc_processes_api_python_client.models.input_workflows import ( + InputWorkflows, +) +from unity_sps_ogc_processes_api_python_client.models.input_workflows1 import ( + InputWorkflows1, +) +from unity_sps_ogc_processes_api_python_client.models.input_workflows_any_of_inner import ( + InputWorkflowsAnyOfInner, +) from unity_sps_ogc_processes_api_python_client.models.job_control_options import ( JobControlOptions, ) -from unity_sps_ogc_processes_api_python_client.models.job_list import JobList +from unity_sps_ogc_processes_api_python_client.models.job_list_input import JobListInput +from unity_sps_ogc_processes_api_python_client.models.job_list_output import ( + JobListOutput, +) +from unity_sps_ogc_processes_api_python_client.models.jobtimeout import Jobtimeout from unity_sps_ogc_processes_api_python_client.models.landing_page import LandingPage from unity_sps_ogc_processes_api_python_client.models.link import Link -from unity_sps_ogc_processes_api_python_client.models.metadata import Metadata -from unity_sps_ogc_processes_api_python_client.models.metadata1 import Metadata1 -from unity_sps_ogc_processes_api_python_client.models.metadata2 import Metadata2 +from unity_sps_ogc_processes_api_python_client.models.maximum import Maximum +from unity_sps_ogc_processes_api_python_client.models.memorymax import Memorymax +from unity_sps_ogc_processes_api_python_client.models.memorymin import Memorymin +from unity_sps_ogc_processes_api_python_client.models.metadata_input import ( + MetadataInput, +) +from unity_sps_ogc_processes_api_python_client.models.metadata_one_of import ( + MetadataOneOf, +) +from unity_sps_ogc_processes_api_python_client.models.metadata_one_of1 import ( + MetadataOneOf1, +) +from unity_sps_ogc_processes_api_python_client.models.metadata_one_of1_value import ( + MetadataOneOf1Value, +) +from unity_sps_ogc_processes_api_python_client.models.metadata_output import ( + MetadataOutput, +) +from unity_sps_ogc_processes_api_python_client.models.minimum import Minimum +from unity_sps_ogc_processes_api_python_client.models.model_schema_input import ( + ModelSchemaInput, +) +from unity_sps_ogc_processes_api_python_client.models.model_schema_output import ( + ModelSchemaOutput, +) +from unity_sps_ogc_processes_api_python_client.models.multipleof import Multipleof +from unity_sps_ogc_processes_api_python_client.models.ogcapppkg import Ogcapppkg +from unity_sps_ogc_processes_api_python_client.models.ogcapppkg_execution_unit import ( + OgcapppkgExecutionUnit, +) +from unity_sps_ogc_processes_api_python_client.models.ogcapppkg_execution_unit_any_of_inner import ( + OgcapppkgExecutionUnitAnyOfInner, +) +from unity_sps_ogc_processes_api_python_client.models.oneof_schema2_validator import ( + OneofSchema2Validator, +) +from unity_sps_ogc_processes_api_python_client.models.oneof_schema6_validator import ( + OneofSchema6Validator, +) +from unity_sps_ogc_processes_api_python_client.models.output_description_input import ( + OutputDescriptionInput, +) +from unity_sps_ogc_processes_api_python_client.models.output_description_output import ( + OutputDescriptionOutput, +) +from unity_sps_ogc_processes_api_python_client.models.output_workflows import ( + OutputWorkflows, +) +from unity_sps_ogc_processes_api_python_client.models.output_workflows1 import ( + OutputWorkflows1, +) from unity_sps_ogc_processes_api_python_client.models.process_input import ProcessInput -from unity_sps_ogc_processes_api_python_client.models.process_list import ProcessList +from unity_sps_ogc_processes_api_python_client.models.process_list_input import ( + ProcessListInput, +) +from unity_sps_ogc_processes_api_python_client.models.process_list_output import ( + ProcessListOutput, +) from unity_sps_ogc_processes_api_python_client.models.process_output import ( ProcessOutput, ) -from unity_sps_ogc_processes_api_python_client.models.process_summary import ( - ProcessSummary, +from unity_sps_ogc_processes_api_python_client.models.process_summary_input import ( + ProcessSummaryInput, +) +from unity_sps_ogc_processes_api_python_client.models.process_summary_output import ( + ProcessSummaryOutput, +) +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_input import ( + QualifiedInputValueInput, +) +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_output import ( + QualifiedInputValueOutput, +) +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows import ( + QualifiedInputValueWorkflows, +) +from unity_sps_ogc_processes_api_python_client.models.reference import Reference +from unity_sps_ogc_processes_api_python_client.models.schema1_input import Schema1Input +from unity_sps_ogc_processes_api_python_client.models.schema1_output import ( + Schema1Output, +) +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties_input import ( + SchemaOneOfAdditionalPropertiesInput, +) +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties_output import ( + SchemaOneOfAdditionalPropertiesOutput, +) +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_input import ( + SchemaOneOfInput, +) +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_output import ( + SchemaOneOfOutput, ) from unity_sps_ogc_processes_api_python_client.models.status_code import StatusCode from unity_sps_ogc_processes_api_python_client.models.status_info import StatusInfo +from unity_sps_ogc_processes_api_python_client.models.storageoutputsmin import ( + Storageoutputsmin, +) +from unity_sps_ogc_processes_api_python_client.models.storagetempmin import ( + Storagetempmin, +) from unity_sps_ogc_processes_api_python_client.models.subscriber import Subscriber from unity_sps_ogc_processes_api_python_client.models.validation_error import ( ValidationError, @@ -81,4 +270,3 @@ from unity_sps_ogc_processes_api_python_client.models.validation_error_loc_inner import ( ValidationErrorLocInner, ) -from unity_sps_ogc_processes_api_python_client.models.value import Value diff --git a/unity_sps_ogc_processes_api_python_client/api/__init__.py b/unity_sps_ogc_processes_api_python_client/api/__init__.py index 6824272..5608a08 100644 --- a/unity_sps_ogc_processes_api_python_client/api/__init__.py +++ b/unity_sps_ogc_processes_api_python_client/api/__init__.py @@ -1,4 +1,12 @@ # flake8: noqa # import apis into api package -from unity_sps_ogc_processes_api_python_client.api.default_api import DefaultApi +from unity_sps_ogc_processes_api_python_client.api.api_api import APIApi +from unity_sps_ogc_processes_api_python_client.api.conformance_api import ConformanceApi +from unity_sps_ogc_processes_api_python_client.api.dru_api import DRUApi +from unity_sps_ogc_processes_api_python_client.api.health_api import HealthApi +from unity_sps_ogc_processes_api_python_client.api.jobs_api import JobsApi +from unity_sps_ogc_processes_api_python_client.api.landing_page_api import ( + LandingPageApi, +) +from unity_sps_ogc_processes_api_python_client.api.processes_api import ProcessesApi diff --git a/unity_sps_ogc_processes_api_python_client/api/api_api.py b/unity_sps_ogc_processes_api_python_client/api/api_api.py new file mode 100644 index 0000000..1827750 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/api/api_api.py @@ -0,0 +1,567 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +from typing import Any, Dict, List, Optional, Tuple, Union + +from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call +from typing_extensions import Annotated + +from unity_sps_ogc_processes_api_python_client.api_client import ( + ApiClient, + RequestSerialized, +) +from unity_sps_ogc_processes_api_python_client.api_response import ApiResponse +from unity_sps_ogc_processes_api_python_client.models.enumeration import Enumeration +from unity_sps_ogc_processes_api_python_client.rest import RESTResponseType + + +class APIApi: + """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) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + @validate_call + def get_api_api_get( + self, + f: Annotated[ + Optional[StrictStr], + Field( + description="The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'." + ), + ] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Retrieve this API definition. + + + :param f: The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'. + :type f: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_api_get_serialize( + f=f, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "object", + "406": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def get_api_api_get_with_http_info( + self, + f: Annotated[ + Optional[StrictStr], + Field( + description="The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'." + ), + ] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Retrieve this API definition. + + + :param f: The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'. + :type f: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_api_get_serialize( + f=f, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "object", + "406": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def get_api_api_get_without_preload_content( + self, + f: Annotated[ + Optional[StrictStr], + Field( + description="The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'." + ), + ] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Retrieve this API definition. + + + :param f: The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'. + :type f: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_api_get_serialize( + f=f, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "object", + "406": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + return response_data.response + + def _get_api_api_get_serialize( + self, + f, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if f is not None: + + _query_params.append(("f", f)) + + # process the header parameters + # process the form parameters + # process the body parameter + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # authentication setting + _auth_settings: List[str] = ["bearerAuth"] + + return self.api_client.param_serialize( + method="GET", + resource_path="/api", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) + + @validate_call + def get_api_processes_api_processes_list_get( + self, + f: Annotated[ + Optional[StrictStr], + Field( + description="The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'." + ), + ] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Enumeration: + """Retrieve the list of processes available from this API implementation & deployment. + + + :param f: The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'. + :type f: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_processes_api_processes_list_get_serialize( + f=f, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "Enumeration", + "404": "Exception", + "406": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def get_api_processes_api_processes_list_get_with_http_info( + self, + f: Annotated[ + Optional[StrictStr], + Field( + description="The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'." + ), + ] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[Enumeration]: + """Retrieve the list of processes available from this API implementation & deployment. + + + :param f: The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'. + :type f: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_processes_api_processes_list_get_serialize( + f=f, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "Enumeration", + "404": "Exception", + "406": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def get_api_processes_api_processes_list_get_without_preload_content( + self, + f: Annotated[ + Optional[StrictStr], + Field( + description="The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'." + ), + ] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Retrieve the list of processes available from this API implementation & deployment. + + + :param f: The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'. + :type f: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_processes_api_processes_list_get_serialize( + f=f, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "Enumeration", + "404": "Exception", + "406": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + return response_data.response + + def _get_api_processes_api_processes_list_get_serialize( + self, + f, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if f is not None: + + _query_params.append(("f", f)) + + # process the header parameters + # process the form parameters + # process the body parameter + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # authentication setting + _auth_settings: List[str] = ["bearerAuth"] + + return self.api_client.param_serialize( + method="GET", + resource_path="/api/processes-list", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) diff --git a/unity_sps_ogc_processes_api_python_client/api/conformance_api.py b/unity_sps_ogc_processes_api_python_client/api/conformance_api.py new file mode 100644 index 0000000..6d83e0a --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/api/conformance_api.py @@ -0,0 +1,301 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +from typing import Any, Dict, List, Optional, Tuple, Union + +from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call +from typing_extensions import Annotated + +from unity_sps_ogc_processes_api_python_client.api_client import ( + ApiClient, + RequestSerialized, +) +from unity_sps_ogc_processes_api_python_client.api_response import ApiResponse +from unity_sps_ogc_processes_api_python_client.models.conf_classes import ConfClasses +from unity_sps_ogc_processes_api_python_client.rest import RESTResponseType + + +class ConformanceApi: + """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) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + @validate_call + def get_conformance_conformance_get( + self, + f: Annotated[ + Optional[StrictStr], + Field( + description="The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'." + ), + ] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ConfClasses: + """Retrieve the set of OGC API conformance classes that are supported by this service. + + + :param f: The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'. + :type f: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_conformance_conformance_get_serialize( + f=f, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "ConfClasses", + "406": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def get_conformance_conformance_get_with_http_info( + self, + f: Annotated[ + Optional[StrictStr], + Field( + description="The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'." + ), + ] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ConfClasses]: + """Retrieve the set of OGC API conformance classes that are supported by this service. + + + :param f: The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'. + :type f: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_conformance_conformance_get_serialize( + f=f, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "ConfClasses", + "406": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def get_conformance_conformance_get_without_preload_content( + self, + f: Annotated[ + Optional[StrictStr], + Field( + description="The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'." + ), + ] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Retrieve the set of OGC API conformance classes that are supported by this service. + + + :param f: The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'. + :type f: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_conformance_conformance_get_serialize( + f=f, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "ConfClasses", + "406": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + return response_data.response + + def _get_conformance_conformance_get_serialize( + self, + f, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if f is not None: + + _query_params.append(("f", f)) + + # process the header parameters + # process the form parameters + # process the body parameter + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # authentication setting + _auth_settings: List[str] = ["bearerAuth"] + + return self.api_client.param_serialize( + method="GET", + resource_path="/conformance", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) diff --git a/unity_sps_ogc_processes_api_python_client/api/dru_api.py b/unity_sps_ogc_processes_api_python_client/api/dru_api.py new file mode 100644 index 0000000..a69b9d1 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/api/dru_api.py @@ -0,0 +1,902 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +from typing import Any, Dict, List, Optional, Tuple, Union + +from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr, validate_call +from typing_extensions import Annotated + +from unity_sps_ogc_processes_api_python_client.api_client import ( + ApiClient, + RequestSerialized, +) +from unity_sps_ogc_processes_api_python_client.api_response import ApiResponse +from unity_sps_ogc_processes_api_python_client.models.ogcapppkg import Ogcapppkg +from unity_sps_ogc_processes_api_python_client.rest import RESTResponseType + + +class DRUApi: + """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) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + @validate_call + def deploy_processes_post( + self, + w: Annotated[ + Optional[StrictStr], + Field( + description="Point to the workflow identifier for deploying a CWL containing multiple workflow definitions" + ), + ] = None, + ogcapppkg: Optional[Ogcapppkg] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """deploy a process. + + Deploys a process. For more information, see [Section 6.3](http://docs.ogc.org/DRAFTS/20-044.html#_87a6983e-d060-458c-95ab-27e232e64822). + + :param w: Point to the workflow identifier for deploying a CWL containing multiple workflow definitions + :type w: str + :param ogcapppkg: + :type ogcapppkg: Ogcapppkg + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._deploy_processes_post_serialize( + w=w, + ogcapppkg=ogcapppkg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "object", + "201": None, + "403": "Exception", + "409": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def deploy_processes_post_with_http_info( + self, + w: Annotated[ + Optional[StrictStr], + Field( + description="Point to the workflow identifier for deploying a CWL containing multiple workflow definitions" + ), + ] = None, + ogcapppkg: Optional[Ogcapppkg] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """deploy a process. + + Deploys a process. For more information, see [Section 6.3](http://docs.ogc.org/DRAFTS/20-044.html#_87a6983e-d060-458c-95ab-27e232e64822). + + :param w: Point to the workflow identifier for deploying a CWL containing multiple workflow definitions + :type w: str + :param ogcapppkg: + :type ogcapppkg: Ogcapppkg + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._deploy_processes_post_serialize( + w=w, + ogcapppkg=ogcapppkg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "object", + "201": None, + "403": "Exception", + "409": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def deploy_processes_post_without_preload_content( + self, + w: Annotated[ + Optional[StrictStr], + Field( + description="Point to the workflow identifier for deploying a CWL containing multiple workflow definitions" + ), + ] = None, + ogcapppkg: Optional[Ogcapppkg] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """deploy a process. + + Deploys a process. For more information, see [Section 6.3](http://docs.ogc.org/DRAFTS/20-044.html#_87a6983e-d060-458c-95ab-27e232e64822). + + :param w: Point to the workflow identifier for deploying a CWL containing multiple workflow definitions + :type w: str + :param ogcapppkg: + :type ogcapppkg: Ogcapppkg + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._deploy_processes_post_serialize( + w=w, + ogcapppkg=ogcapppkg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "object", + "201": None, + "403": "Exception", + "409": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + return response_data.response + + def _deploy_processes_post_serialize( + self, + w, + ogcapppkg, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if w is not None: + + _query_params.append(("w", w)) + + # process the header parameters + # process the form parameters + # process the body parameter + if ogcapppkg is not None: + _body_params = ogcapppkg + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params["Content-Type"] = _content_type + else: + _default_content_type = self.api_client.select_header_content_type( + ["application/json"] + ) + if _default_content_type is not None: + _header_params["Content-Type"] = _default_content_type + + # authentication setting + _auth_settings: List[str] = ["bearerAuth"] + + return self.api_client.param_serialize( + method="POST", + resource_path="/processes", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) + + @validate_call + def replace_processes_process_id_put( + self, + process_id: StrictStr, + ogcapppkg: Optional[Ogcapppkg] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """replace a process. + + Replaces a process. For more information, see [Section 6.4](http://docs.ogc.org/DRAFTS/20-044.html#_18582f42-ebc6-4284-9333-c089068f62b6). + + :param process_id: (required) + :type process_id: str + :param ogcapppkg: + :type ogcapppkg: Ogcapppkg + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._replace_processes_process_id_put_serialize( + process_id=process_id, + ogcapppkg=ogcapppkg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "object", + "204": None, + "403": "Exception", + "404": "Exception", + "409": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def replace_processes_process_id_put_with_http_info( + self, + process_id: StrictStr, + ogcapppkg: Optional[Ogcapppkg] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """replace a process. + + Replaces a process. For more information, see [Section 6.4](http://docs.ogc.org/DRAFTS/20-044.html#_18582f42-ebc6-4284-9333-c089068f62b6). + + :param process_id: (required) + :type process_id: str + :param ogcapppkg: + :type ogcapppkg: Ogcapppkg + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._replace_processes_process_id_put_serialize( + process_id=process_id, + ogcapppkg=ogcapppkg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "object", + "204": None, + "403": "Exception", + "404": "Exception", + "409": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def replace_processes_process_id_put_without_preload_content( + self, + process_id: StrictStr, + ogcapppkg: Optional[Ogcapppkg] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """replace a process. + + Replaces a process. For more information, see [Section 6.4](http://docs.ogc.org/DRAFTS/20-044.html#_18582f42-ebc6-4284-9333-c089068f62b6). + + :param process_id: (required) + :type process_id: str + :param ogcapppkg: + :type ogcapppkg: Ogcapppkg + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._replace_processes_process_id_put_serialize( + process_id=process_id, + ogcapppkg=ogcapppkg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "object", + "204": None, + "403": "Exception", + "404": "Exception", + "409": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + return response_data.response + + def _replace_processes_process_id_put_serialize( + self, + process_id, + ogcapppkg, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if process_id is not None: + _path_params["processId"] = process_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if ogcapppkg is not None: + _body_params = ogcapppkg + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params["Content-Type"] = _content_type + else: + _default_content_type = self.api_client.select_header_content_type( + ["application/json"] + ) + if _default_content_type is not None: + _header_params["Content-Type"] = _default_content_type + + # authentication setting + _auth_settings: List[str] = ["bearerAuth"] + + return self.api_client.param_serialize( + method="PUT", + resource_path="/processes/{processId}", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) + + @validate_call + def undeploy_processes_process_id_delete( + self, + process_id: StrictStr, + force: Annotated[ + Optional[StrictBool], + Field(description="Force undeployment even if there are active DAG runs"), + ] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """undeploy a process. + + Undeploys a process. For more information, see [Section 6.5](http://docs.ogc.org/DRAFTS/20-044.html#_16391f9e-538f-4a84-9710-72a6bab82842). + + :param process_id: (required) + :type process_id: str + :param force: Force undeployment even if there are active DAG runs + :type force: bool + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._undeploy_processes_process_id_delete_serialize( + process_id=process_id, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "object", + "204": None, + "403": "Exception", + "404": "Exception", + "409": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def undeploy_processes_process_id_delete_with_http_info( + self, + process_id: StrictStr, + force: Annotated[ + Optional[StrictBool], + Field(description="Force undeployment even if there are active DAG runs"), + ] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """undeploy a process. + + Undeploys a process. For more information, see [Section 6.5](http://docs.ogc.org/DRAFTS/20-044.html#_16391f9e-538f-4a84-9710-72a6bab82842). + + :param process_id: (required) + :type process_id: str + :param force: Force undeployment even if there are active DAG runs + :type force: bool + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._undeploy_processes_process_id_delete_serialize( + process_id=process_id, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "object", + "204": None, + "403": "Exception", + "404": "Exception", + "409": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def undeploy_processes_process_id_delete_without_preload_content( + self, + process_id: StrictStr, + force: Annotated[ + Optional[StrictBool], + Field(description="Force undeployment even if there are active DAG runs"), + ] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """undeploy a process. + + Undeploys a process. For more information, see [Section 6.5](http://docs.ogc.org/DRAFTS/20-044.html#_16391f9e-538f-4a84-9710-72a6bab82842). + + :param process_id: (required) + :type process_id: str + :param force: Force undeployment even if there are active DAG runs + :type force: bool + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._undeploy_processes_process_id_delete_serialize( + process_id=process_id, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "object", + "204": None, + "403": "Exception", + "404": "Exception", + "409": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + return response_data.response + + def _undeploy_processes_process_id_delete_serialize( + self, + process_id, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if process_id is not None: + _path_params["processId"] = process_id + # process the query parameters + if force is not None: + + _query_params.append(("force", force)) + + # process the header parameters + # process the form parameters + # process the body parameter + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # authentication setting + _auth_settings: List[str] = ["bearerAuth"] + + return self.api_client.param_serialize( + method="DELETE", + resource_path="/processes/{processId}", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) diff --git a/unity_sps_ogc_processes_api_python_client/api/health_api.py b/unity_sps_ogc_processes_api_python_client/api/health_api.py new file mode 100644 index 0000000..be16aa7 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/api/health_api.py @@ -0,0 +1,266 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +from typing import Any, Dict, List, Optional, Tuple, Union + +from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call +from typing_extensions import Annotated + +from unity_sps_ogc_processes_api_python_client.api_client import ( + ApiClient, + RequestSerialized, +) +from unity_sps_ogc_processes_api_python_client.api_response import ApiResponse +from unity_sps_ogc_processes_api_python_client.models.health_check import HealthCheck +from unity_sps_ogc_processes_api_python_client.rest import RESTResponseType + + +class HealthApi: + """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) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + @validate_call + def get_health_health_get( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> HealthCheck: + """Retrieve the health status of the API. + + Retrieves the health status of the API. + + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_health_health_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "HealthCheck", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def get_health_health_get_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[HealthCheck]: + """Retrieve the health status of the API. + + Retrieves the health status of the API. + + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_health_health_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "HealthCheck", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def get_health_health_get_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Retrieve the health status of the API. + + Retrieves the health status of the API. + + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_health_health_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "HealthCheck", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + return response_data.response + + def _get_health_health_get_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # authentication setting + _auth_settings: List[str] = ["bearerAuth"] + + return self.api_client.param_serialize( + method="GET", + resource_path="/health", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) diff --git a/unity_sps_ogc_processes_api_python_client/api/jobs_api.py b/unity_sps_ogc_processes_api_python_client/api/jobs_api.py new file mode 100644 index 0000000..9297ee8 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/api/jobs_api.py @@ -0,0 +1,1047 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +from typing import Any, Dict, List, Optional, Tuple, Union + +from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call +from typing_extensions import Annotated + +from unity_sps_ogc_processes_api_python_client.api_client import ( + ApiClient, + RequestSerialized, +) +from unity_sps_ogc_processes_api_python_client.api_response import ApiResponse +from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_input import ( + InlineOrRefDataInput, +) +from unity_sps_ogc_processes_api_python_client.models.job_list_input import JobListInput +from unity_sps_ogc_processes_api_python_client.models.status_info import StatusInfo +from unity_sps_ogc_processes_api_python_client.rest import RESTResponseType + + +class JobsApi: + """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) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + @validate_call + def dismiss_jobs_job_id_delete( + self, + job_id: Annotated[StrictStr, Field(description="local identifier of a job")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> StatusInfo: + """cancel a job execution, remove a finished job + + Cancel a job execution and remove it from the jobs list. For more information, see [Section 14]https://docs.ogc.org/is/18-062r2/18-062r2.html#Dismiss). + + :param job_id: local identifier of a job (required) + :type job_id: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._dismiss_jobs_job_id_delete_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "StatusInfo", + "404": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def dismiss_jobs_job_id_delete_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="local identifier of a job")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[StatusInfo]: + """cancel a job execution, remove a finished job + + Cancel a job execution and remove it from the jobs list. For more information, see [Section 14]https://docs.ogc.org/is/18-062r2/18-062r2.html#Dismiss). + + :param job_id: local identifier of a job (required) + :type job_id: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._dismiss_jobs_job_id_delete_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "StatusInfo", + "404": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def dismiss_jobs_job_id_delete_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="local identifier of a job")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """cancel a job execution, remove a finished job + + Cancel a job execution and remove it from the jobs list. For more information, see [Section 14]https://docs.ogc.org/is/18-062r2/18-062r2.html#Dismiss). + + :param job_id: local identifier of a job (required) + :type job_id: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._dismiss_jobs_job_id_delete_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "StatusInfo", + "404": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + return response_data.response + + def _dismiss_jobs_job_id_delete_serialize( + self, + job_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params["jobId"] = job_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # authentication setting + _auth_settings: List[str] = ["bearerAuth"] + + return self.api_client.param_serialize( + method="DELETE", + resource_path="/jobs/{jobId}", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) + + @validate_call + def get_jobs_jobs_get( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> JobListInput: + """retrieve the list of jobs. + + Lists available jobs. For more information, see [Section 12](https://docs.ogc.org/is/18-062r2/18-062r2.html#Job_list). + + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_jobs_jobs_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "JobListInput", + "404": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def get_jobs_jobs_get_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[JobListInput]: + """retrieve the list of jobs. + + Lists available jobs. For more information, see [Section 12](https://docs.ogc.org/is/18-062r2/18-062r2.html#Job_list). + + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_jobs_jobs_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "JobListInput", + "404": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def get_jobs_jobs_get_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """retrieve the list of jobs. + + Lists available jobs. For more information, see [Section 12](https://docs.ogc.org/is/18-062r2/18-062r2.html#Job_list). + + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_jobs_jobs_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "JobListInput", + "404": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + return response_data.response + + def _get_jobs_jobs_get_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # authentication setting + _auth_settings: List[str] = ["bearerAuth"] + + return self.api_client.param_serialize( + method="GET", + resource_path="/jobs", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) + + @validate_call + def get_result_jobs_job_id_results_get( + self, + job_id: Annotated[StrictStr, Field(description="local identifier of a job")], + prefer: Annotated[ + Optional[StrictStr], + Field( + description="Indicates client preferences, such as whether the client wishes a self-contained or minimal response. A `return=minimal` preference indicates that the client would prefer that links be returned to larger object to minimize the response payload. A `return=representation` indicates that the client would prefer if the server can return a self-contained response." + ), + ] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Dict[str, InlineOrRefDataInput]: + """retrieve the result(s) of a job + + Lists available results of a job. In case of a failure, lists exceptions instead. For more information, see [Section 7.11](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_retrieve_job_results). + + :param job_id: local identifier of a job (required) + :type job_id: str + :param prefer: Indicates client preferences, such as whether the client wishes a self-contained or minimal response. A `return=minimal` preference indicates that the client would prefer that links be returned to larger object to minimize the response payload. A `return=representation` indicates that the client would prefer if the server can return a self-contained response. + :type prefer: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_result_jobs_job_id_results_get_serialize( + job_id=job_id, + prefer=prefer, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "Dict[str, InlineOrRefDataInput]", + "404": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def get_result_jobs_job_id_results_get_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="local identifier of a job")], + prefer: Annotated[ + Optional[StrictStr], + Field( + description="Indicates client preferences, such as whether the client wishes a self-contained or minimal response. A `return=minimal` preference indicates that the client would prefer that links be returned to larger object to minimize the response payload. A `return=representation` indicates that the client would prefer if the server can return a self-contained response." + ), + ] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[Dict[str, InlineOrRefDataInput]]: + """retrieve the result(s) of a job + + Lists available results of a job. In case of a failure, lists exceptions instead. For more information, see [Section 7.11](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_retrieve_job_results). + + :param job_id: local identifier of a job (required) + :type job_id: str + :param prefer: Indicates client preferences, such as whether the client wishes a self-contained or minimal response. A `return=minimal` preference indicates that the client would prefer that links be returned to larger object to minimize the response payload. A `return=representation` indicates that the client would prefer if the server can return a self-contained response. + :type prefer: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_result_jobs_job_id_results_get_serialize( + job_id=job_id, + prefer=prefer, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "Dict[str, InlineOrRefDataInput]", + "404": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def get_result_jobs_job_id_results_get_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="local identifier of a job")], + prefer: Annotated[ + Optional[StrictStr], + Field( + description="Indicates client preferences, such as whether the client wishes a self-contained or minimal response. A `return=minimal` preference indicates that the client would prefer that links be returned to larger object to minimize the response payload. A `return=representation` indicates that the client would prefer if the server can return a self-contained response." + ), + ] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """retrieve the result(s) of a job + + Lists available results of a job. In case of a failure, lists exceptions instead. For more information, see [Section 7.11](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_retrieve_job_results). + + :param job_id: local identifier of a job (required) + :type job_id: str + :param prefer: Indicates client preferences, such as whether the client wishes a self-contained or minimal response. A `return=minimal` preference indicates that the client would prefer that links be returned to larger object to minimize the response payload. A `return=representation` indicates that the client would prefer if the server can return a self-contained response. + :type prefer: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_result_jobs_job_id_results_get_serialize( + job_id=job_id, + prefer=prefer, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "Dict[str, InlineOrRefDataInput]", + "404": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + return response_data.response + + def _get_result_jobs_job_id_results_get_serialize( + self, + job_id, + prefer, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params["jobId"] = job_id + # process the query parameters + # process the header parameters + if prefer is not None: + _header_params["prefer"] = prefer + # process the form parameters + # process the body parameter + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # authentication setting + _auth_settings: List[str] = ["bearerAuth"] + + return self.api_client.param_serialize( + method="GET", + resource_path="/jobs/{jobId}/results", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) + + @validate_call + def get_status_jobs_job_id_get( + self, + job_id: Annotated[StrictStr, Field(description="local identifier of a job")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> StatusInfo: + """retrieve the status of a job + + Shows the status of a job. For more information, see [Section 7.10](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_retrieve_status_info). + + :param job_id: local identifier of a job (required) + :type job_id: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_status_jobs_job_id_get_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "StatusInfo", + "404": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def get_status_jobs_job_id_get_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="local identifier of a job")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[StatusInfo]: + """retrieve the status of a job + + Shows the status of a job. For more information, see [Section 7.10](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_retrieve_status_info). + + :param job_id: local identifier of a job (required) + :type job_id: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_status_jobs_job_id_get_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "StatusInfo", + "404": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def get_status_jobs_job_id_get_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="local identifier of a job")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """retrieve the status of a job + + Shows the status of a job. For more information, see [Section 7.10](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_retrieve_status_info). + + :param job_id: local identifier of a job (required) + :type job_id: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_status_jobs_job_id_get_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "StatusInfo", + "404": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + return response_data.response + + def _get_status_jobs_job_id_get_serialize( + self, + job_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params["jobId"] = job_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # authentication setting + _auth_settings: List[str] = ["bearerAuth"] + + return self.api_client.param_serialize( + method="GET", + resource_path="/jobs/{jobId}", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) diff --git a/unity_sps_ogc_processes_api_python_client/api/landing_page_api.py b/unity_sps_ogc_processes_api_python_client/api/landing_page_api.py new file mode 100644 index 0000000..b309e1c --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/api/landing_page_api.py @@ -0,0 +1,301 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +from typing import Any, Dict, List, Optional, Tuple, Union + +from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call +from typing_extensions import Annotated + +from unity_sps_ogc_processes_api_python_client.api_client import ( + ApiClient, + RequestSerialized, +) +from unity_sps_ogc_processes_api_python_client.api_response import ApiResponse +from unity_sps_ogc_processes_api_python_client.models.landing_page import LandingPage +from unity_sps_ogc_processes_api_python_client.rest import RESTResponseType + + +class LandingPageApi: + """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) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + @validate_call + def get_landing_page_get( + self, + f: Annotated[ + Optional[StrictStr], + Field( + description="The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'." + ), + ] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> LandingPage: + """Retrieve the OGC API landing page for this service. + + + :param f: The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'. + :type f: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_landing_page_get_serialize( + f=f, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "LandingPage", + "406": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def get_landing_page_get_with_http_info( + self, + f: Annotated[ + Optional[StrictStr], + Field( + description="The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'." + ), + ] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[LandingPage]: + """Retrieve the OGC API landing page for this service. + + + :param f: The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'. + :type f: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_landing_page_get_serialize( + f=f, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "LandingPage", + "406": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def get_landing_page_get_without_preload_content( + self, + f: Annotated[ + Optional[StrictStr], + Field( + description="The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'." + ), + ] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Retrieve the OGC API landing page for this service. + + + :param f: The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'. + :type f: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_landing_page_get_serialize( + f=f, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "LandingPage", + "406": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + return response_data.response + + def _get_landing_page_get_serialize( + self, + f, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if f is not None: + + _query_params.append(("f", f)) + + # process the header parameters + # process the form parameters + # process the body parameter + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # authentication setting + _auth_settings: List[str] = ["bearerAuth"] + + return self.api_client.param_serialize( + method="GET", + resource_path="/", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) diff --git a/unity_sps_ogc_processes_api_python_client/api/processes_api.py b/unity_sps_ogc_processes_api_python_client/api/processes_api.py new file mode 100644 index 0000000..7a64f57 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/api/processes_api.py @@ -0,0 +1,860 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +from typing import Any, Dict, List, Optional, Tuple, Union + +from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call +from typing_extensions import Annotated + +from unity_sps_ogc_processes_api_python_client.api_client import ( + ApiClient, + RequestSerialized, +) +from unity_sps_ogc_processes_api_python_client.api_response import ApiResponse +from unity_sps_ogc_processes_api_python_client.models.execute200_response_input import ( + Execute200ResponseInput, +) +from unity_sps_ogc_processes_api_python_client.models.execute_workflows import ( + ExecuteWorkflows, +) +from unity_sps_ogc_processes_api_python_client.models.process_input import ProcessInput +from unity_sps_ogc_processes_api_python_client.models.process_list_input import ( + ProcessListInput, +) +from unity_sps_ogc_processes_api_python_client.rest import RESTResponseType + + +class ProcessesApi: + """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) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + @validate_call + def execute_processes_process_id_execution_post( + self, + process_id: StrictStr, + response: Annotated[ + Optional[StrictStr], + Field( + description="For executing the process using the _Collection Output_ mechanism, where the client is redirected (_303_ status) to either an OGC API landing page or collection resource, from which one or more OGC API data access mechanism is available. Data access requests may trigger processing on-demand for a given area, time and resolution of interest." + ), + ] = None, + prefer: Annotated[ + Optional[StrictStr], + Field( + description="Indicates client preferences, including whether the client is capable of asynchronous processing. A `respond-async` preference indicates a preference for asynchronous processing. A `wait: <x>s` preference indicates that the client prefers to wait up to x seconds to receive a reponse synchronously before the server falls back to asynchronous processing." + ), + ] = None, + execute_workflows: Optional[ExecuteWorkflows] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Execute200ResponseInput: + """execute a process. + + Executes a process (this may result in the creation of a job resource e.g., for _asynchronous execution_). For more information, see [Section 7.9](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_create_job). + + :param process_id: (required) + :type process_id: str + :param response: For executing the process using the _Collection Output_ mechanism, where the client is redirected (_303_ status) to either an OGC API landing page or collection resource, from which one or more OGC API data access mechanism is available. Data access requests may trigger processing on-demand for a given area, time and resolution of interest. + :type response: str + :param prefer: Indicates client preferences, including whether the client is capable of asynchronous processing. A `respond-async` preference indicates a preference for asynchronous processing. A `wait: <x>s` preference indicates that the client prefers to wait up to x seconds to receive a reponse synchronously before the server falls back to asynchronous processing. + :type prefer: str + :param execute_workflows: + :type execute_workflows: ExecuteWorkflows + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._execute_processes_process_id_execution_post_serialize( + process_id=process_id, + response=response, + prefer=prefer, + execute_workflows=execute_workflows, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "Execute200ResponseInput", + "201": "StatusInfo", + "303": None, + "404": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def execute_processes_process_id_execution_post_with_http_info( + self, + process_id: StrictStr, + response: Annotated[ + Optional[StrictStr], + Field( + description="For executing the process using the _Collection Output_ mechanism, where the client is redirected (_303_ status) to either an OGC API landing page or collection resource, from which one or more OGC API data access mechanism is available. Data access requests may trigger processing on-demand for a given area, time and resolution of interest." + ), + ] = None, + prefer: Annotated[ + Optional[StrictStr], + Field( + description="Indicates client preferences, including whether the client is capable of asynchronous processing. A `respond-async` preference indicates a preference for asynchronous processing. A `wait: <x>s` preference indicates that the client prefers to wait up to x seconds to receive a reponse synchronously before the server falls back to asynchronous processing." + ), + ] = None, + execute_workflows: Optional[ExecuteWorkflows] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[Execute200ResponseInput]: + """execute a process. + + Executes a process (this may result in the creation of a job resource e.g., for _asynchronous execution_). For more information, see [Section 7.9](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_create_job). + + :param process_id: (required) + :type process_id: str + :param response: For executing the process using the _Collection Output_ mechanism, where the client is redirected (_303_ status) to either an OGC API landing page or collection resource, from which one or more OGC API data access mechanism is available. Data access requests may trigger processing on-demand for a given area, time and resolution of interest. + :type response: str + :param prefer: Indicates client preferences, including whether the client is capable of asynchronous processing. A `respond-async` preference indicates a preference for asynchronous processing. A `wait: <x>s` preference indicates that the client prefers to wait up to x seconds to receive a reponse synchronously before the server falls back to asynchronous processing. + :type prefer: str + :param execute_workflows: + :type execute_workflows: ExecuteWorkflows + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._execute_processes_process_id_execution_post_serialize( + process_id=process_id, + response=response, + prefer=prefer, + execute_workflows=execute_workflows, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "Execute200ResponseInput", + "201": "StatusInfo", + "303": None, + "404": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def execute_processes_process_id_execution_post_without_preload_content( + self, + process_id: StrictStr, + response: Annotated[ + Optional[StrictStr], + Field( + description="For executing the process using the _Collection Output_ mechanism, where the client is redirected (_303_ status) to either an OGC API landing page or collection resource, from which one or more OGC API data access mechanism is available. Data access requests may trigger processing on-demand for a given area, time and resolution of interest." + ), + ] = None, + prefer: Annotated[ + Optional[StrictStr], + Field( + description="Indicates client preferences, including whether the client is capable of asynchronous processing. A `respond-async` preference indicates a preference for asynchronous processing. A `wait: <x>s` preference indicates that the client prefers to wait up to x seconds to receive a reponse synchronously before the server falls back to asynchronous processing." + ), + ] = None, + execute_workflows: Optional[ExecuteWorkflows] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """execute a process. + + Executes a process (this may result in the creation of a job resource e.g., for _asynchronous execution_). For more information, see [Section 7.9](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_create_job). + + :param process_id: (required) + :type process_id: str + :param response: For executing the process using the _Collection Output_ mechanism, where the client is redirected (_303_ status) to either an OGC API landing page or collection resource, from which one or more OGC API data access mechanism is available. Data access requests may trigger processing on-demand for a given area, time and resolution of interest. + :type response: str + :param prefer: Indicates client preferences, including whether the client is capable of asynchronous processing. A `respond-async` preference indicates a preference for asynchronous processing. A `wait: <x>s` preference indicates that the client prefers to wait up to x seconds to receive a reponse synchronously before the server falls back to asynchronous processing. + :type prefer: str + :param execute_workflows: + :type execute_workflows: ExecuteWorkflows + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._execute_processes_process_id_execution_post_serialize( + process_id=process_id, + response=response, + prefer=prefer, + execute_workflows=execute_workflows, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "Execute200ResponseInput", + "201": "StatusInfo", + "303": None, + "404": "Exception", + "422": "HTTPValidationError", + "500": "Exception", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + return response_data.response + + def _execute_processes_process_id_execution_post_serialize( + self, + process_id, + response, + prefer, + execute_workflows, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if process_id is not None: + _path_params["processId"] = process_id + # process the query parameters + if response is not None: + + _query_params.append(("response", response)) + + # process the header parameters + if prefer is not None: + _header_params["prefer"] = prefer + # process the form parameters + # process the body parameter + if execute_workflows is not None: + _body_params = execute_workflows + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params["Content-Type"] = _content_type + else: + _default_content_type = self.api_client.select_header_content_type( + ["application/json"] + ) + if _default_content_type is not None: + _header_params["Content-Type"] = _default_content_type + + # authentication setting + _auth_settings: List[str] = ["bearerAuth"] + + return self.api_client.param_serialize( + method="POST", + resource_path="/processes/{processId}/execution", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) + + @validate_call + def get_process_description_processes_process_id_get( + self, + process_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ProcessInput: + """retrieve a process description + + The process description contains information about inputs and outputs and a link to the execution-endpoint for the process. The Core does not mandate the use of a specific process description to specify the interface of a process. That said, the Core requirements class makes the following recommendation: Implementations SHOULD consider supporting the OGC process description. For more information, see [Section 7.8](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_process_description). + + :param process_id: (required) + :type process_id: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_process_description_processes_process_id_get_serialize( + process_id=process_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "ProcessInput", + "404": "Exception", + "422": "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def get_process_description_processes_process_id_get_with_http_info( + self, + process_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ProcessInput]: + """retrieve a process description + + The process description contains information about inputs and outputs and a link to the execution-endpoint for the process. The Core does not mandate the use of a specific process description to specify the interface of a process. That said, the Core requirements class makes the following recommendation: Implementations SHOULD consider supporting the OGC process description. For more information, see [Section 7.8](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_process_description). + + :param process_id: (required) + :type process_id: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_process_description_processes_process_id_get_serialize( + process_id=process_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "ProcessInput", + "404": "Exception", + "422": "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def get_process_description_processes_process_id_get_without_preload_content( + self, + process_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """retrieve a process description + + The process description contains information about inputs and outputs and a link to the execution-endpoint for the process. The Core does not mandate the use of a specific process description to specify the interface of a process. That said, the Core requirements class makes the following recommendation: Implementations SHOULD consider supporting the OGC process description. For more information, see [Section 7.8](https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_process_description). + + :param process_id: (required) + :type process_id: str + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_process_description_processes_process_id_get_serialize( + process_id=process_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "ProcessInput", + "404": "Exception", + "422": "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + return response_data.response + + def _get_process_description_processes_process_id_get_serialize( + self, + process_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if process_id is not None: + _path_params["processId"] = process_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # authentication setting + _auth_settings: List[str] = ["bearerAuth"] + + return self.api_client.param_serialize( + method="GET", + resource_path="/processes/{processId}", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) + + @validate_call + def get_processes_processes_get( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ProcessListInput: + """retrieve the list of available processes + + The list of processes contains a summary of each process the OGC API - Processes offers, including the link to a more detailed description of the process. For more information, see [Section 7.7]https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_process_list). + + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_processes_processes_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "ProcessListInput", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def get_processes_processes_get_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ProcessListInput]: + """retrieve the list of available processes + + The list of processes contains a summary of each process the OGC API - Processes offers, including the link to a more detailed description of the process. For more information, see [Section 7.7]https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_process_list). + + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_processes_processes_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "ProcessListInput", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def get_processes_processes_get_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """retrieve the list of available processes + + The list of processes contains a summary of each process the OGC API - Processes offers, including the link to a more detailed description of the process. For more information, see [Section 7.7]https://docs.ogc.org/is/18-062r2/18-062r2.html#sc_process_list). + + :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. + :type _request_timeout: int, tuple(int, int), optional + :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 + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_processes_processes_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "ProcessListInput", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + return response_data.response + + def _get_processes_processes_get_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # authentication setting + _auth_settings: List[str] = ["bearerAuth"] + + return self.api_client.param_serialize( + method="GET", + resource_path="/processes", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) diff --git a/unity_sps_ogc_processes_api_python_client/api_client.py b/unity_sps_ogc_processes_api_python_client/api_client.py index 600b568..23f69a3 100644 --- a/unity_sps_ogc_processes_api_python_client/api_client.py +++ b/unity_sps_ogc_processes_api_python_client/api_client.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -212,7 +212,7 @@ def param_serialize( body = self.sanitize_for_serialization(body) # request url - if _host is None: + if _host is None or self.configuration.ignore_operation_servers: url = self.configuration.host + resource_path else: # use server/host defined in path or operation instead @@ -303,12 +303,9 @@ def response_deserialize( match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type) encoding = match.group(1) if match else "utf-8" response_text = response_data.data.decode(encoding) - if response_type in ["bytearray", "str"]: - return_data = self.__deserialize_primitive( - response_text, response_type - ) - else: - return_data = self.deserialize(response_text, response_type) + return_data = self.deserialize( + response_text, response_type, content_type + ) finally: if not 200 <= response_data.status <= 299: raise ApiException.from_response( @@ -371,21 +368,36 @@ def sanitize_for_serialization(self, obj): key: self.sanitize_for_serialization(val) for key, val in obj_dict.items() } - def deserialize(self, response_text, response_type): + def deserialize( + self, response_text: str, response_type: str, content_type: Optional[str] + ): """Deserializes response into an object. :param response: RESTResponse object to be deserialized. :param response_type: class literal for deserialized object, or string of class name. + :param content_type: content type of response. :return: deserialized object. """ # fetch data from response object - try: - data = json.loads(response_text) - except ValueError: + if content_type is None: + try: + data = json.loads(response_text) + except ValueError: + data = response_text + elif content_type.startswith("application/json"): + if response_text == "": + data = "" + else: + data = json.loads(response_text) + elif content_type.startswith("text/plain"): data = response_text + else: + raise ApiException( + status=0, reason="Unsupported content type: {0}".format(content_type) + ) return self.__deserialize(data, response_type) diff --git a/unity_sps_ogc_processes_api_python_client/configuration.py b/unity_sps_ogc_processes_api_python_client/configuration.py index b8e96c1..542373a 100644 --- a/unity_sps_ogc_processes_api_python_client/configuration.py +++ b/unity_sps_ogc_processes_api_python_client/configuration.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,6 +40,9 @@ class Configuration: """This class contains various settings of the API client. :param host: Base url. + :param ignore_operation_servers + Boolean to ignore operation servers for the API client. + Config will use `host` as the base url regardless of the operation servers. :param api_key: Dict to store API key(s). Each entry in the dict specifies an API key. The dict key is the name of the security scheme in the OAS specification. @@ -62,6 +65,7 @@ class Configuration: values before. :param ssl_ca_cert: str - the path to a file of concatenated CA certificates in PEM format. + :param retries: Number of retries for API requests. :Example: """ @@ -80,7 +84,11 @@ def __init__( server_variables=None, server_operation_index=None, server_operation_variables=None, + ignore_operation_servers=False, ssl_ca_cert=None, + retries=None, + *, + debug: Optional[bool] = None ) -> None: """Constructor""" self._base_path = "http://localhost" if host is None else host @@ -94,6 +102,9 @@ def __init__( self.server_operation_variables = server_operation_variables or {} """Default server variables """ + self.ignore_operation_servers = ignore_operation_servers + """Ignore operation servers + """ self.temp_folder_path = None """Temp file folder for downloading files """ @@ -139,7 +150,10 @@ def __init__( self.logger_file = None """Debug file location """ - self.debug = False + if debug is not None: + self.debug = debug + else: + self.__debug = False """Debug switch """ @@ -182,7 +196,7 @@ def __init__( self.safe_chars_for_path_param = "" """Safe chars for path_param """ - self.retries = None + self.retries = retries """Adding retries to override urllib3 default value 3 """ # Enable client side validation @@ -396,7 +410,7 @@ def to_debug_report(self): "Python SDK Debug Report:\n" "OS: {env}\n" "Python Version: {pyversion}\n" - "Version of the API: 1.0.0\n" + "Version of the API: 2.0.0\n" "SDK Package Version: 1.0.0".format(env=sys.platform, pyversion=sys.version) ) diff --git a/unity_sps_ogc_processes_api_python_client/exceptions.py b/unity_sps_ogc_processes_api_python_client/exceptions.py index f0c2068..e6e2fec 100644 --- a/unity_sps_ogc_processes_api_python_client/exceptions.py +++ b/unity_sps_ogc_processes_api_python_client/exceptions.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/unity_sps_ogc_processes_api_python_client/models/__init__.py b/unity_sps_ogc_processes_api_python_client/models/__init__.py index aa9b3e6..adb3c27 100644 --- a/unity_sps_ogc_processes_api_python_client/models/__init__.py +++ b/unity_sps_ogc_processes_api_python_client/models/__init__.py @@ -2,11 +2,11 @@ # flake8: noqa """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,16 +14,90 @@ # import models into model package +from unity_sps_ogc_processes_api_python_client.models.actual_instance import ( + ActualInstance, +) +from unity_sps_ogc_processes_api_python_client.models.actual_instance1 import ( + ActualInstance1, +) +from unity_sps_ogc_processes_api_python_client.models.actual_instance2 import ( + ActualInstance2, +) +from unity_sps_ogc_processes_api_python_client.models.actual_instance3 import ( + ActualInstance3, +) +from unity_sps_ogc_processes_api_python_client.models.actual_instance4 import ( + ActualInstance4, +) +from unity_sps_ogc_processes_api_python_client.models.actual_instance5 import ( + ActualInstance5, +) +from unity_sps_ogc_processes_api_python_client.models.actual_instance6 import ( + ActualInstance6, +) from unity_sps_ogc_processes_api_python_client.models.bbox import Bbox +from unity_sps_ogc_processes_api_python_client.models.bbox1 import Bbox1 +from unity_sps_ogc_processes_api_python_client.models.bbox_bbox_inner import ( + BboxBboxInner, +) +from unity_sps_ogc_processes_api_python_client.models.bbox_def_crs import BboxDefCrs from unity_sps_ogc_processes_api_python_client.models.conf_classes import ConfClasses -from unity_sps_ogc_processes_api_python_client.models.crs import Crs -from unity_sps_ogc_processes_api_python_client.models.crs5 import Crs5 +from unity_sps_ogc_processes_api_python_client.models.cpumax import Cpumax +from unity_sps_ogc_processes_api_python_client.models.cpumin import Cpumin +from unity_sps_ogc_processes_api_python_client.models.enumeration import Enumeration from unity_sps_ogc_processes_api_python_client.models.exception import Exception -from unity_sps_ogc_processes_api_python_client.models.execute import Execute +from unity_sps_ogc_processes_api_python_client.models.execute200_response_input import ( + Execute200ResponseInput, +) +from unity_sps_ogc_processes_api_python_client.models.execute200_response_input_any_of_value import ( + Execute200ResponseInputAnyOfValue, +) +from unity_sps_ogc_processes_api_python_client.models.execute200_response_output import ( + Execute200ResponseOutput, +) +from unity_sps_ogc_processes_api_python_client.models.execute200_response_output_any_of_value import ( + Execute200ResponseOutputAnyOfValue, +) +from unity_sps_ogc_processes_api_python_client.models.execute_workflows import ( + ExecuteWorkflows, +) +from unity_sps_ogc_processes_api_python_client.models.execution_unit import ( + ExecutionUnit, +) +from unity_sps_ogc_processes_api_python_client.models.execution_unit_config import ( + ExecutionUnitConfig, +) +from unity_sps_ogc_processes_api_python_client.models.fields_modifiers_properties import ( + FieldsModifiersProperties, +) +from unity_sps_ogc_processes_api_python_client.models.format import Format +from unity_sps_ogc_processes_api_python_client.models.format_schema import FormatSchema from unity_sps_ogc_processes_api_python_client.models.health_check import HealthCheck from unity_sps_ogc_processes_api_python_client.models.http_validation_error import ( HTTPValidationError, ) +from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_input import ( + InlineOrRefDataInput, +) +from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_output import ( + InlineOrRefDataOutput, +) +from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows import ( + InlineOrRefDataWorkflows, +) +from unity_sps_ogc_processes_api_python_client.models.input_collection import ( + InputCollection, +) +from unity_sps_ogc_processes_api_python_client.models.input_description_input import ( + InputDescriptionInput, +) +from unity_sps_ogc_processes_api_python_client.models.input_description_output import ( + InputDescriptionOutput, +) +from unity_sps_ogc_processes_api_python_client.models.input_parameterized import ( + InputParameterized, +) +from unity_sps_ogc_processes_api_python_client.models.input_process import InputProcess from unity_sps_ogc_processes_api_python_client.models.input_value_input import ( InputValueInput, ) @@ -33,28 +107,135 @@ from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_output import ( InputValueNoObjectOutput, ) +from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows import ( + InputValueNoObjectWorkflows, +) from unity_sps_ogc_processes_api_python_client.models.input_value_output import ( InputValueOutput, ) +from unity_sps_ogc_processes_api_python_client.models.input_value_workflows import ( + InputValueWorkflows, +) +from unity_sps_ogc_processes_api_python_client.models.input_workflows import ( + InputWorkflows, +) +from unity_sps_ogc_processes_api_python_client.models.input_workflows1 import ( + InputWorkflows1, +) +from unity_sps_ogc_processes_api_python_client.models.input_workflows_any_of_inner import ( + InputWorkflowsAnyOfInner, +) from unity_sps_ogc_processes_api_python_client.models.job_control_options import ( JobControlOptions, ) -from unity_sps_ogc_processes_api_python_client.models.job_list import JobList +from unity_sps_ogc_processes_api_python_client.models.job_list_input import JobListInput +from unity_sps_ogc_processes_api_python_client.models.job_list_output import ( + JobListOutput, +) +from unity_sps_ogc_processes_api_python_client.models.jobtimeout import Jobtimeout from unity_sps_ogc_processes_api_python_client.models.landing_page import LandingPage from unity_sps_ogc_processes_api_python_client.models.link import Link -from unity_sps_ogc_processes_api_python_client.models.metadata import Metadata -from unity_sps_ogc_processes_api_python_client.models.metadata1 import Metadata1 -from unity_sps_ogc_processes_api_python_client.models.metadata2 import Metadata2 +from unity_sps_ogc_processes_api_python_client.models.maximum import Maximum +from unity_sps_ogc_processes_api_python_client.models.memorymax import Memorymax +from unity_sps_ogc_processes_api_python_client.models.memorymin import Memorymin +from unity_sps_ogc_processes_api_python_client.models.metadata_input import ( + MetadataInput, +) +from unity_sps_ogc_processes_api_python_client.models.metadata_one_of import ( + MetadataOneOf, +) +from unity_sps_ogc_processes_api_python_client.models.metadata_one_of1 import ( + MetadataOneOf1, +) +from unity_sps_ogc_processes_api_python_client.models.metadata_one_of1_value import ( + MetadataOneOf1Value, +) +from unity_sps_ogc_processes_api_python_client.models.metadata_output import ( + MetadataOutput, +) +from unity_sps_ogc_processes_api_python_client.models.minimum import Minimum +from unity_sps_ogc_processes_api_python_client.models.model_schema_input import ( + ModelSchemaInput, +) +from unity_sps_ogc_processes_api_python_client.models.model_schema_output import ( + ModelSchemaOutput, +) +from unity_sps_ogc_processes_api_python_client.models.multipleof import Multipleof +from unity_sps_ogc_processes_api_python_client.models.ogcapppkg import Ogcapppkg +from unity_sps_ogc_processes_api_python_client.models.ogcapppkg_execution_unit import ( + OgcapppkgExecutionUnit, +) +from unity_sps_ogc_processes_api_python_client.models.ogcapppkg_execution_unit_any_of_inner import ( + OgcapppkgExecutionUnitAnyOfInner, +) +from unity_sps_ogc_processes_api_python_client.models.oneof_schema2_validator import ( + OneofSchema2Validator, +) +from unity_sps_ogc_processes_api_python_client.models.oneof_schema6_validator import ( + OneofSchema6Validator, +) +from unity_sps_ogc_processes_api_python_client.models.output_description_input import ( + OutputDescriptionInput, +) +from unity_sps_ogc_processes_api_python_client.models.output_description_output import ( + OutputDescriptionOutput, +) +from unity_sps_ogc_processes_api_python_client.models.output_workflows import ( + OutputWorkflows, +) +from unity_sps_ogc_processes_api_python_client.models.output_workflows1 import ( + OutputWorkflows1, +) from unity_sps_ogc_processes_api_python_client.models.process_input import ProcessInput -from unity_sps_ogc_processes_api_python_client.models.process_list import ProcessList +from unity_sps_ogc_processes_api_python_client.models.process_list_input import ( + ProcessListInput, +) +from unity_sps_ogc_processes_api_python_client.models.process_list_output import ( + ProcessListOutput, +) from unity_sps_ogc_processes_api_python_client.models.process_output import ( ProcessOutput, ) -from unity_sps_ogc_processes_api_python_client.models.process_summary import ( - ProcessSummary, +from unity_sps_ogc_processes_api_python_client.models.process_summary_input import ( + ProcessSummaryInput, +) +from unity_sps_ogc_processes_api_python_client.models.process_summary_output import ( + ProcessSummaryOutput, +) +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_input import ( + QualifiedInputValueInput, +) +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_output import ( + QualifiedInputValueOutput, +) +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows import ( + QualifiedInputValueWorkflows, +) +from unity_sps_ogc_processes_api_python_client.models.reference import Reference +from unity_sps_ogc_processes_api_python_client.models.schema1_input import Schema1Input +from unity_sps_ogc_processes_api_python_client.models.schema1_output import ( + Schema1Output, +) +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties_input import ( + SchemaOneOfAdditionalPropertiesInput, +) +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties_output import ( + SchemaOneOfAdditionalPropertiesOutput, +) +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_input import ( + SchemaOneOfInput, +) +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_output import ( + SchemaOneOfOutput, ) from unity_sps_ogc_processes_api_python_client.models.status_code import StatusCode from unity_sps_ogc_processes_api_python_client.models.status_info import StatusInfo +from unity_sps_ogc_processes_api_python_client.models.storageoutputsmin import ( + Storageoutputsmin, +) +from unity_sps_ogc_processes_api_python_client.models.storagetempmin import ( + Storagetempmin, +) from unity_sps_ogc_processes_api_python_client.models.subscriber import Subscriber from unity_sps_ogc_processes_api_python_client.models.validation_error import ( ValidationError, @@ -62,4 +243,3 @@ from unity_sps_ogc_processes_api_python_client.models.validation_error_loc_inner import ( ValidationErrorLocInner, ) -from unity_sps_ogc_processes_api_python_client.models.value import Value diff --git a/unity_sps_ogc_processes_api_python_client/models/actual_instance.py b/unity_sps_ogc_processes_api_python_client/models/actual_instance.py new file mode 100644 index 0000000..6f02505 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/actual_instance.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, ValidationError, field_validator +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.link import Link + +ACTUALINSTANCE_ANY_OF_SCHEMAS = [ + "InputValueNoObjectWorkflows", + "Link", + "QualifiedInputValueWorkflows", +] + + +class ActualInstance(BaseModel): + """ + ActualInstance + """ + + # data type: InputValueNoObjectWorkflows + anyof_schema_1_validator: Optional[InputValueNoObjectWorkflows] = None + # data type: Link + anyof_schema_2_validator: Optional[Link] = None + # data type: QualifiedInputValueWorkflows + anyof_schema_3_validator: Optional[QualifiedInputValueWorkflows] = None + if TYPE_CHECKING: + actual_instance: Optional[ + Union[InputValueNoObjectWorkflows, Link, QualifiedInputValueWorkflows] + ] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { + "InputValueNoObjectWorkflows", + "Link", + "QualifiedInputValueWorkflows", + } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + if v is None: + return v + + ActualInstance.model_construct() + error_messages = [] + # validate data type: InputValueNoObjectWorkflows + if not isinstance(v, InputValueNoObjectWorkflows): + error_messages.append( + f"Error! Input type `{type(v)}` is not `InputValueNoObjectWorkflows`" + ) + else: + return v + + # validate data type: Link + if not isinstance(v, Link): + error_messages.append(f"Error! Input type `{type(v)}` is not `Link`") + else: + return v + + # validate data type: QualifiedInputValueWorkflows + if not isinstance(v, QualifiedInputValueWorkflows): + error_messages.append( + f"Error! Input type `{type(v)}` is not `QualifiedInputValueWorkflows`" + ) + else: + return v + + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in ActualInstance with anyOf schemas: InputValueNoObjectWorkflows, Link, QualifiedInputValueWorkflows. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + if json_str is None: + return instance + + error_messages = [] + # anyof_schema_1_validator: Optional[InputValueNoObjectWorkflows] = None + try: + instance.actual_instance = InputValueNoObjectWorkflows.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[Link] = None + try: + instance.actual_instance = Link.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_3_validator: Optional[QualifiedInputValueWorkflows] = None + try: + instance.actual_instance = QualifiedInputValueWorkflows.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into ActualInstance with anyOf schemas: InputValueNoObjectWorkflows, Link, QualifiedInputValueWorkflows. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict( + self, + ) -> Optional[ + Union[ + Dict[str, Any], + InputValueNoObjectWorkflows, + Link, + QualifiedInputValueWorkflows, + ] + ]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + +from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows import ( + InputValueNoObjectWorkflows, +) +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows import ( + QualifiedInputValueWorkflows, +) + +# TODO: Rewrite to not use raise_errors +ActualInstance.model_rebuild(raise_errors=False) diff --git a/unity_sps_ogc_processes_api_python_client/models/actual_instance1.py b/unity_sps_ogc_processes_api_python_client/models/actual_instance1.py new file mode 100644 index 0000000..99d909d --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/actual_instance1.py @@ -0,0 +1,338 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set, Union + +from pydantic import ( + BaseModel, + StrictBool, + StrictFloat, + StrictInt, + StrictStr, + ValidationError, + field_validator, +) +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.bbox1 import Bbox1 +from unity_sps_ogc_processes_api_python_client.models.input_collection import ( + InputCollection, +) +from unity_sps_ogc_processes_api_python_client.models.input_parameterized import ( + InputParameterized, +) + +ACTUALINSTANCE1_ANY_OF_SCHEMAS = [ + "Bbox1", + "InputCollection", + "InputParameterized", + "InputProcess", + "List[object]", + "bool", + "float", + "int", + "str", +] + + +class ActualInstance1(BaseModel): + """ + ActualInstance1 + """ + + # data type: Bbox1 + anyof_schema_1_validator: Optional[Bbox1] = None + # data type: InputCollection + anyof_schema_2_validator: Optional[InputCollection] = None + # data type: InputParameterized + anyof_schema_3_validator: Optional[InputParameterized] = None + # data type: InputProcess + anyof_schema_4_validator: Optional[InputProcess] = None + # data type: List[object] + anyof_schema_5_validator: Optional[List[Any]] = None + # data type: bool + anyof_schema_6_validator: Optional[StrictBool] = None + # data type: float + anyof_schema_7_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_8_validator: Optional[StrictInt] = None + # data type: str + anyof_schema_9_validator: Optional[StrictStr] = None + if TYPE_CHECKING: + actual_instance: Optional[ + Union[ + Bbox1, + InputCollection, + InputParameterized, + InputProcess, + List[object], + bool, + float, + int, + str, + ] + ] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { + "Bbox1", + "InputCollection", + "InputParameterized", + "InputProcess", + "List[object]", + "bool", + "float", + "int", + "str", + } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + if v is None: + return v + + instance = ActualInstance1.model_construct() + error_messages = [] + # validate data type: Bbox1 + if not isinstance(v, Bbox1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Bbox1`") + else: + return v + + # validate data type: InputCollection + if not isinstance(v, InputCollection): + error_messages.append( + f"Error! Input type `{type(v)}` is not `InputCollection`" + ) + else: + return v + + # validate data type: InputParameterized + if not isinstance(v, InputParameterized): + error_messages.append( + f"Error! Input type `{type(v)}` is not `InputParameterized`" + ) + else: + return v + + # validate data type: InputProcess + if not isinstance(v, InputProcess): + error_messages.append( + f"Error! Input type `{type(v)}` is not `InputProcess`" + ) + else: + return v + + # validate data type: List[object] + try: + instance.anyof_schema_5_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: bool + try: + instance.anyof_schema_6_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.anyof_schema_7_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_8_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: str + try: + instance.anyof_schema_9_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in ActualInstance1 with anyOf schemas: Bbox1, InputCollection, InputParameterized, InputProcess, List[object], bool, float, int, str. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + if json_str is None: + return instance + + error_messages = [] + # anyof_schema_1_validator: Optional[Bbox1] = None + try: + instance.actual_instance = Bbox1.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[InputCollection] = None + try: + instance.actual_instance = InputCollection.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_3_validator: Optional[InputParameterized] = None + try: + instance.actual_instance = InputParameterized.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_4_validator: Optional[InputProcess] = None + try: + instance.actual_instance = InputProcess.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[object] + try: + # validation + instance.anyof_schema_5_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_5_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into bool + try: + # validation + instance.anyof_schema_6_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_6_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.anyof_schema_7_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_7_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_8_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_8_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into str + try: + # validation + instance.anyof_schema_9_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_9_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into ActualInstance1 with anyOf schemas: Bbox1, InputCollection, InputParameterized, InputProcess, List[object], bool, float, int, str. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict( + self, + ) -> Optional[ + Union[ + Dict[str, Any], + Bbox1, + InputCollection, + InputParameterized, + InputProcess, + List[object], + bool, + float, + int, + str, + ] + ]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + +from unity_sps_ogc_processes_api_python_client.models.input_process import InputProcess + +# TODO: Rewrite to not use raise_errors +ActualInstance1.model_rebuild(raise_errors=False) diff --git a/unity_sps_ogc_processes_api_python_client/models/actual_instance2.py b/unity_sps_ogc_processes_api_python_client/models/actual_instance2.py new file mode 100644 index 0000000..6efcd09 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/actual_instance2.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set, Union + +from pydantic import BaseModel, ValidationError, field_validator +from typing_extensions import Self + +ACTUALINSTANCE2_ANY_OF_SCHEMAS = [ + "InlineOrRefDataWorkflows", + "List[InlineOrRefDataWorkflows]", +] + + +class ActualInstance2(BaseModel): + """ + ActualInstance2 + """ + + # data type: InlineOrRefDataWorkflows + anyof_schema_1_validator: Optional[InlineOrRefDataWorkflows] = None + # data type: List[InlineOrRefDataWorkflows] + anyof_schema_2_validator: Optional[List[InlineOrRefDataWorkflows]] = None + if TYPE_CHECKING: + actual_instance: Optional[ + Union[InlineOrRefDataWorkflows, List[InlineOrRefDataWorkflows]] + ] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { + "InlineOrRefDataWorkflows", + "List[InlineOrRefDataWorkflows]", + } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + if v is None: + return v + + instance = ActualInstance2.model_construct() + error_messages = [] + # validate data type: InlineOrRefDataWorkflows + if not isinstance(v, InlineOrRefDataWorkflows): + error_messages.append( + f"Error! Input type `{type(v)}` is not `InlineOrRefDataWorkflows`" + ) + else: + return v + + # validate data type: List[InlineOrRefDataWorkflows] + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in ActualInstance2 with anyOf schemas: InlineOrRefDataWorkflows, List[InlineOrRefDataWorkflows]. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + if json_str is None: + return instance + + error_messages = [] + # anyof_schema_1_validator: Optional[InlineOrRefDataWorkflows] = None + try: + instance.actual_instance = InlineOrRefDataWorkflows.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[InlineOrRefDataWorkflows] + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into ActualInstance2 with anyOf schemas: InlineOrRefDataWorkflows, List[InlineOrRefDataWorkflows]. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict( + self, + ) -> Optional[ + Union[Dict[str, Any], InlineOrRefDataWorkflows, List[InlineOrRefDataWorkflows]] + ]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + +from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows import ( + InlineOrRefDataWorkflows, +) + +# TODO: Rewrite to not use raise_errors +ActualInstance2.model_rebuild(raise_errors=False) diff --git a/unity_sps_ogc_processes_api_python_client/models/actual_instance3.py b/unity_sps_ogc_processes_api_python_client/models/actual_instance3.py new file mode 100644 index 0000000..7407ef7 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/actual_instance3.py @@ -0,0 +1,162 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, ValidationError, field_validator +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.reference import Reference + +ACTUALINSTANCE3_ANY_OF_SCHEMAS = ["Reference", "SchemaOneOfInput"] + + +class ActualInstance3(BaseModel): + """ + ActualInstance3 + """ + + # data type: Reference + anyof_schema_1_validator: Optional[Reference] = None + # data type: SchemaOneOfInput + anyof_schema_2_validator: Optional[SchemaOneOfInput] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[Reference, SchemaOneOfInput]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"Reference", "SchemaOneOfInput"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + if v is None: + return v + + ActualInstance3.model_construct() + error_messages = [] + # validate data type: Reference + if not isinstance(v, Reference): + error_messages.append(f"Error! Input type `{type(v)}` is not `Reference`") + else: + return v + + # validate data type: SchemaOneOfInput + if not isinstance(v, SchemaOneOfInput): + error_messages.append( + f"Error! Input type `{type(v)}` is not `SchemaOneOfInput`" + ) + else: + return v + + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in ActualInstance3 with anyOf schemas: Reference, SchemaOneOfInput. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + if json_str is None: + return instance + + error_messages = [] + # anyof_schema_1_validator: Optional[Reference] = None + try: + instance.actual_instance = Reference.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[SchemaOneOfInput] = None + try: + instance.actual_instance = SchemaOneOfInput.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into ActualInstance3 with anyOf schemas: Reference, SchemaOneOfInput. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], Reference, SchemaOneOfInput]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_input import ( + SchemaOneOfInput, +) + +# TODO: Rewrite to not use raise_errors +ActualInstance3.model_rebuild(raise_errors=False) diff --git a/unity_sps_ogc_processes_api_python_client/models/actual_instance4.py b/unity_sps_ogc_processes_api_python_client/models/actual_instance4.py new file mode 100644 index 0000000..79eed1a --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/actual_instance4.py @@ -0,0 +1,162 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, ValidationError, field_validator +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.reference import Reference + +ACTUALINSTANCE4_ANY_OF_SCHEMAS = ["Reference", "SchemaOneOfOutput"] + + +class ActualInstance4(BaseModel): + """ + ActualInstance4 + """ + + # data type: Reference + anyof_schema_1_validator: Optional[Reference] = None + # data type: SchemaOneOfOutput + anyof_schema_2_validator: Optional[SchemaOneOfOutput] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[Reference, SchemaOneOfOutput]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"Reference", "SchemaOneOfOutput"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + if v is None: + return v + + ActualInstance4.model_construct() + error_messages = [] + # validate data type: Reference + if not isinstance(v, Reference): + error_messages.append(f"Error! Input type `{type(v)}` is not `Reference`") + else: + return v + + # validate data type: SchemaOneOfOutput + if not isinstance(v, SchemaOneOfOutput): + error_messages.append( + f"Error! Input type `{type(v)}` is not `SchemaOneOfOutput`" + ) + else: + return v + + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in ActualInstance4 with anyOf schemas: Reference, SchemaOneOfOutput. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + if json_str is None: + return instance + + error_messages = [] + # anyof_schema_1_validator: Optional[Reference] = None + try: + instance.actual_instance = Reference.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[SchemaOneOfOutput] = None + try: + instance.actual_instance = SchemaOneOfOutput.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into ActualInstance4 with anyOf schemas: Reference, SchemaOneOfOutput. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], Reference, SchemaOneOfOutput]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_output import ( + SchemaOneOfOutput, +) + +# TODO: Rewrite to not use raise_errors +ActualInstance4.model_rebuild(raise_errors=False) diff --git a/unity_sps_ogc_processes_api_python_client/models/actual_instance5.py b/unity_sps_ogc_processes_api_python_client/models/actual_instance5.py new file mode 100644 index 0000000..1b8d379 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/actual_instance5.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, StrictBool, ValidationError, field_validator +from typing_extensions import Self + +ACTUALINSTANCE5_ANY_OF_SCHEMAS = ["Schema1Input", "bool"] + + +class ActualInstance5(BaseModel): + """ + ActualInstance5 + """ + + # data type: Schema1Input + anyof_schema_1_validator: Optional[Schema1Input] = None + # data type: bool + anyof_schema_2_validator: Optional[StrictBool] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[Schema1Input, bool]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"Schema1Input", "bool"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + if v is None: + return v + + instance = ActualInstance5.model_construct() + error_messages = [] + # validate data type: Schema1Input + if not isinstance(v, Schema1Input): + error_messages.append( + f"Error! Input type `{type(v)}` is not `Schema1Input`" + ) + else: + return v + + # validate data type: bool + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in ActualInstance5 with anyOf schemas: Schema1Input, bool. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + if json_str is None: + return instance + + error_messages = [] + # anyof_schema_1_validator: Optional[Schema1Input] = None + try: + instance.actual_instance = Schema1Input.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into bool + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into ActualInstance5 with anyOf schemas: Schema1Input, bool. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], Schema1Input, bool]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + +from unity_sps_ogc_processes_api_python_client.models.schema1_input import Schema1Input + +# TODO: Rewrite to not use raise_errors +ActualInstance5.model_rebuild(raise_errors=False) diff --git a/unity_sps_ogc_processes_api_python_client/models/actual_instance6.py b/unity_sps_ogc_processes_api_python_client/models/actual_instance6.py new file mode 100644 index 0000000..2904b21 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/actual_instance6.py @@ -0,0 +1,163 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, StrictBool, ValidationError, field_validator +from typing_extensions import Self + +ACTUALINSTANCE6_ANY_OF_SCHEMAS = ["Schema1Output", "bool"] + + +class ActualInstance6(BaseModel): + """ + ActualInstance6 + """ + + # data type: Schema1Output + anyof_schema_1_validator: Optional[Schema1Output] = None + # data type: bool + anyof_schema_2_validator: Optional[StrictBool] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[Schema1Output, bool]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"Schema1Output", "bool"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + if v is None: + return v + + instance = ActualInstance6.model_construct() + error_messages = [] + # validate data type: Schema1Output + if not isinstance(v, Schema1Output): + error_messages.append( + f"Error! Input type `{type(v)}` is not `Schema1Output`" + ) + else: + return v + + # validate data type: bool + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in ActualInstance6 with anyOf schemas: Schema1Output, bool. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + if json_str is None: + return instance + + error_messages = [] + # anyof_schema_1_validator: Optional[Schema1Output] = None + try: + instance.actual_instance = Schema1Output.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into bool + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into ActualInstance6 with anyOf schemas: Schema1Output, bool. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], Schema1Output, bool]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + +from unity_sps_ogc_processes_api_python_client.models.schema1_output import ( + Schema1Output, +) + +# TODO: Rewrite to not use raise_errors +ActualInstance6.model_rebuild(raise_errors=False) diff --git a/unity_sps_ogc_processes_api_python_client/models/bbox.py b/unity_sps_ogc_processes_api_python_client/models/bbox.py index b1c3af6..1bc58b7 100644 --- a/unity_sps_ogc_processes_api_python_client/models/bbox.py +++ b/unity_sps_ogc_processes_api_python_client/models/bbox.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,12 +17,15 @@ import json import pprint import re # noqa: F401 -from typing import Any, ClassVar, Dict, List, Optional, Set, Union +from typing import Any, ClassVar, Dict, List, Optional, Set -from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt +from pydantic import BaseModel, ConfigDict from typing_extensions import Self -from unity_sps_ogc_processes_api_python_client.models.crs import Crs +from unity_sps_ogc_processes_api_python_client.models.bbox_bbox_inner import ( + BboxBboxInner, +) +from unity_sps_ogc_processes_api_python_client.models.bbox_def_crs import BboxDefCrs class Bbox(BaseModel): @@ -30,8 +33,8 @@ class Bbox(BaseModel): Bbox """ # noqa: E501 - bbox: List[Union[StrictFloat, StrictInt]] - crs: Optional[Crs] = None + bbox: List[BboxBboxInner] + crs: Optional[BboxDefCrs] = None __properties: ClassVar[List[str]] = ["bbox", "crs"] model_config = ConfigDict( @@ -71,6 +74,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of each item in bbox (list) + _items = [] + if self.bbox: + for _item in self.bbox: + if _item: + _items.append(_item.to_dict()) + _dict["bbox"] = _items # override the default output from pydantic by calling `to_dict()` of crs if self.crs: _dict["crs"] = self.crs.to_dict() @@ -92,9 +102,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "bbox": obj.get("bbox"), + "bbox": ( + [BboxBboxInner.from_dict(_item) for _item in obj["bbox"]] + if obj.get("bbox") is not None + else None + ), "crs": ( - Crs.from_dict(obj["crs"]) if obj.get("crs") is not None else None + BboxDefCrs.from_dict(obj["crs"]) + if obj.get("crs") is not None + else None ), } ) diff --git a/unity_sps_ogc_processes_api_python_client/models/bbox1.py b/unity_sps_ogc_processes_api_python_client/models/bbox1.py new file mode 100644 index 0000000..8a5c324 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/bbox1.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.bbox_bbox_inner import ( + BboxBboxInner, +) +from unity_sps_ogc_processes_api_python_client.models.bbox_def_crs import BboxDefCrs + + +class Bbox1(BaseModel): + """ + Bbox1 + """ # noqa: E501 + + bbox: List[BboxBboxInner] + crs: Optional[BboxDefCrs] = None + __properties: ClassVar[List[str]] = ["bbox", "crs"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Bbox1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in bbox (list) + _items = [] + if self.bbox: + for _item in self.bbox: + if _item: + _items.append(_item.to_dict()) + _dict["bbox"] = _items + # override the default output from pydantic by calling `to_dict()` of crs + if self.crs: + _dict["crs"] = self.crs.to_dict() + # set to None if crs (nullable) is None + # and model_fields_set contains the field + if self.crs is None and "crs" in self.model_fields_set: + _dict["crs"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Bbox1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "bbox": ( + [BboxBboxInner.from_dict(_item) for _item in obj["bbox"]] + if obj.get("bbox") is not None + else None + ), + "crs": ( + BboxDefCrs.from_dict(obj["crs"]) + if obj.get("crs") is not None + else None + ), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/bbox_bbox_inner.py b/unity_sps_ogc_processes_api_python_client/models/bbox_bbox_inner.py new file mode 100644 index 0000000..b07dff8 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/bbox_bbox_inner.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, StrictFloat, StrictInt, ValidationError, field_validator +from typing_extensions import Self + +BBOXBBOXINNER_ANY_OF_SCHEMAS = ["float", "int"] + + +class BboxBboxInner(BaseModel): + """ + BboxBboxInner + """ + + # data type: float + anyof_schema_1_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_2_validator: Optional[StrictInt] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[float, int]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"float", "int"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + instance = BboxBboxInner.model_construct() + error_messages = [] + # validate data type: float + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in BboxBboxInner with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into float + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into BboxBboxInner with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, int]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/bbox_def_crs.py b/unity_sps_ogc_processes_api_python_client/models/bbox_def_crs.py new file mode 100644 index 0000000..24a583b --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/bbox_def_crs.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing_extensions import Self + + +class BboxDefCrs(BaseModel): + """ + BboxDefCrs + """ # noqa: E501 + + actual_instance: Optional[Any] = None + any_of_schemas: Optional[List[StrictStr]] = None + anyof_schema_1_validator: Optional[StrictStr] = None + anyof_schema_2_validator: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = [ + "actual_instance", + "any_of_schemas", + "anyof_schema_1_validator", + "anyof_schema_2_validator", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BboxDefCrs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if actual_instance (nullable) is None + # and model_fields_set contains the field + if self.actual_instance is None and "actual_instance" in self.model_fields_set: + _dict["actual_instance"] = None + + # set to None if anyof_schema_1_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.anyof_schema_1_validator is None + and "anyof_schema_1_validator" in self.model_fields_set + ): + _dict["anyof_schema_1_validator"] = None + + # set to None if anyof_schema_2_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.anyof_schema_2_validator is None + and "anyof_schema_2_validator" in self.model_fields_set + ): + _dict["anyof_schema_2_validator"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BboxDefCrs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "actual_instance": obj.get("actual_instance"), + "any_of_schemas": obj.get("any_of_schemas"), + "anyof_schema_1_validator": obj.get("anyof_schema_1_validator"), + "anyof_schema_2_validator": obj.get("anyof_schema_2_validator"), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/conf_classes.py b/unity_sps_ogc_processes_api_python_client/models/conf_classes.py index d3c29f9..f96af6a 100644 --- a/unity_sps_ogc_processes_api_python_client/models/conf_classes.py +++ b/unity_sps_ogc_processes_api_python_client/models/conf_classes.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/unity_sps_ogc_processes_api_python_client/models/cpumax.py b/unity_sps_ogc_processes_api_python_client/models/cpumax.py new file mode 100644 index 0000000..4dd66c4 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/cpumax.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, StrictFloat, StrictInt, ValidationError, field_validator +from typing_extensions import Self + +CPUMAX_ANY_OF_SCHEMAS = ["float", "int"] + + +class Cpumax(BaseModel): + """ + Maximum number of CPU dedicated to the process (unit is CPU core) + """ + + # data type: float + anyof_schema_1_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_2_validator: Optional[StrictInt] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[float, int]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"float", "int"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + if v is None: + return v + + instance = Cpumax.model_construct() + error_messages = [] + # validate data type: float + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in Cpumax with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + if json_str is None: + return instance + + error_messages = [] + # deserialize data into float + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into Cpumax with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, int]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/cpumin.py b/unity_sps_ogc_processes_api_python_client/models/cpumin.py new file mode 100644 index 0000000..f193828 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/cpumin.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, Field, ValidationError, field_validator +from typing_extensions import Annotated, Self + +CPUMIN_ANY_OF_SCHEMAS = ["float", "int"] + + +class Cpumin(BaseModel): + """ + Minimum number of CPUs required to run the process (unit is CPU core). + """ + + # data type: float + anyof_schema_1_validator: Optional[ + Union[ + Annotated[float, Field(strict=True, ge=1.0)], + Annotated[int, Field(strict=True, ge=1)], + ] + ] = None + # data type: int + anyof_schema_2_validator: Optional[Annotated[int, Field(strict=True, ge=1)]] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[float, int]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"float", "int"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + if v is None: + return v + + instance = Cpumin.model_construct() + error_messages = [] + # validate data type: float + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in Cpumin with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + if json_str is None: + return instance + + error_messages = [] + # deserialize data into float + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into Cpumin with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, int]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/enumeration.py b/unity_sps_ogc_processes_api_python_client/models/enumeration.py new file mode 100644 index 0000000..a830f62 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/enumeration.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing_extensions import Self + + +class Enumeration(BaseModel): + """ + Enumeration + """ # noqa: E501 + + enum: List[StrictStr] + type: StrictStr + __properties: ClassVar[List[str]] = ["enum", "type"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Enumeration from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Enumeration from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({"enum": obj.get("enum"), "type": obj.get("type")}) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/exception.py b/unity_sps_ogc_processes_api_python_client/models/exception.py index 9b0b378..0d8f6ef 100644 --- a/unity_sps_ogc_processes_api_python_client/models/exception.py +++ b/unity_sps_ogc_processes_api_python_client/models/exception.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -25,16 +25,17 @@ class Exception(BaseModel): """ - Exception + JSON schema for exceptions based on RFC 7807 """ # noqa: E501 + additional_properties: Optional[Dict[str, Any]] = None detail: Optional[StrictStr] = None instance: Optional[StrictStr] = None status: Optional[StrictInt] = None title: Optional[StrictStr] = None type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = [ + "additional_properties", "detail", "instance", "status", @@ -71,24 +72,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if detail (nullable) is None # and model_fields_set contains the field if self.detail is None and "detail" in self.model_fields_set: @@ -122,6 +113,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { + "additional_properties": obj.get("additional_properties"), "detail": obj.get("detail"), "instance": obj.get("instance"), "status": obj.get("status"), @@ -129,9 +121,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "type": obj.get("type"), } ) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/execute200_response_input.py b/unity_sps_ogc_processes_api_python_client/models/execute200_response_input.py new file mode 100644 index 0000000..10ed781 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/execute200_response_input.py @@ -0,0 +1,305 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set, Union + +from pydantic import ( + BaseModel, + StrictBool, + StrictFloat, + StrictInt, + StrictStr, + ValidationError, + field_validator, +) +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.execute200_response_input_any_of_value import ( + Execute200ResponseInputAnyOfValue, +) + +EXECUTE200RESPONSEINPUT_ANY_OF_SCHEMAS = [ + "Dict[str, Execute200ResponseInputAnyOfValue]", + "List[object]", + "bool", + "float", + "int", + "object", + "str", +] + + +class Execute200ResponseInput(BaseModel): + """ + Execute200ResponseInput + """ + + # data type: Dict[str, Execute200ResponseInputAnyOfValue] + anyof_schema_1_validator: Optional[Dict[str, Execute200ResponseInputAnyOfValue]] = ( + None + ) + # data type: List[object] + anyof_schema_2_validator: Optional[List[Any]] = None + # data type: bool + anyof_schema_3_validator: Optional[StrictBool] = None + # data type: str + anyof_schema_4_validator: Optional[StrictStr] = None + # data type: float + anyof_schema_5_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_6_validator: Optional[StrictInt] = None + # data type: object + anyof_schema_7_validator: Optional[Dict[str, Any]] = None + # data type: str + anyof_schema_8_validator: Optional[StrictStr] = None + if TYPE_CHECKING: + actual_instance: Optional[ + Union[ + Dict[str, Execute200ResponseInputAnyOfValue], + List[object], + bool, + float, + int, + object, + str, + ] + ] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { + "Dict[str, Execute200ResponseInputAnyOfValue]", + "List[object]", + "bool", + "float", + "int", + "object", + "str", + } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + instance = Execute200ResponseInput.model_construct() + error_messages = [] + # validate data type: Dict[str, Execute200ResponseInputAnyOfValue] + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: List[object] + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: bool + try: + instance.anyof_schema_3_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: str + try: + instance.anyof_schema_4_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.anyof_schema_5_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_6_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: object + try: + instance.anyof_schema_7_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: str + try: + instance.anyof_schema_8_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in Execute200ResponseInput with anyOf schemas: Dict[str, Execute200ResponseInputAnyOfValue], List[object], bool, float, int, object, str. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into Dict[str, Execute200ResponseInputAnyOfValue] + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[object] + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into bool + try: + # validation + instance.anyof_schema_3_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_3_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into str + try: + # validation + instance.anyof_schema_4_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_4_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.anyof_schema_5_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_5_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_6_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_6_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into object + try: + # validation + instance.anyof_schema_7_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_7_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into str + try: + # validation + instance.anyof_schema_8_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_8_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into Execute200ResponseInput with anyOf schemas: Dict[str, Execute200ResponseInputAnyOfValue], List[object], bool, float, int, object, str. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict( + self, + ) -> Optional[ + Union[ + Dict[str, Any], + Dict[str, Execute200ResponseInputAnyOfValue], + List[object], + bool, + float, + int, + object, + str, + ] + ]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/execute200_response_input_any_of_value.py b/unity_sps_ogc_processes_api_python_client/models/execute200_response_input_any_of_value.py new file mode 100644 index 0000000..2c84fed --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/execute200_response_input_any_of_value.py @@ -0,0 +1,302 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set, Union + +from pydantic import ( + BaseModel, + StrictBool, + StrictFloat, + StrictInt, + StrictStr, + ValidationError, + field_validator, +) +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.bbox import Bbox +from unity_sps_ogc_processes_api_python_client.models.link import Link +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_input import ( + QualifiedInputValueInput, +) + +EXECUTE200RESPONSEINPUTANYOFVALUE_ANY_OF_SCHEMAS = [ + "Bbox", + "Link", + "List[object]", + "QualifiedInputValueInput", + "bool", + "float", + "int", + "str", +] + + +class Execute200ResponseInputAnyOfValue(BaseModel): + """ + Execute200ResponseInputAnyOfValue + """ + + # data type: Bbox + anyof_schema_1_validator: Optional[Bbox] = None + # data type: List[object] + anyof_schema_2_validator: Optional[List[Any]] = None + # data type: bool + anyof_schema_3_validator: Optional[StrictBool] = None + # data type: float + anyof_schema_4_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_5_validator: Optional[StrictInt] = None + # data type: str + anyof_schema_6_validator: Optional[StrictStr] = None + # data type: Link + anyof_schema_7_validator: Optional[Link] = None + # data type: QualifiedInputValueInput + anyof_schema_8_validator: Optional[QualifiedInputValueInput] = None + if TYPE_CHECKING: + actual_instance: Optional[ + Union[ + Bbox, + Link, + List[object], + QualifiedInputValueInput, + bool, + float, + int, + str, + ] + ] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { + "Bbox", + "Link", + "List[object]", + "QualifiedInputValueInput", + "bool", + "float", + "int", + "str", + } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + instance = Execute200ResponseInputAnyOfValue.model_construct() + error_messages = [] + # validate data type: Bbox + if not isinstance(v, Bbox): + error_messages.append(f"Error! Input type `{type(v)}` is not `Bbox`") + else: + return v + + # validate data type: List[object] + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: bool + try: + instance.anyof_schema_3_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.anyof_schema_4_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_5_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: str + try: + instance.anyof_schema_6_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: Link + if not isinstance(v, Link): + error_messages.append(f"Error! Input type `{type(v)}` is not `Link`") + else: + return v + + # validate data type: QualifiedInputValueInput + if not isinstance(v, QualifiedInputValueInput): + error_messages.append( + f"Error! Input type `{type(v)}` is not `QualifiedInputValueInput`" + ) + else: + return v + + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in Execute200ResponseInputAnyOfValue with anyOf schemas: Bbox, Link, List[object], QualifiedInputValueInput, bool, float, int, str. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[Bbox] = None + try: + instance.actual_instance = Bbox.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[object] + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into bool + try: + # validation + instance.anyof_schema_3_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_3_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.anyof_schema_4_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_4_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_5_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_5_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into str + try: + # validation + instance.anyof_schema_6_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_6_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_7_validator: Optional[Link] = None + try: + instance.actual_instance = Link.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_8_validator: Optional[QualifiedInputValueInput] = None + try: + instance.actual_instance = QualifiedInputValueInput.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into Execute200ResponseInputAnyOfValue with anyOf schemas: Bbox, Link, List[object], QualifiedInputValueInput, bool, float, int, str. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict( + self, + ) -> Optional[ + Union[ + Dict[str, Any], + Bbox, + Link, + List[object], + QualifiedInputValueInput, + bool, + float, + int, + str, + ] + ]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/execute200_response_output.py b/unity_sps_ogc_processes_api_python_client/models/execute200_response_output.py new file mode 100644 index 0000000..d9b4c4d --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/execute200_response_output.py @@ -0,0 +1,305 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set, Union + +from pydantic import ( + BaseModel, + StrictBool, + StrictFloat, + StrictInt, + StrictStr, + ValidationError, + field_validator, +) +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.execute200_response_output_any_of_value import ( + Execute200ResponseOutputAnyOfValue, +) + +EXECUTE200RESPONSEOUTPUT_ANY_OF_SCHEMAS = [ + "Dict[str, Execute200ResponseOutputAnyOfValue]", + "List[object]", + "bool", + "float", + "int", + "object", + "str", +] + + +class Execute200ResponseOutput(BaseModel): + """ + Execute200ResponseOutput + """ + + # data type: Dict[str, Execute200ResponseOutputAnyOfValue] + anyof_schema_1_validator: Optional[ + Dict[str, Execute200ResponseOutputAnyOfValue] + ] = None + # data type: List[object] + anyof_schema_2_validator: Optional[List[Any]] = None + # data type: bool + anyof_schema_3_validator: Optional[StrictBool] = None + # data type: str + anyof_schema_4_validator: Optional[StrictStr] = None + # data type: float + anyof_schema_5_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_6_validator: Optional[StrictInt] = None + # data type: object + anyof_schema_7_validator: Optional[Dict[str, Any]] = None + # data type: str + anyof_schema_8_validator: Optional[StrictStr] = None + if TYPE_CHECKING: + actual_instance: Optional[ + Union[ + Dict[str, Execute200ResponseOutputAnyOfValue], + List[object], + bool, + float, + int, + object, + str, + ] + ] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { + "Dict[str, Execute200ResponseOutputAnyOfValue]", + "List[object]", + "bool", + "float", + "int", + "object", + "str", + } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + instance = Execute200ResponseOutput.model_construct() + error_messages = [] + # validate data type: Dict[str, Execute200ResponseOutputAnyOfValue] + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: List[object] + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: bool + try: + instance.anyof_schema_3_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: str + try: + instance.anyof_schema_4_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.anyof_schema_5_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_6_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: object + try: + instance.anyof_schema_7_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: str + try: + instance.anyof_schema_8_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in Execute200ResponseOutput with anyOf schemas: Dict[str, Execute200ResponseOutputAnyOfValue], List[object], bool, float, int, object, str. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into Dict[str, Execute200ResponseOutputAnyOfValue] + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[object] + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into bool + try: + # validation + instance.anyof_schema_3_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_3_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into str + try: + # validation + instance.anyof_schema_4_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_4_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.anyof_schema_5_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_5_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_6_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_6_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into object + try: + # validation + instance.anyof_schema_7_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_7_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into str + try: + # validation + instance.anyof_schema_8_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_8_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into Execute200ResponseOutput with anyOf schemas: Dict[str, Execute200ResponseOutputAnyOfValue], List[object], bool, float, int, object, str. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict( + self, + ) -> Optional[ + Union[ + Dict[str, Any], + Dict[str, Execute200ResponseOutputAnyOfValue], + List[object], + bool, + float, + int, + object, + str, + ] + ]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/execute200_response_output_any_of_value.py b/unity_sps_ogc_processes_api_python_client/models/execute200_response_output_any_of_value.py new file mode 100644 index 0000000..2d3b4d1 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/execute200_response_output_any_of_value.py @@ -0,0 +1,302 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set, Union + +from pydantic import ( + BaseModel, + StrictBool, + StrictFloat, + StrictInt, + StrictStr, + ValidationError, + field_validator, +) +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.bbox import Bbox +from unity_sps_ogc_processes_api_python_client.models.link import Link +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_output import ( + QualifiedInputValueOutput, +) + +EXECUTE200RESPONSEOUTPUTANYOFVALUE_ANY_OF_SCHEMAS = [ + "Bbox", + "Link", + "List[object]", + "QualifiedInputValueOutput", + "bool", + "float", + "int", + "str", +] + + +class Execute200ResponseOutputAnyOfValue(BaseModel): + """ + Execute200ResponseOutputAnyOfValue + """ + + # data type: Bbox + anyof_schema_1_validator: Optional[Bbox] = None + # data type: List[object] + anyof_schema_2_validator: Optional[List[Any]] = None + # data type: bool + anyof_schema_3_validator: Optional[StrictBool] = None + # data type: float + anyof_schema_4_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_5_validator: Optional[StrictInt] = None + # data type: str + anyof_schema_6_validator: Optional[StrictStr] = None + # data type: Link + anyof_schema_7_validator: Optional[Link] = None + # data type: QualifiedInputValueOutput + anyof_schema_8_validator: Optional[QualifiedInputValueOutput] = None + if TYPE_CHECKING: + actual_instance: Optional[ + Union[ + Bbox, + Link, + List[object], + QualifiedInputValueOutput, + bool, + float, + int, + str, + ] + ] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { + "Bbox", + "Link", + "List[object]", + "QualifiedInputValueOutput", + "bool", + "float", + "int", + "str", + } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + instance = Execute200ResponseOutputAnyOfValue.model_construct() + error_messages = [] + # validate data type: Bbox + if not isinstance(v, Bbox): + error_messages.append(f"Error! Input type `{type(v)}` is not `Bbox`") + else: + return v + + # validate data type: List[object] + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: bool + try: + instance.anyof_schema_3_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.anyof_schema_4_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_5_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: str + try: + instance.anyof_schema_6_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: Link + if not isinstance(v, Link): + error_messages.append(f"Error! Input type `{type(v)}` is not `Link`") + else: + return v + + # validate data type: QualifiedInputValueOutput + if not isinstance(v, QualifiedInputValueOutput): + error_messages.append( + f"Error! Input type `{type(v)}` is not `QualifiedInputValueOutput`" + ) + else: + return v + + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in Execute200ResponseOutputAnyOfValue with anyOf schemas: Bbox, Link, List[object], QualifiedInputValueOutput, bool, float, int, str. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[Bbox] = None + try: + instance.actual_instance = Bbox.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[object] + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into bool + try: + # validation + instance.anyof_schema_3_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_3_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.anyof_schema_4_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_4_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_5_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_5_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into str + try: + # validation + instance.anyof_schema_6_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_6_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_7_validator: Optional[Link] = None + try: + instance.actual_instance = Link.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_8_validator: Optional[QualifiedInputValueOutput] = None + try: + instance.actual_instance = QualifiedInputValueOutput.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into Execute200ResponseOutputAnyOfValue with anyOf schemas: Bbox, Link, List[object], QualifiedInputValueOutput, bool, float, int, str. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict( + self, + ) -> Optional[ + Union[ + Dict[str, Any], + Bbox, + Link, + List[object], + QualifiedInputValueOutput, + bool, + float, + int, + str, + ] + ]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/execute_workflows.py b/unity_sps_ogc_processes_api_python_client/models/execute_workflows.py new file mode 100644 index 0000000..80c737b --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/execute_workflows.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.fields_modifiers_properties import ( + FieldsModifiersProperties, +) +from unity_sps_ogc_processes_api_python_client.models.input_workflows import ( + InputWorkflows, +) +from unity_sps_ogc_processes_api_python_client.models.output_workflows import ( + OutputWorkflows, +) +from unity_sps_ogc_processes_api_python_client.models.subscriber import Subscriber + + +class ExecuteWorkflows(BaseModel): + """ + ExecuteWorkflows + """ # noqa: E501 + + filter: Optional[StrictStr] = None + inputs: Optional[Dict[str, InputWorkflows]] = None + outputs: Optional[Dict[str, OutputWorkflows]] = None + process: Optional[StrictStr] = None + properties: Optional[FieldsModifiersProperties] = None + sort_by: Optional[List[StrictStr]] = Field(default=None, alias="sortBy") + subscriber: Optional[Subscriber] = None + __properties: ClassVar[List[str]] = [ + "filter", + "inputs", + "outputs", + "process", + "properties", + "sortBy", + "subscriber", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ExecuteWorkflows from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each value in inputs (dict) + _field_dict = {} + if self.inputs: + for _key in self.inputs: + if self.inputs[_key]: + _field_dict[_key] = self.inputs[_key].to_dict() + _dict["inputs"] = _field_dict + # override the default output from pydantic by calling `to_dict()` of each value in outputs (dict) + _field_dict = {} + if self.outputs: + for _key in self.outputs: + if self.outputs[_key]: + _field_dict[_key] = self.outputs[_key].to_dict() + _dict["outputs"] = _field_dict + # override the default output from pydantic by calling `to_dict()` of properties + if self.properties: + _dict["properties"] = self.properties.to_dict() + # override the default output from pydantic by calling `to_dict()` of subscriber + if self.subscriber: + _dict["subscriber"] = self.subscriber.to_dict() + # set to None if filter (nullable) is None + # and model_fields_set contains the field + if self.filter is None and "filter" in self.model_fields_set: + _dict["filter"] = None + + # set to None if inputs (nullable) is None + # and model_fields_set contains the field + if self.inputs is None and "inputs" in self.model_fields_set: + _dict["inputs"] = None + + # set to None if outputs (nullable) is None + # and model_fields_set contains the field + if self.outputs is None and "outputs" in self.model_fields_set: + _dict["outputs"] = None + + # set to None if process (nullable) is None + # and model_fields_set contains the field + if self.process is None and "process" in self.model_fields_set: + _dict["process"] = None + + # set to None if properties (nullable) is None + # and model_fields_set contains the field + if self.properties is None and "properties" in self.model_fields_set: + _dict["properties"] = None + + # set to None if sort_by (nullable) is None + # and model_fields_set contains the field + if self.sort_by is None and "sort_by" in self.model_fields_set: + _dict["sortBy"] = None + + # set to None if subscriber (nullable) is None + # and model_fields_set contains the field + if self.subscriber is None and "subscriber" in self.model_fields_set: + _dict["subscriber"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ExecuteWorkflows from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "filter": obj.get("filter"), + "inputs": ( + dict( + (_k, InputWorkflows.from_dict(_v)) + for _k, _v in obj["inputs"].items() + ) + if obj.get("inputs") is not None + else None + ), + "outputs": ( + dict( + (_k, OutputWorkflows.from_dict(_v)) + for _k, _v in obj["outputs"].items() + ) + if obj.get("outputs") is not None + else None + ), + "process": obj.get("process"), + "properties": ( + FieldsModifiersProperties.from_dict(obj["properties"]) + if obj.get("properties") is not None + else None + ), + "sortBy": obj.get("sortBy"), + "subscriber": ( + Subscriber.from_dict(obj["subscriber"]) + if obj.get("subscriber") is not None + else None + ), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/execution_unit.py b/unity_sps_ogc_processes_api_python_client/models/execution_unit.py new file mode 100644 index 0000000..444a439 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/execution_unit.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.execution_unit_config import ( + ExecutionUnitConfig, +) + + +class ExecutionUnit(BaseModel): + """ + Resource containing an executable or runtime information for executing the process. + """ # noqa: E501 + + additional_properties: Optional[Dict[str, Any]] = None + config: Optional[ExecutionUnitConfig] = None + deployment: Optional[StrictStr] = None + image: StrictStr = Field( + description="Container image reference for the execution unit." + ) + type: StrictStr = Field(description="Type of execution unit.") + __properties: ClassVar[List[str]] = [ + "additional_properties", + "config", + "deployment", + "image", + "type", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ExecutionUnit from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of config + if self.config: + _dict["config"] = self.config.to_dict() + # set to None if config (nullable) is None + # and model_fields_set contains the field + if self.config is None and "config" in self.model_fields_set: + _dict["config"] = None + + # set to None if deployment (nullable) is None + # and model_fields_set contains the field + if self.deployment is None and "deployment" in self.model_fields_set: + _dict["deployment"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ExecutionUnit from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "additional_properties": obj.get("additional_properties"), + "config": ( + ExecutionUnitConfig.from_dict(obj["config"]) + if obj.get("config") is not None + else None + ), + "deployment": obj.get("deployment"), + "image": obj.get("image"), + "type": obj.get("type"), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/execution_unit_config.py b/unity_sps_ogc_processes_api_python_client/models/execution_unit_config.py new file mode 100644 index 0000000..09ef33b --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/execution_unit_config.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.cpumax import Cpumax +from unity_sps_ogc_processes_api_python_client.models.cpumin import Cpumin +from unity_sps_ogc_processes_api_python_client.models.jobtimeout import Jobtimeout +from unity_sps_ogc_processes_api_python_client.models.memorymax import Memorymax +from unity_sps_ogc_processes_api_python_client.models.memorymin import Memorymin +from unity_sps_ogc_processes_api_python_client.models.storageoutputsmin import ( + Storageoutputsmin, +) +from unity_sps_ogc_processes_api_python_client.models.storagetempmin import ( + Storagetempmin, +) + + +class ExecutionUnitConfig(BaseModel): + """ + Hardware requirements and configuration properties for executing the process. + """ # noqa: E501 + + additional_properties: Optional[Dict[str, Any]] = None + cpu_max: Optional[Cpumax] = Field(default=None, alias="cpuMax") + cpu_min: Optional[Cpumin] = Field(default=None, alias="cpuMin") + job_timeout: Optional[Jobtimeout] = Field(default=None, alias="jobTimeout") + memory_max: Optional[Memorymax] = Field(default=None, alias="memoryMax") + memory_min: Optional[Memorymin] = Field(default=None, alias="memoryMin") + storage_outputs_min: Optional[Storageoutputsmin] = Field( + default=None, alias="storageOutputsMin" + ) + storage_temp_min: Optional[Storagetempmin] = Field( + default=None, alias="storageTempMin" + ) + __properties: ClassVar[List[str]] = [ + "additional_properties", + "cpuMax", + "cpuMin", + "jobTimeout", + "memoryMax", + "memoryMin", + "storageOutputsMin", + "storageTempMin", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ExecutionUnitConfig from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of cpu_max + if self.cpu_max: + _dict["cpuMax"] = self.cpu_max.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpu_min + if self.cpu_min: + _dict["cpuMin"] = self.cpu_min.to_dict() + # override the default output from pydantic by calling `to_dict()` of job_timeout + if self.job_timeout: + _dict["jobTimeout"] = self.job_timeout.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory_max + if self.memory_max: + _dict["memoryMax"] = self.memory_max.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory_min + if self.memory_min: + _dict["memoryMin"] = self.memory_min.to_dict() + # override the default output from pydantic by calling `to_dict()` of storage_outputs_min + if self.storage_outputs_min: + _dict["storageOutputsMin"] = self.storage_outputs_min.to_dict() + # override the default output from pydantic by calling `to_dict()` of storage_temp_min + if self.storage_temp_min: + _dict["storageTempMin"] = self.storage_temp_min.to_dict() + # set to None if cpu_max (nullable) is None + # and model_fields_set contains the field + if self.cpu_max is None and "cpu_max" in self.model_fields_set: + _dict["cpuMax"] = None + + # set to None if cpu_min (nullable) is None + # and model_fields_set contains the field + if self.cpu_min is None and "cpu_min" in self.model_fields_set: + _dict["cpuMin"] = None + + # set to None if job_timeout (nullable) is None + # and model_fields_set contains the field + if self.job_timeout is None and "job_timeout" in self.model_fields_set: + _dict["jobTimeout"] = None + + # set to None if memory_max (nullable) is None + # and model_fields_set contains the field + if self.memory_max is None and "memory_max" in self.model_fields_set: + _dict["memoryMax"] = None + + # set to None if memory_min (nullable) is None + # and model_fields_set contains the field + if self.memory_min is None and "memory_min" in self.model_fields_set: + _dict["memoryMin"] = None + + # set to None if storage_outputs_min (nullable) is None + # and model_fields_set contains the field + if ( + self.storage_outputs_min is None + and "storage_outputs_min" in self.model_fields_set + ): + _dict["storageOutputsMin"] = None + + # set to None if storage_temp_min (nullable) is None + # and model_fields_set contains the field + if ( + self.storage_temp_min is None + and "storage_temp_min" in self.model_fields_set + ): + _dict["storageTempMin"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ExecutionUnitConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "additional_properties": obj.get("additional_properties"), + "cpuMax": ( + Cpumax.from_dict(obj["cpuMax"]) + if obj.get("cpuMax") is not None + else None + ), + "cpuMin": ( + Cpumin.from_dict(obj["cpuMin"]) + if obj.get("cpuMin") is not None + else None + ), + "jobTimeout": ( + Jobtimeout.from_dict(obj["jobTimeout"]) + if obj.get("jobTimeout") is not None + else None + ), + "memoryMax": ( + Memorymax.from_dict(obj["memoryMax"]) + if obj.get("memoryMax") is not None + else None + ), + "memoryMin": ( + Memorymin.from_dict(obj["memoryMin"]) + if obj.get("memoryMin") is not None + else None + ), + "storageOutputsMin": ( + Storageoutputsmin.from_dict(obj["storageOutputsMin"]) + if obj.get("storageOutputsMin") is not None + else None + ), + "storageTempMin": ( + Storagetempmin.from_dict(obj["storageTempMin"]) + if obj.get("storageTempMin") is not None + else None + ), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/fields_modifiers_properties.py b/unity_sps_ogc_processes_api_python_client/models/fields_modifiers_properties.py new file mode 100644 index 0000000..538a0bf --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/fields_modifiers_properties.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set, Union + +from pydantic import BaseModel, StrictStr, ValidationError, field_validator +from typing_extensions import Self + +FIELDSMODIFIERSPROPERTIES_ANY_OF_SCHEMAS = ["Dict[str, str]", "List[str]"] + + +class FieldsModifiersProperties(BaseModel): + """ + FieldsModifiersProperties + """ + + # data type: Dict[str, str] + anyof_schema_1_validator: Optional[Dict[str, StrictStr]] = None + # data type: List[str] + anyof_schema_2_validator: Optional[List[StrictStr]] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[Dict[str, str], List[str]]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"Dict[str, str]", "List[str]"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + instance = FieldsModifiersProperties.model_construct() + error_messages = [] + # validate data type: Dict[str, str] + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: List[str] + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in FieldsModifiersProperties with anyOf schemas: Dict[str, str], List[str]. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into Dict[str, str] + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[str] + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into FieldsModifiersProperties with anyOf schemas: Dict[str, str], List[str]. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], Dict[str, str], List[str]]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/format.py b/unity_sps_ogc_processes_api_python_client/models/format.py new file mode 100644 index 0000000..7821baf --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/format.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.format_schema import FormatSchema + + +class Format(BaseModel): + """ + Format + """ # noqa: E501 + + encoding: Optional[StrictStr] = None + media_type: Optional[StrictStr] = Field(default=None, alias="mediaType") + var_schema: Optional[FormatSchema] = Field(default=None, alias="schema") + __properties: ClassVar[List[str]] = ["encoding", "mediaType", "schema"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Format from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of var_schema + if self.var_schema: + _dict["schema"] = self.var_schema.to_dict() + # set to None if encoding (nullable) is None + # and model_fields_set contains the field + if self.encoding is None and "encoding" in self.model_fields_set: + _dict["encoding"] = None + + # set to None if media_type (nullable) is None + # and model_fields_set contains the field + if self.media_type is None and "media_type" in self.model_fields_set: + _dict["mediaType"] = None + + # set to None if var_schema (nullable) is None + # and model_fields_set contains the field + if self.var_schema is None and "var_schema" in self.model_fields_set: + _dict["schema"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Format from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "encoding": obj.get("encoding"), + "mediaType": obj.get("mediaType"), + "schema": ( + FormatSchema.from_dict(obj["schema"]) + if obj.get("schema") is not None + else None + ), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/format_schema.py b/unity_sps_ogc_processes_api_python_client/models/format_schema.py new file mode 100644 index 0000000..e2e4896 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/format_schema.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing_extensions import Self + + +class FormatSchema(BaseModel): + """ + FormatSchema + """ # noqa: E501 + + actual_instance: Optional[StrictStr] = None + one_of_schemas: Optional[List[StrictStr]] = None + oneof_schema_1_validator: Optional[StrictStr] = None + oneof_schema_2_validator: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = [ + "actual_instance", + "one_of_schemas", + "oneof_schema_1_validator", + "oneof_schema_2_validator", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of FormatSchema from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if actual_instance (nullable) is None + # and model_fields_set contains the field + if self.actual_instance is None and "actual_instance" in self.model_fields_set: + _dict["actual_instance"] = None + + # set to None if oneof_schema_1_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_1_validator is None + and "oneof_schema_1_validator" in self.model_fields_set + ): + _dict["oneof_schema_1_validator"] = None + + # set to None if oneof_schema_2_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_2_validator is None + and "oneof_schema_2_validator" in self.model_fields_set + ): + _dict["oneof_schema_2_validator"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of FormatSchema from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "actual_instance": obj.get("actual_instance"), + "one_of_schemas": obj.get("one_of_schemas"), + "oneof_schema_1_validator": obj.get("oneof_schema_1_validator"), + "oneof_schema_2_validator": obj.get("oneof_schema_2_validator"), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/health_check.py b/unity_sps_ogc_processes_api_python_client/models/health_check.py index 11b3d3d..1b5128c 100644 --- a/unity_sps_ogc_processes_api_python_client/models/health_check.py +++ b/unity_sps_ogc_processes_api_python_client/models/health_check.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,16 +19,16 @@ import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict from typing_extensions import Self class HealthCheck(BaseModel): """ - Response model to validate and return when performing a health check. + HealthCheck """ # noqa: E501 - status: Optional[StrictStr] = "OK" + status: Optional[Any] __properties: ClassVar[List[str]] = ["status"] model_config = ConfigDict( @@ -68,6 +68,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if status (nullable) is None + # and model_fields_set contains the field + if self.status is None and "status" in self.model_fields_set: + _dict["status"] = None + return _dict @classmethod @@ -79,7 +84,5 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"status": obj.get("status") if obj.get("status") is not None else "OK"} - ) + _obj = cls.model_validate({"status": obj.get("status")}) return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/http_validation_error.py b/unity_sps_ogc_processes_api_python_client/models/http_validation_error.py index 283265a..255f11f 100644 --- a/unity_sps_ogc_processes_api_python_client/models/http_validation_error.py +++ b/unity_sps_ogc_processes_api_python_client/models/http_validation_error.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/unity_sps_ogc_processes_api_python_client/models/inline_or_ref_data_input.py b/unity_sps_ogc_processes_api_python_client/models/inline_or_ref_data_input.py new file mode 100644 index 0000000..8535176 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/inline_or_ref_data_input.py @@ -0,0 +1,302 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set, Union + +from pydantic import ( + BaseModel, + StrictBool, + StrictFloat, + StrictInt, + StrictStr, + ValidationError, + field_validator, +) +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.bbox import Bbox +from unity_sps_ogc_processes_api_python_client.models.link import Link +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_input import ( + QualifiedInputValueInput, +) + +INLINEORREFDATAINPUT_ANY_OF_SCHEMAS = [ + "Bbox", + "Link", + "List[object]", + "QualifiedInputValueInput", + "bool", + "float", + "int", + "str", +] + + +class InlineOrRefDataInput(BaseModel): + """ + InlineOrRefDataInput + """ + + # data type: Bbox + anyof_schema_1_validator: Optional[Bbox] = None + # data type: List[object] + anyof_schema_2_validator: Optional[List[Any]] = None + # data type: bool + anyof_schema_3_validator: Optional[StrictBool] = None + # data type: float + anyof_schema_4_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_5_validator: Optional[StrictInt] = None + # data type: str + anyof_schema_6_validator: Optional[StrictStr] = None + # data type: Link + anyof_schema_7_validator: Optional[Link] = None + # data type: QualifiedInputValueInput + anyof_schema_8_validator: Optional[QualifiedInputValueInput] = None + if TYPE_CHECKING: + actual_instance: Optional[ + Union[ + Bbox, + Link, + List[object], + QualifiedInputValueInput, + bool, + float, + int, + str, + ] + ] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { + "Bbox", + "Link", + "List[object]", + "QualifiedInputValueInput", + "bool", + "float", + "int", + "str", + } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + instance = InlineOrRefDataInput.model_construct() + error_messages = [] + # validate data type: Bbox + if not isinstance(v, Bbox): + error_messages.append(f"Error! Input type `{type(v)}` is not `Bbox`") + else: + return v + + # validate data type: List[object] + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: bool + try: + instance.anyof_schema_3_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.anyof_schema_4_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_5_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: str + try: + instance.anyof_schema_6_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: Link + if not isinstance(v, Link): + error_messages.append(f"Error! Input type `{type(v)}` is not `Link`") + else: + return v + + # validate data type: QualifiedInputValueInput + if not isinstance(v, QualifiedInputValueInput): + error_messages.append( + f"Error! Input type `{type(v)}` is not `QualifiedInputValueInput`" + ) + else: + return v + + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in InlineOrRefDataInput with anyOf schemas: Bbox, Link, List[object], QualifiedInputValueInput, bool, float, int, str. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[Bbox] = None + try: + instance.actual_instance = Bbox.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[object] + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into bool + try: + # validation + instance.anyof_schema_3_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_3_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.anyof_schema_4_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_4_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_5_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_5_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into str + try: + # validation + instance.anyof_schema_6_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_6_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_7_validator: Optional[Link] = None + try: + instance.actual_instance = Link.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_8_validator: Optional[QualifiedInputValueInput] = None + try: + instance.actual_instance = QualifiedInputValueInput.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into InlineOrRefDataInput with anyOf schemas: Bbox, Link, List[object], QualifiedInputValueInput, bool, float, int, str. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict( + self, + ) -> Optional[ + Union[ + Dict[str, Any], + Bbox, + Link, + List[object], + QualifiedInputValueInput, + bool, + float, + int, + str, + ] + ]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/inline_or_ref_data_output.py b/unity_sps_ogc_processes_api_python_client/models/inline_or_ref_data_output.py new file mode 100644 index 0000000..954bc7f --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/inline_or_ref_data_output.py @@ -0,0 +1,302 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set, Union + +from pydantic import ( + BaseModel, + StrictBool, + StrictFloat, + StrictInt, + StrictStr, + ValidationError, + field_validator, +) +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.bbox import Bbox +from unity_sps_ogc_processes_api_python_client.models.link import Link +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_output import ( + QualifiedInputValueOutput, +) + +INLINEORREFDATAOUTPUT_ANY_OF_SCHEMAS = [ + "Bbox", + "Link", + "List[object]", + "QualifiedInputValueOutput", + "bool", + "float", + "int", + "str", +] + + +class InlineOrRefDataOutput(BaseModel): + """ + InlineOrRefDataOutput + """ + + # data type: Bbox + anyof_schema_1_validator: Optional[Bbox] = None + # data type: List[object] + anyof_schema_2_validator: Optional[List[Any]] = None + # data type: bool + anyof_schema_3_validator: Optional[StrictBool] = None + # data type: float + anyof_schema_4_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_5_validator: Optional[StrictInt] = None + # data type: str + anyof_schema_6_validator: Optional[StrictStr] = None + # data type: Link + anyof_schema_7_validator: Optional[Link] = None + # data type: QualifiedInputValueOutput + anyof_schema_8_validator: Optional[QualifiedInputValueOutput] = None + if TYPE_CHECKING: + actual_instance: Optional[ + Union[ + Bbox, + Link, + List[object], + QualifiedInputValueOutput, + bool, + float, + int, + str, + ] + ] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { + "Bbox", + "Link", + "List[object]", + "QualifiedInputValueOutput", + "bool", + "float", + "int", + "str", + } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + instance = InlineOrRefDataOutput.model_construct() + error_messages = [] + # validate data type: Bbox + if not isinstance(v, Bbox): + error_messages.append(f"Error! Input type `{type(v)}` is not `Bbox`") + else: + return v + + # validate data type: List[object] + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: bool + try: + instance.anyof_schema_3_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.anyof_schema_4_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_5_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: str + try: + instance.anyof_schema_6_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: Link + if not isinstance(v, Link): + error_messages.append(f"Error! Input type `{type(v)}` is not `Link`") + else: + return v + + # validate data type: QualifiedInputValueOutput + if not isinstance(v, QualifiedInputValueOutput): + error_messages.append( + f"Error! Input type `{type(v)}` is not `QualifiedInputValueOutput`" + ) + else: + return v + + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in InlineOrRefDataOutput with anyOf schemas: Bbox, Link, List[object], QualifiedInputValueOutput, bool, float, int, str. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[Bbox] = None + try: + instance.actual_instance = Bbox.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[object] + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into bool + try: + # validation + instance.anyof_schema_3_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_3_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.anyof_schema_4_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_4_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_5_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_5_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into str + try: + # validation + instance.anyof_schema_6_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_6_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_7_validator: Optional[Link] = None + try: + instance.actual_instance = Link.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_8_validator: Optional[QualifiedInputValueOutput] = None + try: + instance.actual_instance = QualifiedInputValueOutput.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into InlineOrRefDataOutput with anyOf schemas: Bbox, Link, List[object], QualifiedInputValueOutput, bool, float, int, str. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict( + self, + ) -> Optional[ + Union[ + Dict[str, Any], + Bbox, + Link, + List[object], + QualifiedInputValueOutput, + bool, + float, + int, + str, + ] + ]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/inline_or_ref_data_workflows.py b/unity_sps_ogc_processes_api_python_client/models/inline_or_ref_data_workflows.py new file mode 100644 index 0000000..1e8a040 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/inline_or_ref_data_workflows.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.link import Link + + +class InlineOrRefDataWorkflows(BaseModel): + """ + InlineOrRefDataWorkflows + """ # noqa: E501 + + actual_instance: Optional[ActualInstance] = None + one_of_schemas: Optional[List[StrictStr]] = None + oneof_schema_1_validator: Optional[InputValueNoObjectWorkflows] = None + oneof_schema_2_validator: Optional[QualifiedInputValueWorkflows] = None + oneof_schema_3_validator: Optional[Link] = None + __properties: ClassVar[List[str]] = [ + "actual_instance", + "one_of_schemas", + "oneof_schema_1_validator", + "oneof_schema_2_validator", + "oneof_schema_3_validator", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InlineOrRefDataWorkflows from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of actual_instance + if self.actual_instance: + _dict["actual_instance"] = self.actual_instance.to_dict() + # override the default output from pydantic by calling `to_dict()` of oneof_schema_1_validator + if self.oneof_schema_1_validator: + _dict["oneof_schema_1_validator"] = self.oneof_schema_1_validator.to_dict() + # override the default output from pydantic by calling `to_dict()` of oneof_schema_2_validator + if self.oneof_schema_2_validator: + _dict["oneof_schema_2_validator"] = self.oneof_schema_2_validator.to_dict() + # override the default output from pydantic by calling `to_dict()` of oneof_schema_3_validator + if self.oneof_schema_3_validator: + _dict["oneof_schema_3_validator"] = self.oneof_schema_3_validator.to_dict() + # set to None if actual_instance (nullable) is None + # and model_fields_set contains the field + if self.actual_instance is None and "actual_instance" in self.model_fields_set: + _dict["actual_instance"] = None + + # set to None if oneof_schema_1_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_1_validator is None + and "oneof_schema_1_validator" in self.model_fields_set + ): + _dict["oneof_schema_1_validator"] = None + + # set to None if oneof_schema_2_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_2_validator is None + and "oneof_schema_2_validator" in self.model_fields_set + ): + _dict["oneof_schema_2_validator"] = None + + # set to None if oneof_schema_3_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_3_validator is None + and "oneof_schema_3_validator" in self.model_fields_set + ): + _dict["oneof_schema_3_validator"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InlineOrRefDataWorkflows from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "actual_instance": ( + ActualInstance.from_dict(obj["actual_instance"]) + if obj.get("actual_instance") is not None + else None + ), + "one_of_schemas": obj.get("one_of_schemas"), + "oneof_schema_1_validator": ( + InputValueNoObjectWorkflows.from_dict( + obj["oneof_schema_1_validator"] + ) + if obj.get("oneof_schema_1_validator") is not None + else None + ), + "oneof_schema_2_validator": ( + QualifiedInputValueWorkflows.from_dict( + obj["oneof_schema_2_validator"] + ) + if obj.get("oneof_schema_2_validator") is not None + else None + ), + "oneof_schema_3_validator": ( + Link.from_dict(obj["oneof_schema_3_validator"]) + if obj.get("oneof_schema_3_validator") is not None + else None + ), + } + ) + return _obj + + +from unity_sps_ogc_processes_api_python_client.models.actual_instance import ( + ActualInstance, +) +from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows import ( + InputValueNoObjectWorkflows, +) +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows import ( + QualifiedInputValueWorkflows, +) + +# TODO: Rewrite to not use raise_errors +InlineOrRefDataWorkflows.model_rebuild(raise_errors=False) diff --git a/unity_sps_ogc_processes_api_python_client/models/input_collection.py b/unity_sps_ogc_processes_api_python_client/models/input_collection.py new file mode 100644 index 0000000..5687767 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/input_collection.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.fields_modifiers_properties import ( + FieldsModifiersProperties, +) + + +class InputCollection(BaseModel): + """ + InputCollection + """ # noqa: E501 + + collection: StrictStr + filter: Optional[StrictStr] = None + properties: Optional[FieldsModifiersProperties] = None + sort_by: Optional[List[StrictStr]] = Field(default=None, alias="sortBy") + __properties: ClassVar[List[str]] = ["collection", "filter", "properties", "sortBy"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InputCollection from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of properties + if self.properties: + _dict["properties"] = self.properties.to_dict() + # set to None if filter (nullable) is None + # and model_fields_set contains the field + if self.filter is None and "filter" in self.model_fields_set: + _dict["filter"] = None + + # set to None if properties (nullable) is None + # and model_fields_set contains the field + if self.properties is None and "properties" in self.model_fields_set: + _dict["properties"] = None + + # set to None if sort_by (nullable) is None + # and model_fields_set contains the field + if self.sort_by is None and "sort_by" in self.model_fields_set: + _dict["sortBy"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InputCollection from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "collection": obj.get("collection"), + "filter": obj.get("filter"), + "properties": ( + FieldsModifiersProperties.from_dict(obj["properties"]) + if obj.get("properties") is not None + else None + ), + "sortBy": obj.get("sortBy"), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/input_description_input.py b/unity_sps_ogc_processes_api_python_client/models/input_description_input.py new file mode 100644 index 0000000..784578a --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/input_description_input.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.metadata_input import ( + MetadataInput, +) +from unity_sps_ogc_processes_api_python_client.models.model_schema_input import ( + ModelSchemaInput, +) + + +class InputDescriptionInput(BaseModel): + """ + InputDescription + """ # noqa: E501 + + description: Optional[StrictStr] = None + keywords: Optional[List[StrictStr]] = None + max_occurs: Optional[StrictInt] = Field(alias="maxOccurs") + metadata: Optional[List[MetadataInput]] = None + min_occurs: Optional[StrictInt] = Field(default=None, alias="minOccurs") + var_schema: ModelSchemaInput = Field(alias="schema") + title: Optional[StrictStr] = None + value_passing: Optional[List[StrictStr]] = Field(default=None, alias="valuePassing") + __properties: ClassVar[List[str]] = [ + "description", + "keywords", + "maxOccurs", + "metadata", + "minOccurs", + "schema", + "title", + "valuePassing", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InputDescriptionInput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in metadata (list) + _items = [] + if self.metadata: + for _item in self.metadata: + if _item: + _items.append(_item.to_dict()) + _dict["metadata"] = _items + # override the default output from pydantic by calling `to_dict()` of var_schema + if self.var_schema: + _dict["schema"] = self.var_schema.to_dict() + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict["description"] = None + + # set to None if keywords (nullable) is None + # and model_fields_set contains the field + if self.keywords is None and "keywords" in self.model_fields_set: + _dict["keywords"] = None + + # set to None if max_occurs (nullable) is None + # and model_fields_set contains the field + if self.max_occurs is None and "max_occurs" in self.model_fields_set: + _dict["maxOccurs"] = None + + # set to None if metadata (nullable) is None + # and model_fields_set contains the field + if self.metadata is None and "metadata" in self.model_fields_set: + _dict["metadata"] = None + + # set to None if min_occurs (nullable) is None + # and model_fields_set contains the field + if self.min_occurs is None and "min_occurs" in self.model_fields_set: + _dict["minOccurs"] = None + + # set to None if title (nullable) is None + # and model_fields_set contains the field + if self.title is None and "title" in self.model_fields_set: + _dict["title"] = None + + # set to None if value_passing (nullable) is None + # and model_fields_set contains the field + if self.value_passing is None and "value_passing" in self.model_fields_set: + _dict["valuePassing"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InputDescriptionInput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "description": obj.get("description"), + "keywords": obj.get("keywords"), + "maxOccurs": obj.get("maxOccurs"), + "metadata": ( + [MetadataInput.from_dict(_item) for _item in obj["metadata"]] + if obj.get("metadata") is not None + else None + ), + "minOccurs": obj.get("minOccurs"), + "schema": ( + ModelSchemaInput.from_dict(obj["schema"]) + if obj.get("schema") is not None + else None + ), + "title": obj.get("title"), + "valuePassing": obj.get("valuePassing"), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/input_description_output.py b/unity_sps_ogc_processes_api_python_client/models/input_description_output.py new file mode 100644 index 0000000..ce30f1e --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/input_description_output.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.metadata_output import ( + MetadataOutput, +) +from unity_sps_ogc_processes_api_python_client.models.model_schema_output import ( + ModelSchemaOutput, +) + + +class InputDescriptionOutput(BaseModel): + """ + InputDescription + """ # noqa: E501 + + description: Optional[StrictStr] = None + keywords: Optional[List[StrictStr]] = None + max_occurs: Optional[StrictInt] = Field(alias="maxOccurs") + metadata: Optional[List[MetadataOutput]] = None + min_occurs: Optional[StrictInt] = Field(default=None, alias="minOccurs") + var_schema: ModelSchemaOutput = Field(alias="schema") + title: Optional[StrictStr] = None + value_passing: Optional[List[StrictStr]] = Field(default=None, alias="valuePassing") + __properties: ClassVar[List[str]] = [ + "description", + "keywords", + "maxOccurs", + "metadata", + "minOccurs", + "schema", + "title", + "valuePassing", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InputDescriptionOutput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in metadata (list) + _items = [] + if self.metadata: + for _item in self.metadata: + if _item: + _items.append(_item.to_dict()) + _dict["metadata"] = _items + # override the default output from pydantic by calling `to_dict()` of var_schema + if self.var_schema: + _dict["schema"] = self.var_schema.to_dict() + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict["description"] = None + + # set to None if keywords (nullable) is None + # and model_fields_set contains the field + if self.keywords is None and "keywords" in self.model_fields_set: + _dict["keywords"] = None + + # set to None if max_occurs (nullable) is None + # and model_fields_set contains the field + if self.max_occurs is None and "max_occurs" in self.model_fields_set: + _dict["maxOccurs"] = None + + # set to None if metadata (nullable) is None + # and model_fields_set contains the field + if self.metadata is None and "metadata" in self.model_fields_set: + _dict["metadata"] = None + + # set to None if min_occurs (nullable) is None + # and model_fields_set contains the field + if self.min_occurs is None and "min_occurs" in self.model_fields_set: + _dict["minOccurs"] = None + + # set to None if title (nullable) is None + # and model_fields_set contains the field + if self.title is None and "title" in self.model_fields_set: + _dict["title"] = None + + # set to None if value_passing (nullable) is None + # and model_fields_set contains the field + if self.value_passing is None and "value_passing" in self.model_fields_set: + _dict["valuePassing"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InputDescriptionOutput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "description": obj.get("description"), + "keywords": obj.get("keywords"), + "maxOccurs": obj.get("maxOccurs"), + "metadata": ( + [MetadataOutput.from_dict(_item) for _item in obj["metadata"]] + if obj.get("metadata") is not None + else None + ), + "minOccurs": obj.get("minOccurs"), + "schema": ( + ModelSchemaOutput.from_dict(obj["schema"]) + if obj.get("schema") is not None + else None + ), + "title": obj.get("title"), + "valuePassing": obj.get("valuePassing"), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/input_parameterized.py b/unity_sps_ogc_processes_api_python_client/models/input_parameterized.py new file mode 100644 index 0000000..24f141a --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/input_parameterized.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.fields_modifiers_properties import ( + FieldsModifiersProperties, +) + + +class InputParameterized(BaseModel): + """ + InputParameterized + """ # noqa: E501 + + input: StrictStr = Field(alias="$input") + filter: Optional[StrictStr] = None + properties: Optional[FieldsModifiersProperties] = None + sort_by: Optional[List[StrictStr]] = Field(default=None, alias="sortBy") + __properties: ClassVar[List[str]] = ["$input", "filter", "properties", "sortBy"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InputParameterized from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of properties + if self.properties: + _dict["properties"] = self.properties.to_dict() + # set to None if filter (nullable) is None + # and model_fields_set contains the field + if self.filter is None and "filter" in self.model_fields_set: + _dict["filter"] = None + + # set to None if properties (nullable) is None + # and model_fields_set contains the field + if self.properties is None and "properties" in self.model_fields_set: + _dict["properties"] = None + + # set to None if sort_by (nullable) is None + # and model_fields_set contains the field + if self.sort_by is None and "sort_by" in self.model_fields_set: + _dict["sortBy"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InputParameterized from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "$input": obj.get("$input"), + "filter": obj.get("filter"), + "properties": ( + FieldsModifiersProperties.from_dict(obj["properties"]) + if obj.get("properties") is not None + else None + ), + "sortBy": obj.get("sortBy"), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/input_process.py b/unity_sps_ogc_processes_api_python_client/models/input_process.py new file mode 100644 index 0000000..d155151 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/input_process.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.fields_modifiers_properties import ( + FieldsModifiersProperties, +) +from unity_sps_ogc_processes_api_python_client.models.output_workflows1 import ( + OutputWorkflows1, +) +from unity_sps_ogc_processes_api_python_client.models.subscriber import Subscriber + + +class InputProcess(BaseModel): + """ + InputProcess + """ # noqa: E501 + + filter: Optional[StrictStr] = None + inputs: Optional[Dict[str, InputWorkflows1]] = None + outputs: Optional[Dict[str, OutputWorkflows1]] = None + process: StrictStr = Field( + description="URI to the process execution end point (i.e., `.../processes/{processId}/execution`)" + ) + properties: Optional[FieldsModifiersProperties] = None + sort_by: Optional[List[StrictStr]] = Field(default=None, alias="sortBy") + subscriber: Optional[Subscriber] = None + __properties: ClassVar[List[str]] = [ + "filter", + "inputs", + "outputs", + "process", + "properties", + "sortBy", + "subscriber", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InputProcess from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each value in inputs (dict) + _field_dict = {} + if self.inputs: + for _key in self.inputs: + if self.inputs[_key]: + _field_dict[_key] = self.inputs[_key].to_dict() + _dict["inputs"] = _field_dict + # override the default output from pydantic by calling `to_dict()` of each value in outputs (dict) + _field_dict = {} + if self.outputs: + for _key in self.outputs: + if self.outputs[_key]: + _field_dict[_key] = self.outputs[_key].to_dict() + _dict["outputs"] = _field_dict + # override the default output from pydantic by calling `to_dict()` of properties + if self.properties: + _dict["properties"] = self.properties.to_dict() + # override the default output from pydantic by calling `to_dict()` of subscriber + if self.subscriber: + _dict["subscriber"] = self.subscriber.to_dict() + # set to None if filter (nullable) is None + # and model_fields_set contains the field + if self.filter is None and "filter" in self.model_fields_set: + _dict["filter"] = None + + # set to None if inputs (nullable) is None + # and model_fields_set contains the field + if self.inputs is None and "inputs" in self.model_fields_set: + _dict["inputs"] = None + + # set to None if outputs (nullable) is None + # and model_fields_set contains the field + if self.outputs is None and "outputs" in self.model_fields_set: + _dict["outputs"] = None + + # set to None if properties (nullable) is None + # and model_fields_set contains the field + if self.properties is None and "properties" in self.model_fields_set: + _dict["properties"] = None + + # set to None if sort_by (nullable) is None + # and model_fields_set contains the field + if self.sort_by is None and "sort_by" in self.model_fields_set: + _dict["sortBy"] = None + + # set to None if subscriber (nullable) is None + # and model_fields_set contains the field + if self.subscriber is None and "subscriber" in self.model_fields_set: + _dict["subscriber"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InputProcess from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "filter": obj.get("filter"), + "inputs": ( + dict( + (_k, InputWorkflows1.from_dict(_v)) + for _k, _v in obj["inputs"].items() + ) + if obj.get("inputs") is not None + else None + ), + "outputs": ( + dict( + (_k, OutputWorkflows1.from_dict(_v)) + for _k, _v in obj["outputs"].items() + ) + if obj.get("outputs") is not None + else None + ), + "process": obj.get("process"), + "properties": ( + FieldsModifiersProperties.from_dict(obj["properties"]) + if obj.get("properties") is not None + else None + ), + "sortBy": obj.get("sortBy"), + "subscriber": ( + Subscriber.from_dict(obj["subscriber"]) + if obj.get("subscriber") is not None + else None + ), + } + ) + return _obj + + +from unity_sps_ogc_processes_api_python_client.models.input_workflows1 import ( + InputWorkflows1, +) + +# TODO: Rewrite to not use raise_errors +InputProcess.model_rebuild(raise_errors=False) diff --git a/unity_sps_ogc_processes_api_python_client/models/input_value_input.py b/unity_sps_ogc_processes_api_python_client/models/input_value_input.py index e2dd4da..1a5ca4c 100644 --- a/unity_sps_ogc_processes_api_python_client/models/input_value_input.py +++ b/unity_sps_ogc_processes_api_python_client/models/input_value_input.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,139 +17,114 @@ import json import pprint import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union +from typing import Any, ClassVar, Dict, List, Optional, Set -from pydantic import BaseModel, ValidationError, field_validator +from pydantic import BaseModel, ConfigDict, StrictStr from typing_extensions import Self from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_input import ( InputValueNoObjectInput, ) -INPUTVALUEINPUT_ANY_OF_SCHEMAS = ["InputValueNoObjectInput", "object"] - class InputValueInput(BaseModel): """ - InputValueInput - """ + InputValue + """ # noqa: E501 - # data type: InputValueNoObjectInput + actual_instance: Optional[Any] = None + any_of_schemas: Optional[List[StrictStr]] = None anyof_schema_1_validator: Optional[InputValueNoObjectInput] = None - # data type: object anyof_schema_2_validator: Optional[Dict[str, Any]] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[InputValueNoObjectInput, object]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = {"InputValueNoObjectInput", "object"} - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError( - "If a position argument is used, only 1 is allowed to set `actual_instance`" - ) - if kwargs: - raise ValueError( - "If a position argument is used, keyword arguments cannot be used." - ) - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator("actual_instance") - def actual_instance_must_validate_anyof(cls, v): - instance = InputValueInput.model_construct() - error_messages = [] - # validate data type: InputValueNoObjectInput - if not isinstance(v, InputValueNoObjectInput): - error_messages.append( - f"Error! Input type `{type(v)}` is not `InputValueNoObjectInput`" - ) - else: - return v - - # validate data type: object - try: - instance.anyof_schema_2_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - if error_messages: - # no match - raise ValueError( - "No match found when setting the actual_instance in InputValueInput with anyOf schemas: InputValueNoObjectInput, object. Details: " - + ", ".join(error_messages) - ) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) + __properties: ClassVar[List[str]] = [ + "actual_instance", + "any_of_schemas", + "anyof_schema_1_validator", + "anyof_schema_2_validator", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[InputValueNoObjectInput] = None - try: - instance.actual_instance = InputValueNoObjectInput.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into object - try: - # validation - instance.anyof_schema_2_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_2_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError( - "No match found when deserializing the JSON string into InputValueInput with anyOf schemas: InputValueNoObjectInput, object. Details: " - + ", ".join(error_messages) - ) - else: - return instance + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) - if hasattr(self.actual_instance, "to_json") and callable( - self.actual_instance.to_json + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InputValueInput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of anyof_schema_1_validator + if self.anyof_schema_1_validator: + _dict["anyof_schema_1_validator"] = self.anyof_schema_1_validator.to_dict() + # set to None if actual_instance (nullable) is None + # and model_fields_set contains the field + if self.actual_instance is None and "actual_instance" in self.model_fields_set: + _dict["actual_instance"] = None + + # set to None if anyof_schema_1_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.anyof_schema_1_validator is None + and "anyof_schema_1_validator" in self.model_fields_set ): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict( - self, - ) -> Optional[Union[Dict[str, Any], InputValueNoObjectInput, object]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None + _dict["anyof_schema_1_validator"] = None - if hasattr(self.actual_instance, "to_dict") and callable( - self.actual_instance.to_dict + # set to None if anyof_schema_2_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.anyof_schema_2_validator is None + and "anyof_schema_2_validator" in self.model_fields_set ): - return self.actual_instance.to_dict() - else: - return self.actual_instance + _dict["anyof_schema_2_validator"] = None - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InputValueInput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "actual_instance": obj.get("actual_instance"), + "any_of_schemas": obj.get("any_of_schemas"), + "anyof_schema_1_validator": ( + InputValueNoObjectInput.from_dict(obj["anyof_schema_1_validator"]) + if obj.get("anyof_schema_1_validator") is not None + else None + ), + "anyof_schema_2_validator": obj.get("anyof_schema_2_validator"), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/input_value_no_object_input.py b/unity_sps_ogc_processes_api_python_client/models/input_value_no_object_input.py index cd31244..6c09f65 100644 --- a/unity_sps_ogc_processes_api_python_client/models/input_value_no_object_input.py +++ b/unity_sps_ogc_processes_api_python_client/models/input_value_no_object_input.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,237 +17,179 @@ import json import pprint import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set, Union - -from pydantic import ( - BaseModel, - StrictBool, - StrictFloat, - StrictInt, - StrictStr, - ValidationError, - field_validator, -) +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr from typing_extensions import Self from unity_sps_ogc_processes_api_python_client.models.bbox import Bbox - -INPUTVALUENOOBJECTINPUT_ANY_OF_SCHEMAS = [ - "Bbox", - "List[object]", - "bool", - "float", - "int", - "str", -] +from unity_sps_ogc_processes_api_python_client.models.oneof_schema2_validator import ( + OneofSchema2Validator, +) +from unity_sps_ogc_processes_api_python_client.models.oneof_schema6_validator import ( + OneofSchema6Validator, +) class InputValueNoObjectInput(BaseModel): """ - InputValueNoObjectInput - """ + InputValueNoObject + """ # noqa: E501 + + actual_instance: Optional[Any] = None + one_of_schemas: Optional[List[StrictStr]] = None + oneof_schema_1_validator: Optional[StrictStr] = None + oneof_schema_2_validator: Optional[OneofSchema2Validator] = None + oneof_schema_3_validator: Optional[StrictInt] = None + oneof_schema_4_validator: Optional[StrictBool] = None + oneof_schema_5_validator: Optional[List[Dict[str, Any]]] = None + oneof_schema_6_validator: Optional[OneofSchema6Validator] = None + oneof_schema_7_validator: Optional[Bbox] = None + __properties: ClassVar[List[str]] = [ + "actual_instance", + "one_of_schemas", + "oneof_schema_1_validator", + "oneof_schema_2_validator", + "oneof_schema_3_validator", + "oneof_schema_4_validator", + "oneof_schema_5_validator", + "oneof_schema_6_validator", + "oneof_schema_7_validator", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) - # data type: str - anyof_schema_1_validator: Optional[StrictStr] = None - # data type: float - anyof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = None - # data type: int - anyof_schema_3_validator: Optional[StrictInt] = None - # data type: bool - anyof_schema_4_validator: Optional[StrictBool] = None - # data type: List[object] - anyof_schema_5_validator: Optional[List[Any]] = None - # data type: str - anyof_schema_6_validator: Optional[StrictStr] = None - # data type: Bbox - anyof_schema_7_validator: Optional[Bbox] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[Bbox, List[object], bool, float, int, str]] = ( - None - ) - else: - actual_instance: Any = None - any_of_schemas: Set[str] = {"Bbox", "List[object]", "bool", "float", "int", "str"} - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError( - "If a position argument is used, only 1 is allowed to set `actual_instance`" - ) - if kwargs: - raise ValueError( - "If a position argument is used, keyword arguments cannot be used." - ) - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator("actual_instance") - def actual_instance_must_validate_anyof(cls, v): - instance = InputValueNoObjectInput.model_construct() - error_messages = [] - # validate data type: str - try: - instance.anyof_schema_1_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: float - try: - instance.anyof_schema_2_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: int - try: - instance.anyof_schema_3_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: bool - try: - instance.anyof_schema_4_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: List[object] - try: - instance.anyof_schema_5_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: str - try: - instance.anyof_schema_6_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: Bbox - if not isinstance(v, Bbox): - error_messages.append(f"Error! Input type `{type(v)}` is not `Bbox`") - else: - return v - - if error_messages: - # no match - raise ValueError( - "No match found when setting the actual_instance in InputValueNoObjectInput with anyOf schemas: Bbox, List[object], bool, float, int, str. Details: " - + ", ".join(error_messages) - ) - else: - return v + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # deserialize data into str - try: - # validation - instance.anyof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_1_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into float - try: - # validation - instance.anyof_schema_2_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_2_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into int - try: - # validation - instance.anyof_schema_3_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_3_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into bool - try: - # validation - instance.anyof_schema_4_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_4_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into List[object] - try: - # validation - instance.anyof_schema_5_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_5_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into str - try: - # validation - instance.anyof_schema_6_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_6_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_7_validator: Optional[Bbox] = None - try: - instance.actual_instance = Bbox.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError( - "No match found when deserializing the JSON string into InputValueNoObjectInput with anyOf schemas: Bbox, List[object], bool, float, int, str. Details: " - + ", ".join(error_messages) - ) - else: - return instance + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InputValueNoObjectInput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of oneof_schema_2_validator + if self.oneof_schema_2_validator: + _dict["oneof_schema_2_validator"] = self.oneof_schema_2_validator.to_dict() + # override the default output from pydantic by calling `to_dict()` of oneof_schema_6_validator + if self.oneof_schema_6_validator: + _dict["oneof_schema_6_validator"] = self.oneof_schema_6_validator.to_dict() + # override the default output from pydantic by calling `to_dict()` of oneof_schema_7_validator + if self.oneof_schema_7_validator: + _dict["oneof_schema_7_validator"] = self.oneof_schema_7_validator.to_dict() + # set to None if actual_instance (nullable) is None + # and model_fields_set contains the field + if self.actual_instance is None and "actual_instance" in self.model_fields_set: + _dict["actual_instance"] = None + + # set to None if oneof_schema_1_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_1_validator is None + and "oneof_schema_1_validator" in self.model_fields_set + ): + _dict["oneof_schema_1_validator"] = None - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" + # set to None if oneof_schema_2_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_2_validator is None + and "oneof_schema_2_validator" in self.model_fields_set + ): + _dict["oneof_schema_2_validator"] = None - if hasattr(self.actual_instance, "to_json") and callable( - self.actual_instance.to_json + # set to None if oneof_schema_3_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_3_validator is None + and "oneof_schema_3_validator" in self.model_fields_set ): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict( - self, - ) -> Optional[Union[Dict[str, Any], Bbox, List[object], bool, float, int, str]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None + _dict["oneof_schema_3_validator"] = None - if hasattr(self.actual_instance, "to_dict") and callable( - self.actual_instance.to_dict + # set to None if oneof_schema_4_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_4_validator is None + and "oneof_schema_4_validator" in self.model_fields_set ): - return self.actual_instance.to_dict() - else: - return self.actual_instance + _dict["oneof_schema_4_validator"] = None - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) + # set to None if oneof_schema_6_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_6_validator is None + and "oneof_schema_6_validator" in self.model_fields_set + ): + _dict["oneof_schema_6_validator"] = None + + # set to None if oneof_schema_7_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_7_validator is None + and "oneof_schema_7_validator" in self.model_fields_set + ): + _dict["oneof_schema_7_validator"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InputValueNoObjectInput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "actual_instance": obj.get("actual_instance"), + "one_of_schemas": obj.get("one_of_schemas"), + "oneof_schema_1_validator": obj.get("oneof_schema_1_validator"), + "oneof_schema_2_validator": ( + OneofSchema2Validator.from_dict(obj["oneof_schema_2_validator"]) + if obj.get("oneof_schema_2_validator") is not None + else None + ), + "oneof_schema_3_validator": obj.get("oneof_schema_3_validator"), + "oneof_schema_4_validator": obj.get("oneof_schema_4_validator"), + "oneof_schema_5_validator": obj.get("oneof_schema_5_validator"), + "oneof_schema_6_validator": ( + OneofSchema6Validator.from_dict(obj["oneof_schema_6_validator"]) + if obj.get("oneof_schema_6_validator") is not None + else None + ), + "oneof_schema_7_validator": ( + Bbox.from_dict(obj["oneof_schema_7_validator"]) + if obj.get("oneof_schema_7_validator") is not None + else None + ), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/input_value_no_object_output.py b/unity_sps_ogc_processes_api_python_client/models/input_value_no_object_output.py index c493c5f..56a42c1 100644 --- a/unity_sps_ogc_processes_api_python_client/models/input_value_no_object_output.py +++ b/unity_sps_ogc_processes_api_python_client/models/input_value_no_object_output.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,237 +17,179 @@ import json import pprint import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set, Union - -from pydantic import ( - BaseModel, - StrictBool, - StrictFloat, - StrictInt, - StrictStr, - ValidationError, - field_validator, -) +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr from typing_extensions import Self from unity_sps_ogc_processes_api_python_client.models.bbox import Bbox - -INPUTVALUENOOBJECTOUTPUT_ANY_OF_SCHEMAS = [ - "Bbox", - "List[object]", - "bool", - "float", - "int", - "str", -] +from unity_sps_ogc_processes_api_python_client.models.oneof_schema2_validator import ( + OneofSchema2Validator, +) +from unity_sps_ogc_processes_api_python_client.models.oneof_schema6_validator import ( + OneofSchema6Validator, +) class InputValueNoObjectOutput(BaseModel): """ - InputValueNoObjectOutput - """ + InputValueNoObject + """ # noqa: E501 + + actual_instance: Optional[Any] = None + one_of_schemas: Optional[List[StrictStr]] = None + oneof_schema_1_validator: Optional[StrictStr] = None + oneof_schema_2_validator: Optional[OneofSchema2Validator] = None + oneof_schema_3_validator: Optional[StrictInt] = None + oneof_schema_4_validator: Optional[StrictBool] = None + oneof_schema_5_validator: Optional[List[Dict[str, Any]]] = None + oneof_schema_6_validator: Optional[OneofSchema6Validator] = None + oneof_schema_7_validator: Optional[Bbox] = None + __properties: ClassVar[List[str]] = [ + "actual_instance", + "one_of_schemas", + "oneof_schema_1_validator", + "oneof_schema_2_validator", + "oneof_schema_3_validator", + "oneof_schema_4_validator", + "oneof_schema_5_validator", + "oneof_schema_6_validator", + "oneof_schema_7_validator", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) - # data type: str - anyof_schema_1_validator: Optional[StrictStr] = None - # data type: float - anyof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = None - # data type: int - anyof_schema_3_validator: Optional[StrictInt] = None - # data type: bool - anyof_schema_4_validator: Optional[StrictBool] = None - # data type: List[object] - anyof_schema_5_validator: Optional[List[Any]] = None - # data type: str - anyof_schema_6_validator: Optional[StrictStr] = None - # data type: Bbox - anyof_schema_7_validator: Optional[Bbox] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[Bbox, List[object], bool, float, int, str]] = ( - None - ) - else: - actual_instance: Any = None - any_of_schemas: Set[str] = {"Bbox", "List[object]", "bool", "float", "int", "str"} - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError( - "If a position argument is used, only 1 is allowed to set `actual_instance`" - ) - if kwargs: - raise ValueError( - "If a position argument is used, keyword arguments cannot be used." - ) - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator("actual_instance") - def actual_instance_must_validate_anyof(cls, v): - instance = InputValueNoObjectOutput.model_construct() - error_messages = [] - # validate data type: str - try: - instance.anyof_schema_1_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: float - try: - instance.anyof_schema_2_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: int - try: - instance.anyof_schema_3_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: bool - try: - instance.anyof_schema_4_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: List[object] - try: - instance.anyof_schema_5_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: str - try: - instance.anyof_schema_6_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: Bbox - if not isinstance(v, Bbox): - error_messages.append(f"Error! Input type `{type(v)}` is not `Bbox`") - else: - return v - - if error_messages: - # no match - raise ValueError( - "No match found when setting the actual_instance in InputValueNoObjectOutput with anyOf schemas: Bbox, List[object], bool, float, int, str. Details: " - + ", ".join(error_messages) - ) - else: - return v + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # deserialize data into str - try: - # validation - instance.anyof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_1_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into float - try: - # validation - instance.anyof_schema_2_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_2_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into int - try: - # validation - instance.anyof_schema_3_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_3_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into bool - try: - # validation - instance.anyof_schema_4_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_4_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into List[object] - try: - # validation - instance.anyof_schema_5_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_5_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into str - try: - # validation - instance.anyof_schema_6_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_6_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_7_validator: Optional[Bbox] = None - try: - instance.actual_instance = Bbox.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError( - "No match found when deserializing the JSON string into InputValueNoObjectOutput with anyOf schemas: Bbox, List[object], bool, float, int, str. Details: " - + ", ".join(error_messages) - ) - else: - return instance + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InputValueNoObjectOutput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of oneof_schema_2_validator + if self.oneof_schema_2_validator: + _dict["oneof_schema_2_validator"] = self.oneof_schema_2_validator.to_dict() + # override the default output from pydantic by calling `to_dict()` of oneof_schema_6_validator + if self.oneof_schema_6_validator: + _dict["oneof_schema_6_validator"] = self.oneof_schema_6_validator.to_dict() + # override the default output from pydantic by calling `to_dict()` of oneof_schema_7_validator + if self.oneof_schema_7_validator: + _dict["oneof_schema_7_validator"] = self.oneof_schema_7_validator.to_dict() + # set to None if actual_instance (nullable) is None + # and model_fields_set contains the field + if self.actual_instance is None and "actual_instance" in self.model_fields_set: + _dict["actual_instance"] = None + + # set to None if oneof_schema_1_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_1_validator is None + and "oneof_schema_1_validator" in self.model_fields_set + ): + _dict["oneof_schema_1_validator"] = None - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" + # set to None if oneof_schema_2_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_2_validator is None + and "oneof_schema_2_validator" in self.model_fields_set + ): + _dict["oneof_schema_2_validator"] = None - if hasattr(self.actual_instance, "to_json") and callable( - self.actual_instance.to_json + # set to None if oneof_schema_3_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_3_validator is None + and "oneof_schema_3_validator" in self.model_fields_set ): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict( - self, - ) -> Optional[Union[Dict[str, Any], Bbox, List[object], bool, float, int, str]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None + _dict["oneof_schema_3_validator"] = None - if hasattr(self.actual_instance, "to_dict") and callable( - self.actual_instance.to_dict + # set to None if oneof_schema_4_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_4_validator is None + and "oneof_schema_4_validator" in self.model_fields_set ): - return self.actual_instance.to_dict() - else: - return self.actual_instance + _dict["oneof_schema_4_validator"] = None - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) + # set to None if oneof_schema_6_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_6_validator is None + and "oneof_schema_6_validator" in self.model_fields_set + ): + _dict["oneof_schema_6_validator"] = None + + # set to None if oneof_schema_7_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_7_validator is None + and "oneof_schema_7_validator" in self.model_fields_set + ): + _dict["oneof_schema_7_validator"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InputValueNoObjectOutput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "actual_instance": obj.get("actual_instance"), + "one_of_schemas": obj.get("one_of_schemas"), + "oneof_schema_1_validator": obj.get("oneof_schema_1_validator"), + "oneof_schema_2_validator": ( + OneofSchema2Validator.from_dict(obj["oneof_schema_2_validator"]) + if obj.get("oneof_schema_2_validator") is not None + else None + ), + "oneof_schema_3_validator": obj.get("oneof_schema_3_validator"), + "oneof_schema_4_validator": obj.get("oneof_schema_4_validator"), + "oneof_schema_5_validator": obj.get("oneof_schema_5_validator"), + "oneof_schema_6_validator": ( + OneofSchema6Validator.from_dict(obj["oneof_schema_6_validator"]) + if obj.get("oneof_schema_6_validator") is not None + else None + ), + "oneof_schema_7_validator": ( + Bbox.from_dict(obj["oneof_schema_7_validator"]) + if obj.get("oneof_schema_7_validator") is not None + else None + ), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/input_value_no_object_workflows.py b/unity_sps_ogc_processes_api_python_client/models/input_value_no_object_workflows.py new file mode 100644 index 0000000..ed3d010 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/input_value_no_object_workflows.py @@ -0,0 +1,281 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.bbox1 import Bbox1 +from unity_sps_ogc_processes_api_python_client.models.input_collection import ( + InputCollection, +) +from unity_sps_ogc_processes_api_python_client.models.input_parameterized import ( + InputParameterized, +) +from unity_sps_ogc_processes_api_python_client.models.oneof_schema2_validator import ( + OneofSchema2Validator, +) +from unity_sps_ogc_processes_api_python_client.models.oneof_schema6_validator import ( + OneofSchema6Validator, +) + + +class InputValueNoObjectWorkflows(BaseModel): + """ + InputValueNoObjectWorkflows + """ # noqa: E501 + + actual_instance: Optional[ActualInstance1] = None + one_of_schemas: Optional[List[StrictStr]] = None + oneof_schema_10_validator: Optional[InputParameterized] = None + oneof_schema_1_validator: Optional[StrictStr] = None + oneof_schema_2_validator: Optional[OneofSchema2Validator] = None + oneof_schema_3_validator: Optional[StrictInt] = None + oneof_schema_4_validator: Optional[StrictBool] = None + oneof_schema_5_validator: Optional[List[Dict[str, Any]]] = None + oneof_schema_6_validator: Optional[OneofSchema6Validator] = None + oneof_schema_7_validator: Optional[Bbox1] = None + oneof_schema_8_validator: Optional[InputCollection] = None + oneof_schema_9_validator: Optional[InputProcess] = None + __properties: ClassVar[List[str]] = [ + "actual_instance", + "one_of_schemas", + "oneof_schema_10_validator", + "oneof_schema_1_validator", + "oneof_schema_2_validator", + "oneof_schema_3_validator", + "oneof_schema_4_validator", + "oneof_schema_5_validator", + "oneof_schema_6_validator", + "oneof_schema_7_validator", + "oneof_schema_8_validator", + "oneof_schema_9_validator", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InputValueNoObjectWorkflows from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of actual_instance + if self.actual_instance: + _dict["actual_instance"] = self.actual_instance.to_dict() + # override the default output from pydantic by calling `to_dict()` of oneof_schema_10_validator + if self.oneof_schema_10_validator: + _dict["oneof_schema_10_validator"] = ( + self.oneof_schema_10_validator.to_dict() + ) + # override the default output from pydantic by calling `to_dict()` of oneof_schema_2_validator + if self.oneof_schema_2_validator: + _dict["oneof_schema_2_validator"] = self.oneof_schema_2_validator.to_dict() + # override the default output from pydantic by calling `to_dict()` of oneof_schema_6_validator + if self.oneof_schema_6_validator: + _dict["oneof_schema_6_validator"] = self.oneof_schema_6_validator.to_dict() + # override the default output from pydantic by calling `to_dict()` of oneof_schema_7_validator + if self.oneof_schema_7_validator: + _dict["oneof_schema_7_validator"] = self.oneof_schema_7_validator.to_dict() + # override the default output from pydantic by calling `to_dict()` of oneof_schema_8_validator + if self.oneof_schema_8_validator: + _dict["oneof_schema_8_validator"] = self.oneof_schema_8_validator.to_dict() + # override the default output from pydantic by calling `to_dict()` of oneof_schema_9_validator + if self.oneof_schema_9_validator: + _dict["oneof_schema_9_validator"] = self.oneof_schema_9_validator.to_dict() + # set to None if actual_instance (nullable) is None + # and model_fields_set contains the field + if self.actual_instance is None and "actual_instance" in self.model_fields_set: + _dict["actual_instance"] = None + + # set to None if oneof_schema_10_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_10_validator is None + and "oneof_schema_10_validator" in self.model_fields_set + ): + _dict["oneof_schema_10_validator"] = None + + # set to None if oneof_schema_1_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_1_validator is None + and "oneof_schema_1_validator" in self.model_fields_set + ): + _dict["oneof_schema_1_validator"] = None + + # set to None if oneof_schema_2_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_2_validator is None + and "oneof_schema_2_validator" in self.model_fields_set + ): + _dict["oneof_schema_2_validator"] = None + + # set to None if oneof_schema_3_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_3_validator is None + and "oneof_schema_3_validator" in self.model_fields_set + ): + _dict["oneof_schema_3_validator"] = None + + # set to None if oneof_schema_4_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_4_validator is None + and "oneof_schema_4_validator" in self.model_fields_set + ): + _dict["oneof_schema_4_validator"] = None + + # set to None if oneof_schema_5_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_5_validator is None + and "oneof_schema_5_validator" in self.model_fields_set + ): + _dict["oneof_schema_5_validator"] = None + + # set to None if oneof_schema_6_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_6_validator is None + and "oneof_schema_6_validator" in self.model_fields_set + ): + _dict["oneof_schema_6_validator"] = None + + # set to None if oneof_schema_7_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_7_validator is None + and "oneof_schema_7_validator" in self.model_fields_set + ): + _dict["oneof_schema_7_validator"] = None + + # set to None if oneof_schema_8_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_8_validator is None + and "oneof_schema_8_validator" in self.model_fields_set + ): + _dict["oneof_schema_8_validator"] = None + + # set to None if oneof_schema_9_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_9_validator is None + and "oneof_schema_9_validator" in self.model_fields_set + ): + _dict["oneof_schema_9_validator"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InputValueNoObjectWorkflows from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "actual_instance": ( + ActualInstance1.from_dict(obj["actual_instance"]) + if obj.get("actual_instance") is not None + else None + ), + "one_of_schemas": obj.get("one_of_schemas"), + "oneof_schema_10_validator": ( + InputParameterized.from_dict(obj["oneof_schema_10_validator"]) + if obj.get("oneof_schema_10_validator") is not None + else None + ), + "oneof_schema_1_validator": obj.get("oneof_schema_1_validator"), + "oneof_schema_2_validator": ( + OneofSchema2Validator.from_dict(obj["oneof_schema_2_validator"]) + if obj.get("oneof_schema_2_validator") is not None + else None + ), + "oneof_schema_3_validator": obj.get("oneof_schema_3_validator"), + "oneof_schema_4_validator": obj.get("oneof_schema_4_validator"), + "oneof_schema_5_validator": obj.get("oneof_schema_5_validator"), + "oneof_schema_6_validator": ( + OneofSchema6Validator.from_dict(obj["oneof_schema_6_validator"]) + if obj.get("oneof_schema_6_validator") is not None + else None + ), + "oneof_schema_7_validator": ( + Bbox1.from_dict(obj["oneof_schema_7_validator"]) + if obj.get("oneof_schema_7_validator") is not None + else None + ), + "oneof_schema_8_validator": ( + InputCollection.from_dict(obj["oneof_schema_8_validator"]) + if obj.get("oneof_schema_8_validator") is not None + else None + ), + "oneof_schema_9_validator": ( + InputProcess.from_dict(obj["oneof_schema_9_validator"]) + if obj.get("oneof_schema_9_validator") is not None + else None + ), + } + ) + return _obj + + +from unity_sps_ogc_processes_api_python_client.models.actual_instance1 import ( + ActualInstance1, +) +from unity_sps_ogc_processes_api_python_client.models.input_process import InputProcess + +# TODO: Rewrite to not use raise_errors +InputValueNoObjectWorkflows.model_rebuild(raise_errors=False) diff --git a/unity_sps_ogc_processes_api_python_client/models/input_value_output.py b/unity_sps_ogc_processes_api_python_client/models/input_value_output.py index 1575ee0..33e8e64 100644 --- a/unity_sps_ogc_processes_api_python_client/models/input_value_output.py +++ b/unity_sps_ogc_processes_api_python_client/models/input_value_output.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,139 +17,114 @@ import json import pprint import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union +from typing import Any, ClassVar, Dict, List, Optional, Set -from pydantic import BaseModel, ValidationError, field_validator +from pydantic import BaseModel, ConfigDict, StrictStr from typing_extensions import Self from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_output import ( InputValueNoObjectOutput, ) -INPUTVALUEOUTPUT_ANY_OF_SCHEMAS = ["InputValueNoObjectOutput", "object"] - class InputValueOutput(BaseModel): """ - InputValueOutput - """ + InputValue + """ # noqa: E501 - # data type: InputValueNoObjectOutput + actual_instance: Optional[Any] = None + any_of_schemas: Optional[List[StrictStr]] = None anyof_schema_1_validator: Optional[InputValueNoObjectOutput] = None - # data type: object anyof_schema_2_validator: Optional[Dict[str, Any]] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[InputValueNoObjectOutput, object]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = {"InputValueNoObjectOutput", "object"} - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError( - "If a position argument is used, only 1 is allowed to set `actual_instance`" - ) - if kwargs: - raise ValueError( - "If a position argument is used, keyword arguments cannot be used." - ) - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator("actual_instance") - def actual_instance_must_validate_anyof(cls, v): - instance = InputValueOutput.model_construct() - error_messages = [] - # validate data type: InputValueNoObjectOutput - if not isinstance(v, InputValueNoObjectOutput): - error_messages.append( - f"Error! Input type `{type(v)}` is not `InputValueNoObjectOutput`" - ) - else: - return v - - # validate data type: object - try: - instance.anyof_schema_2_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - if error_messages: - # no match - raise ValueError( - "No match found when setting the actual_instance in InputValueOutput with anyOf schemas: InputValueNoObjectOutput, object. Details: " - + ", ".join(error_messages) - ) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) + __properties: ClassVar[List[str]] = [ + "actual_instance", + "any_of_schemas", + "anyof_schema_1_validator", + "anyof_schema_2_validator", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[InputValueNoObjectOutput] = None - try: - instance.actual_instance = InputValueNoObjectOutput.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into object - try: - # validation - instance.anyof_schema_2_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_2_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError( - "No match found when deserializing the JSON string into InputValueOutput with anyOf schemas: InputValueNoObjectOutput, object. Details: " - + ", ".join(error_messages) - ) - else: - return instance + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) - if hasattr(self.actual_instance, "to_json") and callable( - self.actual_instance.to_json + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InputValueOutput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of anyof_schema_1_validator + if self.anyof_schema_1_validator: + _dict["anyof_schema_1_validator"] = self.anyof_schema_1_validator.to_dict() + # set to None if actual_instance (nullable) is None + # and model_fields_set contains the field + if self.actual_instance is None and "actual_instance" in self.model_fields_set: + _dict["actual_instance"] = None + + # set to None if anyof_schema_1_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.anyof_schema_1_validator is None + and "anyof_schema_1_validator" in self.model_fields_set ): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict( - self, - ) -> Optional[Union[Dict[str, Any], InputValueNoObjectOutput, object]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None + _dict["anyof_schema_1_validator"] = None - if hasattr(self.actual_instance, "to_dict") and callable( - self.actual_instance.to_dict + # set to None if anyof_schema_2_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.anyof_schema_2_validator is None + and "anyof_schema_2_validator" in self.model_fields_set ): - return self.actual_instance.to_dict() - else: - return self.actual_instance + _dict["anyof_schema_2_validator"] = None - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InputValueOutput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "actual_instance": obj.get("actual_instance"), + "any_of_schemas": obj.get("any_of_schemas"), + "anyof_schema_1_validator": ( + InputValueNoObjectOutput.from_dict(obj["anyof_schema_1_validator"]) + if obj.get("anyof_schema_1_validator") is not None + else None + ), + "anyof_schema_2_validator": obj.get("anyof_schema_2_validator"), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/input_value_workflows.py b/unity_sps_ogc_processes_api_python_client/models/input_value_workflows.py new file mode 100644 index 0000000..aec91b5 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/input_value_workflows.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing_extensions import Self + + +class InputValueWorkflows(BaseModel): + """ + InputValueWorkflows + """ # noqa: E501 + + actual_instance: Optional[InputValueNoObjectWorkflows] = None + one_of_schemas: Optional[List[StrictStr]] = None + oneof_schema_1_validator: Optional[InputValueNoObjectWorkflows] = None + oneof_schema_2_validator: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = [ + "actual_instance", + "one_of_schemas", + "oneof_schema_1_validator", + "oneof_schema_2_validator", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InputValueWorkflows from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of actual_instance + if self.actual_instance: + _dict["actual_instance"] = self.actual_instance.to_dict() + # override the default output from pydantic by calling `to_dict()` of oneof_schema_1_validator + if self.oneof_schema_1_validator: + _dict["oneof_schema_1_validator"] = self.oneof_schema_1_validator.to_dict() + # set to None if actual_instance (nullable) is None + # and model_fields_set contains the field + if self.actual_instance is None and "actual_instance" in self.model_fields_set: + _dict["actual_instance"] = None + + # set to None if oneof_schema_1_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_1_validator is None + and "oneof_schema_1_validator" in self.model_fields_set + ): + _dict["oneof_schema_1_validator"] = None + + # set to None if oneof_schema_2_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_2_validator is None + and "oneof_schema_2_validator" in self.model_fields_set + ): + _dict["oneof_schema_2_validator"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InputValueWorkflows from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "actual_instance": ( + InputValueNoObjectWorkflows.from_dict(obj["actual_instance"]) + if obj.get("actual_instance") is not None + else None + ), + "one_of_schemas": obj.get("one_of_schemas"), + "oneof_schema_1_validator": ( + InputValueNoObjectWorkflows.from_dict( + obj["oneof_schema_1_validator"] + ) + if obj.get("oneof_schema_1_validator") is not None + else None + ), + "oneof_schema_2_validator": obj.get("oneof_schema_2_validator"), + } + ) + return _obj + + +from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows import ( + InputValueNoObjectWorkflows, +) + +# TODO: Rewrite to not use raise_errors +InputValueWorkflows.model_rebuild(raise_errors=False) diff --git a/unity_sps_ogc_processes_api_python_client/models/input_workflows.py b/unity_sps_ogc_processes_api_python_client/models/input_workflows.py new file mode 100644 index 0000000..728c43e --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/input_workflows.py @@ -0,0 +1,393 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set, Union + +from pydantic import ( + BaseModel, + StrictBool, + StrictFloat, + StrictInt, + StrictStr, + ValidationError, + field_validator, +) +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.bbox1 import Bbox1 +from unity_sps_ogc_processes_api_python_client.models.input_collection import ( + InputCollection, +) +from unity_sps_ogc_processes_api_python_client.models.input_parameterized import ( + InputParameterized, +) +from unity_sps_ogc_processes_api_python_client.models.input_process import InputProcess +from unity_sps_ogc_processes_api_python_client.models.input_workflows_any_of_inner import ( + InputWorkflowsAnyOfInner, +) +from unity_sps_ogc_processes_api_python_client.models.link import Link +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows import ( + QualifiedInputValueWorkflows, +) + +INPUTWORKFLOWS_ANY_OF_SCHEMAS = [ + "Bbox1", + "InputCollection", + "InputParameterized", + "InputProcess", + "Link", + "List[InputWorkflowsAnyOfInner]", + "List[object]", + "QualifiedInputValueWorkflows", + "bool", + "float", + "int", + "str", +] + + +class InputWorkflows(BaseModel): + """ + InputWorkflows + """ + + # data type: Bbox1 + anyof_schema_1_validator: Optional[Bbox1] = None + # data type: InputCollection + anyof_schema_2_validator: Optional[InputCollection] = None + # data type: InputParameterized + anyof_schema_3_validator: Optional[InputParameterized] = None + # data type: InputProcess + anyof_schema_4_validator: Optional[InputProcess] = None + # data type: List[object] + anyof_schema_5_validator: Optional[List[Any]] = None + # data type: bool + anyof_schema_6_validator: Optional[StrictBool] = None + # data type: float + anyof_schema_7_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_8_validator: Optional[StrictInt] = None + # data type: str + anyof_schema_9_validator: Optional[StrictStr] = None + # data type: Link + anyof_schema_10_validator: Optional[Link] = None + # data type: QualifiedInputValueWorkflows + anyof_schema_11_validator: Optional[QualifiedInputValueWorkflows] = None + # data type: List[InputWorkflowsAnyOfInner] + anyof_schema_12_validator: Optional[List[InputWorkflowsAnyOfInner]] = None + if TYPE_CHECKING: + actual_instance: Optional[ + Union[ + Bbox1, + InputCollection, + InputParameterized, + InputProcess, + Link, + List[InputWorkflowsAnyOfInner], + List[object], + QualifiedInputValueWorkflows, + bool, + float, + int, + str, + ] + ] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { + "Bbox1", + "InputCollection", + "InputParameterized", + "InputProcess", + "Link", + "List[InputWorkflowsAnyOfInner]", + "List[object]", + "QualifiedInputValueWorkflows", + "bool", + "float", + "int", + "str", + } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + instance = InputWorkflows.model_construct() + error_messages = [] + # validate data type: Bbox1 + if not isinstance(v, Bbox1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Bbox1`") + else: + return v + + # validate data type: InputCollection + if not isinstance(v, InputCollection): + error_messages.append( + f"Error! Input type `{type(v)}` is not `InputCollection`" + ) + else: + return v + + # validate data type: InputParameterized + if not isinstance(v, InputParameterized): + error_messages.append( + f"Error! Input type `{type(v)}` is not `InputParameterized`" + ) + else: + return v + + # validate data type: InputProcess + if not isinstance(v, InputProcess): + error_messages.append( + f"Error! Input type `{type(v)}` is not `InputProcess`" + ) + else: + return v + + # validate data type: List[object] + try: + instance.anyof_schema_5_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: bool + try: + instance.anyof_schema_6_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.anyof_schema_7_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_8_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: str + try: + instance.anyof_schema_9_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: Link + if not isinstance(v, Link): + error_messages.append(f"Error! Input type `{type(v)}` is not `Link`") + else: + return v + + # validate data type: QualifiedInputValueWorkflows + if not isinstance(v, QualifiedInputValueWorkflows): + error_messages.append( + f"Error! Input type `{type(v)}` is not `QualifiedInputValueWorkflows`" + ) + else: + return v + + # validate data type: List[InputWorkflowsAnyOfInner] + try: + instance.anyof_schema_12_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in InputWorkflows with anyOf schemas: Bbox1, InputCollection, InputParameterized, InputProcess, Link, List[InputWorkflowsAnyOfInner], List[object], QualifiedInputValueWorkflows, bool, float, int, str. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[Bbox1] = None + try: + instance.actual_instance = Bbox1.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[InputCollection] = None + try: + instance.actual_instance = InputCollection.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_3_validator: Optional[InputParameterized] = None + try: + instance.actual_instance = InputParameterized.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_4_validator: Optional[InputProcess] = None + try: + instance.actual_instance = InputProcess.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[object] + try: + # validation + instance.anyof_schema_5_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_5_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into bool + try: + # validation + instance.anyof_schema_6_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_6_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.anyof_schema_7_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_7_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_8_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_8_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into str + try: + # validation + instance.anyof_schema_9_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_9_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_10_validator: Optional[Link] = None + try: + instance.actual_instance = Link.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_11_validator: Optional[QualifiedInputValueWorkflows] = None + try: + instance.actual_instance = QualifiedInputValueWorkflows.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[InputWorkflowsAnyOfInner] + try: + # validation + instance.anyof_schema_12_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_12_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into InputWorkflows with anyOf schemas: Bbox1, InputCollection, InputParameterized, InputProcess, Link, List[InputWorkflowsAnyOfInner], List[object], QualifiedInputValueWorkflows, bool, float, int, str. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict( + self, + ) -> Optional[ + Union[ + Dict[str, Any], + Bbox1, + InputCollection, + InputParameterized, + InputProcess, + Link, + List[InputWorkflowsAnyOfInner], + List[object], + QualifiedInputValueWorkflows, + bool, + float, + int, + str, + ] + ]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/input_workflows1.py b/unity_sps_ogc_processes_api_python_client/models/input_workflows1.py new file mode 100644 index 0000000..63c88db --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/input_workflows1.py @@ -0,0 +1,158 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing_extensions import Self + + +class InputWorkflows1(BaseModel): + """ + InputWorkflows1 + """ # noqa: E501 + + actual_instance: Optional[ActualInstance2] = None + one_of_schemas: Optional[List[StrictStr]] = None + oneof_schema_1_validator: Optional[InlineOrRefDataWorkflows] = None + oneof_schema_2_validator: Optional[List[InlineOrRefDataWorkflows]] = None + __properties: ClassVar[List[str]] = [ + "actual_instance", + "one_of_schemas", + "oneof_schema_1_validator", + "oneof_schema_2_validator", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InputWorkflows1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of actual_instance + if self.actual_instance: + _dict["actual_instance"] = self.actual_instance.to_dict() + # override the default output from pydantic by calling `to_dict()` of oneof_schema_1_validator + if self.oneof_schema_1_validator: + _dict["oneof_schema_1_validator"] = self.oneof_schema_1_validator.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in oneof_schema_2_validator (list) + _items = [] + if self.oneof_schema_2_validator: + for _item in self.oneof_schema_2_validator: + if _item: + _items.append(_item.to_dict()) + _dict["oneof_schema_2_validator"] = _items + # set to None if actual_instance (nullable) is None + # and model_fields_set contains the field + if self.actual_instance is None and "actual_instance" in self.model_fields_set: + _dict["actual_instance"] = None + + # set to None if oneof_schema_1_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_1_validator is None + and "oneof_schema_1_validator" in self.model_fields_set + ): + _dict["oneof_schema_1_validator"] = None + + # set to None if oneof_schema_2_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_2_validator is None + and "oneof_schema_2_validator" in self.model_fields_set + ): + _dict["oneof_schema_2_validator"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InputWorkflows1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "actual_instance": ( + ActualInstance2.from_dict(obj["actual_instance"]) + if obj.get("actual_instance") is not None + else None + ), + "one_of_schemas": obj.get("one_of_schemas"), + "oneof_schema_1_validator": ( + InlineOrRefDataWorkflows.from_dict(obj["oneof_schema_1_validator"]) + if obj.get("oneof_schema_1_validator") is not None + else None + ), + "oneof_schema_2_validator": ( + [ + InlineOrRefDataWorkflows.from_dict(_item) + for _item in obj["oneof_schema_2_validator"] + ] + if obj.get("oneof_schema_2_validator") is not None + else None + ), + } + ) + return _obj + + +from unity_sps_ogc_processes_api_python_client.models.actual_instance2 import ( + ActualInstance2, +) +from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows import ( + InlineOrRefDataWorkflows, +) + +# TODO: Rewrite to not use raise_errors +InputWorkflows1.model_rebuild(raise_errors=False) diff --git a/unity_sps_ogc_processes_api_python_client/models/input_workflows_any_of_inner.py b/unity_sps_ogc_processes_api_python_client/models/input_workflows_any_of_inner.py new file mode 100644 index 0000000..db1763f --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/input_workflows_any_of_inner.py @@ -0,0 +1,369 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set, Union + +from pydantic import ( + BaseModel, + StrictBool, + StrictFloat, + StrictInt, + StrictStr, + ValidationError, + field_validator, +) +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.bbox1 import Bbox1 +from unity_sps_ogc_processes_api_python_client.models.input_collection import ( + InputCollection, +) +from unity_sps_ogc_processes_api_python_client.models.input_parameterized import ( + InputParameterized, +) +from unity_sps_ogc_processes_api_python_client.models.input_process import InputProcess +from unity_sps_ogc_processes_api_python_client.models.link import Link +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows import ( + QualifiedInputValueWorkflows, +) + +INPUTWORKFLOWSANYOFINNER_ANY_OF_SCHEMAS = [ + "Bbox1", + "InputCollection", + "InputParameterized", + "InputProcess", + "Link", + "List[object]", + "QualifiedInputValueWorkflows", + "bool", + "float", + "int", + "str", +] + + +class InputWorkflowsAnyOfInner(BaseModel): + """ + InputWorkflowsAnyOfInner + """ + + # data type: Bbox1 + anyof_schema_1_validator: Optional[Bbox1] = None + # data type: InputCollection + anyof_schema_2_validator: Optional[InputCollection] = None + # data type: InputParameterized + anyof_schema_3_validator: Optional[InputParameterized] = None + # data type: InputProcess + anyof_schema_4_validator: Optional[InputProcess] = None + # data type: List[object] + anyof_schema_5_validator: Optional[List[Any]] = None + # data type: bool + anyof_schema_6_validator: Optional[StrictBool] = None + # data type: float + anyof_schema_7_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_8_validator: Optional[StrictInt] = None + # data type: str + anyof_schema_9_validator: Optional[StrictStr] = None + # data type: Link + anyof_schema_10_validator: Optional[Link] = None + # data type: QualifiedInputValueWorkflows + anyof_schema_11_validator: Optional[QualifiedInputValueWorkflows] = None + if TYPE_CHECKING: + actual_instance: Optional[ + Union[ + Bbox1, + InputCollection, + InputParameterized, + InputProcess, + Link, + List[object], + QualifiedInputValueWorkflows, + bool, + float, + int, + str, + ] + ] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { + "Bbox1", + "InputCollection", + "InputParameterized", + "InputProcess", + "Link", + "List[object]", + "QualifiedInputValueWorkflows", + "bool", + "float", + "int", + "str", + } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + instance = InputWorkflowsAnyOfInner.model_construct() + error_messages = [] + # validate data type: Bbox1 + if not isinstance(v, Bbox1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Bbox1`") + else: + return v + + # validate data type: InputCollection + if not isinstance(v, InputCollection): + error_messages.append( + f"Error! Input type `{type(v)}` is not `InputCollection`" + ) + else: + return v + + # validate data type: InputParameterized + if not isinstance(v, InputParameterized): + error_messages.append( + f"Error! Input type `{type(v)}` is not `InputParameterized`" + ) + else: + return v + + # validate data type: InputProcess + if not isinstance(v, InputProcess): + error_messages.append( + f"Error! Input type `{type(v)}` is not `InputProcess`" + ) + else: + return v + + # validate data type: List[object] + try: + instance.anyof_schema_5_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: bool + try: + instance.anyof_schema_6_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.anyof_schema_7_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_8_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: str + try: + instance.anyof_schema_9_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: Link + if not isinstance(v, Link): + error_messages.append(f"Error! Input type `{type(v)}` is not `Link`") + else: + return v + + # validate data type: QualifiedInputValueWorkflows + if not isinstance(v, QualifiedInputValueWorkflows): + error_messages.append( + f"Error! Input type `{type(v)}` is not `QualifiedInputValueWorkflows`" + ) + else: + return v + + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in InputWorkflowsAnyOfInner with anyOf schemas: Bbox1, InputCollection, InputParameterized, InputProcess, Link, List[object], QualifiedInputValueWorkflows, bool, float, int, str. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[Bbox1] = None + try: + instance.actual_instance = Bbox1.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[InputCollection] = None + try: + instance.actual_instance = InputCollection.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_3_validator: Optional[InputParameterized] = None + try: + instance.actual_instance = InputParameterized.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_4_validator: Optional[InputProcess] = None + try: + instance.actual_instance = InputProcess.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[object] + try: + # validation + instance.anyof_schema_5_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_5_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into bool + try: + # validation + instance.anyof_schema_6_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_6_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.anyof_schema_7_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_7_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_8_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_8_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into str + try: + # validation + instance.anyof_schema_9_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_9_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_10_validator: Optional[Link] = None + try: + instance.actual_instance = Link.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_11_validator: Optional[QualifiedInputValueWorkflows] = None + try: + instance.actual_instance = QualifiedInputValueWorkflows.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into InputWorkflowsAnyOfInner with anyOf schemas: Bbox1, InputCollection, InputParameterized, InputProcess, Link, List[object], QualifiedInputValueWorkflows, bool, float, int, str. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict( + self, + ) -> Optional[ + Union[ + Dict[str, Any], + Bbox1, + InputCollection, + InputParameterized, + InputProcess, + Link, + List[object], + QualifiedInputValueWorkflows, + bool, + float, + int, + str, + ] + ]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/job_control_options.py b/unity_sps_ogc_processes_api_python_client/models/job_control_options.py index b8b0c8a..7e34a39 100644 --- a/unity_sps_ogc_processes_api_python_client/models/job_control_options.py +++ b/unity_sps_ogc_processes_api_python_client/models/job_control_options.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/unity_sps_ogc_processes_api_python_client/models/job_list_input.py b/unity_sps_ogc_processes_api_python_client/models/job_list_input.py new file mode 100644 index 0000000..a27ef82 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/job_list_input.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.link import Link +from unity_sps_ogc_processes_api_python_client.models.status_info import StatusInfo + + +class JobListInput(BaseModel): + """ + JobList + """ # noqa: E501 + + jobs: List[StatusInfo] + links: List[Link] + __properties: ClassVar[List[str]] = ["jobs", "links"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of JobListInput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in jobs (list) + _items = [] + if self.jobs: + for _item in self.jobs: + if _item: + _items.append(_item.to_dict()) + _dict["jobs"] = _items + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict["links"] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of JobListInput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "jobs": ( + [StatusInfo.from_dict(_item) for _item in obj["jobs"]] + if obj.get("jobs") is not None + else None + ), + "links": ( + [Link.from_dict(_item) for _item in obj["links"]] + if obj.get("links") is not None + else None + ), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/job_list_output.py b/unity_sps_ogc_processes_api_python_client/models/job_list_output.py new file mode 100644 index 0000000..af7c62e --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/job_list_output.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.link import Link +from unity_sps_ogc_processes_api_python_client.models.status_info import StatusInfo + + +class JobListOutput(BaseModel): + """ + JobList + """ # noqa: E501 + + jobs: List[StatusInfo] + links: List[Link] + __properties: ClassVar[List[str]] = ["jobs", "links"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of JobListOutput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in jobs (list) + _items = [] + if self.jobs: + for _item in self.jobs: + if _item: + _items.append(_item.to_dict()) + _dict["jobs"] = _items + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict["links"] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of JobListOutput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "jobs": ( + [StatusInfo.from_dict(_item) for _item in obj["jobs"]] + if obj.get("jobs") is not None + else None + ), + "links": ( + [Link.from_dict(_item) for _item in obj["links"]] + if obj.get("links") is not None + else None + ), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/jobtimeout.py b/unity_sps_ogc_processes_api_python_client/models/jobtimeout.py new file mode 100644 index 0000000..b6070a3 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/jobtimeout.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, StrictFloat, StrictInt, ValidationError, field_validator +from typing_extensions import Self + +JOBTIMEOUT_ANY_OF_SCHEMAS = ["float", "int"] + + +class Jobtimeout(BaseModel): + """ + Timeout delay for a job execution (in seconds) + """ + + # data type: float + anyof_schema_1_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_2_validator: Optional[StrictInt] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[float, int]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"float", "int"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + if v is None: + return v + + instance = Jobtimeout.model_construct() + error_messages = [] + # validate data type: float + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in Jobtimeout with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + if json_str is None: + return instance + + error_messages = [] + # deserialize data into float + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into Jobtimeout with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, int]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/landing_page.py b/unity_sps_ogc_processes_api_python_client/models/landing_page.py index a8163bd..7f11634 100644 --- a/unity_sps_ogc_processes_api_python_client/models/landing_page.py +++ b/unity_sps_ogc_processes_api_python_client/models/landing_page.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/unity_sps_ogc_processes_api_python_client/models/link.py b/unity_sps_ogc_processes_api_python_client/models/link.py index 34f611f..2ebaa99 100644 --- a/unity_sps_ogc_processes_api_python_client/models/link.py +++ b/unity_sps_ogc_processes_api_python_client/models/link.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/unity_sps_ogc_processes_api_python_client/models/maximum.py b/unity_sps_ogc_processes_api_python_client/models/maximum.py new file mode 100644 index 0000000..49dd2e0 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/maximum.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, StrictFloat, StrictInt, ValidationError, field_validator +from typing_extensions import Self + +MAXIMUM_ANY_OF_SCHEMAS = ["float", "int"] + + +class Maximum(BaseModel): + """ + Maximum + """ + + # data type: float + anyof_schema_1_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_2_validator: Optional[StrictInt] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[float, int]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"float", "int"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + if v is None: + return v + + instance = Maximum.model_construct() + error_messages = [] + # validate data type: float + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in Maximum with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + if json_str is None: + return instance + + error_messages = [] + # deserialize data into float + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into Maximum with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, int]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/memorymax.py b/unity_sps_ogc_processes_api_python_client/models/memorymax.py new file mode 100644 index 0000000..362d441 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/memorymax.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, StrictFloat, StrictInt, ValidationError, field_validator +from typing_extensions import Self + +MEMORYMAX_ANY_OF_SCHEMAS = ["float", "int"] + + +class Memorymax(BaseModel): + """ + Maximum RAM memory dedicated to the application (unit is GB) + """ + + # data type: float + anyof_schema_1_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_2_validator: Optional[StrictInt] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[float, int]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"float", "int"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + if v is None: + return v + + instance = Memorymax.model_construct() + error_messages = [] + # validate data type: float + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in Memorymax with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + if json_str is None: + return instance + + error_messages = [] + # deserialize data into float + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into Memorymax with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, int]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/memorymin.py b/unity_sps_ogc_processes_api_python_client/models/memorymin.py new file mode 100644 index 0000000..0350852 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/memorymin.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, StrictFloat, StrictInt, ValidationError, field_validator +from typing_extensions import Self + +MEMORYMIN_ANY_OF_SCHEMAS = ["float", "int"] + + +class Memorymin(BaseModel): + """ + Minimum RAM memory required to run the application (unit is GB) + """ + + # data type: float + anyof_schema_1_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_2_validator: Optional[StrictInt] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[float, int]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"float", "int"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + if v is None: + return v + + instance = Memorymin.model_construct() + error_messages = [] + # validate data type: float + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in Memorymin with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + if json_str is None: + return instance + + error_messages = [] + # deserialize data into float + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into Memorymin with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, int]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/metadata_input.py b/unity_sps_ogc_processes_api_python_client/models/metadata_input.py new file mode 100644 index 0000000..290a3d6 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/metadata_input.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, ValidationError, field_validator +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.metadata_one_of import ( + MetadataOneOf, +) +from unity_sps_ogc_processes_api_python_client.models.metadata_one_of1 import ( + MetadataOneOf1, +) + +METADATAINPUT_ANY_OF_SCHEMAS = ["MetadataOneOf", "MetadataOneOf1"] + + +class MetadataInput(BaseModel): + """ + MetadataInput + """ + + # data type: MetadataOneOf + anyof_schema_1_validator: Optional[MetadataOneOf] = None + # data type: MetadataOneOf1 + anyof_schema_2_validator: Optional[MetadataOneOf1] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[MetadataOneOf, MetadataOneOf1]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"MetadataOneOf", "MetadataOneOf1"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + MetadataInput.model_construct() + error_messages = [] + # validate data type: MetadataOneOf + if not isinstance(v, MetadataOneOf): + error_messages.append( + f"Error! Input type `{type(v)}` is not `MetadataOneOf`" + ) + else: + return v + + # validate data type: MetadataOneOf1 + if not isinstance(v, MetadataOneOf1): + error_messages.append( + f"Error! Input type `{type(v)}` is not `MetadataOneOf1`" + ) + else: + return v + + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in MetadataInput with anyOf schemas: MetadataOneOf, MetadataOneOf1. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[MetadataOneOf] = None + try: + instance.actual_instance = MetadataOneOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[MetadataOneOf1] = None + try: + instance.actual_instance = MetadataOneOf1.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into MetadataInput with anyOf schemas: MetadataOneOf, MetadataOneOf1. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], MetadataOneOf, MetadataOneOf1]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/metadata_one_of.py b/unity_sps_ogc_processes_api_python_client/models/metadata_one_of.py new file mode 100644 index 0000000..771f83e --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/metadata_one_of.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing_extensions import Self + + +class MetadataOneOf(BaseModel): + """ + MetadataOneOf + """ # noqa: E501 + + href: StrictStr + hreflang: Optional[StrictStr] = None + rel: Optional[StrictStr] = None + role: Optional[StrictStr] = None + title: Optional[StrictStr] = None + type: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = [ + "href", + "hreflang", + "rel", + "role", + "title", + "type", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of MetadataOneOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if hreflang (nullable) is None + # and model_fields_set contains the field + if self.hreflang is None and "hreflang" in self.model_fields_set: + _dict["hreflang"] = None + + # set to None if rel (nullable) is None + # and model_fields_set contains the field + if self.rel is None and "rel" in self.model_fields_set: + _dict["rel"] = None + + # set to None if role (nullable) is None + # and model_fields_set contains the field + if self.role is None and "role" in self.model_fields_set: + _dict["role"] = None + + # set to None if title (nullable) is None + # and model_fields_set contains the field + if self.title is None and "title" in self.model_fields_set: + _dict["title"] = None + + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict["type"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of MetadataOneOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "href": obj.get("href"), + "hreflang": obj.get("hreflang"), + "rel": obj.get("rel"), + "role": obj.get("role"), + "title": obj.get("title"), + "type": obj.get("type"), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/metadata_one_of1.py b/unity_sps_ogc_processes_api_python_client/models/metadata_one_of1.py new file mode 100644 index 0000000..a9e3fb4 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/metadata_one_of1.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.metadata_one_of1_value import ( + MetadataOneOf1Value, +) + + +class MetadataOneOf1(BaseModel): + """ + MetadataOneOf1 + """ # noqa: E501 + + lang: Optional[StrictStr] = None + role: Optional[StrictStr] = None + title: Optional[StrictStr] = None + value: Optional[MetadataOneOf1Value] = None + __properties: ClassVar[List[str]] = ["lang", "role", "title", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of MetadataOneOf1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of value + if self.value: + _dict["value"] = self.value.to_dict() + # set to None if lang (nullable) is None + # and model_fields_set contains the field + if self.lang is None and "lang" in self.model_fields_set: + _dict["lang"] = None + + # set to None if role (nullable) is None + # and model_fields_set contains the field + if self.role is None and "role" in self.model_fields_set: + _dict["role"] = None + + # set to None if title (nullable) is None + # and model_fields_set contains the field + if self.title is None and "title" in self.model_fields_set: + _dict["title"] = None + + # set to None if value (nullable) is None + # and model_fields_set contains the field + if self.value is None and "value" in self.model_fields_set: + _dict["value"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of MetadataOneOf1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "lang": obj.get("lang"), + "role": obj.get("role"), + "title": obj.get("title"), + "value": ( + MetadataOneOf1Value.from_dict(obj["value"]) + if obj.get("value") is not None + else None + ), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/metadata_one_of1_value.py b/unity_sps_ogc_processes_api_python_client/models/metadata_one_of1_value.py new file mode 100644 index 0000000..cabc2e9 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/metadata_one_of1_value.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing_extensions import Self + + +class MetadataOneOf1Value(BaseModel): + """ + MetadataOneOf1Value + """ # noqa: E501 + + actual_instance: Optional[StrictStr] = None + one_of_schemas: Optional[List[StrictStr]] = None + oneof_schema_1_validator: Optional[StrictStr] = None + oneof_schema_2_validator: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = [ + "actual_instance", + "one_of_schemas", + "oneof_schema_1_validator", + "oneof_schema_2_validator", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of MetadataOneOf1Value from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if actual_instance (nullable) is None + # and model_fields_set contains the field + if self.actual_instance is None and "actual_instance" in self.model_fields_set: + _dict["actual_instance"] = None + + # set to None if oneof_schema_1_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_1_validator is None + and "oneof_schema_1_validator" in self.model_fields_set + ): + _dict["oneof_schema_1_validator"] = None + + # set to None if oneof_schema_2_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_2_validator is None + and "oneof_schema_2_validator" in self.model_fields_set + ): + _dict["oneof_schema_2_validator"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of MetadataOneOf1Value from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "actual_instance": obj.get("actual_instance"), + "one_of_schemas": obj.get("one_of_schemas"), + "oneof_schema_1_validator": obj.get("oneof_schema_1_validator"), + "oneof_schema_2_validator": obj.get("oneof_schema_2_validator"), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/metadata_output.py b/unity_sps_ogc_processes_api_python_client/models/metadata_output.py new file mode 100644 index 0000000..b315521 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/metadata_output.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, ValidationError, field_validator +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.metadata_one_of import ( + MetadataOneOf, +) +from unity_sps_ogc_processes_api_python_client.models.metadata_one_of1 import ( + MetadataOneOf1, +) + +METADATAOUTPUT_ANY_OF_SCHEMAS = ["MetadataOneOf", "MetadataOneOf1"] + + +class MetadataOutput(BaseModel): + """ + MetadataOutput + """ + + # data type: MetadataOneOf + anyof_schema_1_validator: Optional[MetadataOneOf] = None + # data type: MetadataOneOf1 + anyof_schema_2_validator: Optional[MetadataOneOf1] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[MetadataOneOf, MetadataOneOf1]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"MetadataOneOf", "MetadataOneOf1"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + MetadataOutput.model_construct() + error_messages = [] + # validate data type: MetadataOneOf + if not isinstance(v, MetadataOneOf): + error_messages.append( + f"Error! Input type `{type(v)}` is not `MetadataOneOf`" + ) + else: + return v + + # validate data type: MetadataOneOf1 + if not isinstance(v, MetadataOneOf1): + error_messages.append( + f"Error! Input type `{type(v)}` is not `MetadataOneOf1`" + ) + else: + return v + + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in MetadataOutput with anyOf schemas: MetadataOneOf, MetadataOneOf1. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[MetadataOneOf] = None + try: + instance.actual_instance = MetadataOneOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[MetadataOneOf1] = None + try: + instance.actual_instance = MetadataOneOf1.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into MetadataOutput with anyOf schemas: MetadataOneOf, MetadataOneOf1. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], MetadataOneOf, MetadataOneOf1]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/minimum.py b/unity_sps_ogc_processes_api_python_client/models/minimum.py new file mode 100644 index 0000000..68b73b8 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/minimum.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, StrictFloat, StrictInt, ValidationError, field_validator +from typing_extensions import Self + +MINIMUM_ANY_OF_SCHEMAS = ["float", "int"] + + +class Minimum(BaseModel): + """ + Minimum + """ + + # data type: float + anyof_schema_1_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_2_validator: Optional[StrictInt] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[float, int]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"float", "int"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + if v is None: + return v + + instance = Minimum.model_construct() + error_messages = [] + # validate data type: float + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in Minimum with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + if json_str is None: + return instance + + error_messages = [] + # deserialize data into float + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into Minimum with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, int]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/model_schema_input.py b/unity_sps_ogc_processes_api_python_client/models/model_schema_input.py new file mode 100644 index 0000000..5275471 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/model_schema_input.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, ValidationError, field_validator +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.reference import Reference +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_input import ( + SchemaOneOfInput, +) + +MODELSCHEMAINPUT_ANY_OF_SCHEMAS = ["Reference", "SchemaOneOfInput"] + + +class ModelSchemaInput(BaseModel): + """ + ModelSchemaInput + """ + + # data type: Reference + anyof_schema_1_validator: Optional[Reference] = None + # data type: SchemaOneOfInput + anyof_schema_2_validator: Optional[SchemaOneOfInput] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[Reference, SchemaOneOfInput]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"Reference", "SchemaOneOfInput"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + ModelSchemaInput.model_construct() + error_messages = [] + # validate data type: Reference + if not isinstance(v, Reference): + error_messages.append(f"Error! Input type `{type(v)}` is not `Reference`") + else: + return v + + # validate data type: SchemaOneOfInput + if not isinstance(v, SchemaOneOfInput): + error_messages.append( + f"Error! Input type `{type(v)}` is not `SchemaOneOfInput`" + ) + else: + return v + + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in ModelSchemaInput with anyOf schemas: Reference, SchemaOneOfInput. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[Reference] = None + try: + instance.actual_instance = Reference.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[SchemaOneOfInput] = None + try: + instance.actual_instance = SchemaOneOfInput.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into ModelSchemaInput with anyOf schemas: Reference, SchemaOneOfInput. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], Reference, SchemaOneOfInput]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/model_schema_output.py b/unity_sps_ogc_processes_api_python_client/models/model_schema_output.py new file mode 100644 index 0000000..e040190 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/model_schema_output.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, ValidationError, field_validator +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.reference import Reference +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_output import ( + SchemaOneOfOutput, +) + +MODELSCHEMAOUTPUT_ANY_OF_SCHEMAS = ["Reference", "SchemaOneOfOutput"] + + +class ModelSchemaOutput(BaseModel): + """ + ModelSchemaOutput + """ + + # data type: Reference + anyof_schema_1_validator: Optional[Reference] = None + # data type: SchemaOneOfOutput + anyof_schema_2_validator: Optional[SchemaOneOfOutput] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[Reference, SchemaOneOfOutput]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"Reference", "SchemaOneOfOutput"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + ModelSchemaOutput.model_construct() + error_messages = [] + # validate data type: Reference + if not isinstance(v, Reference): + error_messages.append(f"Error! Input type `{type(v)}` is not `Reference`") + else: + return v + + # validate data type: SchemaOneOfOutput + if not isinstance(v, SchemaOneOfOutput): + error_messages.append( + f"Error! Input type `{type(v)}` is not `SchemaOneOfOutput`" + ) + else: + return v + + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in ModelSchemaOutput with anyOf schemas: Reference, SchemaOneOfOutput. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[Reference] = None + try: + instance.actual_instance = Reference.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[SchemaOneOfOutput] = None + try: + instance.actual_instance = SchemaOneOfOutput.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into ModelSchemaOutput with anyOf schemas: Reference, SchemaOneOfOutput. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], Reference, SchemaOneOfOutput]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/multipleof.py b/unity_sps_ogc_processes_api_python_client/models/multipleof.py new file mode 100644 index 0000000..a4594ec --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/multipleof.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, StrictFloat, StrictInt, ValidationError, field_validator +from typing_extensions import Self + +MULTIPLEOF_ANY_OF_SCHEMAS = ["float", "int"] + + +class Multipleof(BaseModel): + """ + Multipleof + """ + + # data type: float + anyof_schema_1_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_2_validator: Optional[StrictInt] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[float, int]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"float", "int"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + if v is None: + return v + + instance = Multipleof.model_construct() + error_messages = [] + # validate data type: float + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in Multipleof with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + if json_str is None: + return instance + + error_messages = [] + # deserialize data into float + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into Multipleof with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, int]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/ogcapppkg.py b/unity_sps_ogc_processes_api_python_client/models/ogcapppkg.py new file mode 100644 index 0000000..f52ddd6 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/ogcapppkg.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.ogcapppkg_execution_unit import ( + OgcapppkgExecutionUnit, +) +from unity_sps_ogc_processes_api_python_client.models.process_input import ProcessInput + + +class Ogcapppkg(BaseModel): + """ + Ogcapppkg + """ # noqa: E501 + + execution_unit: OgcapppkgExecutionUnit = Field(alias="executionUnit") + process_description: ProcessInput = Field(alias="processDescription") + __properties: ClassVar[List[str]] = ["executionUnit", "processDescription"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Ogcapppkg from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of execution_unit + if self.execution_unit: + _dict["executionUnit"] = self.execution_unit.to_dict() + # override the default output from pydantic by calling `to_dict()` of process_description + if self.process_description: + _dict["processDescription"] = self.process_description.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Ogcapppkg from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "executionUnit": ( + OgcapppkgExecutionUnit.from_dict(obj["executionUnit"]) + if obj.get("executionUnit") is not None + else None + ), + "processDescription": ( + ProcessInput.from_dict(obj["processDescription"]) + if obj.get("processDescription") is not None + else None + ), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/ogcapppkg_execution_unit.py b/unity_sps_ogc_processes_api_python_client/models/ogcapppkg_execution_unit.py new file mode 100644 index 0000000..893a4b4 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/ogcapppkg_execution_unit.py @@ -0,0 +1,217 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set, Union + +from pydantic import BaseModel, ValidationError, field_validator +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.execution_unit import ( + ExecutionUnit, +) +from unity_sps_ogc_processes_api_python_client.models.link import Link +from unity_sps_ogc_processes_api_python_client.models.ogcapppkg_execution_unit_any_of_inner import ( + OgcapppkgExecutionUnitAnyOfInner, +) +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_input import ( + QualifiedInputValueInput, +) + +OGCAPPPKGEXECUTIONUNIT_ANY_OF_SCHEMAS = [ + "ExecutionUnit", + "Link", + "List[OgcapppkgExecutionUnitAnyOfInner]", + "QualifiedInputValueInput", +] + + +class OgcapppkgExecutionUnit(BaseModel): + """ + OgcapppkgExecutionUnit + """ + + # data type: ExecutionUnit + anyof_schema_1_validator: Optional[ExecutionUnit] = None + # data type: Link + anyof_schema_2_validator: Optional[Link] = None + # data type: QualifiedInputValueInput + anyof_schema_3_validator: Optional[QualifiedInputValueInput] = None + # data type: List[OgcapppkgExecutionUnitAnyOfInner] + anyof_schema_4_validator: Optional[List[OgcapppkgExecutionUnitAnyOfInner]] = None + if TYPE_CHECKING: + actual_instance: Optional[ + Union[ + ExecutionUnit, + Link, + List[OgcapppkgExecutionUnitAnyOfInner], + QualifiedInputValueInput, + ] + ] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { + "ExecutionUnit", + "Link", + "List[OgcapppkgExecutionUnitAnyOfInner]", + "QualifiedInputValueInput", + } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + instance = OgcapppkgExecutionUnit.model_construct() + error_messages = [] + # validate data type: ExecutionUnit + if not isinstance(v, ExecutionUnit): + error_messages.append( + f"Error! Input type `{type(v)}` is not `ExecutionUnit`" + ) + else: + return v + + # validate data type: Link + if not isinstance(v, Link): + error_messages.append(f"Error! Input type `{type(v)}` is not `Link`") + else: + return v + + # validate data type: QualifiedInputValueInput + if not isinstance(v, QualifiedInputValueInput): + error_messages.append( + f"Error! Input type `{type(v)}` is not `QualifiedInputValueInput`" + ) + else: + return v + + # validate data type: List[OgcapppkgExecutionUnitAnyOfInner] + try: + instance.anyof_schema_4_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in OgcapppkgExecutionUnit with anyOf schemas: ExecutionUnit, Link, List[OgcapppkgExecutionUnitAnyOfInner], QualifiedInputValueInput. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[ExecutionUnit] = None + try: + instance.actual_instance = ExecutionUnit.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[Link] = None + try: + instance.actual_instance = Link.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_3_validator: Optional[QualifiedInputValueInput] = None + try: + instance.actual_instance = QualifiedInputValueInput.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[OgcapppkgExecutionUnitAnyOfInner] + try: + # validation + instance.anyof_schema_4_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_4_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into OgcapppkgExecutionUnit with anyOf schemas: ExecutionUnit, Link, List[OgcapppkgExecutionUnitAnyOfInner], QualifiedInputValueInput. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict( + self, + ) -> Optional[ + Union[ + Dict[str, Any], + ExecutionUnit, + Link, + List[OgcapppkgExecutionUnitAnyOfInner], + QualifiedInputValueInput, + ] + ]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/ogcapppkg_execution_unit_any_of_inner.py b/unity_sps_ogc_processes_api_python_client/models/ogcapppkg_execution_unit_any_of_inner.py new file mode 100644 index 0000000..6116f56 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/ogcapppkg_execution_unit_any_of_inner.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, ValidationError, field_validator +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.execution_unit import ( + ExecutionUnit, +) +from unity_sps_ogc_processes_api_python_client.models.link import Link +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_input import ( + QualifiedInputValueInput, +) + +OGCAPPPKGEXECUTIONUNITANYOFINNER_ANY_OF_SCHEMAS = [ + "ExecutionUnit", + "Link", + "QualifiedInputValueInput", +] + + +class OgcapppkgExecutionUnitAnyOfInner(BaseModel): + """ + OgcapppkgExecutionUnitAnyOfInner + """ + + # data type: ExecutionUnit + anyof_schema_1_validator: Optional[ExecutionUnit] = None + # data type: Link + anyof_schema_2_validator: Optional[Link] = None + # data type: QualifiedInputValueInput + anyof_schema_3_validator: Optional[QualifiedInputValueInput] = None + if TYPE_CHECKING: + actual_instance: Optional[ + Union[ExecutionUnit, Link, QualifiedInputValueInput] + ] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"ExecutionUnit", "Link", "QualifiedInputValueInput"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + OgcapppkgExecutionUnitAnyOfInner.model_construct() + error_messages = [] + # validate data type: ExecutionUnit + if not isinstance(v, ExecutionUnit): + error_messages.append( + f"Error! Input type `{type(v)}` is not `ExecutionUnit`" + ) + else: + return v + + # validate data type: Link + if not isinstance(v, Link): + error_messages.append(f"Error! Input type `{type(v)}` is not `Link`") + else: + return v + + # validate data type: QualifiedInputValueInput + if not isinstance(v, QualifiedInputValueInput): + error_messages.append( + f"Error! Input type `{type(v)}` is not `QualifiedInputValueInput`" + ) + else: + return v + + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in OgcapppkgExecutionUnitAnyOfInner with anyOf schemas: ExecutionUnit, Link, QualifiedInputValueInput. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[ExecutionUnit] = None + try: + instance.actual_instance = ExecutionUnit.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[Link] = None + try: + instance.actual_instance = Link.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_3_validator: Optional[QualifiedInputValueInput] = None + try: + instance.actual_instance = QualifiedInputValueInput.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into OgcapppkgExecutionUnitAnyOfInner with anyOf schemas: ExecutionUnit, Link, QualifiedInputValueInput. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict( + self, + ) -> Optional[Union[Dict[str, Any], ExecutionUnit, Link, QualifiedInputValueInput]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/oneof_schema2_validator.py b/unity_sps_ogc_processes_api_python_client/models/oneof_schema2_validator.py new file mode 100644 index 0000000..1ceeca7 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/oneof_schema2_validator.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, StrictFloat, StrictInt, ValidationError, field_validator +from typing_extensions import Self + +ONEOFSCHEMA2VALIDATOR_ANY_OF_SCHEMAS = ["float", "int"] + + +class OneofSchema2Validator(BaseModel): + """ + OneofSchema2Validator + """ + + # data type: float + anyof_schema_1_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_2_validator: Optional[StrictInt] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[float, int]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"float", "int"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + if v is None: + return v + + instance = OneofSchema2Validator.model_construct() + error_messages = [] + # validate data type: float + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in OneofSchema2Validator with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + if json_str is None: + return instance + + error_messages = [] + # deserialize data into float + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into OneofSchema2Validator with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, int]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/oneof_schema6_validator.py b/unity_sps_ogc_processes_api_python_client/models/oneof_schema6_validator.py new file mode 100644 index 0000000..b805b58 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/oneof_schema6_validator.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, StrictBytes, StrictStr, ValidationError, field_validator +from typing_extensions import Self + +ONEOFSCHEMA6VALIDATOR_ANY_OF_SCHEMAS = ["bytearray", "str"] + + +class OneofSchema6Validator(BaseModel): + """ + OneofSchema6Validator + """ + + # data type: bytearray + anyof_schema_1_validator: Optional[Union[StrictBytes, StrictStr]] = None + # data type: str + anyof_schema_2_validator: Optional[StrictStr] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[bytearray, str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"bytearray", "str"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + if v is None: + return v + + instance = OneofSchema6Validator.model_construct() + error_messages = [] + # validate data type: bytearray + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: str + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in OneofSchema6Validator with anyOf schemas: bytearray, str. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + if json_str is None: + return instance + + error_messages = [] + # deserialize data into bytearray + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into str + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into OneofSchema6Validator with anyOf schemas: bytearray, str. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], bytearray, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/output_description_input.py b/unity_sps_ogc_processes_api_python_client/models/output_description_input.py new file mode 100644 index 0000000..eff8924 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/output_description_input.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.metadata_input import ( + MetadataInput, +) +from unity_sps_ogc_processes_api_python_client.models.model_schema_input import ( + ModelSchemaInput, +) + + +class OutputDescriptionInput(BaseModel): + """ + OutputDescription + """ # noqa: E501 + + description: Optional[StrictStr] = None + keywords: Optional[List[StrictStr]] = None + metadata: Optional[List[MetadataInput]] = None + var_schema: ModelSchemaInput = Field(alias="schema") + title: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = [ + "description", + "keywords", + "metadata", + "schema", + "title", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of OutputDescriptionInput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in metadata (list) + _items = [] + if self.metadata: + for _item in self.metadata: + if _item: + _items.append(_item.to_dict()) + _dict["metadata"] = _items + # override the default output from pydantic by calling `to_dict()` of var_schema + if self.var_schema: + _dict["schema"] = self.var_schema.to_dict() + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict["description"] = None + + # set to None if keywords (nullable) is None + # and model_fields_set contains the field + if self.keywords is None and "keywords" in self.model_fields_set: + _dict["keywords"] = None + + # set to None if metadata (nullable) is None + # and model_fields_set contains the field + if self.metadata is None and "metadata" in self.model_fields_set: + _dict["metadata"] = None + + # set to None if title (nullable) is None + # and model_fields_set contains the field + if self.title is None and "title" in self.model_fields_set: + _dict["title"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of OutputDescriptionInput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "description": obj.get("description"), + "keywords": obj.get("keywords"), + "metadata": ( + [MetadataInput.from_dict(_item) for _item in obj["metadata"]] + if obj.get("metadata") is not None + else None + ), + "schema": ( + ModelSchemaInput.from_dict(obj["schema"]) + if obj.get("schema") is not None + else None + ), + "title": obj.get("title"), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/output_description_output.py b/unity_sps_ogc_processes_api_python_client/models/output_description_output.py new file mode 100644 index 0000000..6b27caa --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/output_description_output.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.metadata_output import ( + MetadataOutput, +) +from unity_sps_ogc_processes_api_python_client.models.model_schema_output import ( + ModelSchemaOutput, +) + + +class OutputDescriptionOutput(BaseModel): + """ + OutputDescription + """ # noqa: E501 + + description: Optional[StrictStr] = None + keywords: Optional[List[StrictStr]] = None + metadata: Optional[List[MetadataOutput]] = None + var_schema: ModelSchemaOutput = Field(alias="schema") + title: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = [ + "description", + "keywords", + "metadata", + "schema", + "title", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of OutputDescriptionOutput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in metadata (list) + _items = [] + if self.metadata: + for _item in self.metadata: + if _item: + _items.append(_item.to_dict()) + _dict["metadata"] = _items + # override the default output from pydantic by calling `to_dict()` of var_schema + if self.var_schema: + _dict["schema"] = self.var_schema.to_dict() + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict["description"] = None + + # set to None if keywords (nullable) is None + # and model_fields_set contains the field + if self.keywords is None and "keywords" in self.model_fields_set: + _dict["keywords"] = None + + # set to None if metadata (nullable) is None + # and model_fields_set contains the field + if self.metadata is None and "metadata" in self.model_fields_set: + _dict["metadata"] = None + + # set to None if title (nullable) is None + # and model_fields_set contains the field + if self.title is None and "title" in self.model_fields_set: + _dict["title"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of OutputDescriptionOutput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "description": obj.get("description"), + "keywords": obj.get("keywords"), + "metadata": ( + [MetadataOutput.from_dict(_item) for _item in obj["metadata"]] + if obj.get("metadata") is not None + else None + ), + "schema": ( + ModelSchemaOutput.from_dict(obj["schema"]) + if obj.get("schema") is not None + else None + ), + "title": obj.get("title"), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/output_workflows.py b/unity_sps_ogc_processes_api_python_client/models/output_workflows.py new file mode 100644 index 0000000..1d7c39f --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/output_workflows.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.format import Format + + +class OutputWorkflows(BaseModel): + """ + OutputWorkflows + """ # noqa: E501 + + output: Optional[StrictStr] = Field(default=None, alias="$output") + format: Optional[Format] = None + __properties: ClassVar[List[str]] = ["$output", "format"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of OutputWorkflows from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of format + if self.format: + _dict["format"] = self.format.to_dict() + # set to None if output (nullable) is None + # and model_fields_set contains the field + if self.output is None and "output" in self.model_fields_set: + _dict["$output"] = None + + # set to None if format (nullable) is None + # and model_fields_set contains the field + if self.format is None and "format" in self.model_fields_set: + _dict["format"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of OutputWorkflows from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "$output": obj.get("$output"), + "format": ( + Format.from_dict(obj["format"]) + if obj.get("format") is not None + else None + ), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/output_workflows1.py b/unity_sps_ogc_processes_api_python_client/models/output_workflows1.py new file mode 100644 index 0000000..b3ea76d --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/output_workflows1.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.format import Format + + +class OutputWorkflows1(BaseModel): + """ + OutputWorkflows1 + """ # noqa: E501 + + output: Optional[StrictStr] = Field(default=None, alias="$output") + format: Optional[Format] = None + __properties: ClassVar[List[str]] = ["$output", "format"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of OutputWorkflows1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of format + if self.format: + _dict["format"] = self.format.to_dict() + # set to None if output (nullable) is None + # and model_fields_set contains the field + if self.output is None and "output" in self.model_fields_set: + _dict["$output"] = None + + # set to None if format (nullable) is None + # and model_fields_set contains the field + if self.format is None and "format" in self.model_fields_set: + _dict["format"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of OutputWorkflows1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "$output": obj.get("$output"), + "format": ( + Format.from_dict(obj["format"]) + if obj.get("format") is not None + else None + ), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/process_input.py b/unity_sps_ogc_processes_api_python_client/models/process_input.py index e63b62e..0d2bc62 100644 --- a/unity_sps_ogc_processes_api_python_client/models/process_input.py +++ b/unity_sps_ogc_processes_api_python_client/models/process_input.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -22,31 +22,36 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing_extensions import Self -from unity_sps_ogc_processes_api_python_client.models.input_value_input import ( - InputValueInput, +from unity_sps_ogc_processes_api_python_client.models.input_description_input import ( + InputDescriptionInput, ) from unity_sps_ogc_processes_api_python_client.models.job_control_options import ( JobControlOptions, ) from unity_sps_ogc_processes_api_python_client.models.link import Link -from unity_sps_ogc_processes_api_python_client.models.metadata import Metadata +from unity_sps_ogc_processes_api_python_client.models.metadata_input import ( + MetadataInput, +) +from unity_sps_ogc_processes_api_python_client.models.output_description_input import ( + OutputDescriptionInput, +) class ProcessInput(BaseModel): """ - ProcessInput + Process """ # noqa: E501 description: Optional[StrictStr] = None id: StrictStr - inputs: Optional[List[InputValueInput]] = None + inputs: Optional[Dict[str, InputDescriptionInput]] = None job_control_options: Optional[List[JobControlOptions]] = Field( default=None, alias="jobControlOptions" ) keywords: Optional[List[StrictStr]] = None links: Optional[List[Link]] = None - metadata: Optional[List[Metadata]] = None - outputs: Optional[List[InputValueInput]] = None + metadata: Optional[List[MetadataInput]] = None + outputs: Optional[Dict[str, OutputDescriptionInput]] = None title: Optional[StrictStr] = None version: StrictStr __properties: ClassVar[List[str]] = [ @@ -99,13 +104,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in inputs (list) - _items = [] + # override the default output from pydantic by calling `to_dict()` of each value in inputs (dict) + _field_dict = {} if self.inputs: - for _item in self.inputs: - if _item: - _items.append(_item.to_dict()) - _dict["inputs"] = _items + for _key in self.inputs: + if self.inputs[_key]: + _field_dict[_key] = self.inputs[_key].to_dict() + _dict["inputs"] = _field_dict # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] if self.links: @@ -120,13 +125,13 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict["metadata"] = _items - # override the default output from pydantic by calling `to_dict()` of each item in outputs (list) - _items = [] + # override the default output from pydantic by calling `to_dict()` of each value in outputs (dict) + _field_dict = {} if self.outputs: - for _item in self.outputs: - if _item: - _items.append(_item.to_dict()) - _dict["outputs"] = _items + for _key in self.outputs: + if self.outputs[_key]: + _field_dict[_key] = self.outputs[_key].to_dict() + _dict["outputs"] = _field_dict # set to None if description (nullable) is None # and model_fields_set contains the field if self.description is None and "description" in self.model_fields_set: @@ -186,7 +191,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "description": obj.get("description"), "id": obj.get("id"), "inputs": ( - [InputValueInput.from_dict(_item) for _item in obj["inputs"]] + dict( + (_k, InputDescriptionInput.from_dict(_v)) + for _k, _v in obj["inputs"].items() + ) if obj.get("inputs") is not None else None ), @@ -198,12 +206,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: else None ), "metadata": ( - [Metadata.from_dict(_item) for _item in obj["metadata"]] + [MetadataInput.from_dict(_item) for _item in obj["metadata"]] if obj.get("metadata") is not None else None ), "outputs": ( - [InputValueInput.from_dict(_item) for _item in obj["outputs"]] + dict( + (_k, OutputDescriptionInput.from_dict(_v)) + for _k, _v in obj["outputs"].items() + ) if obj.get("outputs") is not None else None ), diff --git a/unity_sps_ogc_processes_api_python_client/models/process_list_input.py b/unity_sps_ogc_processes_api_python_client/models/process_list_input.py new file mode 100644 index 0000000..4a42d0c --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/process_list_input.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.link import Link +from unity_sps_ogc_processes_api_python_client.models.process_summary_input import ( + ProcessSummaryInput, +) + + +class ProcessListInput(BaseModel): + """ + ProcessList + """ # noqa: E501 + + links: List[Link] + processes: List[ProcessSummaryInput] + __properties: ClassVar[List[str]] = ["links", "processes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ProcessListInput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict["links"] = _items + # override the default output from pydantic by calling `to_dict()` of each item in processes (list) + _items = [] + if self.processes: + for _item in self.processes: + if _item: + _items.append(_item.to_dict()) + _dict["processes"] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ProcessListInput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "links": ( + [Link.from_dict(_item) for _item in obj["links"]] + if obj.get("links") is not None + else None + ), + "processes": ( + [ProcessSummaryInput.from_dict(_item) for _item in obj["processes"]] + if obj.get("processes") is not None + else None + ), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/process_list_output.py b/unity_sps_ogc_processes_api_python_client/models/process_list_output.py new file mode 100644 index 0000000..705cd6d --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/process_list_output.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.link import Link +from unity_sps_ogc_processes_api_python_client.models.process_summary_output import ( + ProcessSummaryOutput, +) + + +class ProcessListOutput(BaseModel): + """ + ProcessList + """ # noqa: E501 + + links: List[Link] + processes: List[ProcessSummaryOutput] + __properties: ClassVar[List[str]] = ["links", "processes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ProcessListOutput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict["links"] = _items + # override the default output from pydantic by calling `to_dict()` of each item in processes (list) + _items = [] + if self.processes: + for _item in self.processes: + if _item: + _items.append(_item.to_dict()) + _dict["processes"] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ProcessListOutput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "links": ( + [Link.from_dict(_item) for _item in obj["links"]] + if obj.get("links") is not None + else None + ), + "processes": ( + [ + ProcessSummaryOutput.from_dict(_item) + for _item in obj["processes"] + ] + if obj.get("processes") is not None + else None + ), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/process_output.py b/unity_sps_ogc_processes_api_python_client/models/process_output.py index 21e3c1e..0258e55 100644 --- a/unity_sps_ogc_processes_api_python_client/models/process_output.py +++ b/unity_sps_ogc_processes_api_python_client/models/process_output.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -22,31 +22,36 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing_extensions import Self -from unity_sps_ogc_processes_api_python_client.models.input_value_output import ( - InputValueOutput, +from unity_sps_ogc_processes_api_python_client.models.input_description_output import ( + InputDescriptionOutput, ) from unity_sps_ogc_processes_api_python_client.models.job_control_options import ( JobControlOptions, ) from unity_sps_ogc_processes_api_python_client.models.link import Link -from unity_sps_ogc_processes_api_python_client.models.metadata import Metadata +from unity_sps_ogc_processes_api_python_client.models.metadata_output import ( + MetadataOutput, +) +from unity_sps_ogc_processes_api_python_client.models.output_description_output import ( + OutputDescriptionOutput, +) class ProcessOutput(BaseModel): """ - ProcessOutput + Process """ # noqa: E501 description: Optional[StrictStr] = None id: StrictStr - inputs: Optional[List[InputValueOutput]] = None + inputs: Optional[Dict[str, InputDescriptionOutput]] = None job_control_options: Optional[List[JobControlOptions]] = Field( default=None, alias="jobControlOptions" ) keywords: Optional[List[StrictStr]] = None links: Optional[List[Link]] = None - metadata: Optional[List[Metadata]] = None - outputs: Optional[List[InputValueOutput]] = None + metadata: Optional[List[MetadataOutput]] = None + outputs: Optional[Dict[str, OutputDescriptionOutput]] = None title: Optional[StrictStr] = None version: StrictStr __properties: ClassVar[List[str]] = [ @@ -99,13 +104,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in inputs (list) - _items = [] + # override the default output from pydantic by calling `to_dict()` of each value in inputs (dict) + _field_dict = {} if self.inputs: - for _item in self.inputs: - if _item: - _items.append(_item.to_dict()) - _dict["inputs"] = _items + for _key in self.inputs: + if self.inputs[_key]: + _field_dict[_key] = self.inputs[_key].to_dict() + _dict["inputs"] = _field_dict # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] if self.links: @@ -120,13 +125,13 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict["metadata"] = _items - # override the default output from pydantic by calling `to_dict()` of each item in outputs (list) - _items = [] + # override the default output from pydantic by calling `to_dict()` of each value in outputs (dict) + _field_dict = {} if self.outputs: - for _item in self.outputs: - if _item: - _items.append(_item.to_dict()) - _dict["outputs"] = _items + for _key in self.outputs: + if self.outputs[_key]: + _field_dict[_key] = self.outputs[_key].to_dict() + _dict["outputs"] = _field_dict # set to None if description (nullable) is None # and model_fields_set contains the field if self.description is None and "description" in self.model_fields_set: @@ -186,7 +191,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "description": obj.get("description"), "id": obj.get("id"), "inputs": ( - [InputValueOutput.from_dict(_item) for _item in obj["inputs"]] + dict( + (_k, InputDescriptionOutput.from_dict(_v)) + for _k, _v in obj["inputs"].items() + ) if obj.get("inputs") is not None else None ), @@ -198,12 +206,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: else None ), "metadata": ( - [Metadata.from_dict(_item) for _item in obj["metadata"]] + [MetadataOutput.from_dict(_item) for _item in obj["metadata"]] if obj.get("metadata") is not None else None ), "outputs": ( - [InputValueOutput.from_dict(_item) for _item in obj["outputs"]] + dict( + (_k, OutputDescriptionOutput.from_dict(_v)) + for _k, _v in obj["outputs"].items() + ) if obj.get("outputs") is not None else None ), diff --git a/unity_sps_ogc_processes_api_python_client/models/process_summary_input.py b/unity_sps_ogc_processes_api_python_client/models/process_summary_input.py new file mode 100644 index 0000000..62c39e3 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/process_summary_input.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.job_control_options import ( + JobControlOptions, +) +from unity_sps_ogc_processes_api_python_client.models.link import Link +from unity_sps_ogc_processes_api_python_client.models.metadata_input import ( + MetadataInput, +) + + +class ProcessSummaryInput(BaseModel): + """ + ProcessSummary + """ # noqa: E501 + + description: Optional[StrictStr] = None + id: StrictStr + job_control_options: Optional[List[JobControlOptions]] = Field( + default=None, alias="jobControlOptions" + ) + keywords: Optional[List[StrictStr]] = None + links: Optional[List[Link]] = None + metadata: Optional[List[MetadataInput]] = None + title: Optional[StrictStr] = None + version: StrictStr + __properties: ClassVar[List[str]] = [ + "description", + "id", + "jobControlOptions", + "keywords", + "links", + "metadata", + "title", + "version", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ProcessSummaryInput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict["links"] = _items + # override the default output from pydantic by calling `to_dict()` of each item in metadata (list) + _items = [] + if self.metadata: + for _item in self.metadata: + if _item: + _items.append(_item.to_dict()) + _dict["metadata"] = _items + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict["description"] = None + + # set to None if job_control_options (nullable) is None + # and model_fields_set contains the field + if ( + self.job_control_options is None + and "job_control_options" in self.model_fields_set + ): + _dict["jobControlOptions"] = None + + # set to None if keywords (nullable) is None + # and model_fields_set contains the field + if self.keywords is None and "keywords" in self.model_fields_set: + _dict["keywords"] = None + + # set to None if links (nullable) is None + # and model_fields_set contains the field + if self.links is None and "links" in self.model_fields_set: + _dict["links"] = None + + # set to None if metadata (nullable) is None + # and model_fields_set contains the field + if self.metadata is None and "metadata" in self.model_fields_set: + _dict["metadata"] = None + + # set to None if title (nullable) is None + # and model_fields_set contains the field + if self.title is None and "title" in self.model_fields_set: + _dict["title"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ProcessSummaryInput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "description": obj.get("description"), + "id": obj.get("id"), + "jobControlOptions": obj.get("jobControlOptions"), + "keywords": obj.get("keywords"), + "links": ( + [Link.from_dict(_item) for _item in obj["links"]] + if obj.get("links") is not None + else None + ), + "metadata": ( + [MetadataInput.from_dict(_item) for _item in obj["metadata"]] + if obj.get("metadata") is not None + else None + ), + "title": obj.get("title"), + "version": obj.get("version"), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/process_summary_output.py b/unity_sps_ogc_processes_api_python_client/models/process_summary_output.py new file mode 100644 index 0000000..f4b2468 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/process_summary_output.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.job_control_options import ( + JobControlOptions, +) +from unity_sps_ogc_processes_api_python_client.models.link import Link +from unity_sps_ogc_processes_api_python_client.models.metadata_output import ( + MetadataOutput, +) + + +class ProcessSummaryOutput(BaseModel): + """ + ProcessSummary + """ # noqa: E501 + + description: Optional[StrictStr] = None + id: StrictStr + job_control_options: Optional[List[JobControlOptions]] = Field( + default=None, alias="jobControlOptions" + ) + keywords: Optional[List[StrictStr]] = None + links: Optional[List[Link]] = None + metadata: Optional[List[MetadataOutput]] = None + title: Optional[StrictStr] = None + version: StrictStr + __properties: ClassVar[List[str]] = [ + "description", + "id", + "jobControlOptions", + "keywords", + "links", + "metadata", + "title", + "version", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ProcessSummaryOutput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict["links"] = _items + # override the default output from pydantic by calling `to_dict()` of each item in metadata (list) + _items = [] + if self.metadata: + for _item in self.metadata: + if _item: + _items.append(_item.to_dict()) + _dict["metadata"] = _items + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict["description"] = None + + # set to None if job_control_options (nullable) is None + # and model_fields_set contains the field + if ( + self.job_control_options is None + and "job_control_options" in self.model_fields_set + ): + _dict["jobControlOptions"] = None + + # set to None if keywords (nullable) is None + # and model_fields_set contains the field + if self.keywords is None and "keywords" in self.model_fields_set: + _dict["keywords"] = None + + # set to None if links (nullable) is None + # and model_fields_set contains the field + if self.links is None and "links" in self.model_fields_set: + _dict["links"] = None + + # set to None if metadata (nullable) is None + # and model_fields_set contains the field + if self.metadata is None and "metadata" in self.model_fields_set: + _dict["metadata"] = None + + # set to None if title (nullable) is None + # and model_fields_set contains the field + if self.title is None and "title" in self.model_fields_set: + _dict["title"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ProcessSummaryOutput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "description": obj.get("description"), + "id": obj.get("id"), + "jobControlOptions": obj.get("jobControlOptions"), + "keywords": obj.get("keywords"), + "links": ( + [Link.from_dict(_item) for _item in obj["links"]] + if obj.get("links") is not None + else None + ), + "metadata": ( + [MetadataOutput.from_dict(_item) for _item in obj["metadata"]] + if obj.get("metadata") is not None + else None + ), + "title": obj.get("title"), + "version": obj.get("version"), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/qualified_input_value_input.py b/unity_sps_ogc_processes_api_python_client/models/qualified_input_value_input.py new file mode 100644 index 0000000..b128658 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/qualified_input_value_input.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.format_schema import FormatSchema +from unity_sps_ogc_processes_api_python_client.models.input_value_input import ( + InputValueInput, +) + + +class QualifiedInputValueInput(BaseModel): + """ + QualifiedInputValue + """ # noqa: E501 + + encoding: Optional[StrictStr] = None + media_type: Optional[StrictStr] = Field(default=None, alias="mediaType") + var_schema: Optional[FormatSchema] = Field(default=None, alias="schema") + value: InputValueInput + __properties: ClassVar[List[str]] = ["encoding", "mediaType", "schema", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of QualifiedInputValueInput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of var_schema + if self.var_schema: + _dict["schema"] = self.var_schema.to_dict() + # override the default output from pydantic by calling `to_dict()` of value + if self.value: + _dict["value"] = self.value.to_dict() + # set to None if encoding (nullable) is None + # and model_fields_set contains the field + if self.encoding is None and "encoding" in self.model_fields_set: + _dict["encoding"] = None + + # set to None if media_type (nullable) is None + # and model_fields_set contains the field + if self.media_type is None and "media_type" in self.model_fields_set: + _dict["mediaType"] = None + + # set to None if var_schema (nullable) is None + # and model_fields_set contains the field + if self.var_schema is None and "var_schema" in self.model_fields_set: + _dict["schema"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of QualifiedInputValueInput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "encoding": obj.get("encoding"), + "mediaType": obj.get("mediaType"), + "schema": ( + FormatSchema.from_dict(obj["schema"]) + if obj.get("schema") is not None + else None + ), + "value": ( + InputValueInput.from_dict(obj["value"]) + if obj.get("value") is not None + else None + ), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/qualified_input_value_output.py b/unity_sps_ogc_processes_api_python_client/models/qualified_input_value_output.py new file mode 100644 index 0000000..fde6372 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/qualified_input_value_output.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.format_schema import FormatSchema +from unity_sps_ogc_processes_api_python_client.models.input_value_output import ( + InputValueOutput, +) + + +class QualifiedInputValueOutput(BaseModel): + """ + QualifiedInputValue + """ # noqa: E501 + + encoding: Optional[StrictStr] = None + media_type: Optional[StrictStr] = Field(default=None, alias="mediaType") + var_schema: Optional[FormatSchema] = Field(default=None, alias="schema") + value: InputValueOutput + __properties: ClassVar[List[str]] = ["encoding", "mediaType", "schema", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of QualifiedInputValueOutput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of var_schema + if self.var_schema: + _dict["schema"] = self.var_schema.to_dict() + # override the default output from pydantic by calling `to_dict()` of value + if self.value: + _dict["value"] = self.value.to_dict() + # set to None if encoding (nullable) is None + # and model_fields_set contains the field + if self.encoding is None and "encoding" in self.model_fields_set: + _dict["encoding"] = None + + # set to None if media_type (nullable) is None + # and model_fields_set contains the field + if self.media_type is None and "media_type" in self.model_fields_set: + _dict["mediaType"] = None + + # set to None if var_schema (nullable) is None + # and model_fields_set contains the field + if self.var_schema is None and "var_schema" in self.model_fields_set: + _dict["schema"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of QualifiedInputValueOutput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "encoding": obj.get("encoding"), + "mediaType": obj.get("mediaType"), + "schema": ( + FormatSchema.from_dict(obj["schema"]) + if obj.get("schema") is not None + else None + ), + "value": ( + InputValueOutput.from_dict(obj["value"]) + if obj.get("value") is not None + else None + ), + } + ) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/qualified_input_value_workflows.py b/unity_sps_ogc_processes_api_python_client/models/qualified_input_value_workflows.py new file mode 100644 index 0000000..1714deb --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/qualified_input_value_workflows.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.fields_modifiers_properties import ( + FieldsModifiersProperties, +) +from unity_sps_ogc_processes_api_python_client.models.format_schema import FormatSchema + + +class QualifiedInputValueWorkflows(BaseModel): + """ + QualifiedInputValueWorkflows + """ # noqa: E501 + + encoding: Optional[StrictStr] = None + filter: Optional[StrictStr] = None + media_type: Optional[StrictStr] = Field(default=None, alias="mediaType") + properties: Optional[FieldsModifiersProperties] = None + var_schema: Optional[FormatSchema] = Field(default=None, alias="schema") + sort_by: Optional[List[StrictStr]] = Field(default=None, alias="sortBy") + value: InputValueWorkflows + __properties: ClassVar[List[str]] = [ + "encoding", + "filter", + "mediaType", + "properties", + "schema", + "sortBy", + "value", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of QualifiedInputValueWorkflows from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of properties + if self.properties: + _dict["properties"] = self.properties.to_dict() + # override the default output from pydantic by calling `to_dict()` of var_schema + if self.var_schema: + _dict["schema"] = self.var_schema.to_dict() + # override the default output from pydantic by calling `to_dict()` of value + if self.value: + _dict["value"] = self.value.to_dict() + # set to None if encoding (nullable) is None + # and model_fields_set contains the field + if self.encoding is None and "encoding" in self.model_fields_set: + _dict["encoding"] = None + + # set to None if filter (nullable) is None + # and model_fields_set contains the field + if self.filter is None and "filter" in self.model_fields_set: + _dict["filter"] = None + + # set to None if media_type (nullable) is None + # and model_fields_set contains the field + if self.media_type is None and "media_type" in self.model_fields_set: + _dict["mediaType"] = None + + # set to None if properties (nullable) is None + # and model_fields_set contains the field + if self.properties is None and "properties" in self.model_fields_set: + _dict["properties"] = None + + # set to None if var_schema (nullable) is None + # and model_fields_set contains the field + if self.var_schema is None and "var_schema" in self.model_fields_set: + _dict["schema"] = None + + # set to None if sort_by (nullable) is None + # and model_fields_set contains the field + if self.sort_by is None and "sort_by" in self.model_fields_set: + _dict["sortBy"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of QualifiedInputValueWorkflows from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "encoding": obj.get("encoding"), + "filter": obj.get("filter"), + "mediaType": obj.get("mediaType"), + "properties": ( + FieldsModifiersProperties.from_dict(obj["properties"]) + if obj.get("properties") is not None + else None + ), + "schema": ( + FormatSchema.from_dict(obj["schema"]) + if obj.get("schema") is not None + else None + ), + "sortBy": obj.get("sortBy"), + "value": ( + InputValueWorkflows.from_dict(obj["value"]) + if obj.get("value") is not None + else None + ), + } + ) + return _obj + + +from unity_sps_ogc_processes_api_python_client.models.input_value_workflows import ( + InputValueWorkflows, +) + +# TODO: Rewrite to not use raise_errors +QualifiedInputValueWorkflows.model_rebuild(raise_errors=False) diff --git a/unity_sps_ogc_processes_api_python_client/models/reference.py b/unity_sps_ogc_processes_api_python_client/models/reference.py new file mode 100644 index 0000000..e216dc8 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/reference.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing_extensions import Self + + +class Reference(BaseModel): + """ + Reference + """ # noqa: E501 + + ref: StrictStr = Field(alias="$ref") + __properties: ClassVar[List[str]] = ["$ref"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Reference from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Reference from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({"$ref": obj.get("$ref")}) + return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/schema1_input.py b/unity_sps_ogc_processes_api_python_client/models/schema1_input.py new file mode 100644 index 0000000..8a78829 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/schema1_input.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.reference import Reference + + +class Schema1Input(BaseModel): + """ + Schema1 + """ # noqa: E501 + + actual_instance: Optional[ActualInstance3] = None + one_of_schemas: Optional[List[StrictStr]] = None + oneof_schema_1_validator: Optional[Reference] = None + oneof_schema_2_validator: Optional[SchemaOneOfInput] = None + __properties: ClassVar[List[str]] = [ + "actual_instance", + "one_of_schemas", + "oneof_schema_1_validator", + "oneof_schema_2_validator", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Schema1Input from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of actual_instance + if self.actual_instance: + _dict["actual_instance"] = self.actual_instance.to_dict() + # override the default output from pydantic by calling `to_dict()` of oneof_schema_1_validator + if self.oneof_schema_1_validator: + _dict["oneof_schema_1_validator"] = self.oneof_schema_1_validator.to_dict() + # override the default output from pydantic by calling `to_dict()` of oneof_schema_2_validator + if self.oneof_schema_2_validator: + _dict["oneof_schema_2_validator"] = self.oneof_schema_2_validator.to_dict() + # set to None if actual_instance (nullable) is None + # and model_fields_set contains the field + if self.actual_instance is None and "actual_instance" in self.model_fields_set: + _dict["actual_instance"] = None + + # set to None if oneof_schema_1_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_1_validator is None + and "oneof_schema_1_validator" in self.model_fields_set + ): + _dict["oneof_schema_1_validator"] = None + + # set to None if oneof_schema_2_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_2_validator is None + and "oneof_schema_2_validator" in self.model_fields_set + ): + _dict["oneof_schema_2_validator"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Schema1Input from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "actual_instance": ( + ActualInstance3.from_dict(obj["actual_instance"]) + if obj.get("actual_instance") is not None + else None + ), + "one_of_schemas": obj.get("one_of_schemas"), + "oneof_schema_1_validator": ( + Reference.from_dict(obj["oneof_schema_1_validator"]) + if obj.get("oneof_schema_1_validator") is not None + else None + ), + "oneof_schema_2_validator": ( + SchemaOneOfInput.from_dict(obj["oneof_schema_2_validator"]) + if obj.get("oneof_schema_2_validator") is not None + else None + ), + } + ) + return _obj + + +from unity_sps_ogc_processes_api_python_client.models.actual_instance3 import ( + ActualInstance3, +) +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_input import ( + SchemaOneOfInput, +) + +# TODO: Rewrite to not use raise_errors +Schema1Input.model_rebuild(raise_errors=False) diff --git a/unity_sps_ogc_processes_api_python_client/models/schema1_output.py b/unity_sps_ogc_processes_api_python_client/models/schema1_output.py new file mode 100644 index 0000000..8911c5f --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/schema1_output.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing_extensions import Self + +from unity_sps_ogc_processes_api_python_client.models.reference import Reference + + +class Schema1Output(BaseModel): + """ + Schema1 + """ # noqa: E501 + + actual_instance: Optional[ActualInstance4] = None + one_of_schemas: Optional[List[StrictStr]] = None + oneof_schema_1_validator: Optional[Reference] = None + oneof_schema_2_validator: Optional[SchemaOneOfOutput] = None + __properties: ClassVar[List[str]] = [ + "actual_instance", + "one_of_schemas", + "oneof_schema_1_validator", + "oneof_schema_2_validator", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Schema1Output from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of actual_instance + if self.actual_instance: + _dict["actual_instance"] = self.actual_instance.to_dict() + # override the default output from pydantic by calling `to_dict()` of oneof_schema_1_validator + if self.oneof_schema_1_validator: + _dict["oneof_schema_1_validator"] = self.oneof_schema_1_validator.to_dict() + # override the default output from pydantic by calling `to_dict()` of oneof_schema_2_validator + if self.oneof_schema_2_validator: + _dict["oneof_schema_2_validator"] = self.oneof_schema_2_validator.to_dict() + # set to None if actual_instance (nullable) is None + # and model_fields_set contains the field + if self.actual_instance is None and "actual_instance" in self.model_fields_set: + _dict["actual_instance"] = None + + # set to None if oneof_schema_1_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_1_validator is None + and "oneof_schema_1_validator" in self.model_fields_set + ): + _dict["oneof_schema_1_validator"] = None + + # set to None if oneof_schema_2_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_2_validator is None + and "oneof_schema_2_validator" in self.model_fields_set + ): + _dict["oneof_schema_2_validator"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Schema1Output from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "actual_instance": ( + ActualInstance4.from_dict(obj["actual_instance"]) + if obj.get("actual_instance") is not None + else None + ), + "one_of_schemas": obj.get("one_of_schemas"), + "oneof_schema_1_validator": ( + Reference.from_dict(obj["oneof_schema_1_validator"]) + if obj.get("oneof_schema_1_validator") is not None + else None + ), + "oneof_schema_2_validator": ( + SchemaOneOfOutput.from_dict(obj["oneof_schema_2_validator"]) + if obj.get("oneof_schema_2_validator") is not None + else None + ), + } + ) + return _obj + + +from unity_sps_ogc_processes_api_python_client.models.actual_instance4 import ( + ActualInstance4, +) +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_output import ( + SchemaOneOfOutput, +) + +# TODO: Rewrite to not use raise_errors +Schema1Output.model_rebuild(raise_errors=False) diff --git a/unity_sps_ogc_processes_api_python_client/models/schema_one_of_additional_properties_input.py b/unity_sps_ogc_processes_api_python_client/models/schema_one_of_additional_properties_input.py new file mode 100644 index 0000000..6269a22 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/schema_one_of_additional_properties_input.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr +from typing_extensions import Self + + +class SchemaOneOfAdditionalPropertiesInput(BaseModel): + """ + SchemaOneOfAdditionalProperties + """ # noqa: E501 + + actual_instance: Optional[ActualInstance5] = None + one_of_schemas: Optional[List[StrictStr]] = None + oneof_schema_1_validator: Optional[Schema1Input] = None + oneof_schema_2_validator: Optional[StrictBool] = None + __properties: ClassVar[List[str]] = [ + "actual_instance", + "one_of_schemas", + "oneof_schema_1_validator", + "oneof_schema_2_validator", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SchemaOneOfAdditionalPropertiesInput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of actual_instance + if self.actual_instance: + _dict["actual_instance"] = self.actual_instance.to_dict() + # override the default output from pydantic by calling `to_dict()` of oneof_schema_1_validator + if self.oneof_schema_1_validator: + _dict["oneof_schema_1_validator"] = self.oneof_schema_1_validator.to_dict() + # set to None if actual_instance (nullable) is None + # and model_fields_set contains the field + if self.actual_instance is None and "actual_instance" in self.model_fields_set: + _dict["actual_instance"] = None + + # set to None if oneof_schema_1_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_1_validator is None + and "oneof_schema_1_validator" in self.model_fields_set + ): + _dict["oneof_schema_1_validator"] = None + + # set to None if oneof_schema_2_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_2_validator is None + and "oneof_schema_2_validator" in self.model_fields_set + ): + _dict["oneof_schema_2_validator"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SchemaOneOfAdditionalPropertiesInput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "actual_instance": ( + ActualInstance5.from_dict(obj["actual_instance"]) + if obj.get("actual_instance") is not None + else None + ), + "one_of_schemas": obj.get("one_of_schemas"), + "oneof_schema_1_validator": ( + Schema1Input.from_dict(obj["oneof_schema_1_validator"]) + if obj.get("oneof_schema_1_validator") is not None + else None + ), + "oneof_schema_2_validator": obj.get("oneof_schema_2_validator"), + } + ) + return _obj + + +from unity_sps_ogc_processes_api_python_client.models.actual_instance5 import ( + ActualInstance5, +) +from unity_sps_ogc_processes_api_python_client.models.schema1_input import Schema1Input + +# TODO: Rewrite to not use raise_errors +SchemaOneOfAdditionalPropertiesInput.model_rebuild(raise_errors=False) diff --git a/unity_sps_ogc_processes_api_python_client/models/schema_one_of_additional_properties_output.py b/unity_sps_ogc_processes_api_python_client/models/schema_one_of_additional_properties_output.py new file mode 100644 index 0000000..1ad1cbc --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/schema_one_of_additional_properties_output.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr +from typing_extensions import Self + + +class SchemaOneOfAdditionalPropertiesOutput(BaseModel): + """ + SchemaOneOfAdditionalProperties + """ # noqa: E501 + + actual_instance: Optional[ActualInstance6] = None + one_of_schemas: Optional[List[StrictStr]] = None + oneof_schema_1_validator: Optional[Schema1Output] = None + oneof_schema_2_validator: Optional[StrictBool] = None + __properties: ClassVar[List[str]] = [ + "actual_instance", + "one_of_schemas", + "oneof_schema_1_validator", + "oneof_schema_2_validator", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SchemaOneOfAdditionalPropertiesOutput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of actual_instance + if self.actual_instance: + _dict["actual_instance"] = self.actual_instance.to_dict() + # override the default output from pydantic by calling `to_dict()` of oneof_schema_1_validator + if self.oneof_schema_1_validator: + _dict["oneof_schema_1_validator"] = self.oneof_schema_1_validator.to_dict() + # set to None if actual_instance (nullable) is None + # and model_fields_set contains the field + if self.actual_instance is None and "actual_instance" in self.model_fields_set: + _dict["actual_instance"] = None + + # set to None if oneof_schema_1_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_1_validator is None + and "oneof_schema_1_validator" in self.model_fields_set + ): + _dict["oneof_schema_1_validator"] = None + + # set to None if oneof_schema_2_validator (nullable) is None + # and model_fields_set contains the field + if ( + self.oneof_schema_2_validator is None + and "oneof_schema_2_validator" in self.model_fields_set + ): + _dict["oneof_schema_2_validator"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SchemaOneOfAdditionalPropertiesOutput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "actual_instance": ( + ActualInstance6.from_dict(obj["actual_instance"]) + if obj.get("actual_instance") is not None + else None + ), + "one_of_schemas": obj.get("one_of_schemas"), + "oneof_schema_1_validator": ( + Schema1Output.from_dict(obj["oneof_schema_1_validator"]) + if obj.get("oneof_schema_1_validator") is not None + else None + ), + "oneof_schema_2_validator": obj.get("oneof_schema_2_validator"), + } + ) + return _obj + + +from unity_sps_ogc_processes_api_python_client.models.actual_instance6 import ( + ActualInstance6, +) +from unity_sps_ogc_processes_api_python_client.models.schema1_output import ( + Schema1Output, +) + +# TODO: Rewrite to not use raise_errors +SchemaOneOfAdditionalPropertiesOutput.model_rebuild(raise_errors=False) diff --git a/unity_sps_ogc_processes_api_python_client/models/schema_one_of_input.py b/unity_sps_ogc_processes_api_python_client/models/schema_one_of_input.py new file mode 100644 index 0000000..45c4c1f --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/schema_one_of_input.py @@ -0,0 +1,505 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing_extensions import Annotated, Self + +from unity_sps_ogc_processes_api_python_client.models.maximum import Maximum +from unity_sps_ogc_processes_api_python_client.models.minimum import Minimum +from unity_sps_ogc_processes_api_python_client.models.multipleof import Multipleof + + +class SchemaOneOfInput(BaseModel): + """ + SchemaOneOf + """ # noqa: E501 + + additional_properties: Optional[SchemaOneOfAdditionalPropertiesInput] = Field( + default=None, alias="additionalProperties" + ) + all_of: Optional[List[Schema1Input]] = Field(default=None, alias="allOf") + any_of: Optional[List[Schema1Input]] = Field(default=None, alias="anyOf") + content_encoding: Optional[StrictStr] = Field(default=None, alias="contentEncoding") + content_media_type: Optional[StrictStr] = Field( + default=None, alias="contentMediaType" + ) + content_schema: Optional[StrictStr] = Field(default=None, alias="contentSchema") + default: Optional[Dict[str, Any]] = None + deprecated: Optional[StrictBool] = None + description: Optional[StrictStr] = None + enum: Optional[Annotated[List[Dict[str, Any]], Field(min_length=1)]] = None + example: Optional[Dict[str, Any]] = None + exclusive_maximum: Optional[StrictBool] = Field( + default=None, alias="exclusiveMaximum" + ) + exclusive_minimum: Optional[StrictBool] = Field( + default=None, alias="exclusiveMinimum" + ) + format: Optional[StrictStr] = None + items: Optional[Schema1Input] = None + max_items: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="maxItems" + ) + max_length: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="maxLength" + ) + max_properties: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="maxProperties" + ) + maximum: Optional[Maximum] = None + min_items: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="minItems" + ) + min_length: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="minLength" + ) + min_properties: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="minProperties" + ) + minimum: Optional[Minimum] = None + multiple_of: Optional[Multipleof] = Field(default=None, alias="multipleOf") + var_not: Optional[Schema1Input] = Field(default=None, alias="not") + nullable: Optional[StrictBool] = None + one_of: Optional[List[Schema1Input]] = Field(default=None, alias="oneOf") + pattern: Optional[StrictStr] = None + properties: Optional[Dict[str, Schema1Input]] = None + read_only: Optional[StrictBool] = Field(default=None, alias="readOnly") + required: Optional[Annotated[List[StrictStr], Field(min_length=1)]] = None + title: Optional[StrictStr] = None + type: Optional[StrictStr] = None + unique_items: Optional[StrictBool] = Field(default=None, alias="uniqueItems") + write_only: Optional[StrictBool] = Field(default=None, alias="writeOnly") + __properties: ClassVar[List[str]] = [ + "additionalProperties", + "allOf", + "anyOf", + "contentEncoding", + "contentMediaType", + "contentSchema", + "default", + "deprecated", + "description", + "enum", + "example", + "exclusiveMaximum", + "exclusiveMinimum", + "format", + "items", + "maxItems", + "maxLength", + "maxProperties", + "maximum", + "minItems", + "minLength", + "minProperties", + "minimum", + "multipleOf", + "not", + "nullable", + "oneOf", + "pattern", + "properties", + "readOnly", + "required", + "title", + "type", + "uniqueItems", + "writeOnly", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SchemaOneOfInput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of additional_properties + if self.additional_properties: + _dict["additionalProperties"] = self.additional_properties.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in all_of (list) + _items = [] + if self.all_of: + for _item in self.all_of: + if _item: + _items.append(_item.to_dict()) + _dict["allOf"] = _items + # override the default output from pydantic by calling `to_dict()` of each item in any_of (list) + _items = [] + if self.any_of: + for _item in self.any_of: + if _item: + _items.append(_item.to_dict()) + _dict["anyOf"] = _items + # override the default output from pydantic by calling `to_dict()` of items + if self.items: + _dict["items"] = self.items.to_dict() + # override the default output from pydantic by calling `to_dict()` of maximum + if self.maximum: + _dict["maximum"] = self.maximum.to_dict() + # override the default output from pydantic by calling `to_dict()` of minimum + if self.minimum: + _dict["minimum"] = self.minimum.to_dict() + # override the default output from pydantic by calling `to_dict()` of multiple_of + if self.multiple_of: + _dict["multipleOf"] = self.multiple_of.to_dict() + # override the default output from pydantic by calling `to_dict()` of var_not + if self.var_not: + _dict["not"] = self.var_not.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in one_of (list) + _items = [] + if self.one_of: + for _item in self.one_of: + if _item: + _items.append(_item.to_dict()) + _dict["oneOf"] = _items + # override the default output from pydantic by calling `to_dict()` of each value in properties (dict) + _field_dict = {} + if self.properties: + for _key in self.properties: + if self.properties[_key]: + _field_dict[_key] = self.properties[_key].to_dict() + _dict["properties"] = _field_dict + # set to None if additional_properties (nullable) is None + # and model_fields_set contains the field + if ( + self.additional_properties is None + and "additional_properties" in self.model_fields_set + ): + _dict["additionalProperties"] = None + + # set to None if all_of (nullable) is None + # and model_fields_set contains the field + if self.all_of is None and "all_of" in self.model_fields_set: + _dict["allOf"] = None + + # set to None if any_of (nullable) is None + # and model_fields_set contains the field + if self.any_of is None and "any_of" in self.model_fields_set: + _dict["anyOf"] = None + + # set to None if content_encoding (nullable) is None + # and model_fields_set contains the field + if ( + self.content_encoding is None + and "content_encoding" in self.model_fields_set + ): + _dict["contentEncoding"] = None + + # set to None if content_media_type (nullable) is None + # and model_fields_set contains the field + if ( + self.content_media_type is None + and "content_media_type" in self.model_fields_set + ): + _dict["contentMediaType"] = None + + # set to None if content_schema (nullable) is None + # and model_fields_set contains the field + if self.content_schema is None and "content_schema" in self.model_fields_set: + _dict["contentSchema"] = None + + # set to None if default (nullable) is None + # and model_fields_set contains the field + if self.default is None and "default" in self.model_fields_set: + _dict["default"] = None + + # set to None if deprecated (nullable) is None + # and model_fields_set contains the field + if self.deprecated is None and "deprecated" in self.model_fields_set: + _dict["deprecated"] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict["description"] = None + + # set to None if enum (nullable) is None + # and model_fields_set contains the field + if self.enum is None and "enum" in self.model_fields_set: + _dict["enum"] = None + + # set to None if example (nullable) is None + # and model_fields_set contains the field + if self.example is None and "example" in self.model_fields_set: + _dict["example"] = None + + # set to None if exclusive_maximum (nullable) is None + # and model_fields_set contains the field + if ( + self.exclusive_maximum is None + and "exclusive_maximum" in self.model_fields_set + ): + _dict["exclusiveMaximum"] = None + + # set to None if exclusive_minimum (nullable) is None + # and model_fields_set contains the field + if ( + self.exclusive_minimum is None + and "exclusive_minimum" in self.model_fields_set + ): + _dict["exclusiveMinimum"] = None + + # set to None if format (nullable) is None + # and model_fields_set contains the field + if self.format is None and "format" in self.model_fields_set: + _dict["format"] = None + + # set to None if items (nullable) is None + # and model_fields_set contains the field + if self.items is None and "items" in self.model_fields_set: + _dict["items"] = None + + # set to None if max_items (nullable) is None + # and model_fields_set contains the field + if self.max_items is None and "max_items" in self.model_fields_set: + _dict["maxItems"] = None + + # set to None if max_length (nullable) is None + # and model_fields_set contains the field + if self.max_length is None and "max_length" in self.model_fields_set: + _dict["maxLength"] = None + + # set to None if max_properties (nullable) is None + # and model_fields_set contains the field + if self.max_properties is None and "max_properties" in self.model_fields_set: + _dict["maxProperties"] = None + + # set to None if maximum (nullable) is None + # and model_fields_set contains the field + if self.maximum is None and "maximum" in self.model_fields_set: + _dict["maximum"] = None + + # set to None if min_items (nullable) is None + # and model_fields_set contains the field + if self.min_items is None and "min_items" in self.model_fields_set: + _dict["minItems"] = None + + # set to None if min_length (nullable) is None + # and model_fields_set contains the field + if self.min_length is None and "min_length" in self.model_fields_set: + _dict["minLength"] = None + + # set to None if min_properties (nullable) is None + # and model_fields_set contains the field + if self.min_properties is None and "min_properties" in self.model_fields_set: + _dict["minProperties"] = None + + # set to None if minimum (nullable) is None + # and model_fields_set contains the field + if self.minimum is None and "minimum" in self.model_fields_set: + _dict["minimum"] = None + + # set to None if multiple_of (nullable) is None + # and model_fields_set contains the field + if self.multiple_of is None and "multiple_of" in self.model_fields_set: + _dict["multipleOf"] = None + + # set to None if var_not (nullable) is None + # and model_fields_set contains the field + if self.var_not is None and "var_not" in self.model_fields_set: + _dict["not"] = None + + # set to None if nullable (nullable) is None + # and model_fields_set contains the field + if self.nullable is None and "nullable" in self.model_fields_set: + _dict["nullable"] = None + + # set to None if one_of (nullable) is None + # and model_fields_set contains the field + if self.one_of is None and "one_of" in self.model_fields_set: + _dict["oneOf"] = None + + # set to None if pattern (nullable) is None + # and model_fields_set contains the field + if self.pattern is None and "pattern" in self.model_fields_set: + _dict["pattern"] = None + + # set to None if properties (nullable) is None + # and model_fields_set contains the field + if self.properties is None and "properties" in self.model_fields_set: + _dict["properties"] = None + + # set to None if read_only (nullable) is None + # and model_fields_set contains the field + if self.read_only is None and "read_only" in self.model_fields_set: + _dict["readOnly"] = None + + # set to None if required (nullable) is None + # and model_fields_set contains the field + if self.required is None and "required" in self.model_fields_set: + _dict["required"] = None + + # set to None if title (nullable) is None + # and model_fields_set contains the field + if self.title is None and "title" in self.model_fields_set: + _dict["title"] = None + + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict["type"] = None + + # set to None if unique_items (nullable) is None + # and model_fields_set contains the field + if self.unique_items is None and "unique_items" in self.model_fields_set: + _dict["uniqueItems"] = None + + # set to None if write_only (nullable) is None + # and model_fields_set contains the field + if self.write_only is None and "write_only" in self.model_fields_set: + _dict["writeOnly"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SchemaOneOfInput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "additionalProperties": ( + SchemaOneOfAdditionalPropertiesInput.from_dict( + obj["additionalProperties"] + ) + if obj.get("additionalProperties") is not None + else None + ), + "allOf": ( + [Schema1Input.from_dict(_item) for _item in obj["allOf"]] + if obj.get("allOf") is not None + else None + ), + "anyOf": ( + [Schema1Input.from_dict(_item) for _item in obj["anyOf"]] + if obj.get("anyOf") is not None + else None + ), + "contentEncoding": obj.get("contentEncoding"), + "contentMediaType": obj.get("contentMediaType"), + "contentSchema": obj.get("contentSchema"), + "default": obj.get("default"), + "deprecated": obj.get("deprecated"), + "description": obj.get("description"), + "enum": obj.get("enum"), + "example": obj.get("example"), + "exclusiveMaximum": obj.get("exclusiveMaximum"), + "exclusiveMinimum": obj.get("exclusiveMinimum"), + "format": obj.get("format"), + "items": ( + Schema1Input.from_dict(obj["items"]) + if obj.get("items") is not None + else None + ), + "maxItems": obj.get("maxItems"), + "maxLength": obj.get("maxLength"), + "maxProperties": obj.get("maxProperties"), + "maximum": ( + Maximum.from_dict(obj["maximum"]) + if obj.get("maximum") is not None + else None + ), + "minItems": obj.get("minItems"), + "minLength": obj.get("minLength"), + "minProperties": obj.get("minProperties"), + "minimum": ( + Minimum.from_dict(obj["minimum"]) + if obj.get("minimum") is not None + else None + ), + "multipleOf": ( + Multipleof.from_dict(obj["multipleOf"]) + if obj.get("multipleOf") is not None + else None + ), + "not": ( + Schema1Input.from_dict(obj["not"]) + if obj.get("not") is not None + else None + ), + "nullable": obj.get("nullable"), + "oneOf": ( + [Schema1Input.from_dict(_item) for _item in obj["oneOf"]] + if obj.get("oneOf") is not None + else None + ), + "pattern": obj.get("pattern"), + "properties": ( + dict( + (_k, Schema1Input.from_dict(_v)) + for _k, _v in obj["properties"].items() + ) + if obj.get("properties") is not None + else None + ), + "readOnly": obj.get("readOnly"), + "required": obj.get("required"), + "title": obj.get("title"), + "type": obj.get("type"), + "uniqueItems": obj.get("uniqueItems"), + "writeOnly": obj.get("writeOnly"), + } + ) + return _obj + + +from unity_sps_ogc_processes_api_python_client.models.schema1_input import Schema1Input +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties_input import ( + SchemaOneOfAdditionalPropertiesInput, +) + +# TODO: Rewrite to not use raise_errors +SchemaOneOfInput.model_rebuild(raise_errors=False) diff --git a/unity_sps_ogc_processes_api_python_client/models/schema_one_of_output.py b/unity_sps_ogc_processes_api_python_client/models/schema_one_of_output.py new file mode 100644 index 0000000..916ea8c --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/schema_one_of_output.py @@ -0,0 +1,507 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing_extensions import Annotated, Self + +from unity_sps_ogc_processes_api_python_client.models.maximum import Maximum +from unity_sps_ogc_processes_api_python_client.models.minimum import Minimum +from unity_sps_ogc_processes_api_python_client.models.multipleof import Multipleof + + +class SchemaOneOfOutput(BaseModel): + """ + SchemaOneOf + """ # noqa: E501 + + additional_properties: Optional[SchemaOneOfAdditionalPropertiesOutput] = Field( + default=None, alias="additionalProperties" + ) + all_of: Optional[List[Schema1Output]] = Field(default=None, alias="allOf") + any_of: Optional[List[Schema1Output]] = Field(default=None, alias="anyOf") + content_encoding: Optional[StrictStr] = Field(default=None, alias="contentEncoding") + content_media_type: Optional[StrictStr] = Field( + default=None, alias="contentMediaType" + ) + content_schema: Optional[StrictStr] = Field(default=None, alias="contentSchema") + default: Optional[Dict[str, Any]] = None + deprecated: Optional[StrictBool] = None + description: Optional[StrictStr] = None + enum: Optional[Annotated[List[Dict[str, Any]], Field(min_length=1)]] = None + example: Optional[Dict[str, Any]] = None + exclusive_maximum: Optional[StrictBool] = Field( + default=None, alias="exclusiveMaximum" + ) + exclusive_minimum: Optional[StrictBool] = Field( + default=None, alias="exclusiveMinimum" + ) + format: Optional[StrictStr] = None + items: Optional[Schema1Output] = None + max_items: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="maxItems" + ) + max_length: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="maxLength" + ) + max_properties: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="maxProperties" + ) + maximum: Optional[Maximum] = None + min_items: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="minItems" + ) + min_length: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="minLength" + ) + min_properties: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="minProperties" + ) + minimum: Optional[Minimum] = None + multiple_of: Optional[Multipleof] = Field(default=None, alias="multipleOf") + var_not: Optional[Schema1Output] = Field(default=None, alias="not") + nullable: Optional[StrictBool] = None + one_of: Optional[List[Schema1Output]] = Field(default=None, alias="oneOf") + pattern: Optional[StrictStr] = None + properties: Optional[Dict[str, Schema1Output]] = None + read_only: Optional[StrictBool] = Field(default=None, alias="readOnly") + required: Optional[Annotated[List[StrictStr], Field(min_length=1)]] = None + title: Optional[StrictStr] = None + type: Optional[StrictStr] = None + unique_items: Optional[StrictBool] = Field(default=None, alias="uniqueItems") + write_only: Optional[StrictBool] = Field(default=None, alias="writeOnly") + __properties: ClassVar[List[str]] = [ + "additionalProperties", + "allOf", + "anyOf", + "contentEncoding", + "contentMediaType", + "contentSchema", + "default", + "deprecated", + "description", + "enum", + "example", + "exclusiveMaximum", + "exclusiveMinimum", + "format", + "items", + "maxItems", + "maxLength", + "maxProperties", + "maximum", + "minItems", + "minLength", + "minProperties", + "minimum", + "multipleOf", + "not", + "nullable", + "oneOf", + "pattern", + "properties", + "readOnly", + "required", + "title", + "type", + "uniqueItems", + "writeOnly", + ] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SchemaOneOfOutput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of additional_properties + if self.additional_properties: + _dict["additionalProperties"] = self.additional_properties.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in all_of (list) + _items = [] + if self.all_of: + for _item in self.all_of: + if _item: + _items.append(_item.to_dict()) + _dict["allOf"] = _items + # override the default output from pydantic by calling `to_dict()` of each item in any_of (list) + _items = [] + if self.any_of: + for _item in self.any_of: + if _item: + _items.append(_item.to_dict()) + _dict["anyOf"] = _items + # override the default output from pydantic by calling `to_dict()` of items + if self.items: + _dict["items"] = self.items.to_dict() + # override the default output from pydantic by calling `to_dict()` of maximum + if self.maximum: + _dict["maximum"] = self.maximum.to_dict() + # override the default output from pydantic by calling `to_dict()` of minimum + if self.minimum: + _dict["minimum"] = self.minimum.to_dict() + # override the default output from pydantic by calling `to_dict()` of multiple_of + if self.multiple_of: + _dict["multipleOf"] = self.multiple_of.to_dict() + # override the default output from pydantic by calling `to_dict()` of var_not + if self.var_not: + _dict["not"] = self.var_not.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in one_of (list) + _items = [] + if self.one_of: + for _item in self.one_of: + if _item: + _items.append(_item.to_dict()) + _dict["oneOf"] = _items + # override the default output from pydantic by calling `to_dict()` of each value in properties (dict) + _field_dict = {} + if self.properties: + for _key in self.properties: + if self.properties[_key]: + _field_dict[_key] = self.properties[_key].to_dict() + _dict["properties"] = _field_dict + # set to None if additional_properties (nullable) is None + # and model_fields_set contains the field + if ( + self.additional_properties is None + and "additional_properties" in self.model_fields_set + ): + _dict["additionalProperties"] = None + + # set to None if all_of (nullable) is None + # and model_fields_set contains the field + if self.all_of is None and "all_of" in self.model_fields_set: + _dict["allOf"] = None + + # set to None if any_of (nullable) is None + # and model_fields_set contains the field + if self.any_of is None and "any_of" in self.model_fields_set: + _dict["anyOf"] = None + + # set to None if content_encoding (nullable) is None + # and model_fields_set contains the field + if ( + self.content_encoding is None + and "content_encoding" in self.model_fields_set + ): + _dict["contentEncoding"] = None + + # set to None if content_media_type (nullable) is None + # and model_fields_set contains the field + if ( + self.content_media_type is None + and "content_media_type" in self.model_fields_set + ): + _dict["contentMediaType"] = None + + # set to None if content_schema (nullable) is None + # and model_fields_set contains the field + if self.content_schema is None and "content_schema" in self.model_fields_set: + _dict["contentSchema"] = None + + # set to None if default (nullable) is None + # and model_fields_set contains the field + if self.default is None and "default" in self.model_fields_set: + _dict["default"] = None + + # set to None if deprecated (nullable) is None + # and model_fields_set contains the field + if self.deprecated is None and "deprecated" in self.model_fields_set: + _dict["deprecated"] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict["description"] = None + + # set to None if enum (nullable) is None + # and model_fields_set contains the field + if self.enum is None and "enum" in self.model_fields_set: + _dict["enum"] = None + + # set to None if example (nullable) is None + # and model_fields_set contains the field + if self.example is None and "example" in self.model_fields_set: + _dict["example"] = None + + # set to None if exclusive_maximum (nullable) is None + # and model_fields_set contains the field + if ( + self.exclusive_maximum is None + and "exclusive_maximum" in self.model_fields_set + ): + _dict["exclusiveMaximum"] = None + + # set to None if exclusive_minimum (nullable) is None + # and model_fields_set contains the field + if ( + self.exclusive_minimum is None + and "exclusive_minimum" in self.model_fields_set + ): + _dict["exclusiveMinimum"] = None + + # set to None if format (nullable) is None + # and model_fields_set contains the field + if self.format is None and "format" in self.model_fields_set: + _dict["format"] = None + + # set to None if items (nullable) is None + # and model_fields_set contains the field + if self.items is None and "items" in self.model_fields_set: + _dict["items"] = None + + # set to None if max_items (nullable) is None + # and model_fields_set contains the field + if self.max_items is None and "max_items" in self.model_fields_set: + _dict["maxItems"] = None + + # set to None if max_length (nullable) is None + # and model_fields_set contains the field + if self.max_length is None and "max_length" in self.model_fields_set: + _dict["maxLength"] = None + + # set to None if max_properties (nullable) is None + # and model_fields_set contains the field + if self.max_properties is None and "max_properties" in self.model_fields_set: + _dict["maxProperties"] = None + + # set to None if maximum (nullable) is None + # and model_fields_set contains the field + if self.maximum is None and "maximum" in self.model_fields_set: + _dict["maximum"] = None + + # set to None if min_items (nullable) is None + # and model_fields_set contains the field + if self.min_items is None and "min_items" in self.model_fields_set: + _dict["minItems"] = None + + # set to None if min_length (nullable) is None + # and model_fields_set contains the field + if self.min_length is None and "min_length" in self.model_fields_set: + _dict["minLength"] = None + + # set to None if min_properties (nullable) is None + # and model_fields_set contains the field + if self.min_properties is None and "min_properties" in self.model_fields_set: + _dict["minProperties"] = None + + # set to None if minimum (nullable) is None + # and model_fields_set contains the field + if self.minimum is None and "minimum" in self.model_fields_set: + _dict["minimum"] = None + + # set to None if multiple_of (nullable) is None + # and model_fields_set contains the field + if self.multiple_of is None and "multiple_of" in self.model_fields_set: + _dict["multipleOf"] = None + + # set to None if var_not (nullable) is None + # and model_fields_set contains the field + if self.var_not is None and "var_not" in self.model_fields_set: + _dict["not"] = None + + # set to None if nullable (nullable) is None + # and model_fields_set contains the field + if self.nullable is None and "nullable" in self.model_fields_set: + _dict["nullable"] = None + + # set to None if one_of (nullable) is None + # and model_fields_set contains the field + if self.one_of is None and "one_of" in self.model_fields_set: + _dict["oneOf"] = None + + # set to None if pattern (nullable) is None + # and model_fields_set contains the field + if self.pattern is None and "pattern" in self.model_fields_set: + _dict["pattern"] = None + + # set to None if properties (nullable) is None + # and model_fields_set contains the field + if self.properties is None and "properties" in self.model_fields_set: + _dict["properties"] = None + + # set to None if read_only (nullable) is None + # and model_fields_set contains the field + if self.read_only is None and "read_only" in self.model_fields_set: + _dict["readOnly"] = None + + # set to None if required (nullable) is None + # and model_fields_set contains the field + if self.required is None and "required" in self.model_fields_set: + _dict["required"] = None + + # set to None if title (nullable) is None + # and model_fields_set contains the field + if self.title is None and "title" in self.model_fields_set: + _dict["title"] = None + + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict["type"] = None + + # set to None if unique_items (nullable) is None + # and model_fields_set contains the field + if self.unique_items is None and "unique_items" in self.model_fields_set: + _dict["uniqueItems"] = None + + # set to None if write_only (nullable) is None + # and model_fields_set contains the field + if self.write_only is None and "write_only" in self.model_fields_set: + _dict["writeOnly"] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SchemaOneOfOutput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "additionalProperties": ( + SchemaOneOfAdditionalPropertiesOutput.from_dict( + obj["additionalProperties"] + ) + if obj.get("additionalProperties") is not None + else None + ), + "allOf": ( + [Schema1Output.from_dict(_item) for _item in obj["allOf"]] + if obj.get("allOf") is not None + else None + ), + "anyOf": ( + [Schema1Output.from_dict(_item) for _item in obj["anyOf"]] + if obj.get("anyOf") is not None + else None + ), + "contentEncoding": obj.get("contentEncoding"), + "contentMediaType": obj.get("contentMediaType"), + "contentSchema": obj.get("contentSchema"), + "default": obj.get("default"), + "deprecated": obj.get("deprecated"), + "description": obj.get("description"), + "enum": obj.get("enum"), + "example": obj.get("example"), + "exclusiveMaximum": obj.get("exclusiveMaximum"), + "exclusiveMinimum": obj.get("exclusiveMinimum"), + "format": obj.get("format"), + "items": ( + Schema1Output.from_dict(obj["items"]) + if obj.get("items") is not None + else None + ), + "maxItems": obj.get("maxItems"), + "maxLength": obj.get("maxLength"), + "maxProperties": obj.get("maxProperties"), + "maximum": ( + Maximum.from_dict(obj["maximum"]) + if obj.get("maximum") is not None + else None + ), + "minItems": obj.get("minItems"), + "minLength": obj.get("minLength"), + "minProperties": obj.get("minProperties"), + "minimum": ( + Minimum.from_dict(obj["minimum"]) + if obj.get("minimum") is not None + else None + ), + "multipleOf": ( + Multipleof.from_dict(obj["multipleOf"]) + if obj.get("multipleOf") is not None + else None + ), + "not": ( + Schema1Output.from_dict(obj["not"]) + if obj.get("not") is not None + else None + ), + "nullable": obj.get("nullable"), + "oneOf": ( + [Schema1Output.from_dict(_item) for _item in obj["oneOf"]] + if obj.get("oneOf") is not None + else None + ), + "pattern": obj.get("pattern"), + "properties": ( + dict( + (_k, Schema1Output.from_dict(_v)) + for _k, _v in obj["properties"].items() + ) + if obj.get("properties") is not None + else None + ), + "readOnly": obj.get("readOnly"), + "required": obj.get("required"), + "title": obj.get("title"), + "type": obj.get("type"), + "uniqueItems": obj.get("uniqueItems"), + "writeOnly": obj.get("writeOnly"), + } + ) + return _obj + + +from unity_sps_ogc_processes_api_python_client.models.schema1_output import ( + Schema1Output, +) +from unity_sps_ogc_processes_api_python_client.models.schema_one_of_additional_properties_output import ( + SchemaOneOfAdditionalPropertiesOutput, +) + +# TODO: Rewrite to not use raise_errors +SchemaOneOfOutput.model_rebuild(raise_errors=False) diff --git a/unity_sps_ogc_processes_api_python_client/models/status_code.py b/unity_sps_ogc_processes_api_python_client/models/status_code.py index e70ac07..397c2af 100644 --- a/unity_sps_ogc_processes_api_python_client/models/status_code.py +++ b/unity_sps_ogc_processes_api_python_client/models/status_code.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/unity_sps_ogc_processes_api_python_client/models/status_info.py b/unity_sps_ogc_processes_api_python_client/models/status_info.py index 272bab8..c96b9fc 100644 --- a/unity_sps_ogc_processes_api_python_client/models/status_info.py +++ b/unity_sps_ogc_processes_api_python_client/models/status_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -43,7 +43,7 @@ class StatusInfo(BaseModel): progress: Optional[Annotated[int, Field(le=100, strict=True, ge=0)]] = None started: Optional[datetime] = None status: StatusCode - type: Optional[Any] + type: StrictStr updated: Optional[datetime] = None __properties: ClassVar[List[str]] = [ "created", @@ -147,11 +147,6 @@ def to_dict(self) -> Dict[str, Any]: if self.started is None and "started" in self.model_fields_set: _dict["started"] = None - # set to None if type (nullable) is None - # and model_fields_set contains the field - if self.type is None and "type" in self.model_fields_set: - _dict["type"] = None - # set to None if updated (nullable) is None # and model_fields_set contains the field if self.updated is None and "updated" in self.model_fields_set: diff --git a/unity_sps_ogc_processes_api_python_client/models/storageoutputsmin.py b/unity_sps_ogc_processes_api_python_client/models/storageoutputsmin.py new file mode 100644 index 0000000..12059f6 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/storageoutputsmin.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, StrictFloat, StrictInt, ValidationError, field_validator +from typing_extensions import Self + +STORAGEOUTPUTSMIN_ANY_OF_SCHEMAS = ["float", "int"] + + +class Storageoutputsmin(BaseModel): + """ + Minimum required output storage size (unit is GB) + """ + + # data type: float + anyof_schema_1_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_2_validator: Optional[StrictInt] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[float, int]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"float", "int"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + if v is None: + return v + + instance = Storageoutputsmin.model_construct() + error_messages = [] + # validate data type: float + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in Storageoutputsmin with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + if json_str is None: + return instance + + error_messages = [] + # deserialize data into float + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into Storageoutputsmin with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, int]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/storagetempmin.py b/unity_sps_ogc_processes_api_python_client/models/storagetempmin.py new file mode 100644 index 0000000..7cfbd8f --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/storagetempmin.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy + + This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. + + The version of the OpenAPI document: 2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations + +import json +import pprint +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union + +from pydantic import BaseModel, StrictFloat, StrictInt, ValidationError, field_validator +from typing_extensions import Self + +STORAGETEMPMIN_ANY_OF_SCHEMAS = ["float", "int"] + + +class Storagetempmin(BaseModel): + """ + Minimum required temporary storage size (unit is GB) + """ + + # data type: float + anyof_schema_1_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_2_validator: Optional[StrictInt] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[float, int]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = {"float", "int"} + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError( + "If a position argument is used, only 1 is allowed to set `actual_instance`" + ) + if kwargs: + raise ValueError( + "If a position argument is used, keyword arguments cannot be used." + ) + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator("actual_instance") + def actual_instance_must_validate_anyof(cls, v): + if v is None: + return v + + instance = Storagetempmin.model_construct() + error_messages = [] + # validate data type: float + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError( + "No match found when setting the actual_instance in Storagetempmin with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + if json_str is None: + return instance + + error_messages = [] + # deserialize data into float + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError( + "No match found when deserializing the JSON string into Storagetempmin with anyOf schemas: float, int. Details: " + + ", ".join(error_messages) + ) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable( + self.actual_instance.to_json + ): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, int]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable( + self.actual_instance.to_dict + ): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/unity_sps_ogc_processes_api_python_client/models/subscriber.py b/unity_sps_ogc_processes_api_python_client/models/subscriber.py index 0ff17ec..a3acdcd 100644 --- a/unity_sps_ogc_processes_api_python_client/models/subscriber.py +++ b/unity_sps_ogc_processes_api_python_client/models/subscriber.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,24 +19,18 @@ import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set -from pydantic import BaseModel, ConfigDict, Field -from typing_extensions import Annotated, Self +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing_extensions import Self class Subscriber(BaseModel): """ - Subscriber + Optional URIs for callbacks for this job. Support for this parameter is not required and the parameter may be removed from the API definition, if conformance class **'callback'** is not listed in the conformance declaration under `/conformance`. """ # noqa: E501 - failed_uri: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field( - default=None, alias="failedUri" - ) - in_progress_uri: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field( - default=None, alias="inProgressUri" - ) - success_uri: Annotated[str, Field(min_length=1, strict=True)] = Field( - alias="successUri" - ) + failed_uri: Optional[StrictStr] = Field(default=None, alias="failedUri") + in_progress_uri: Optional[StrictStr] = Field(default=None, alias="inProgressUri") + success_uri: StrictStr = Field(alias="successUri") __properties: ClassVar[List[str]] = ["failedUri", "inProgressUri", "successUri"] model_config = ConfigDict( diff --git a/unity_sps_ogc_processes_api_python_client/models/validation_error.py b/unity_sps_ogc_processes_api_python_client/models/validation_error.py index 2a9ae07..1724366 100644 --- a/unity_sps_ogc_processes_api_python_client/models/validation_error.py +++ b/unity_sps_ogc_processes_api_python_client/models/validation_error.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/unity_sps_ogc_processes_api_python_client/models/validation_error_loc_inner.py b/unity_sps_ogc_processes_api_python_client/models/validation_error_loc_inner.py index 5ab6327..d900d1f 100644 --- a/unity_sps_ogc_processes_api_python_client/models/validation_error_loc_inner.py +++ b/unity_sps_ogc_processes_api_python_client/models/validation_error_loc_inner.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/unity_sps_ogc_processes_api_python_client/rest.py b/unity_sps_ogc_processes_api_python_client/rest.py index cbd97dd..5803cf6 100644 --- a/unity_sps_ogc_processes_api_python_client/rest.py +++ b/unity_sps_ogc_processes_api_python_client/rest.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Unity Processing API conforming to the OGC API - Processes - Part 1 standard + Unity Processing API conforming to the Draft of OGC API - Processes - Part 2: Deploy, Replace, Undeploy This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application. - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually.