From b6a5272d8c1b158dee0cc4e2cff965326b86bd14 Mon Sep 17 00:00:00 2001 From: Drew Meyers Date: Mon, 9 Sep 2024 10:23:59 -0700 Subject: [PATCH 1/4] feat: Updated openapi spec --- .openapi-generator/FILES | 271 +- .openapi-generator/VERSION | 2 +- .pre-commit-config.yaml | 5 +- README.md | 144 +- docs/APIApi.md | 147 + docs/ActualInstance.md | 50 + docs/ActualInstance1.md | 37 + docs/ActualInstance2.md | 31 + docs/ActualInstance3.md | 62 + docs/ActualInstance4.md | 62 + docs/ActualInstance5.md | 30 + docs/ActualInstance6.md | 30 + docs/Bbox.md | 5 +- docs/Bbox1.md | 29 + docs/BboxBboxInner.md | 26 + docs/BboxDefCrs.md | 31 + docs/ConfClasses.md | 1 + docs/ConformanceApi.md | 77 + docs/Cpumax.md | 27 + docs/Cpumin.md | 27 + docs/DRUApi.md | 236 + docs/Enumeration.md | 29 + docs/Exception.md | 8 +- docs/Execute200ResponseInput.md | 26 + docs/Execute200ResponseInputAnyOfValue.md | 37 + docs/Execute200ResponseOutput.md | 26 + docs/Execute200ResponseOutputAnyOfValue.md | 37 + docs/ExecuteWorkflows.md | 34 + docs/ExecutionUnit.md | 32 + docs/ExecutionUnitConfig.md | 35 + docs/FieldsModifiersProperties.md | 26 + docs/Format.md | 30 + docs/FormatSchema.md | 31 + docs/HealthApi.md | 73 + docs/HealthCheck.md | 3 +- docs/InlineOrRefDataInput.md | 37 + docs/InlineOrRefDataOutput.md | 37 + docs/InlineOrRefDataWorkflows.md | 32 + docs/InputCollection.md | 31 + docs/InputDescriptionInput.md | 35 + docs/InputDescriptionOutput.md | 35 + docs/InputParameterized.md | 31 + docs/InputProcess.md | 34 + docs/InputValueInput.md | 7 +- docs/InputValueNoObjectInput.md | 12 +- docs/InputValueNoObjectOutput.md | 12 +- docs/InputValueNoObjectWorkflows.md | 39 + docs/InputValueOutput.md | 7 +- docs/InputValueWorkflows.md | 31 + docs/InputWorkflows.md | 46 + docs/InputWorkflows1.md | 31 + docs/InputWorkflowsAnyOfInner.md | 46 + docs/JobControlOptions.md | 10 +- docs/JobListInput.md | 29 + docs/JobListOutput.md | 29 + docs/JobsApi.md | 291 + docs/Jobtimeout.md | 27 + docs/LandingPage.md | 5 +- docs/LandingPageApi.md | 77 + docs/Link.md | 5 +- docs/Maximum.md | 26 + docs/Memorymax.md | 27 + docs/Memorymin.md | 27 + docs/MetadataInput.md | 34 + docs/MetadataOneOf.md | 33 + docs/MetadataOneOf1.md | 31 + docs/MetadataOneOf1Value.md | 31 + docs/MetadataOutput.md | 34 + docs/Minimum.md | 26 + docs/ModelSchemaInput.md | 62 + docs/ModelSchemaOutput.md | 62 + docs/Multipleof.md | 26 + docs/Ogcapppkg.md | 29 + docs/OgcapppkgExecutionUnit.md | 39 + docs/OgcapppkgExecutionUnitAnyOfInner.md | 39 + docs/OneofSchema2Validator.md | 26 + docs/OneofSchema6Validator.md | 26 + docs/OutputDescriptionInput.md | 32 + docs/OutputDescriptionOutput.md | 32 + docs/OutputWorkflows.md | 29 + docs/OutputWorkflows1.md | 29 + docs/ProcessInput.md | 13 +- docs/ProcessListInput.md | 29 + docs/ProcessListOutput.md | 29 + docs/ProcessOutput.md | 13 +- docs/ProcessSummaryInput.md | 35 + docs/ProcessSummaryOutput.md | 35 + docs/ProcessesApi.md | 215 + docs/QualifiedInputValueInput.md | 31 + docs/QualifiedInputValueOutput.md | 31 + docs/QualifiedInputValueWorkflows.md | 34 + docs/Reference.md | 28 + docs/Schema1Input.md | 31 + docs/Schema1Output.md | 31 + docs/SchemaOneOfAdditionalPropertiesInput.md | 31 + docs/SchemaOneOfAdditionalPropertiesOutput.md | 31 + docs/SchemaOneOfInput.md | 62 + docs/SchemaOneOfOutput.md | 62 + docs/StatusCode.md | 14 +- docs/StatusInfo.md | 17 +- docs/Storageoutputsmin.md | 27 + docs/Storagetempmin.md | 27 + docs/Subscriber.md | 5 +- openapi.json | 5038 +++++++++++++++-- pyproject.toml | 4 +- setup.py | 8 +- test/test_actual_instance.py | 307 + test/test_actual_instance1.py | 166 + test/test_actual_instance2.py | 180 + test/test_actual_instance3.py | 496 ++ test/test_actual_instance4.py | 496 ++ test/test_actual_instance5.py | 114 + test/test_actual_instance6.py | 114 + test/test_api_api.py | 45 + test/test_bbox1.py | 65 + test/test_bbox_bbox_inner.py | 54 + test/test_bbox_def_crs.py | 58 + test/test_conformance_api.py | 38 + test/test_cpumax.py | 52 + test/test_cpumin.py | 52 + test/test_dru_api.py | 52 + test/test_enumeration.py | 60 + test/test_execute200_response_input.py | 54 + ..._execute200_response_input_any_of_value.py | 140 + test/test_execute200_response_output.py | 54 + ...execute200_response_output_any_of_value.py | 140 + test/test_execute_workflows.py | 81 + test/test_execution_unit.py | 69 + test/test_execution_unit_config.py | 62 + test/test_fields_modifiers_properties.py | 54 + test/test_format.py | 61 + test/test_format_schema.py | 58 + test/test_health_api.py | 38 + test/test_inline_or_ref_data_input.py | 140 + test/test_inline_or_ref_data_output.py | 140 + test/test_inline_or_ref_data_workflows.py | 193 + test/test_input_collection.py | 61 + test/test_input_description_input.py | 70 + test/test_input_description_output.py | 70 + test/test_input_parameterized.py | 61 + test/test_input_process.py | 147 + test/test_input_value_no_object_workflows.py | 165 + test/test_input_value_workflows.py | 174 + test/test_input_workflows.py | 303 + test/test_input_workflows1.py | 188 + test/test_input_workflows_any_of_inner.py | 303 + test/test_job_list_input.py | 122 + test/test_job_list_output.py | 124 + test/test_jobs_api.py | 59 + test/test_jobtimeout.py | 52 + test/test_landing_page_api.py | 40 + test/test_maximum.py | 52 + test/test_memorymax.py | 52 + test/test_memorymin.py | 52 + test/test_metadata_input.py | 69 + test/test_metadata_one_of.py | 61 + test/test_metadata_one_of1.py | 64 + test/test_metadata_one_of1_value.py | 60 + test/test_metadata_output.py | 69 + test/test_minimum.py | 52 + test/test_model_schema_input.py | 496 ++ test/test_model_schema_output.py | 496 ++ test/test_multipleof.py | 52 + test/test_ogcapppkg.py | 132 + test/test_ogcapppkg_execution_unit.py | 141 + ...t_ogcapppkg_execution_unit_any_of_inner.py | 141 + test/test_oneof_schema2_validator.py | 54 + test/test_oneof_schema6_validator.py | 54 + test/test_output_description_input.py | 64 + test/test_output_description_output.py | 64 + test/test_output_workflows.py | 65 + test/test_output_workflows1.py | 65 + test/test_process_list_input.py | 118 + test/test_process_list_output.py | 118 + test/test_process_summary_input.py | 77 + test/test_process_summary_output.py | 77 + test/test_processes_api.py | 52 + test/test_qualified_input_value_input.py | 121 + test/test_qualified_input_value_output.py | 121 + test/test_qualified_input_value_workflows.py | 190 + test/test_reference.py | 54 + test/test_schema1_input.py | 112 + test/test_schema1_output.py | 114 + ...hema_one_of_additional_properties_input.py | 116 + ...ema_one_of_additional_properties_output.py | 116 + test/test_schema_one_of_input.py | 494 ++ test/test_schema_one_of_output.py | 494 ++ test/test_storageoutputsmin.py | 54 + test/test_storagetempmin.py | 54 + .../__init__.py | 216 +- .../api/__init__.py | 10 +- .../api/api_api.py | 567 ++ .../api/conformance_api.py | 301 + .../api/dru_api.py | 902 +++ .../api/health_api.py | 266 + .../api/jobs_api.py | 1047 ++++ .../api/landing_page_api.py | 301 + .../api/processes_api.py | 860 +++ .../api_client.py | 38 +- .../configuration.py | 33 +- .../exceptions.py | 4 +- .../models/__init__.py | 206 +- .../models/actual_instance.py | 199 + .../models/actual_instance1.py | 337 ++ .../models/actual_instance2.py | 175 + .../models/actual_instance3.py | 161 + .../models/actual_instance4.py | 161 + .../models/actual_instance5.py | 161 + .../models/actual_instance6.py | 163 + .../models/bbox.py | 34 +- .../models/bbox1.py | 117 + .../models/bbox_bbox_inner.py | 150 + .../models/bbox_def_crs.py | 119 + .../models/conf_classes.py | 4 +- .../models/cpumax.py | 156 + .../models/cpumin.py | 161 + .../models/enumeration.py | 84 + .../models/exception.py | 63 +- .../models/execute200_response_input.py | 305 + .../execute200_response_input_any_of_value.py | 302 + .../models/execute200_response_output.py | 305 + ...execute200_response_output_any_of_value.py | 302 + .../models/execute_workflows.py | 195 + .../models/execution_unit.py | 124 + .../models/execution_unit_config.py | 216 + .../models/fields_modifiers_properties.py | 150 + .../models/format.py | 115 + .../models/format_schema.py | 119 + .../models/health_check.py | 19 +- .../models/http_validation_error.py | 4 +- .../models/inline_or_ref_data_input.py | 302 + .../models/inline_or_ref_data_output.py | 302 + .../models/inline_or_ref_data_workflows.py | 177 + .../models/input_collection.py | 119 + .../models/input_description_input.py | 170 + .../models/input_description_output.py | 170 + .../models/input_parameterized.py | 119 + .../models/input_process.py | 196 + .../models/input_value_input.py | 209 +- .../models/input_value_no_object_input.py | 380 +- .../models/input_value_no_object_output.py | 380 +- .../models/input_value_no_object_workflows.py | 280 + .../models/input_value_output.py | 209 +- .../models/input_value_workflows.py | 143 + .../models/input_workflows.py | 393 ++ .../models/input_workflows1.py | 158 + .../models/input_workflows_any_of_inner.py | 369 ++ .../models/job_control_options.py | 4 +- .../models/job_list_input.py | 114 + .../models/job_list_output.py | 114 + .../models/jobtimeout.py | 156 + .../models/landing_page.py | 26 +- .../models/link.py | 34 +- .../models/maximum.py | 156 + .../models/memorymax.py | 156 + .../models/memorymin.py | 156 + .../models/metadata_input.py | 155 + .../models/metadata_one_of.py | 129 + .../models/metadata_one_of1.py | 124 + .../models/metadata_one_of1_value.py | 119 + .../models/metadata_output.py | 155 + .../models/minimum.py | 156 + .../models/model_schema_input.py | 151 + .../models/model_schema_output.py | 151 + .../models/multipleof.py | 156 + .../models/ogcapppkg.py | 108 + .../models/ogcapppkg_execution_unit.py | 217 + .../ogcapppkg_execution_unit_any_of_inner.py | 178 + .../models/oneof_schema2_validator.py | 156 + .../models/oneof_schema6_validator.py | 156 + .../models/output_description_input.py | 146 + .../models/output_description_output.py | 146 + .../models/output_workflows.py | 108 + .../models/output_workflows1.py | 108 + .../models/process_input.py | 133 +- .../models/process_list_input.py | 116 + .../models/process_list_output.py | 119 + .../models/process_output.py | 133 +- .../models/process_summary_input.py | 175 + .../models/process_summary_output.py | 175 + .../models/qualified_input_value_input.py | 127 + .../models/qualified_input_value_output.py | 127 + .../models/qualified_input_value_workflows.py | 170 + .../models/reference.py | 83 + .../models/schema1_input.py | 152 + .../models/schema1_output.py | 152 + ...hema_one_of_additional_properties_input.py | 142 + ...ema_one_of_additional_properties_output.py | 144 + .../models/schema_one_of_input.py | 504 ++ .../models/schema_one_of_output.py | 506 ++ .../models/status_code.py | 4 +- .../models/status_info.py | 103 +- .../models/storageoutputsmin.py | 156 + .../models/storagetempmin.py | 156 + .../models/subscriber.py | 38 +- .../models/validation_error.py | 4 +- .../models/validation_error_loc_inner.py | 4 +- .../rest.py | 4 +- 298 files changed, 38228 insertions(+), 1685 deletions(-) create mode 100644 docs/APIApi.md create mode 100644 docs/ActualInstance.md create mode 100644 docs/ActualInstance1.md create mode 100644 docs/ActualInstance2.md create mode 100644 docs/ActualInstance3.md create mode 100644 docs/ActualInstance4.md create mode 100644 docs/ActualInstance5.md create mode 100644 docs/ActualInstance6.md create mode 100644 docs/Bbox1.md create mode 100644 docs/BboxBboxInner.md create mode 100644 docs/BboxDefCrs.md create mode 100644 docs/ConformanceApi.md create mode 100644 docs/Cpumax.md create mode 100644 docs/Cpumin.md create mode 100644 docs/DRUApi.md create mode 100644 docs/Enumeration.md create mode 100644 docs/Execute200ResponseInput.md create mode 100644 docs/Execute200ResponseInputAnyOfValue.md create mode 100644 docs/Execute200ResponseOutput.md create mode 100644 docs/Execute200ResponseOutputAnyOfValue.md create mode 100644 docs/ExecuteWorkflows.md create mode 100644 docs/ExecutionUnit.md create mode 100644 docs/ExecutionUnitConfig.md create mode 100644 docs/FieldsModifiersProperties.md create mode 100644 docs/Format.md create mode 100644 docs/FormatSchema.md create mode 100644 docs/HealthApi.md create mode 100644 docs/InlineOrRefDataInput.md create mode 100644 docs/InlineOrRefDataOutput.md create mode 100644 docs/InlineOrRefDataWorkflows.md create mode 100644 docs/InputCollection.md create mode 100644 docs/InputDescriptionInput.md create mode 100644 docs/InputDescriptionOutput.md create mode 100644 docs/InputParameterized.md create mode 100644 docs/InputProcess.md create mode 100644 docs/InputValueNoObjectWorkflows.md create mode 100644 docs/InputValueWorkflows.md create mode 100644 docs/InputWorkflows.md create mode 100644 docs/InputWorkflows1.md create mode 100644 docs/InputWorkflowsAnyOfInner.md create mode 100644 docs/JobListInput.md create mode 100644 docs/JobListOutput.md create mode 100644 docs/JobsApi.md create mode 100644 docs/Jobtimeout.md create mode 100644 docs/LandingPageApi.md create mode 100644 docs/Maximum.md create mode 100644 docs/Memorymax.md create mode 100644 docs/Memorymin.md create mode 100644 docs/MetadataInput.md create mode 100644 docs/MetadataOneOf.md create mode 100644 docs/MetadataOneOf1.md create mode 100644 docs/MetadataOneOf1Value.md create mode 100644 docs/MetadataOutput.md create mode 100644 docs/Minimum.md create mode 100644 docs/ModelSchemaInput.md create mode 100644 docs/ModelSchemaOutput.md create mode 100644 docs/Multipleof.md create mode 100644 docs/Ogcapppkg.md create mode 100644 docs/OgcapppkgExecutionUnit.md create mode 100644 docs/OgcapppkgExecutionUnitAnyOfInner.md create mode 100644 docs/OneofSchema2Validator.md create mode 100644 docs/OneofSchema6Validator.md create mode 100644 docs/OutputDescriptionInput.md create mode 100644 docs/OutputDescriptionOutput.md create mode 100644 docs/OutputWorkflows.md create mode 100644 docs/OutputWorkflows1.md create mode 100644 docs/ProcessListInput.md create mode 100644 docs/ProcessListOutput.md create mode 100644 docs/ProcessSummaryInput.md create mode 100644 docs/ProcessSummaryOutput.md create mode 100644 docs/ProcessesApi.md create mode 100644 docs/QualifiedInputValueInput.md create mode 100644 docs/QualifiedInputValueOutput.md create mode 100644 docs/QualifiedInputValueWorkflows.md create mode 100644 docs/Reference.md create mode 100644 docs/Schema1Input.md create mode 100644 docs/Schema1Output.md create mode 100644 docs/SchemaOneOfAdditionalPropertiesInput.md create mode 100644 docs/SchemaOneOfAdditionalPropertiesOutput.md create mode 100644 docs/SchemaOneOfInput.md create mode 100644 docs/SchemaOneOfOutput.md create mode 100644 docs/Storageoutputsmin.md create mode 100644 docs/Storagetempmin.md create mode 100644 test/test_actual_instance.py create mode 100644 test/test_actual_instance1.py create mode 100644 test/test_actual_instance2.py create mode 100644 test/test_actual_instance3.py create mode 100644 test/test_actual_instance4.py create mode 100644 test/test_actual_instance5.py create mode 100644 test/test_actual_instance6.py create mode 100644 test/test_api_api.py create mode 100644 test/test_bbox1.py create mode 100644 test/test_bbox_bbox_inner.py create mode 100644 test/test_bbox_def_crs.py create mode 100644 test/test_conformance_api.py create mode 100644 test/test_cpumax.py create mode 100644 test/test_cpumin.py create mode 100644 test/test_dru_api.py create mode 100644 test/test_enumeration.py create mode 100644 test/test_execute200_response_input.py create mode 100644 test/test_execute200_response_input_any_of_value.py create mode 100644 test/test_execute200_response_output.py create mode 100644 test/test_execute200_response_output_any_of_value.py create mode 100644 test/test_execute_workflows.py create mode 100644 test/test_execution_unit.py create mode 100644 test/test_execution_unit_config.py create mode 100644 test/test_fields_modifiers_properties.py create mode 100644 test/test_format.py create mode 100644 test/test_format_schema.py create mode 100644 test/test_health_api.py create mode 100644 test/test_inline_or_ref_data_input.py create mode 100644 test/test_inline_or_ref_data_output.py create mode 100644 test/test_inline_or_ref_data_workflows.py create mode 100644 test/test_input_collection.py create mode 100644 test/test_input_description_input.py create mode 100644 test/test_input_description_output.py create mode 100644 test/test_input_parameterized.py create mode 100644 test/test_input_process.py create mode 100644 test/test_input_value_no_object_workflows.py create mode 100644 test/test_input_value_workflows.py create mode 100644 test/test_input_workflows.py create mode 100644 test/test_input_workflows1.py create mode 100644 test/test_input_workflows_any_of_inner.py create mode 100644 test/test_job_list_input.py create mode 100644 test/test_job_list_output.py create mode 100644 test/test_jobs_api.py create mode 100644 test/test_jobtimeout.py create mode 100644 test/test_landing_page_api.py create mode 100644 test/test_maximum.py create mode 100644 test/test_memorymax.py create mode 100644 test/test_memorymin.py create mode 100644 test/test_metadata_input.py create mode 100644 test/test_metadata_one_of.py create mode 100644 test/test_metadata_one_of1.py create mode 100644 test/test_metadata_one_of1_value.py create mode 100644 test/test_metadata_output.py create mode 100644 test/test_minimum.py create mode 100644 test/test_model_schema_input.py create mode 100644 test/test_model_schema_output.py create mode 100644 test/test_multipleof.py create mode 100644 test/test_ogcapppkg.py create mode 100644 test/test_ogcapppkg_execution_unit.py create mode 100644 test/test_ogcapppkg_execution_unit_any_of_inner.py create mode 100644 test/test_oneof_schema2_validator.py create mode 100644 test/test_oneof_schema6_validator.py create mode 100644 test/test_output_description_input.py create mode 100644 test/test_output_description_output.py create mode 100644 test/test_output_workflows.py create mode 100644 test/test_output_workflows1.py create mode 100644 test/test_process_list_input.py create mode 100644 test/test_process_list_output.py create mode 100644 test/test_process_summary_input.py create mode 100644 test/test_process_summary_output.py create mode 100644 test/test_processes_api.py create mode 100644 test/test_qualified_input_value_input.py create mode 100644 test/test_qualified_input_value_output.py create mode 100644 test/test_qualified_input_value_workflows.py create mode 100644 test/test_reference.py create mode 100644 test/test_schema1_input.py create mode 100644 test/test_schema1_output.py create mode 100644 test/test_schema_one_of_additional_properties_input.py create mode 100644 test/test_schema_one_of_additional_properties_output.py create mode 100644 test/test_schema_one_of_input.py create mode 100644 test/test_schema_one_of_output.py create mode 100644 test/test_storageoutputsmin.py create mode 100644 test/test_storagetempmin.py create mode 100644 unity_sps_ogc_processes_api_python_client/api/api_api.py create mode 100644 unity_sps_ogc_processes_api_python_client/api/conformance_api.py create mode 100644 unity_sps_ogc_processes_api_python_client/api/dru_api.py create mode 100644 unity_sps_ogc_processes_api_python_client/api/health_api.py create mode 100644 unity_sps_ogc_processes_api_python_client/api/jobs_api.py create mode 100644 unity_sps_ogc_processes_api_python_client/api/landing_page_api.py create mode 100644 unity_sps_ogc_processes_api_python_client/api/processes_api.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/actual_instance.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/actual_instance1.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/actual_instance2.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/actual_instance3.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/actual_instance4.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/actual_instance5.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/actual_instance6.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/bbox1.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/bbox_bbox_inner.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/bbox_def_crs.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/cpumax.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/cpumin.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/enumeration.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/execute200_response_input.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/execute200_response_input_any_of_value.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/execute200_response_output.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/execute200_response_output_any_of_value.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/execute_workflows.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/execution_unit.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/execution_unit_config.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/fields_modifiers_properties.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/format.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/format_schema.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/inline_or_ref_data_input.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/inline_or_ref_data_output.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/inline_or_ref_data_workflows.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/input_collection.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/input_description_input.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/input_description_output.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/input_parameterized.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/input_process.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/input_value_no_object_workflows.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/input_value_workflows.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/input_workflows.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/input_workflows1.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/input_workflows_any_of_inner.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/job_list_input.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/job_list_output.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/jobtimeout.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/maximum.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/memorymax.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/memorymin.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/metadata_input.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/metadata_one_of.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/metadata_one_of1.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/metadata_one_of1_value.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/metadata_output.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/minimum.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/model_schema_input.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/model_schema_output.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/multipleof.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/ogcapppkg.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/ogcapppkg_execution_unit.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/ogcapppkg_execution_unit_any_of_inner.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/oneof_schema2_validator.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/oneof_schema6_validator.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/output_description_input.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/output_description_output.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/output_workflows.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/output_workflows1.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/process_list_input.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/process_list_output.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/process_summary_input.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/process_summary_output.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/qualified_input_value_input.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/qualified_input_value_output.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/qualified_input_value_workflows.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/reference.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/schema1_input.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/schema1_output.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/schema_one_of_additional_properties_input.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/schema_one_of_additional_properties_output.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/schema_one_of_input.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/schema_one_of_output.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/storageoutputsmin.py create mode 100644 unity_sps_ogc_processes_api_python_client/models/storagetempmin.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 473c50c..f671333 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 @@ -40,43 +112,198 @@ setup.cfg setup.py test-requirements.txt test/__init__.py +test/test_actual_instance.py +test/test_actual_instance1.py +test/test_actual_instance2.py +test/test_actual_instance3.py +test/test_actual_instance4.py +test/test_actual_instance5.py +test/test_actual_instance6.py +test/test_api_api.py +test/test_bbox1.py +test/test_bbox_bbox_inner.py +test/test_bbox_def_crs.py +test/test_conformance_api.py +test/test_cpumax.py +test/test_cpumin.py +test/test_dru_api.py +test/test_enumeration.py +test/test_execute200_response_input.py +test/test_execute200_response_input_any_of_value.py +test/test_execute200_response_output.py +test/test_execute200_response_output_any_of_value.py +test/test_execute_workflows.py +test/test_execution_unit.py +test/test_execution_unit_config.py +test/test_fields_modifiers_properties.py +test/test_format.py +test/test_format_schema.py +test/test_health_api.py +test/test_inline_or_ref_data_input.py +test/test_inline_or_ref_data_output.py +test/test_inline_or_ref_data_workflows.py +test/test_input_collection.py +test/test_input_description_input.py +test/test_input_description_output.py +test/test_input_parameterized.py +test/test_input_process.py +test/test_input_value_no_object_workflows.py +test/test_input_value_workflows.py +test/test_input_workflows.py +test/test_input_workflows1.py +test/test_input_workflows_any_of_inner.py +test/test_job_list_input.py +test/test_job_list_output.py +test/test_jobs_api.py +test/test_jobtimeout.py +test/test_landing_page_api.py +test/test_maximum.py +test/test_memorymax.py +test/test_memorymin.py +test/test_metadata_input.py +test/test_metadata_one_of.py +test/test_metadata_one_of1.py +test/test_metadata_one_of1_value.py +test/test_metadata_output.py +test/test_minimum.py +test/test_model_schema_input.py +test/test_model_schema_output.py +test/test_multipleof.py +test/test_ogcapppkg.py +test/test_ogcapppkg_execution_unit.py +test/test_ogcapppkg_execution_unit_any_of_inner.py +test/test_oneof_schema2_validator.py +test/test_oneof_schema6_validator.py +test/test_output_description_input.py +test/test_output_description_output.py +test/test_output_workflows.py +test/test_output_workflows1.py +test/test_process_list_input.py +test/test_process_list_output.py +test/test_process_summary_input.py +test/test_process_summary_output.py +test/test_processes_api.py +test/test_qualified_input_value_input.py +test/test_qualified_input_value_output.py +test/test_qualified_input_value_workflows.py +test/test_reference.py +test/test_schema1_input.py +test/test_schema1_output.py +test/test_schema_one_of_additional_properties_input.py +test/test_schema_one_of_additional_properties_output.py +test/test_schema_one_of_input.py +test/test_schema_one_of_output.py +test/test_storageoutputsmin.py +test/test_storagetempmin.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..0972704 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,7 +43,10 @@ repos: rev: v0.2.1 hooks: - id: ruff - args: [ --fix ] + args: [ + "--fix", + "--unsafe-fixes" + ] - 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..a20c2bb 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. @@ -61,29 +61,21 @@ 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.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,62 +85,126 @@ 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) ## Documentation For Authorization - -Authentication schemes defined for the API: - -### bearerAuth - -- **Type**: Bearer authentication (JWT) +Endpoints do not require authorization. ## Author diff --git a/docs/APIApi.md b/docs/APIApi.md new file mode 100644 index 0000000..ad59c82 --- /dev/null +++ b/docs/APIApi.md @@ -0,0 +1,147 @@ +# 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 + + +```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" +) + + +# 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 + +No authorization required + +### 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. | - | +**500** | A server error occurred. | - | +**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_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 + + +```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" +) + + +# 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 + +No authorization required + +### 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. | - | +**500** | A server error occurred. | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/ActualInstance.md b/docs/ActualInstance.md new file mode 100644 index 0000000..8b07fb6 --- /dev/null +++ b/docs/ActualInstance.md @@ -0,0 +1,50 @@ +# ActualInstance + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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] +**oneof_schema_10_validator** | [**InputParameterized**](InputParameterized.md) | | [optional] +**actual_instance** | [**ActualInstance1**](ActualInstance1.md) | | [optional] +**one_of_schemas** | **List[str]** | | [optional] +**href** | **str** | | +**rel** | **str** | | [optional] +**type** | **str** | | [optional] +**hreflang** | **str** | | [optional] +**title** | **str** | | [optional] +**media_type** | **str** | | [optional] +**encoding** | **str** | | [optional] +**var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] +**filter** | **str** | | [optional] +**properties** | [**FieldsModifiersProperties**](FieldsModifiersProperties.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..5c65919 --- /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] +**filter** | **str** | | [optional] +**properties** | [**FieldsModifiersProperties**](FieldsModifiersProperties.md) | | [optional] +**sort_by** | **List[str]** | | [optional] +**collection** | **str** | | +**input** | **str** | | +**process** | **str** | URI to the process execution end point (i.e., `.../processes/{processId}/execution`) | +**inputs** | [**Dict[str, InputWorkflows1]**](InputWorkflows1.md) | | [optional] +**outputs** | [**Dict[str, OutputWorkflows1]**](OutputWorkflows1.md) | | [optional] +**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..8e7f83e --- /dev/null +++ b/docs/ActualInstance2.md @@ -0,0 +1,31 @@ +# ActualInstance2 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**oneof_schema_1_validator** | [**InputValueNoObjectWorkflows**](InputValueNoObjectWorkflows.md) | | [optional] +**oneof_schema_2_validator** | [**QualifiedInputValueWorkflows**](QualifiedInputValueWorkflows.md) | | [optional] +**oneof_schema_3_validator** | [**Link**](Link.md) | | [optional] +**actual_instance** | [**ActualInstance**](ActualInstance.md) | | [optional] +**one_of_schemas** | **List[str]** | | [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..8fdd421 --- /dev/null +++ b/docs/ActualInstance3.md @@ -0,0 +1,62 @@ +# ActualInstance3 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ref** | **str** | | +**title** | **str** | | [optional] +**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] +**maximum** | [**Maximum**](Maximum.md) | | [optional] +**exclusive_maximum** | **bool** | | [optional] +**minimum** | [**Minimum**](Minimum.md) | | [optional] +**exclusive_minimum** | **bool** | | [optional] +**max_length** | **int** | | [optional] +**min_length** | **int** | | [optional] +**pattern** | **str** | | [optional] +**max_items** | **int** | | [optional] +**min_items** | **int** | | [optional] +**unique_items** | **bool** | | [optional] +**max_properties** | **int** | | [optional] +**min_properties** | **int** | | [optional] +**required** | **List[str]** | | [optional] +**enum** | **List[object]** | | [optional] +**type** | **str** | | [optional] +**var_not** | [**Schema1Input**](Schema1Input.md) | | [optional] +**all_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] +**one_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] +**any_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] +**items** | [**Schema1Input**](Schema1Input.md) | | [optional] +**properties** | [**Dict[str, Schema1Input]**](Schema1Input.md) | | [optional] +**additional_properties** | [**SchemaOneOfAdditionalPropertiesInput**](SchemaOneOfAdditionalPropertiesInput.md) | | [optional] +**description** | **str** | | [optional] +**format** | **str** | | [optional] +**default** | **object** | | [optional] +**nullable** | **bool** | | [optional] +**read_only** | **bool** | | [optional] +**write_only** | **bool** | | [optional] +**example** | **object** | | [optional] +**deprecated** | **bool** | | [optional] +**content_media_type** | **str** | | [optional] +**content_encoding** | **str** | | [optional] +**content_schema** | **str** | | [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..dfb71fb --- /dev/null +++ b/docs/ActualInstance4.md @@ -0,0 +1,62 @@ +# ActualInstance4 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ref** | **str** | | +**title** | **str** | | [optional] +**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] +**maximum** | [**Maximum**](Maximum.md) | | [optional] +**exclusive_maximum** | **bool** | | [optional] +**minimum** | [**Minimum**](Minimum.md) | | [optional] +**exclusive_minimum** | **bool** | | [optional] +**max_length** | **int** | | [optional] +**min_length** | **int** | | [optional] +**pattern** | **str** | | [optional] +**max_items** | **int** | | [optional] +**min_items** | **int** | | [optional] +**unique_items** | **bool** | | [optional] +**max_properties** | **int** | | [optional] +**min_properties** | **int** | | [optional] +**required** | **List[str]** | | [optional] +**enum** | **List[object]** | | [optional] +**type** | **str** | | [optional] +**var_not** | [**Schema1Output**](Schema1Output.md) | | [optional] +**all_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] +**one_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] +**any_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] +**items** | [**Schema1Output**](Schema1Output.md) | | [optional] +**properties** | [**Dict[str, Schema1Output]**](Schema1Output.md) | | [optional] +**additional_properties** | [**SchemaOneOfAdditionalPropertiesOutput**](SchemaOneOfAdditionalPropertiesOutput.md) | | [optional] +**description** | **str** | | [optional] +**format** | **str** | | [optional] +**default** | **object** | | [optional] +**nullable** | **bool** | | [optional] +**read_only** | **bool** | | [optional] +**write_only** | **bool** | | [optional] +**example** | **object** | | [optional] +**deprecated** | **bool** | | [optional] +**content_media_type** | **str** | | [optional] +**content_encoding** | **str** | | [optional] +**content_schema** | **str** | | [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..08ed9bb --- /dev/null +++ b/docs/ActualInstance5.md @@ -0,0 +1,30 @@ +# ActualInstance5 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**oneof_schema_1_validator** | [**Reference**](Reference.md) | | [optional] +**oneof_schema_2_validator** | [**SchemaOneOfInput**](SchemaOneOfInput.md) | | [optional] +**actual_instance** | [**ActualInstance3**](ActualInstance3.md) | | [optional] +**one_of_schemas** | **List[str]** | | [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..7260c7c --- /dev/null +++ b/docs/ActualInstance6.md @@ -0,0 +1,30 @@ +# ActualInstance6 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**oneof_schema_1_validator** | [**Reference**](Reference.md) | | [optional] +**oneof_schema_2_validator** | [**SchemaOneOfOutput**](SchemaOneOfOutput.md) | | [optional] +**actual_instance** | [**ActualInstance4**](ActualInstance4.md) | | [optional] +**one_of_schemas** | **List[str]** | | [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..348a88e --- /dev/null +++ b/docs/BboxDefCrs.md @@ -0,0 +1,31 @@ +# BboxDefCrs + +BboxDefCrs + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**anyof_schema_1_validator** | **str** | | [optional] +**anyof_schema_2_validator** | **str** | | [optional] +**actual_instance** | **object** | | [optional] +**any_of_schemas** | **List[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..55659a3 --- /dev/null +++ b/docs/ConformanceApi.md @@ -0,0 +1,77 @@ +# 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 + + +```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" +) + + +# 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 + +No authorization required + +### 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. | - | +**500** | A server error occurred. | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/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..b620268 --- /dev/null +++ b/docs/DRUApi.md @@ -0,0 +1,236 @@ +# 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 + + +```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" +) + + +# 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 + +No authorization required + +### 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) | - | +**500** | A server error occurred. | - | +**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) + +# **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 + + +```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" +) + + +# 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 + +No authorization required + +### 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) | - | +**500** | A server error occurred. | - | +**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) + +# **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 + + +```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" +) + + +# 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 + +No authorization required + +### 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. | - | +**500** | A server error occurred. | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/Enumeration.md b/docs/Enumeration.md new file mode 100644 index 0000000..5b9cddc --- /dev/null +++ b/docs/Enumeration.md @@ -0,0 +1,29 @@ +# Enumeration + +Enumeration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**enum** | **List[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..c6c5629 100644 --- a/docs/Exception.md +++ b/docs/Exception.md @@ -1,15 +1,17 @@ # Exception +JSON schema for exceptions based on RFC 7807 ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**title** | **str** | | [optional] +**status** | **int** | | [optional] **detail** | **str** | | [optional] **instance** | **str** | | [optional] -**status** | **int** | | [optional] -**title** | **str** | | [optional] -**type** | **str** | | +**additional_properties** | **object** | | [optional] ## Example 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..ec532de --- /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** | | +**rel** | **str** | | [optional] +**type** | **str** | | [optional] +**hreflang** | **str** | | [optional] +**title** | **str** | | [optional] +**media_type** | **str** | | [optional] +**encoding** | **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..b543020 --- /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** | | +**rel** | **str** | | [optional] +**type** | **str** | | [optional] +**hreflang** | **str** | | [optional] +**title** | **str** | | [optional] +**media_type** | **str** | | [optional] +**encoding** | **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..8dd9206 --- /dev/null +++ b/docs/ExecuteWorkflows.md @@ -0,0 +1,34 @@ +# ExecuteWorkflows + +ExecuteWorkflows + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filter** | **str** | | [optional] +**properties** | [**FieldsModifiersProperties**](FieldsModifiersProperties.md) | | [optional] +**sort_by** | **List[str]** | | [optional] +**process** | **str** | | [optional] +**inputs** | [**Dict[str, InputWorkflows]**](InputWorkflows.md) | | [optional] +**outputs** | [**Dict[str, OutputWorkflows]**](OutputWorkflows.md) | | [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..38535ed --- /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 +------------ | ------------- | ------------- | ------------- +**type** | **str** | Type of execution unit. | +**image** | **str** | Container image reference for the execution unit. | +**deployment** | **str** | | [optional] +**config** | [**ExecutionUnitConfig**](ExecutionUnitConfig.md) | | [optional] +**additional_properties** | **object** | | [optional] + +## 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..0b12299 --- /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 +------------ | ------------- | ------------- | ------------- +**cpu_min** | [**Cpumin**](Cpumin.md) | | [optional] +**cpu_max** | [**Cpumax**](Cpumax.md) | | [optional] +**memory_min** | [**Memorymin**](Memorymin.md) | | [optional] +**memory_max** | [**Memorymax**](Memorymax.md) | | [optional] +**storage_temp_min** | [**Storagetempmin**](Storagetempmin.md) | | [optional] +**storage_outputs_min** | [**Storageoutputsmin**](Storageoutputsmin.md) | | [optional] +**job_timeout** | [**Jobtimeout**](Jobtimeout.md) | | [optional] +**additional_properties** | **object** | | [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..5768641 --- /dev/null +++ b/docs/Format.md @@ -0,0 +1,30 @@ +# Format + +Format + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**media_type** | **str** | | [optional] +**encoding** | **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..33dfbe5 --- /dev/null +++ b/docs/FormatSchema.md @@ -0,0 +1,31 @@ +# FormatSchema + +FormatSchema + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**oneof_schema_1_validator** | **str** | | [optional] +**oneof_schema_2_validator** | **object** | | [optional] +**actual_instance** | **str** | | [optional] +**one_of_schemas** | **List[str]** | | [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..0a6dacb --- /dev/null +++ b/docs/HealthApi.md @@ -0,0 +1,73 @@ +# 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 + + +```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" +) + + +# 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 + +No authorization required + +### 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..ce44d33 --- /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** | | +**rel** | **str** | | [optional] +**type** | **str** | | [optional] +**hreflang** | **str** | | [optional] +**title** | **str** | | [optional] +**media_type** | **str** | | [optional] +**encoding** | **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..9b4e7de --- /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** | | +**rel** | **str** | | [optional] +**type** | **str** | | [optional] +**hreflang** | **str** | | [optional] +**title** | **str** | | [optional] +**media_type** | **str** | | [optional] +**encoding** | **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..9a7e62d --- /dev/null +++ b/docs/InlineOrRefDataWorkflows.md @@ -0,0 +1,32 @@ +# InlineOrRefDataWorkflows + +InlineOrRefDataWorkflows + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**oneof_schema_1_validator** | [**InputValueNoObjectWorkflows**](InputValueNoObjectWorkflows.md) | | [optional] +**oneof_schema_2_validator** | [**QualifiedInputValueWorkflows**](QualifiedInputValueWorkflows.md) | | [optional] +**oneof_schema_3_validator** | [**Link**](Link.md) | | [optional] +**actual_instance** | [**ActualInstance**](ActualInstance.md) | | [optional] +**one_of_schemas** | **List[str]** | | [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..6d26a77 --- /dev/null +++ b/docs/InputCollection.md @@ -0,0 +1,31 @@ +# InputCollection + +InputCollection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filter** | **str** | | [optional] +**properties** | [**FieldsModifiersProperties**](FieldsModifiersProperties.md) | | [optional] +**sort_by** | **List[str]** | | [optional] +**collection** | **str** | | + +## 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..8675781 --- /dev/null +++ b/docs/InputDescriptionInput.md @@ -0,0 +1,35 @@ +# InputDescriptionInput + +InputDescription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **str** | | [optional] +**description** | **str** | | [optional] +**keywords** | **List[str]** | | [optional] +**metadata** | [**List[MetadataInput]**](MetadataInput.md) | | [optional] +**var_schema** | [**ModelSchemaInput**](ModelSchemaInput.md) | | +**min_occurs** | **int** | | [optional] +**max_occurs** | **int** | | +**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..c55d28c --- /dev/null +++ b/docs/InputDescriptionOutput.md @@ -0,0 +1,35 @@ +# InputDescriptionOutput + +InputDescription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **str** | | [optional] +**description** | **str** | | [optional] +**keywords** | **List[str]** | | [optional] +**metadata** | [**List[MetadataOutput]**](MetadataOutput.md) | | [optional] +**var_schema** | [**ModelSchemaOutput**](ModelSchemaOutput.md) | | +**min_occurs** | **int** | | [optional] +**max_occurs** | **int** | | +**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..a3cd3f2 --- /dev/null +++ b/docs/InputParameterized.md @@ -0,0 +1,31 @@ +# InputParameterized + +InputParameterized + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filter** | **str** | | [optional] +**properties** | [**FieldsModifiersProperties**](FieldsModifiersProperties.md) | | [optional] +**sort_by** | **List[str]** | | [optional] +**input** | **str** | | + +## 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..3d7436a --- /dev/null +++ b/docs/InputProcess.md @@ -0,0 +1,34 @@ +# InputProcess + +InputProcess + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**process** | **str** | URI to the process execution end point (i.e., `.../processes/{processId}/execution`) | +**inputs** | [**Dict[str, InputWorkflows1]**](InputWorkflows1.md) | | [optional] +**outputs** | [**Dict[str, OutputWorkflows1]**](OutputWorkflows1.md) | | [optional] +**subscriber** | [**Subscriber**](Subscriber.md) | | [optional] +**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_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..6a96bb5 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] +**anyof_schema_1_validator** | [**InputValueNoObjectInput**](InputValueNoObjectInput.md) | | [optional] +**anyof_schema_2_validator** | **object** | | [optional] +**actual_instance** | **object** | | [optional] +**any_of_schemas** | **List[str]** | | [optional] ## Example diff --git a/docs/InputValueNoObjectInput.md b/docs/InputValueNoObjectInput.md index d8ee274..696c0e0 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] +**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] +**actual_instance** | **object** | | [optional] +**one_of_schemas** | **List[str]** | | [optional] ## Example diff --git a/docs/InputValueNoObjectOutput.md b/docs/InputValueNoObjectOutput.md index 4e05590..5529868 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] +**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] +**actual_instance** | **object** | | [optional] +**one_of_schemas** | **List[str]** | | [optional] ## Example diff --git a/docs/InputValueNoObjectWorkflows.md b/docs/InputValueNoObjectWorkflows.md new file mode 100644 index 0000000..aa1a1ba --- /dev/null +++ b/docs/InputValueNoObjectWorkflows.md @@ -0,0 +1,39 @@ +# InputValueNoObjectWorkflows + +InputValueNoObjectWorkflows + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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] +**oneof_schema_10_validator** | [**InputParameterized**](InputParameterized.md) | | [optional] +**actual_instance** | [**ActualInstance1**](ActualInstance1.md) | | [optional] +**one_of_schemas** | **List[str]** | | [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..5dcc187 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] +**anyof_schema_1_validator** | [**InputValueNoObjectOutput**](InputValueNoObjectOutput.md) | | [optional] +**anyof_schema_2_validator** | **object** | | [optional] +**actual_instance** | **object** | | [optional] +**any_of_schemas** | **List[str]** | | [optional] ## Example diff --git a/docs/InputValueWorkflows.md b/docs/InputValueWorkflows.md new file mode 100644 index 0000000..e914f1d --- /dev/null +++ b/docs/InputValueWorkflows.md @@ -0,0 +1,31 @@ +# InputValueWorkflows + +InputValueWorkflows + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**oneof_schema_1_validator** | [**InputValueNoObjectWorkflows**](InputValueNoObjectWorkflows.md) | | [optional] +**oneof_schema_2_validator** | **object** | | [optional] +**actual_instance** | [**InputValueNoObjectWorkflows**](InputValueNoObjectWorkflows.md) | | [optional] +**one_of_schemas** | **List[str]** | | [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..2b584af --- /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] +**filter** | **str** | | [optional] +**properties** | [**FieldsModifiersProperties**](FieldsModifiersProperties.md) | | [optional] +**sort_by** | **List[str]** | | [optional] +**collection** | **str** | | +**input** | **str** | | +**process** | **str** | URI to the process execution end point (i.e., `.../processes/{processId}/execution`) | +**inputs** | [**Dict[str, InputWorkflows1]**](InputWorkflows1.md) | | [optional] +**outputs** | [**Dict[str, OutputWorkflows1]**](OutputWorkflows1.md) | | [optional] +**subscriber** | [**Subscriber**](Subscriber.md) | | [optional] +**href** | **str** | | +**rel** | **str** | | [optional] +**type** | **str** | | [optional] +**hreflang** | **str** | | [optional] +**title** | **str** | | [optional] +**media_type** | **str** | | [optional] +**encoding** | **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..c522f24 --- /dev/null +++ b/docs/InputWorkflows1.md @@ -0,0 +1,31 @@ +# InputWorkflows1 + +InputWorkflows1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**oneof_schema_1_validator** | [**InlineOrRefDataWorkflows**](InlineOrRefDataWorkflows.md) | | [optional] +**oneof_schema_2_validator** | [**List[InlineOrRefDataWorkflows]**](InlineOrRefDataWorkflows.md) | | [optional] +**actual_instance** | [**ActualInstance2**](ActualInstance2.md) | | [optional] +**one_of_schemas** | **List[str]** | | [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..d687ddc --- /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] +**filter** | **str** | | [optional] +**properties** | [**FieldsModifiersProperties**](FieldsModifiersProperties.md) | | [optional] +**sort_by** | **List[str]** | | [optional] +**collection** | **str** | | +**input** | **str** | | +**process** | **str** | URI to the process execution end point (i.e., `.../processes/{processId}/execution`) | +**inputs** | [**Dict[str, InputWorkflows1]**](InputWorkflows1.md) | | [optional] +**outputs** | [**Dict[str, OutputWorkflows1]**](OutputWorkflows1.md) | | [optional] +**subscriber** | [**Subscriber**](Subscriber.md) | | [optional] +**href** | **str** | | +**rel** | **str** | | [optional] +**type** | **str** | | [optional] +**hreflang** | **str** | | [optional] +**title** | **str** | | [optional] +**media_type** | **str** | | [optional] +**encoding** | **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..9ae5cbd --- /dev/null +++ b/docs/JobsApi.md @@ -0,0 +1,291 @@ +# 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 + + +```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" +) + + +# 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 + +No authorization required + +### 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. | - | +**500** | A server error occurred. | - | +**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_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 + + +```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" +) + + +# 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 + +No authorization required + +### 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 + + +```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" +) + + +# 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 + +No authorization required + +### 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. | - | +**500** | A server error occurred. | - | +**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_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 + + +```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" +) + + +# 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 + +No authorization required + +### 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. | - | +**500** | A server error occurred. | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/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..e085a61 100644 --- a/docs/LandingPage.md +++ b/docs/LandingPage.md @@ -1,14 +1,15 @@ # LandingPage +LandingPage ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attribution** | **str** | | [optional] +**title** | **str** | | [optional] **description** | **str** | | [optional] +**attribution** | **str** | | [optional] **links** | [**List[Link]**](Link.md) | | -**title** | **str** | | [optional] ## Example diff --git a/docs/LandingPageApi.md b/docs/LandingPageApi.md new file mode 100644 index 0000000..3a43900 --- /dev/null +++ b/docs/LandingPageApi.md @@ -0,0 +1,77 @@ +# 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 + + +```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" +) + + +# 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 + +No authorization required + +### 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. | - | +**500** | A server error occurred. | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/Link.md b/docs/Link.md index 43b2ed0..1ee618b 100644 --- a/docs/Link.md +++ b/docs/Link.md @@ -1,15 +1,16 @@ # Link +Link ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **href** | **str** | | -**hreflang** | **str** | | [optional] **rel** | **str** | | [optional] -**title** | **str** | | [optional] **type** | **str** | | [optional] +**hreflang** | **str** | | [optional] +**title** | **str** | | [optional] ## Example 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..14ad79d --- /dev/null +++ b/docs/MetadataInput.md @@ -0,0 +1,34 @@ +# MetadataInput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **str** | | +**rel** | **str** | | [optional] +**type** | **str** | | [optional] +**hreflang** | **str** | | [optional] +**title** | **str** | | [optional] +**role** | **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..a4c0852 --- /dev/null +++ b/docs/MetadataOneOf.md @@ -0,0 +1,33 @@ +# MetadataOneOf + +MetadataOneOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **str** | | +**rel** | **str** | | [optional] +**type** | **str** | | [optional] +**hreflang** | **str** | | [optional] +**title** | **str** | | [optional] +**role** | **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..7e1ce8d --- /dev/null +++ b/docs/MetadataOneOf1.md @@ -0,0 +1,31 @@ +# MetadataOneOf1 + +MetadataOneOf1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**role** | **str** | | [optional] +**title** | **str** | | [optional] +**lang** | **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..ad5a27d --- /dev/null +++ b/docs/MetadataOneOf1Value.md @@ -0,0 +1,31 @@ +# MetadataOneOf1Value + +MetadataOneOf1Value + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**oneof_schema_1_validator** | **str** | | [optional] +**oneof_schema_2_validator** | **object** | | [optional] +**actual_instance** | **str** | | [optional] +**one_of_schemas** | **List[str]** | | [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..2555a04 --- /dev/null +++ b/docs/MetadataOutput.md @@ -0,0 +1,34 @@ +# MetadataOutput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **str** | | +**rel** | **str** | | [optional] +**type** | **str** | | [optional] +**hreflang** | **str** | | [optional] +**title** | **str** | | [optional] +**role** | **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..cd55d4d --- /dev/null +++ b/docs/ModelSchemaInput.md @@ -0,0 +1,62 @@ +# ModelSchemaInput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ref** | **str** | | +**title** | **str** | | [optional] +**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] +**maximum** | [**Maximum**](Maximum.md) | | [optional] +**exclusive_maximum** | **bool** | | [optional] +**minimum** | [**Minimum**](Minimum.md) | | [optional] +**exclusive_minimum** | **bool** | | [optional] +**max_length** | **int** | | [optional] +**min_length** | **int** | | [optional] +**pattern** | **str** | | [optional] +**max_items** | **int** | | [optional] +**min_items** | **int** | | [optional] +**unique_items** | **bool** | | [optional] +**max_properties** | **int** | | [optional] +**min_properties** | **int** | | [optional] +**required** | **List[str]** | | [optional] +**enum** | **List[object]** | | [optional] +**type** | **str** | | [optional] +**var_not** | [**Schema1Input**](Schema1Input.md) | | [optional] +**all_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] +**one_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] +**any_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] +**items** | [**Schema1Input**](Schema1Input.md) | | [optional] +**properties** | [**Dict[str, Schema1Input]**](Schema1Input.md) | | [optional] +**additional_properties** | [**SchemaOneOfAdditionalPropertiesInput**](SchemaOneOfAdditionalPropertiesInput.md) | | [optional] +**description** | **str** | | [optional] +**format** | **str** | | [optional] +**default** | **object** | | [optional] +**nullable** | **bool** | | [optional] +**read_only** | **bool** | | [optional] +**write_only** | **bool** | | [optional] +**example** | **object** | | [optional] +**deprecated** | **bool** | | [optional] +**content_media_type** | **str** | | [optional] +**content_encoding** | **str** | | [optional] +**content_schema** | **str** | | [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..0e813f6 --- /dev/null +++ b/docs/ModelSchemaOutput.md @@ -0,0 +1,62 @@ +# ModelSchemaOutput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ref** | **str** | | +**title** | **str** | | [optional] +**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] +**maximum** | [**Maximum**](Maximum.md) | | [optional] +**exclusive_maximum** | **bool** | | [optional] +**minimum** | [**Minimum**](Minimum.md) | | [optional] +**exclusive_minimum** | **bool** | | [optional] +**max_length** | **int** | | [optional] +**min_length** | **int** | | [optional] +**pattern** | **str** | | [optional] +**max_items** | **int** | | [optional] +**min_items** | **int** | | [optional] +**unique_items** | **bool** | | [optional] +**max_properties** | **int** | | [optional] +**min_properties** | **int** | | [optional] +**required** | **List[str]** | | [optional] +**enum** | **List[object]** | | [optional] +**type** | **str** | | [optional] +**var_not** | [**Schema1Output**](Schema1Output.md) | | [optional] +**all_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] +**one_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] +**any_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] +**items** | [**Schema1Output**](Schema1Output.md) | | [optional] +**properties** | [**Dict[str, Schema1Output]**](Schema1Output.md) | | [optional] +**additional_properties** | [**SchemaOneOfAdditionalPropertiesOutput**](SchemaOneOfAdditionalPropertiesOutput.md) | | [optional] +**description** | **str** | | [optional] +**format** | **str** | | [optional] +**default** | **object** | | [optional] +**nullable** | **bool** | | [optional] +**read_only** | **bool** | | [optional] +**write_only** | **bool** | | [optional] +**example** | **object** | | [optional] +**deprecated** | **bool** | | [optional] +**content_media_type** | **str** | | [optional] +**content_encoding** | **str** | | [optional] +**content_schema** | **str** | | [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..ba42551 --- /dev/null +++ b/docs/Ogcapppkg.md @@ -0,0 +1,29 @@ +# Ogcapppkg + +Ogcapppkg + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**process_description** | [**ProcessInput**](ProcessInput.md) | | +**execution_unit** | [**OgcapppkgExecutionUnit**](OgcapppkgExecutionUnit.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..ce8beba --- /dev/null +++ b/docs/OgcapppkgExecutionUnit.md @@ -0,0 +1,39 @@ +# OgcapppkgExecutionUnit + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**image** | **str** | Container image reference for the execution unit. | +**deployment** | **str** | | [optional] +**config** | [**ExecutionUnitConfig**](ExecutionUnitConfig.md) | | [optional] +**additional_properties** | **object** | | [optional] +**href** | **str** | | +**rel** | **str** | | [optional] +**hreflang** | **str** | | [optional] +**title** | **str** | | [optional] +**media_type** | **str** | | [optional] +**encoding** | **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..b7269d2 --- /dev/null +++ b/docs/OgcapppkgExecutionUnitAnyOfInner.md @@ -0,0 +1,39 @@ +# OgcapppkgExecutionUnitAnyOfInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**image** | **str** | Container image reference for the execution unit. | +**deployment** | **str** | | [optional] +**config** | [**ExecutionUnitConfig**](ExecutionUnitConfig.md) | | [optional] +**additional_properties** | **object** | | [optional] +**href** | **str** | | +**rel** | **str** | | [optional] +**hreflang** | **str** | | [optional] +**title** | **str** | | [optional] +**media_type** | **str** | | [optional] +**encoding** | **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..555e0ce --- /dev/null +++ b/docs/OutputDescriptionInput.md @@ -0,0 +1,32 @@ +# OutputDescriptionInput + +OutputDescription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **str** | | [optional] +**description** | **str** | | [optional] +**keywords** | **List[str]** | | [optional] +**metadata** | [**List[MetadataInput]**](MetadataInput.md) | | [optional] +**var_schema** | [**ModelSchemaInput**](ModelSchemaInput.md) | | + +## 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..8c797d9 --- /dev/null +++ b/docs/OutputDescriptionOutput.md @@ -0,0 +1,32 @@ +# OutputDescriptionOutput + +OutputDescription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **str** | | [optional] +**description** | **str** | | [optional] +**keywords** | **List[str]** | | [optional] +**metadata** | [**List[MetadataOutput]**](MetadataOutput.md) | | [optional] +**var_schema** | [**ModelSchemaOutput**](ModelSchemaOutput.md) | | + +## 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..cbafa42 --- /dev/null +++ b/docs/OutputWorkflows.md @@ -0,0 +1,29 @@ +# OutputWorkflows + +OutputWorkflows + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format** | [**Format**](Format.md) | | [optional] +**output** | **str** | | [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..7d9fcc9 --- /dev/null +++ b/docs/OutputWorkflows1.md @@ -0,0 +1,29 @@ +# OutputWorkflows1 + +OutputWorkflows1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format** | [**Format**](Format.md) | | [optional] +**output** | **str** | | [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..fc81258 100644 --- a/docs/ProcessInput.md +++ b/docs/ProcessInput.md @@ -1,20 +1,21 @@ # ProcessInput +Process ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**title** | **str** | | [optional] **description** | **str** | | [optional] +**keywords** | **List[str]** | | [optional] +**metadata** | [**List[MetadataInput]**](MetadataInput.md) | | [optional] **id** | **str** | | -**inputs** | [**List[InputValueInput]**](InputValueInput.md) | | [optional] +**version** | **str** | | **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] -**title** | **str** | | [optional] -**version** | **str** | | +**inputs** | [**Dict[str, InputDescriptionInput]**](InputDescriptionInput.md) | | [optional] +**outputs** | [**Dict[str, OutputDescriptionInput]**](OutputDescriptionInput.md) | | [optional] ## Example diff --git a/docs/ProcessListInput.md b/docs/ProcessListInput.md new file mode 100644 index 0000000..d357618 --- /dev/null +++ b/docs/ProcessListInput.md @@ -0,0 +1,29 @@ +# ProcessListInput + +ProcessList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**processes** | [**List[ProcessSummaryInput]**](ProcessSummaryInput.md) | | +**links** | [**List[Link]**](Link.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..4ff3a9d --- /dev/null +++ b/docs/ProcessListOutput.md @@ -0,0 +1,29 @@ +# ProcessListOutput + +ProcessList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**processes** | [**List[ProcessSummaryOutput]**](ProcessSummaryOutput.md) | | +**links** | [**List[Link]**](Link.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..790e50f 100644 --- a/docs/ProcessOutput.md +++ b/docs/ProcessOutput.md @@ -1,20 +1,21 @@ # ProcessOutput +Process ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**title** | **str** | | [optional] **description** | **str** | | [optional] +**keywords** | **List[str]** | | [optional] +**metadata** | [**List[MetadataOutput]**](MetadataOutput.md) | | [optional] **id** | **str** | | -**inputs** | [**List[InputValueOutput]**](InputValueOutput.md) | | [optional] +**version** | **str** | | **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] -**title** | **str** | | [optional] -**version** | **str** | | +**inputs** | [**Dict[str, InputDescriptionOutput]**](InputDescriptionOutput.md) | | [optional] +**outputs** | [**Dict[str, OutputDescriptionOutput]**](OutputDescriptionOutput.md) | | [optional] ## Example diff --git a/docs/ProcessSummaryInput.md b/docs/ProcessSummaryInput.md new file mode 100644 index 0000000..d7e0acc --- /dev/null +++ b/docs/ProcessSummaryInput.md @@ -0,0 +1,35 @@ +# ProcessSummaryInput + +ProcessSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **str** | | [optional] +**description** | **str** | | [optional] +**keywords** | **List[str]** | | [optional] +**metadata** | [**List[MetadataInput]**](MetadataInput.md) | | [optional] +**id** | **str** | | +**version** | **str** | | +**job_control_options** | [**List[JobControlOptions]**](JobControlOptions.md) | | [optional] +**links** | [**List[Link]**](Link.md) | | [optional] + +## 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..ed2eba8 --- /dev/null +++ b/docs/ProcessSummaryOutput.md @@ -0,0 +1,35 @@ +# ProcessSummaryOutput + +ProcessSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **str** | | [optional] +**description** | **str** | | [optional] +**keywords** | **List[str]** | | [optional] +**metadata** | [**List[MetadataOutput]**](MetadataOutput.md) | | [optional] +**id** | **str** | | +**version** | **str** | | +**job_control_options** | [**List[JobControlOptions]**](JobControlOptions.md) | | [optional] +**links** | [**List[Link]**](Link.md) | | [optional] + +## 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..59e03e7 --- /dev/null +++ b/docs/ProcessesApi.md @@ -0,0 +1,215 @@ +# 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 + +```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" +) + + +# 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 + +No authorization required + +### 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. | - | +**500** | A server error occurred. | - | +**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_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 + +```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" +) + + +# 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 + +No authorization required + +### 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 + +```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" +) + + +# 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 + +No authorization required + +### 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..81ce86b --- /dev/null +++ b/docs/QualifiedInputValueInput.md @@ -0,0 +1,31 @@ +# QualifiedInputValueInput + +QualifiedInputValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**media_type** | **str** | | [optional] +**encoding** | **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..69459cf --- /dev/null +++ b/docs/QualifiedInputValueOutput.md @@ -0,0 +1,31 @@ +# QualifiedInputValueOutput + +QualifiedInputValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**media_type** | **str** | | [optional] +**encoding** | **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..e52e4e7 --- /dev/null +++ b/docs/QualifiedInputValueWorkflows.md @@ -0,0 +1,34 @@ +# QualifiedInputValueWorkflows + +QualifiedInputValueWorkflows + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**media_type** | **str** | | [optional] +**encoding** | **str** | | [optional] +**var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] +**filter** | **str** | | [optional] +**properties** | [**FieldsModifiersProperties**](FieldsModifiersProperties.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..fd669b7 --- /dev/null +++ b/docs/Schema1Input.md @@ -0,0 +1,31 @@ +# Schema1Input + +Schema1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**oneof_schema_1_validator** | [**Reference**](Reference.md) | | [optional] +**oneof_schema_2_validator** | [**SchemaOneOfInput**](SchemaOneOfInput.md) | | [optional] +**actual_instance** | [**ActualInstance3**](ActualInstance3.md) | | [optional] +**one_of_schemas** | **List[str]** | | [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..89a06cd --- /dev/null +++ b/docs/Schema1Output.md @@ -0,0 +1,31 @@ +# Schema1Output + +Schema1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**oneof_schema_1_validator** | [**Reference**](Reference.md) | | [optional] +**oneof_schema_2_validator** | [**SchemaOneOfOutput**](SchemaOneOfOutput.md) | | [optional] +**actual_instance** | [**ActualInstance4**](ActualInstance4.md) | | [optional] +**one_of_schemas** | **List[str]** | | [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..1bd3ea0 --- /dev/null +++ b/docs/SchemaOneOfAdditionalPropertiesInput.md @@ -0,0 +1,31 @@ +# SchemaOneOfAdditionalPropertiesInput + +SchemaOneOfAdditionalProperties + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**oneof_schema_1_validator** | [**Schema1Input**](Schema1Input.md) | | [optional] +**oneof_schema_2_validator** | **bool** | | [optional] +**actual_instance** | [**ActualInstance5**](ActualInstance5.md) | | [optional] +**one_of_schemas** | **List[str]** | | [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..9427533 --- /dev/null +++ b/docs/SchemaOneOfAdditionalPropertiesOutput.md @@ -0,0 +1,31 @@ +# SchemaOneOfAdditionalPropertiesOutput + +SchemaOneOfAdditionalProperties + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**oneof_schema_1_validator** | [**Schema1Output**](Schema1Output.md) | | [optional] +**oneof_schema_2_validator** | **bool** | | [optional] +**actual_instance** | [**ActualInstance6**](ActualInstance6.md) | | [optional] +**one_of_schemas** | **List[str]** | | [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..33559ce --- /dev/null +++ b/docs/SchemaOneOfInput.md @@ -0,0 +1,62 @@ +# SchemaOneOfInput + +SchemaOneOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **str** | | [optional] +**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] +**maximum** | [**Maximum**](Maximum.md) | | [optional] +**exclusive_maximum** | **bool** | | [optional] +**minimum** | [**Minimum**](Minimum.md) | | [optional] +**exclusive_minimum** | **bool** | | [optional] +**max_length** | **int** | | [optional] +**min_length** | **int** | | [optional] +**pattern** | **str** | | [optional] +**max_items** | **int** | | [optional] +**min_items** | **int** | | [optional] +**unique_items** | **bool** | | [optional] +**max_properties** | **int** | | [optional] +**min_properties** | **int** | | [optional] +**required** | **List[str]** | | [optional] +**enum** | **List[object]** | | [optional] +**type** | **str** | | [optional] +**var_not** | [**Schema1Input**](Schema1Input.md) | | [optional] +**all_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] +**one_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] +**any_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] +**items** | [**Schema1Input**](Schema1Input.md) | | [optional] +**properties** | [**Dict[str, Schema1Input]**](Schema1Input.md) | | [optional] +**additional_properties** | [**SchemaOneOfAdditionalPropertiesInput**](SchemaOneOfAdditionalPropertiesInput.md) | | [optional] +**description** | **str** | | [optional] +**format** | **str** | | [optional] +**default** | **object** | | [optional] +**nullable** | **bool** | | [optional] +**read_only** | **bool** | | [optional] +**write_only** | **bool** | | [optional] +**example** | **object** | | [optional] +**deprecated** | **bool** | | [optional] +**content_media_type** | **str** | | [optional] +**content_encoding** | **str** | | [optional] +**content_schema** | **str** | | [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..b371195 --- /dev/null +++ b/docs/SchemaOneOfOutput.md @@ -0,0 +1,62 @@ +# SchemaOneOfOutput + +SchemaOneOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **str** | | [optional] +**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] +**maximum** | [**Maximum**](Maximum.md) | | [optional] +**exclusive_maximum** | **bool** | | [optional] +**minimum** | [**Minimum**](Minimum.md) | | [optional] +**exclusive_minimum** | **bool** | | [optional] +**max_length** | **int** | | [optional] +**min_length** | **int** | | [optional] +**pattern** | **str** | | [optional] +**max_items** | **int** | | [optional] +**min_items** | **int** | | [optional] +**unique_items** | **bool** | | [optional] +**max_properties** | **int** | | [optional] +**min_properties** | **int** | | [optional] +**required** | **List[str]** | | [optional] +**enum** | **List[object]** | | [optional] +**type** | **str** | | [optional] +**var_not** | [**Schema1Output**](Schema1Output.md) | | [optional] +**all_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] +**one_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] +**any_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] +**items** | [**Schema1Output**](Schema1Output.md) | | [optional] +**properties** | [**Dict[str, Schema1Output]**](Schema1Output.md) | | [optional] +**additional_properties** | [**SchemaOneOfAdditionalPropertiesOutput**](SchemaOneOfAdditionalPropertiesOutput.md) | | [optional] +**description** | **str** | | [optional] +**format** | **str** | | [optional] +**default** | **object** | | [optional] +**nullable** | **bool** | | [optional] +**read_only** | **bool** | | [optional] +**write_only** | **bool** | | [optional] +**example** | **object** | | [optional] +**deprecated** | **bool** | | [optional] +**content_media_type** | **str** | | [optional] +**content_encoding** | **str** | | [optional] +**content_schema** | **str** | | [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..4db2331 100644 --- a/docs/StatusInfo.md +++ b/docs/StatusInfo.md @@ -1,22 +1,23 @@ # StatusInfo +StatusInfo ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**created** | **datetime** | | [optional] -**exception** | [**Exception**](Exception.md) | | [optional] -**finished** | **datetime** | | [optional] +**process_id** | **str** | | [optional] +**type** | **str** | | **job_id** | **str** | | -**links** | [**List[Link]**](Link.md) | | [optional] +**status** | [**StatusCode**](StatusCode.md) | | **message** | **str** | | [optional] -**process_id** | **str** | | [optional] -**progress** | **int** | | [optional] +**exception** | [**Exception**](Exception.md) | | [optional] +**created** | **datetime** | | [optional] **started** | **datetime** | | [optional] -**status** | [**StatusCode**](StatusCode.md) | | -**type** | **object** | | +**finished** | **datetime** | | [optional] **updated** | **datetime** | | [optional] +**progress** | **int** | | [optional] +**links** | [**List[Link]**](Link.md) | | [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..6a9c714 100644 --- a/docs/Subscriber.md +++ b/docs/Subscriber.md @@ -1,13 +1,14 @@ # 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 Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**failed_uri** | **str** | | [optional] -**in_progress_uri** | **str** | | [optional] **success_uri** | **str** | | +**in_progress_uri** | **str** | | [optional] +**failed_uri** | **str** | | [optional] ## Example diff --git a/openapi.json b/openapi.json index f062bc4..bd137b5 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,412 @@ "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" + }, + { + "type": "null" + } + ], + "title": "Encoding" + }, + "mediaType": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Mediatype" + }, + "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": { + "type": "string" + }, + "title": "One Of Schemas", + "type": "array" + }, + "oneof_schema_1_validator": { "anyOf": [ { "type": "string" @@ -299,29 +678,3097 @@ "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": "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": "boolean" + }, + { + "type": "null" + } + ], + "default": false, + "title": "Writeonly" + } + }, + "title": "SchemaOneOf", + "type": "object" + }, + "SchemaOneOf-Output": { + "description": "SchemaOneOf", + "properties": { + "additionalProperties": { + "anyOf": [ + { + "$ref": "#/components/schemas/SchemaOneOfAdditionalProperties-Output" + }, + { + "type": "null" + } + ] + }, + "allOf": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/Schema1-Output" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Allof" }, - "description": { + "anyOf": { "anyOf": [ { - "type": "string" + "items": { + "$ref": "#/components/schemas/Schema1-Output" + }, + "type": "array" }, { "type": "null" } ], - "example": "Example server implementing the OGC API - Processes 1.0 Standard", - "title": "Description" - }, - "links": { - "items": { - "$ref": "#/components/schemas/Link" - }, - "title": "Links", - "type": "array" + "title": "Anyof" }, - "title": { + "contentEncoding": { "anyOf": [ { "type": "string" @@ -330,23 +3777,9 @@ "type": "null" } ], - "example": "Example processing server", - "title": "Title" - } - }, - "required": [ - "links" - ], - "title": "LandingPage", - "type": "object" - }, - "Link": { - "properties": { - "href": { - "title": "Href", - "type": "string" + "title": "Contentencoding" }, - "hreflang": { + "contentMediaType": { "anyOf": [ { "type": "string" @@ -355,10 +3788,9 @@ "type": "null" } ], - "example": "en", - "title": "Hreflang" + "title": "Contentmediatype" }, - "rel": { + "contentSchema": { "anyOf": [ { "type": "string" @@ -367,57 +3799,32 @@ "type": "null" } ], - "example": "service", - "title": "Rel" + "title": "Contentschema" }, - "title": { + "default": { "anyOf": [ { - "type": "string" + "type": "object" }, { "type": "null" } ], - "title": "Title" + "title": "Default" }, - "type": { + "deprecated": { "anyOf": [ { - "type": "string" + "type": "boolean" }, { "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" + "default": false, + "title": "Deprecated" }, - "hreflang": { + "description": { "anyOf": [ { "type": "string" @@ -426,65 +3833,59 @@ "type": "null" } ], - "example": "en", - "title": "Hreflang" + "title": "Description" }, - "rel": { + "enum": { "anyOf": [ { - "type": "string" + "items": { + "type": "object" + }, + "minItems": 1, + "type": "array" }, { "type": "null" } ], - "example": "service", - "title": "Rel" + "title": "Enum" }, - "role": { + "example": { "anyOf": [ { - "type": "string" + "type": "object" }, { "type": "null" } ], - "title": "Role" + "title": "Example" }, - "title": { + "exclusiveMaximum": { "anyOf": [ { - "type": "string" + "type": "boolean" }, { "type": "null" } ], - "title": "Title" + "default": false, + "title": "Exclusivemaximum" }, - "type": { + "exclusiveMinimum": { "anyOf": [ { - "type": "string" + "type": "boolean" }, { "type": "null" } ], - "example": "application/json", - "title": "Type" - } - }, - "required": [ - "href" - ], - "title": "Metadata1", - "type": "object" - }, - "Metadata2": { - "properties": { - "lang": { + "default": false, + "title": "Exclusiveminimum" + }, + "format": { "anyOf": [ { "type": "string" @@ -493,194 +3894,164 @@ "type": "null" } ], - "title": "Lang" + "title": "Format" }, - "role": { + "items": { "anyOf": [ { - "type": "string" + "$ref": "#/components/schemas/Schema1-Output" }, { "type": "null" } - ], - "title": "Role" + ] }, - "title": { + "maxItems": { "anyOf": [ { - "type": "string" + "minimum": 0.0, + "type": "integer" }, { "type": "null" } ], - "title": "Title" + "title": "Maxitems" }, - "value": { + "maxLength": { "anyOf": [ { - "type": "string" - }, - { - "type": "object" + "minimum": 0.0, + "type": "integer" }, { "type": "null" } ], - "title": "Value" - } - }, - "title": "Metadata2", - "type": "object" - }, - "Process-Input": { - "properties": { - "description": { + "title": "Maxlength" + }, + "maxProperties": { "anyOf": [ { - "type": "string" + "minimum": 0.0, + "type": "integer" }, { "type": "null" } ], - "title": "Description" - }, - "id": { - "title": "Id", - "type": "string" + "title": "Maxproperties" }, - "inputs": { + "maximum": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/InputValue-Input" - }, - "type": "array" + "type": "number" + }, + { + "type": "integer" }, { "type": "null" } ], - "title": "Inputs" + "title": "Maximum" }, - "jobControlOptions": { + "minItems": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/JobControlOptions" - }, - "type": "array" + "minimum": 0.0, + "type": "integer" }, { "type": "null" } ], - "title": "Jobcontroloptions" + "default": 0, + "title": "Minitems" }, - "keywords": { + "minLength": { "anyOf": [ { - "items": { - "type": "string" - }, - "type": "array" + "minimum": 0.0, + "type": "integer" }, { "type": "null" } ], - "title": "Keywords" + "default": 0, + "title": "Minlength" }, - "links": { + "minProperties": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/Link" - }, - "type": "array" + "minimum": 0.0, + "type": "integer" }, { "type": "null" } ], - "title": "Links" + "default": 0, + "title": "Minproperties" }, - "metadata": { + "minimum": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/Metadata" - }, - "type": "array" + "type": "number" + }, + { + "type": "integer" }, { "type": "null" } ], - "title": "Metadata" + "title": "Minimum" }, - "outputs": { + "multipleOf": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/InputValue-Input" - }, - "type": "array" + "exclusiveMinimum": 0.0, + "type": "number" + }, + { + "exclusiveMinimum": 0.0, + "type": "integer" }, { "type": "null" } ], - "title": "Outputs" + "title": "Multipleof" }, - "title": { + "not": { "anyOf": [ { - "type": "string" + "$ref": "#/components/schemas/Schema1-Output" }, { "type": "null" } - ], - "title": "Title" + ] }, - "version": { - "title": "Version", - "type": "string" - } - }, - "required": [ - "id", - "version" - ], - "title": "Process", - "type": "object" - }, - "Process-Output": { - "properties": { - "description": { + "nullable": { "anyOf": [ { - "type": "string" + "type": "boolean" }, { "type": "null" } ], - "title": "Description" - }, - "id": { - "title": "Id", - "type": "string" + "default": false, + "title": "Nullable" }, - "inputs": { + "oneOf": { "anyOf": [ { "items": { - "$ref": "#/components/schemas/InputValue-Output" + "$ref": "#/components/schemas/Schema1-Output" }, "type": "array" }, @@ -688,79 +4059,72 @@ "type": "null" } ], - "title": "Inputs" + "title": "Oneof" }, - "jobControlOptions": { + "pattern": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/JobControlOptions" - }, - "type": "array" + "type": "string" }, { "type": "null" } ], - "title": "Jobcontroloptions" + "title": "Pattern" }, - "keywords": { + "properties": { "anyOf": [ { - "items": { - "type": "string" + "additionalProperties": { + "$ref": "#/components/schemas/Schema1-Output" }, - "type": "array" + "type": "object" }, { "type": "null" } ], - "title": "Keywords" + "title": "Properties" }, - "links": { + "readOnly": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/Link" - }, - "type": "array" + "type": "boolean" }, { "type": "null" } ], - "title": "Links" + "default": false, + "title": "Readonly" }, - "metadata": { + "required": { "anyOf": [ { "items": { - "$ref": "#/components/schemas/Metadata" + "type": "string" }, + "minItems": 1, "type": "array" }, { "type": "null" } ], - "title": "Metadata" + "title": "Required" }, - "outputs": { + "title": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/InputValue-Output" - }, - "type": "array" + "type": "string" }, { "type": "null" } ], - "title": "Outputs" + "title": "Title" }, - "title": { + "type": { "anyOf": [ { "type": "string" @@ -769,144 +4133,136 @@ "type": "null" } ], - "title": "Title" + "title": "Type" }, - "version": { - "title": "Version", - "type": "string" - } - }, - "required": [ - "id", - "version" - ], - "title": "Process", - "type": "object" - }, - "ProcessList": { - "properties": { - "links": { - "items": { - "$ref": "#/components/schemas/Link" - }, - "title": "Links", - "type": "array" + "uniqueItems": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": false, + "title": "Uniqueitems" }, - "processes": { - "items": { - "$ref": "#/components/schemas/ProcessSummary" - }, - "title": "Processes", - "type": "array" + "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": { @@ -1123,26 +4472,31 @@ "title": "ValidationError", "type": "object" } - }, - "securitySchemes": { - "bearerAuth": { - "bearerFormat": "JWT", - "scheme": "bearer", - "type": "http" - } } }, "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 +4506,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": "Landing page of this API" + "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": "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 +4760,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 +4837,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 +4858,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 +4900,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 +4921,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 +4972,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 +5001,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 +5112,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 +5208,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 +5244,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 +5356,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 +5415,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 +5445,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,15 +5469,23 @@ } }, "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" + ] } } - }, - "security": [ - { - "bearerAuth": [] - } - ] + } } diff --git a/pyproject.toml b/pyproject.toml index 9a7a5fd..b273fac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,12 +1,12 @@ [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] 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..b7ab3cb --- /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", + "500": "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_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", + "500": "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_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", + "500": "Exception", + "422": "HTTPValidationError", + } + 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] = [] + + 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", + "500": "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_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", + "500": "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_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", + "500": "Exception", + "422": "HTTPValidationError", + } + 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] = [] + + 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..1cd16e9 --- /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", + "500": "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_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", + "500": "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_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", + "500": "Exception", + "422": "HTTPValidationError", + } + 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] = [] + + 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..d551356 --- /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", + "500": "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 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", + "500": "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 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", + "500": "Exception", + "422": "HTTPValidationError", + } + 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] = [] + + 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", + "500": "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 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", + "500": "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 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", + "500": "Exception", + "422": "HTTPValidationError", + } + 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] = [] + + 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", + "500": "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 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", + "500": "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 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", + "500": "Exception", + "422": "HTTPValidationError", + } + 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] = [] + + 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..b6565ff --- /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] = [] + + 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..9dcab43 --- /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", + "500": "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 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", + "500": "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 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", + "500": "Exception", + "422": "HTTPValidationError", + } + 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] = [] + + 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] = [] + + 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", + "500": "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_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", + "500": "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_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", + "500": "Exception", + "422": "HTTPValidationError", + } + 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] = [] + + 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", + "500": "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_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", + "500": "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_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", + "500": "Exception", + "422": "HTTPValidationError", + } + 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] = [] + + 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..64eed05 --- /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", + "500": "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_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", + "500": "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_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", + "500": "Exception", + "422": "HTTPValidationError", + } + 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] = [] + + 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..419c9db --- /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", + "500": "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 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", + "500": "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 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", + "500": "Exception", + "422": "HTTPValidationError", + } + 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] = [] + + 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] = [] + + 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] = [] + + 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..d5957cb 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,8 +65,8 @@ 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: """ _default = None @@ -80,7 +83,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 +101,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 +149,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 +195,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 @@ -377,14 +390,6 @@ def auth_settings(self): :return: The Auth Settings information dict. """ auth = {} - if self.access_token is not None: - auth["bearerAuth"] = { - "type": "bearer", - "in": "header", - "format": "JWT", - "key": "Authorization", - "value": "Bearer " + self.access_token, - } return auth def to_debug_report(self): @@ -396,7 +401,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..689ec7f --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/actual_instance.py @@ -0,0 +1,199 @@ +# 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.input_value_no_object_workflows import ( + InputValueNoObjectWorkflows, +) +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, +) + +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()) + + +# 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..4362f15 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/actual_instance1.py @@ -0,0 +1,337 @@ +# 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 + +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()) + + +# 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..41431da --- /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 + +from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows import ( + InlineOrRefDataWorkflows, +) + +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()) + + +# 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..35b6c49 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/actual_instance3.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, 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, +) + +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()) + + +# 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..e7a59b0 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/actual_instance4.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, 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, +) + +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()) + + +# 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..4c19914 --- /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 + +from unity_sps_ogc_processes_api_python_client.models.schema1_input import Schema1Input + +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()) + + +# 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..f4c55be --- /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 + +from unity_sps_ogc_processes_api_python_client.models.schema1_output import ( + Schema1Output, +) + +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()) + + +# 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..a9f0a0d --- /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 + + anyof_schema_1_validator: Optional[StrictStr] = None + anyof_schema_2_validator: Optional[StrictStr] = None + actual_instance: Optional[Any] = None + any_of_schemas: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = [ + "anyof_schema_1_validator", + "anyof_schema_2_validator", + "actual_instance", + "any_of_schemas", + ] + + 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 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 + + # 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 + + 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( + { + "anyof_schema_1_validator": obj.get("anyof_schema_1_validator"), + "anyof_schema_2_validator": obj.get("anyof_schema_2_validator"), + "actual_instance": obj.get("actual_instance"), + "any_of_schemas": obj.get("any_of_schemas"), + } + ) + 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..f1967f2 --- /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 + + type: StrictStr + enum: List[StrictStr] + __properties: ClassVar[List[str]] = ["type", "enum"] + + 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({"type": obj.get("type"), "enum": obj.get("enum")}) + 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..34594fc 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,21 +25,22 @@ class Exception(BaseModel): """ - Exception + JSON schema for exceptions based on RFC 7807 """ # noqa: E501 + type: StrictStr + title: Optional[StrictStr] = None + status: Optional[StrictInt] = None detail: Optional[StrictStr] = None instance: Optional[StrictStr] = None - status: Optional[StrictInt] = None - title: Optional[StrictStr] = None - type: StrictStr - additional_properties: Dict[str, Any] = {} + additional_properties: Optional[Dict[str, Any]] = None __properties: ClassVar[List[str]] = [ + "type", + "title", + "status", "detail", "instance", - "status", - "title", - "type", + "additional_properties", ] model_config = ConfigDict( @@ -71,23 +72,23 @@ 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 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 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 # set to None if detail (nullable) is None # and model_fields_set contains the field @@ -99,16 +100,6 @@ def to_dict(self) -> Dict[str, Any]: if self.instance is None and "instance" in self.model_fields_set: _dict["instance"] = None - # 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 - - # 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 @@ -122,16 +113,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { + "type": obj.get("type"), + "title": obj.get("title"), + "status": obj.get("status"), "detail": obj.get("detail"), "instance": obj.get("instance"), - "status": obj.get("status"), - "title": obj.get("title"), - "type": obj.get("type"), + "additional_properties": obj.get("additional_properties"), } ) - # 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..a7ab03c --- /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 + properties: Optional[FieldsModifiersProperties] = None + sort_by: Optional[List[StrictStr]] = Field(default=None, alias="sortBy") + process: Optional[StrictStr] = None + inputs: Optional[Dict[str, InputWorkflows]] = None + outputs: Optional[Dict[str, OutputWorkflows]] = None + subscriber: Optional[Subscriber] = None + __properties: ClassVar[List[str]] = [ + "filter", + "properties", + "sortBy", + "process", + "inputs", + "outputs", + "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 properties + if self.properties: + _dict["properties"] = self.properties.to_dict() + # 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 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 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 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 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 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"), + "properties": ( + FieldsModifiersProperties.from_dict(obj["properties"]) + if obj.get("properties") is not None + else None + ), + "sortBy": obj.get("sortBy"), + "process": obj.get("process"), + "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 + ), + "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..3eea289 --- /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 + + type: StrictStr = Field(description="Type of execution unit.") + image: StrictStr = Field( + description="Container image reference for the execution unit." + ) + deployment: Optional[StrictStr] = None + config: Optional[ExecutionUnitConfig] = None + additional_properties: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = [ + "type", + "image", + "deployment", + "config", + "additional_properties", + ] + + 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 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 + + # 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 + + 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( + { + "type": obj.get("type"), + "image": obj.get("image"), + "deployment": obj.get("deployment"), + "config": ( + ExecutionUnitConfig.from_dict(obj["config"]) + if obj.get("config") is not None + else None + ), + "additional_properties": obj.get("additional_properties"), + } + ) + 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..2c0ba34 --- /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 + + cpu_min: Optional[Cpumin] = Field(default=None, alias="cpuMin") + cpu_max: Optional[Cpumax] = Field(default=None, alias="cpuMax") + memory_min: Optional[Memorymin] = Field(default=None, alias="memoryMin") + memory_max: Optional[Memorymax] = Field(default=None, alias="memoryMax") + storage_temp_min: Optional[Storagetempmin] = Field( + default=None, alias="storageTempMin" + ) + storage_outputs_min: Optional[Storageoutputsmin] = Field( + default=None, alias="storageOutputsMin" + ) + job_timeout: Optional[Jobtimeout] = Field(default=None, alias="jobTimeout") + additional_properties: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = [ + "cpuMin", + "cpuMax", + "memoryMin", + "memoryMax", + "storageTempMin", + "storageOutputsMin", + "jobTimeout", + "additional_properties", + ] + + 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_min + if self.cpu_min: + _dict["cpuMin"] = self.cpu_min.to_dict() + # 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 memory_min + if self.memory_min: + _dict["memoryMin"] = self.memory_min.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 storage_temp_min + if self.storage_temp_min: + _dict["storageTempMin"] = self.storage_temp_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 job_timeout + if self.job_timeout: + _dict["jobTimeout"] = self.job_timeout.to_dict() + # 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 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 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 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 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 + + # 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 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 + + 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( + { + "cpuMin": ( + Cpumin.from_dict(obj["cpuMin"]) + if obj.get("cpuMin") is not None + else None + ), + "cpuMax": ( + Cpumax.from_dict(obj["cpuMax"]) + if obj.get("cpuMax") is not None + else None + ), + "memoryMin": ( + Memorymin.from_dict(obj["memoryMin"]) + if obj.get("memoryMin") is not None + else None + ), + "memoryMax": ( + Memorymax.from_dict(obj["memoryMax"]) + if obj.get("memoryMax") is not None + else None + ), + "storageTempMin": ( + Storagetempmin.from_dict(obj["storageTempMin"]) + if obj.get("storageTempMin") is not None + else None + ), + "storageOutputsMin": ( + Storageoutputsmin.from_dict(obj["storageOutputsMin"]) + if obj.get("storageOutputsMin") is not None + else None + ), + "jobTimeout": ( + Jobtimeout.from_dict(obj["jobTimeout"]) + if obj.get("jobTimeout") is not None + else None + ), + "additional_properties": obj.get("additional_properties"), + } + ) + 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..afe8c5c --- /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 + + media_type: Optional[StrictStr] = Field(default=None, alias="mediaType") + encoding: Optional[StrictStr] = None + var_schema: Optional[FormatSchema] = Field(default=None, alias="schema") + __properties: ClassVar[List[str]] = ["mediaType", "encoding", "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 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 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 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( + { + "mediaType": obj.get("mediaType"), + "encoding": obj.get("encoding"), + "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..77171dc --- /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 + + oneof_schema_1_validator: Optional[StrictStr] = None + oneof_schema_2_validator: Optional[Dict[str, Any]] = None + actual_instance: Optional[StrictStr] = None + one_of_schemas: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = [ + "oneof_schema_1_validator", + "oneof_schema_2_validator", + "actual_instance", + "one_of_schemas", + ] + + 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 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 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 + + 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( + { + "oneof_schema_1_validator": obj.get("oneof_schema_1_validator"), + "oneof_schema_2_validator": obj.get("oneof_schema_2_validator"), + "actual_instance": obj.get("actual_instance"), + "one_of_schemas": obj.get("one_of_schemas"), + } + ) + 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..4ec065f --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/inline_or_ref_data_workflows.py @@ -0,0 +1,177 @@ +# 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.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.link import Link +from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows import ( + QualifiedInputValueWorkflows, +) + + +class InlineOrRefDataWorkflows(BaseModel): + """ + InlineOrRefDataWorkflows + """ # noqa: E501 + + oneof_schema_1_validator: Optional[InputValueNoObjectWorkflows] = None + oneof_schema_2_validator: Optional[QualifiedInputValueWorkflows] = None + oneof_schema_3_validator: Optional[Link] = None + actual_instance: Optional[ActualInstance] = None + one_of_schemas: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = [ + "oneof_schema_1_validator", + "oneof_schema_2_validator", + "oneof_schema_3_validator", + "actual_instance", + "one_of_schemas", + ] + + 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 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() + # 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() + # 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 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 + + 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( + { + "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 + ), + "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"), + } + ) + return _obj + + +# 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..d7657ef --- /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 + + filter: Optional[StrictStr] = None + properties: Optional[FieldsModifiersProperties] = None + sort_by: Optional[List[StrictStr]] = Field(default=None, alias="sortBy") + collection: StrictStr + __properties: ClassVar[List[str]] = ["filter", "properties", "sortBy", "collection"] + + 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( + { + "filter": obj.get("filter"), + "properties": ( + FieldsModifiersProperties.from_dict(obj["properties"]) + if obj.get("properties") is not None + else None + ), + "sortBy": obj.get("sortBy"), + "collection": obj.get("collection"), + } + ) + 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..b7fbd54 --- /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 + + title: Optional[StrictStr] = None + description: Optional[StrictStr] = None + keywords: Optional[List[StrictStr]] = None + metadata: Optional[List[MetadataInput]] = None + var_schema: ModelSchemaInput = Field(alias="schema") + min_occurs: Optional[StrictInt] = Field(default=None, alias="minOccurs") + max_occurs: Optional[StrictInt] = Field(alias="maxOccurs") + value_passing: Optional[List[StrictStr]] = Field(default=None, alias="valuePassing") + __properties: ClassVar[List[str]] = [ + "title", + "description", + "keywords", + "metadata", + "schema", + "minOccurs", + "maxOccurs", + "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 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 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 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 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 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( + { + "title": obj.get("title"), + "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 + ), + "minOccurs": obj.get("minOccurs"), + "maxOccurs": obj.get("maxOccurs"), + "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..25bfeb8 --- /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 + + title: Optional[StrictStr] = None + description: Optional[StrictStr] = None + keywords: Optional[List[StrictStr]] = None + metadata: Optional[List[MetadataOutput]] = None + var_schema: ModelSchemaOutput = Field(alias="schema") + min_occurs: Optional[StrictInt] = Field(default=None, alias="minOccurs") + max_occurs: Optional[StrictInt] = Field(alias="maxOccurs") + value_passing: Optional[List[StrictStr]] = Field(default=None, alias="valuePassing") + __properties: ClassVar[List[str]] = [ + "title", + "description", + "keywords", + "metadata", + "schema", + "minOccurs", + "maxOccurs", + "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 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 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 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 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 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( + { + "title": obj.get("title"), + "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 + ), + "minOccurs": obj.get("minOccurs"), + "maxOccurs": obj.get("maxOccurs"), + "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..f88dc1f --- /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 + + filter: Optional[StrictStr] = None + properties: Optional[FieldsModifiersProperties] = None + sort_by: Optional[List[StrictStr]] = Field(default=None, alias="sortBy") + input: StrictStr = Field(alias="$input") + __properties: ClassVar[List[str]] = ["filter", "properties", "sortBy", "$input"] + + 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( + { + "filter": obj.get("filter"), + "properties": ( + FieldsModifiersProperties.from_dict(obj["properties"]) + if obj.get("properties") is not None + else None + ), + "sortBy": obj.get("sortBy"), + "$input": obj.get("$input"), + } + ) + 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..8ca9fad --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/input_process.py @@ -0,0 +1,196 @@ +# 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_workflows1 import ( + InputWorkflows1, +) +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 + + process: StrictStr = Field( + description="URI to the process execution end point (i.e., `.../processes/{processId}/execution`)" + ) + inputs: Optional[Dict[str, InputWorkflows1]] = None + outputs: Optional[Dict[str, OutputWorkflows1]] = None + subscriber: Optional[Subscriber] = None + filter: Optional[StrictStr] = None + properties: Optional[FieldsModifiersProperties] = None + sort_by: Optional[List[StrictStr]] = Field(default=None, alias="sortBy") + __properties: ClassVar[List[str]] = [ + "process", + "inputs", + "outputs", + "subscriber", + "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 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 subscriber + if self.subscriber: + _dict["subscriber"] = self.subscriber.to_dict() + # 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 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 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 + + # 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 InputProcess from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "process": obj.get("process"), + "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 + ), + "subscriber": ( + Subscriber.from_dict(obj["subscriber"]) + if obj.get("subscriber") is not None + else None + ), + "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 + + +# 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..a09d6ac 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 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)) + actual_instance: Optional[Any] = None + any_of_schemas: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = [ + "anyof_schema_1_validator", + "anyof_schema_2_validator", + "actual_instance", + "any_of_schemas", + ] + + 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 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()) + # 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 + + 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( + { + "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"), + "actual_instance": obj.get("actual_instance"), + "any_of_schemas": obj.get("any_of_schemas"), + } + ) + 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..14fbb6d 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 + + 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 + actual_instance: Optional[Any] = None + one_of_schemas: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = [ + "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", + "actual_instance", + "one_of_schemas", + ] + + 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 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 + + # 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 + + 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( + { + "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 + ), + "actual_instance": obj.get("actual_instance"), + "one_of_schemas": obj.get("one_of_schemas"), + } + ) + 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..ade09b7 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 + + 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 + actual_instance: Optional[Any] = None + one_of_schemas: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = [ + "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", + "actual_instance", + "one_of_schemas", + ] + + 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 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 + + # 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 + + 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( + { + "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 + ), + "actual_instance": obj.get("actual_instance"), + "one_of_schemas": obj.get("one_of_schemas"), + } + ) + 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..870cc74 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/input_value_no_object_workflows.py @@ -0,0 +1,280 @@ +# 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.actual_instance1 import ( + ActualInstance1, +) +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.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 + + 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 + oneof_schema_10_validator: Optional[InputParameterized] = None + actual_instance: Optional[ActualInstance1] = None + one_of_schemas: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = [ + "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", + "oneof_schema_10_validator", + "actual_instance", + "one_of_schemas", + ] + + 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 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() + # 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 actual_instance + if self.actual_instance: + _dict["actual_instance"] = self.actual_instance.to_dict() + # 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 + + # 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 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 + + 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( + { + "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 + ), + "oneof_schema_10_validator": ( + InputParameterized.from_dict(obj["oneof_schema_10_validator"]) + if obj.get("oneof_schema_10_validator") is not None + else None + ), + "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"), + } + ) + return _obj + + +# 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..e1a2344 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 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)) + actual_instance: Optional[Any] = None + any_of_schemas: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = [ + "anyof_schema_1_validator", + "anyof_schema_2_validator", + "actual_instance", + "any_of_schemas", + ] + + 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 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()) + # 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 + + 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( + { + "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"), + "actual_instance": obj.get("actual_instance"), + "any_of_schemas": obj.get("any_of_schemas"), + } + ) + 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..969e8ad --- /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 + +from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows import ( + InputValueNoObjectWorkflows, +) + + +class InputValueWorkflows(BaseModel): + """ + InputValueWorkflows + """ # noqa: E501 + + oneof_schema_1_validator: Optional[InputValueNoObjectWorkflows] = None + oneof_schema_2_validator: Optional[Dict[str, Any]] = None + actual_instance: Optional[InputValueNoObjectWorkflows] = None + one_of_schemas: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = [ + "oneof_schema_1_validator", + "oneof_schema_2_validator", + "actual_instance", + "one_of_schemas", + ] + + 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 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 actual_instance + if self.actual_instance: + _dict["actual_instance"] = self.actual_instance.to_dict() + # 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 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 + + 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( + { + "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"), + "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"), + } + ) + return _obj + + +# 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..04f39f2 --- /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 + +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, +) + + +class InputWorkflows1(BaseModel): + """ + InputWorkflows1 + """ # noqa: E501 + + oneof_schema_1_validator: Optional[InlineOrRefDataWorkflows] = None + oneof_schema_2_validator: Optional[List[InlineOrRefDataWorkflows]] = None + actual_instance: Optional[ActualInstance2] = None + one_of_schemas: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = [ + "oneof_schema_1_validator", + "oneof_schema_2_validator", + "actual_instance", + "one_of_schemas", + ] + + 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 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 + # 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() + # 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 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 + + 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( + { + "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 + ), + "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"), + } + ) + return _obj + + +# 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..d966e73 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. @@ -30,11 +30,11 @@ class LandingPage(BaseModel): LandingPage """ # noqa: E501 - attribution: Optional[StrictStr] = None + title: Optional[StrictStr] = None description: Optional[StrictStr] = None + attribution: Optional[StrictStr] = None links: List[Link] - title: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["attribution", "description", "links", "title"] + __properties: ClassVar[List[str]] = ["title", "description", "attribution", "links"] model_config = ConfigDict( populate_by_name=True, @@ -80,20 +80,20 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict["links"] = _items - # set to None if attribution (nullable) is None + # set to None if title (nullable) is None # and model_fields_set contains the field - if self.attribution is None and "attribution" in self.model_fields_set: - _dict["attribution"] = None + if self.title is None and "title" in self.model_fields_set: + _dict["title"] = 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 title (nullable) is None + # set to None if attribution (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 + if self.attribution is None and "attribution" in self.model_fields_set: + _dict["attribution"] = None return _dict @@ -108,14 +108,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "attribution": obj.get("attribution"), + "title": obj.get("title"), "description": obj.get("description"), + "attribution": obj.get("attribution"), "links": ( [Link.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None ), - "title": obj.get("title"), } ) return _obj 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..895edf9 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. @@ -29,11 +29,11 @@ class Link(BaseModel): """ # noqa: E501 href: StrictStr - hreflang: Optional[StrictStr] = None rel: Optional[StrictStr] = None - title: Optional[StrictStr] = None type: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["href", "hreflang", "rel", "title", "type"] + hreflang: Optional[StrictStr] = None + title: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["href", "rel", "type", "hreflang", "title"] model_config = ConfigDict( populate_by_name=True, @@ -72,26 +72,26 @@ def to_dict(self) -> Dict[str, Any]: 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 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 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 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 @@ -106,10 +106,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { "href": obj.get("href"), - "hreflang": obj.get("hreflang"), "rel": obj.get("rel"), - "title": obj.get("title"), "type": obj.get("type"), + "hreflang": obj.get("hreflang"), + "title": obj.get("title"), } ) return _obj 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..cb763ce --- /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 + rel: Optional[StrictStr] = None + type: Optional[StrictStr] = None + hreflang: Optional[StrictStr] = None + title: Optional[StrictStr] = None + role: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = [ + "href", + "rel", + "type", + "hreflang", + "title", + "role", + ] + + 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 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 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 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 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 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 + + 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"), + "rel": obj.get("rel"), + "type": obj.get("type"), + "hreflang": obj.get("hreflang"), + "title": obj.get("title"), + "role": obj.get("role"), + } + ) + 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..8be635e --- /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 + + role: Optional[StrictStr] = None + title: Optional[StrictStr] = None + lang: Optional[StrictStr] = None + value: Optional[MetadataOneOf1Value] = None + __properties: ClassVar[List[str]] = ["role", "title", "lang", "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 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 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 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( + { + "role": obj.get("role"), + "title": obj.get("title"), + "lang": obj.get("lang"), + "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..bd2a5d1 --- /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 + + oneof_schema_1_validator: Optional[StrictStr] = None + oneof_schema_2_validator: Optional[Dict[str, Any]] = None + actual_instance: Optional[StrictStr] = None + one_of_schemas: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = [ + "oneof_schema_1_validator", + "oneof_schema_2_validator", + "actual_instance", + "one_of_schemas", + ] + + 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 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 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 + + 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( + { + "oneof_schema_1_validator": obj.get("oneof_schema_1_validator"), + "oneof_schema_2_validator": obj.get("oneof_schema_2_validator"), + "actual_instance": obj.get("actual_instance"), + "one_of_schemas": obj.get("one_of_schemas"), + } + ) + 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..fd62945 --- /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 + + process_description: ProcessInput = Field(alias="processDescription") + execution_unit: OgcapppkgExecutionUnit = Field(alias="executionUnit") + __properties: ClassVar[List[str]] = ["processDescription", "executionUnit"] + + 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 process_description + if self.process_description: + _dict["processDescription"] = self.process_description.to_dict() + # override the default output from pydantic by calling `to_dict()` of execution_unit + if self.execution_unit: + _dict["executionUnit"] = self.execution_unit.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( + { + "processDescription": ( + ProcessInput.from_dict(obj["processDescription"]) + if obj.get("processDescription") is not None + else None + ), + "executionUnit": ( + OgcapppkgExecutionUnit.from_dict(obj["executionUnit"]) + if obj.get("executionUnit") 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..b8c90b0 --- /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 + + title: Optional[StrictStr] = None + description: Optional[StrictStr] = None + keywords: Optional[List[StrictStr]] = None + metadata: Optional[List[MetadataInput]] = None + var_schema: ModelSchemaInput = Field(alias="schema") + __properties: ClassVar[List[str]] = [ + "title", + "description", + "keywords", + "metadata", + "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 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 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 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 + + 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( + { + "title": obj.get("title"), + "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 + ), + } + ) + 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..17d2499 --- /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 + + title: Optional[StrictStr] = None + description: Optional[StrictStr] = None + keywords: Optional[List[StrictStr]] = None + metadata: Optional[List[MetadataOutput]] = None + var_schema: ModelSchemaOutput = Field(alias="schema") + __properties: ClassVar[List[str]] = [ + "title", + "description", + "keywords", + "metadata", + "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 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 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 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 + + 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( + { + "title": obj.get("title"), + "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 + ), + } + ) + 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..ee78866 --- /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 + + format: Optional[Format] = None + output: Optional[StrictStr] = Field(default=None, alias="$output") + __properties: ClassVar[List[str]] = ["format", "$output"] + + 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 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 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 + + 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( + { + "format": ( + Format.from_dict(obj["format"]) + if obj.get("format") is not None + else None + ), + "$output": obj.get("$output"), + } + ) + 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..afd4780 --- /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 + + format: Optional[Format] = None + output: Optional[StrictStr] = Field(default=None, alias="$output") + __properties: ClassVar[List[str]] = ["format", "$output"] + + 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 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 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 + + 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( + { + "format": ( + Format.from_dict(obj["format"]) + if obj.get("format") is not None + else None + ), + "$output": obj.get("$output"), + } + ) + 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..9f463b6 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,44 +22,49 @@ 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 + title: Optional[StrictStr] = None description: Optional[StrictStr] = None + keywords: Optional[List[StrictStr]] = None + metadata: Optional[List[MetadataInput]] = None id: StrictStr - inputs: Optional[List[InputValueInput]] = None + version: 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[Metadata]] = None - outputs: Optional[List[InputValueInput]] = None - title: Optional[StrictStr] = None - version: StrictStr + inputs: Optional[Dict[str, InputDescriptionInput]] = None + outputs: Optional[Dict[str, OutputDescriptionInput]] = None __properties: ClassVar[List[str]] = [ + "title", "description", + "keywords", + "metadata", "id", - "inputs", + "version", "jobControlOptions", - "keywords", "links", - "metadata", + "inputs", "outputs", - "title", - "version", ] model_config = ConfigDict( @@ -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) + # override the default output from pydantic by calling `to_dict()` of each item in metadata (list) _items = [] - if self.inputs: - for _item in self.inputs: + if self.metadata: + for _item in self.metadata: if _item: _items.append(_item.to_dict()) - _dict["inputs"] = _items + _dict["metadata"] = _items # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] if self.links: @@ -113,29 +118,39 @@ def to_dict(self) -> Dict[str, Any]: 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 - # 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 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 _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 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 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 inputs (nullable) is None + # set to None if keywords (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 + 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 job_control_options (nullable) is None # and model_fields_set contains the field @@ -145,31 +160,21 @@ def to_dict(self) -> Dict[str, Any]: ): _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 + # set to None if inputs (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 + 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 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 @@ -183,32 +188,38 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { + "title": obj.get("title"), "description": obj.get("description"), - "id": obj.get("id"), - "inputs": ( - [InputValueInput.from_dict(_item) for _item in obj["inputs"]] - if obj.get("inputs") is not None + "keywords": obj.get("keywords"), + "metadata": ( + [MetadataInput.from_dict(_item) for _item in obj["metadata"]] + if obj.get("metadata") is not None else None ), + "id": obj.get("id"), + "version": obj.get("version"), "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": ( - [Metadata.from_dict(_item) for _item in obj["metadata"]] - if obj.get("metadata") is not None + "inputs": ( + dict( + (_k, InputDescriptionInput.from_dict(_v)) + for _k, _v in obj["inputs"].items() + ) + if obj.get("inputs") 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 ), - "title": obj.get("title"), - "version": obj.get("version"), } ) return _obj 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..710bc95 --- /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 + + processes: List[ProcessSummaryInput] + links: List[Link] + __properties: ClassVar[List[str]] = ["processes", "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 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 processes (list) + _items = [] + if self.processes: + for _item in self.processes: + if _item: + _items.append(_item.to_dict()) + _dict["processes"] = _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 ProcessListInput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "processes": ( + [ProcessSummaryInput.from_dict(_item) for _item in obj["processes"]] + if obj.get("processes") 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/process_list_output.py b/unity_sps_ogc_processes_api_python_client/models/process_list_output.py new file mode 100644 index 0000000..f7143ee --- /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 + + processes: List[ProcessSummaryOutput] + links: List[Link] + __properties: ClassVar[List[str]] = ["processes", "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 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 processes (list) + _items = [] + if self.processes: + for _item in self.processes: + if _item: + _items.append(_item.to_dict()) + _dict["processes"] = _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 ProcessListOutput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "processes": ( + [ + ProcessSummaryOutput.from_dict(_item) + for _item in obj["processes"] + ] + if obj.get("processes") 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/process_output.py b/unity_sps_ogc_processes_api_python_client/models/process_output.py index 21e3c1e..6de41e8 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,44 +22,49 @@ 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 + title: Optional[StrictStr] = None description: Optional[StrictStr] = None + keywords: Optional[List[StrictStr]] = None + metadata: Optional[List[MetadataOutput]] = None id: StrictStr - inputs: Optional[List[InputValueOutput]] = None + version: 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[Metadata]] = None - outputs: Optional[List[InputValueOutput]] = None - title: Optional[StrictStr] = None - version: StrictStr + inputs: Optional[Dict[str, InputDescriptionOutput]] = None + outputs: Optional[Dict[str, OutputDescriptionOutput]] = None __properties: ClassVar[List[str]] = [ + "title", "description", + "keywords", + "metadata", "id", - "inputs", + "version", "jobControlOptions", - "keywords", "links", - "metadata", + "inputs", "outputs", - "title", - "version", ] model_config = ConfigDict( @@ -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) + # override the default output from pydantic by calling `to_dict()` of each item in metadata (list) _items = [] - if self.inputs: - for _item in self.inputs: + if self.metadata: + for _item in self.metadata: if _item: _items.append(_item.to_dict()) - _dict["inputs"] = _items + _dict["metadata"] = _items # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] if self.links: @@ -113,29 +118,39 @@ def to_dict(self) -> Dict[str, Any]: 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 - # 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 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 _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 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 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 inputs (nullable) is None + # set to None if keywords (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 + 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 job_control_options (nullable) is None # and model_fields_set contains the field @@ -145,31 +160,21 @@ def to_dict(self) -> Dict[str, Any]: ): _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 + # set to None if inputs (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 + 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 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 @@ -183,32 +188,38 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { + "title": obj.get("title"), "description": obj.get("description"), - "id": obj.get("id"), - "inputs": ( - [InputValueOutput.from_dict(_item) for _item in obj["inputs"]] - if obj.get("inputs") is not None + "keywords": obj.get("keywords"), + "metadata": ( + [MetadataOutput.from_dict(_item) for _item in obj["metadata"]] + if obj.get("metadata") is not None else None ), + "id": obj.get("id"), + "version": obj.get("version"), "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": ( - [Metadata.from_dict(_item) for _item in obj["metadata"]] - if obj.get("metadata") is not None + "inputs": ( + dict( + (_k, InputDescriptionOutput.from_dict(_v)) + for _k, _v in obj["inputs"].items() + ) + if obj.get("inputs") 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 ), - "title": obj.get("title"), - "version": obj.get("version"), } ) return _obj 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..878f868 --- /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 + + title: Optional[StrictStr] = None + description: Optional[StrictStr] = None + keywords: Optional[List[StrictStr]] = None + metadata: Optional[List[MetadataInput]] = None + id: StrictStr + version: StrictStr + job_control_options: Optional[List[JobControlOptions]] = Field( + default=None, alias="jobControlOptions" + ) + links: Optional[List[Link]] = None + __properties: ClassVar[List[str]] = [ + "title", + "description", + "keywords", + "metadata", + "id", + "version", + "jobControlOptions", + "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 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 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 each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict["links"] = _items + # 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 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 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 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 + + 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( + { + "title": obj.get("title"), + "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 + ), + "id": obj.get("id"), + "version": obj.get("version"), + "jobControlOptions": obj.get("jobControlOptions"), + "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/process_summary_output.py b/unity_sps_ogc_processes_api_python_client/models/process_summary_output.py new file mode 100644 index 0000000..1211304 --- /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 + + title: Optional[StrictStr] = None + description: Optional[StrictStr] = None + keywords: Optional[List[StrictStr]] = None + metadata: Optional[List[MetadataOutput]] = None + id: StrictStr + version: StrictStr + job_control_options: Optional[List[JobControlOptions]] = Field( + default=None, alias="jobControlOptions" + ) + links: Optional[List[Link]] = None + __properties: ClassVar[List[str]] = [ + "title", + "description", + "keywords", + "metadata", + "id", + "version", + "jobControlOptions", + "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 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 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 each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict["links"] = _items + # 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 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 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 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 + + 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( + { + "title": obj.get("title"), + "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 + ), + "id": obj.get("id"), + "version": obj.get("version"), + "jobControlOptions": obj.get("jobControlOptions"), + "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/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..addc586 --- /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 + + media_type: Optional[StrictStr] = Field(default=None, alias="mediaType") + encoding: Optional[StrictStr] = None + var_schema: Optional[FormatSchema] = Field(default=None, alias="schema") + value: InputValueInput + __properties: ClassVar[List[str]] = ["mediaType", "encoding", "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 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 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 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( + { + "mediaType": obj.get("mediaType"), + "encoding": obj.get("encoding"), + "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..5e95d4b --- /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 + + media_type: Optional[StrictStr] = Field(default=None, alias="mediaType") + encoding: Optional[StrictStr] = None + var_schema: Optional[FormatSchema] = Field(default=None, alias="schema") + value: InputValueOutput + __properties: ClassVar[List[str]] = ["mediaType", "encoding", "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 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 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 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( + { + "mediaType": obj.get("mediaType"), + "encoding": obj.get("encoding"), + "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..302400a --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/qualified_input_value_workflows.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, 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 +from unity_sps_ogc_processes_api_python_client.models.input_value_workflows import ( + InputValueWorkflows, +) + + +class QualifiedInputValueWorkflows(BaseModel): + """ + QualifiedInputValueWorkflows + """ # noqa: E501 + + media_type: Optional[StrictStr] = Field(default=None, alias="mediaType") + encoding: Optional[StrictStr] = None + var_schema: Optional[FormatSchema] = Field(default=None, alias="schema") + filter: Optional[StrictStr] = None + properties: Optional[FieldsModifiersProperties] = None + sort_by: Optional[List[StrictStr]] = Field(default=None, alias="sortBy") + value: InputValueWorkflows + __properties: ClassVar[List[str]] = [ + "mediaType", + "encoding", + "schema", + "filter", + "properties", + "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 var_schema + if self.var_schema: + _dict["schema"] = self.var_schema.to_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 value + if self.value: + _dict["value"] = self.value.to_dict() + # 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 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 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 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 QualifiedInputValueWorkflows from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "mediaType": obj.get("mediaType"), + "encoding": obj.get("encoding"), + "schema": ( + FormatSchema.from_dict(obj["schema"]) + if obj.get("schema") is not None + else None + ), + "filter": obj.get("filter"), + "properties": ( + FieldsModifiersProperties.from_dict(obj["properties"]) + if obj.get("properties") 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 + + +# 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..094845b --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/schema1_input.py @@ -0,0 +1,152 @@ +# 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.actual_instance3 import ( + ActualInstance3, +) +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, +) + + +class Schema1Input(BaseModel): + """ + Schema1 + """ # noqa: E501 + + oneof_schema_1_validator: Optional[Reference] = None + oneof_schema_2_validator: Optional[SchemaOneOfInput] = None + actual_instance: Optional[ActualInstance3] = None + one_of_schemas: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = [ + "oneof_schema_1_validator", + "oneof_schema_2_validator", + "actual_instance", + "one_of_schemas", + ] + + 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 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 actual_instance + if self.actual_instance: + _dict["actual_instance"] = self.actual_instance.to_dict() + # 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 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 + + 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( + { + "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 + ), + "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"), + } + ) + return _obj + + +# 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..7df6b43 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/schema1_output.py @@ -0,0 +1,152 @@ +# 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.actual_instance4 import ( + ActualInstance4, +) +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, +) + + +class Schema1Output(BaseModel): + """ + Schema1 + """ # noqa: E501 + + oneof_schema_1_validator: Optional[Reference] = None + oneof_schema_2_validator: Optional[SchemaOneOfOutput] = None + actual_instance: Optional[ActualInstance4] = None + one_of_schemas: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = [ + "oneof_schema_1_validator", + "oneof_schema_2_validator", + "actual_instance", + "one_of_schemas", + ] + + 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 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 actual_instance + if self.actual_instance: + _dict["actual_instance"] = self.actual_instance.to_dict() + # 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 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 + + 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( + { + "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 + ), + "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"), + } + ) + return _obj + + +# 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..ed20ced --- /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 + +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 + + +class SchemaOneOfAdditionalPropertiesInput(BaseModel): + """ + SchemaOneOfAdditionalProperties + """ # noqa: E501 + + oneof_schema_1_validator: Optional[Schema1Input] = None + oneof_schema_2_validator: Optional[StrictBool] = None + actual_instance: Optional[ActualInstance5] = None + one_of_schemas: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = [ + "oneof_schema_1_validator", + "oneof_schema_2_validator", + "actual_instance", + "one_of_schemas", + ] + + 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 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 actual_instance + if self.actual_instance: + _dict["actual_instance"] = self.actual_instance.to_dict() + # 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 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 + + 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( + { + "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"), + "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"), + } + ) + return _obj + + +# 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..c600d14 --- /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 + +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, +) + + +class SchemaOneOfAdditionalPropertiesOutput(BaseModel): + """ + SchemaOneOfAdditionalProperties + """ # noqa: E501 + + oneof_schema_1_validator: Optional[Schema1Output] = None + oneof_schema_2_validator: Optional[StrictBool] = None + actual_instance: Optional[ActualInstance6] = None + one_of_schemas: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = [ + "oneof_schema_1_validator", + "oneof_schema_2_validator", + "actual_instance", + "one_of_schemas", + ] + + 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 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 actual_instance + if self.actual_instance: + _dict["actual_instance"] = self.actual_instance.to_dict() + # 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 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 + + 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( + { + "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"), + "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"), + } + ) + return _obj + + +# 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..9f07bc3 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/schema_one_of_input.py @@ -0,0 +1,504 @@ +# 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 +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, +) + + +class SchemaOneOfInput(BaseModel): + """ + SchemaOneOf + """ # noqa: E501 + + title: Optional[StrictStr] = None + multiple_of: Optional[Multipleof] = Field(default=None, alias="multipleOf") + maximum: Optional[Maximum] = None + exclusive_maximum: Optional[StrictBool] = Field( + default=None, alias="exclusiveMaximum" + ) + minimum: Optional[Minimum] = None + exclusive_minimum: Optional[StrictBool] = Field( + default=None, alias="exclusiveMinimum" + ) + max_length: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="maxLength" + ) + min_length: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="minLength" + ) + pattern: Optional[StrictStr] = None + max_items: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="maxItems" + ) + min_items: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="minItems" + ) + unique_items: Optional[StrictBool] = Field(default=None, alias="uniqueItems") + max_properties: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="maxProperties" + ) + min_properties: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="minProperties" + ) + required: Optional[Annotated[List[StrictStr], Field(min_length=1)]] = None + enum: Optional[Annotated[List[Dict[str, Any]], Field(min_length=1)]] = None + type: Optional[StrictStr] = None + var_not: Optional[Schema1Input] = Field(default=None, alias="not") + all_of: Optional[List[Schema1Input]] = Field(default=None, alias="allOf") + one_of: Optional[List[Schema1Input]] = Field(default=None, alias="oneOf") + any_of: Optional[List[Schema1Input]] = Field(default=None, alias="anyOf") + items: Optional[Schema1Input] = None + properties: Optional[Dict[str, Schema1Input]] = None + additional_properties: Optional[SchemaOneOfAdditionalPropertiesInput] = Field( + default=None, alias="additionalProperties" + ) + description: Optional[StrictStr] = None + format: Optional[StrictStr] = None + default: Optional[Dict[str, Any]] = None + nullable: Optional[StrictBool] = None + read_only: Optional[StrictBool] = Field(default=None, alias="readOnly") + write_only: Optional[StrictBool] = Field(default=None, alias="writeOnly") + example: Optional[Dict[str, Any]] = None + deprecated: Optional[StrictBool] = None + content_media_type: Optional[StrictStr] = Field( + default=None, alias="contentMediaType" + ) + content_encoding: Optional[StrictStr] = Field(default=None, alias="contentEncoding") + content_schema: Optional[StrictStr] = Field(default=None, alias="contentSchema") + __properties: ClassVar[List[str]] = [ + "title", + "multipleOf", + "maximum", + "exclusiveMaximum", + "minimum", + "exclusiveMinimum", + "maxLength", + "minLength", + "pattern", + "maxItems", + "minItems", + "uniqueItems", + "maxProperties", + "minProperties", + "required", + "enum", + "type", + "not", + "allOf", + "oneOf", + "anyOf", + "items", + "properties", + "additionalProperties", + "description", + "format", + "default", + "nullable", + "readOnly", + "writeOnly", + "example", + "deprecated", + "contentMediaType", + "contentEncoding", + "contentSchema", + ] + + 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 multiple_of + if self.multiple_of: + _dict["multipleOf"] = self.multiple_of.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 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 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 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 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 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 + # override the default output from pydantic by calling `to_dict()` of additional_properties + if self.additional_properties: + _dict["additionalProperties"] = self.additional_properties.to_dict() + # 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 + + # 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 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 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_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_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 + + 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( + { + "title": obj.get("title"), + "multipleOf": ( + Multipleof.from_dict(obj["multipleOf"]) + if obj.get("multipleOf") is not None + else None + ), + "maximum": ( + Maximum.from_dict(obj["maximum"]) + if obj.get("maximum") is not None + else None + ), + "exclusiveMaximum": obj.get("exclusiveMaximum"), + "minimum": ( + Minimum.from_dict(obj["minimum"]) + if obj.get("minimum") is not None + else None + ), + "exclusiveMinimum": obj.get("exclusiveMinimum"), + "maxLength": obj.get("maxLength"), + "minLength": obj.get("minLength"), + "pattern": obj.get("pattern"), + "maxItems": obj.get("maxItems"), + "minItems": obj.get("minItems"), + "uniqueItems": obj.get("uniqueItems"), + "maxProperties": obj.get("maxProperties"), + "minProperties": obj.get("minProperties"), + "required": obj.get("required"), + "enum": obj.get("enum"), + "type": obj.get("type"), + "not": ( + Schema1Input.from_dict(obj["not"]) + if obj.get("not") is not None + else None + ), + "allOf": ( + [Schema1Input.from_dict(_item) for _item in obj["allOf"]] + if obj.get("allOf") is not None + else None + ), + "oneOf": ( + [Schema1Input.from_dict(_item) for _item in obj["oneOf"]] + if obj.get("oneOf") is not None + else None + ), + "anyOf": ( + [Schema1Input.from_dict(_item) for _item in obj["anyOf"]] + if obj.get("anyOf") is not None + else None + ), + "items": ( + Schema1Input.from_dict(obj["items"]) + if obj.get("items") is not None + else None + ), + "properties": ( + dict( + (_k, Schema1Input.from_dict(_v)) + for _k, _v in obj["properties"].items() + ) + if obj.get("properties") is not None + else None + ), + "additionalProperties": ( + SchemaOneOfAdditionalPropertiesInput.from_dict( + obj["additionalProperties"] + ) + if obj.get("additionalProperties") is not None + else None + ), + "description": obj.get("description"), + "format": obj.get("format"), + "default": obj.get("default"), + "nullable": obj.get("nullable"), + "readOnly": obj.get("readOnly"), + "writeOnly": obj.get("writeOnly"), + "example": obj.get("example"), + "deprecated": obj.get("deprecated"), + "contentMediaType": obj.get("contentMediaType"), + "contentEncoding": obj.get("contentEncoding"), + "contentSchema": obj.get("contentSchema"), + } + ) + return _obj + + +# 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..99a1454 --- /dev/null +++ b/unity_sps_ogc_processes_api_python_client/models/schema_one_of_output.py @@ -0,0 +1,506 @@ +# 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 +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, +) + + +class SchemaOneOfOutput(BaseModel): + """ + SchemaOneOf + """ # noqa: E501 + + title: Optional[StrictStr] = None + multiple_of: Optional[Multipleof] = Field(default=None, alias="multipleOf") + maximum: Optional[Maximum] = None + exclusive_maximum: Optional[StrictBool] = Field( + default=None, alias="exclusiveMaximum" + ) + minimum: Optional[Minimum] = None + exclusive_minimum: Optional[StrictBool] = Field( + default=None, alias="exclusiveMinimum" + ) + max_length: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="maxLength" + ) + min_length: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="minLength" + ) + pattern: Optional[StrictStr] = None + max_items: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="maxItems" + ) + min_items: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="minItems" + ) + unique_items: Optional[StrictBool] = Field(default=None, alias="uniqueItems") + max_properties: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="maxProperties" + ) + min_properties: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( + default=None, alias="minProperties" + ) + required: Optional[Annotated[List[StrictStr], Field(min_length=1)]] = None + enum: Optional[Annotated[List[Dict[str, Any]], Field(min_length=1)]] = None + type: Optional[StrictStr] = None + var_not: Optional[Schema1Output] = Field(default=None, alias="not") + all_of: Optional[List[Schema1Output]] = Field(default=None, alias="allOf") + one_of: Optional[List[Schema1Output]] = Field(default=None, alias="oneOf") + any_of: Optional[List[Schema1Output]] = Field(default=None, alias="anyOf") + items: Optional[Schema1Output] = None + properties: Optional[Dict[str, Schema1Output]] = None + additional_properties: Optional[SchemaOneOfAdditionalPropertiesOutput] = Field( + default=None, alias="additionalProperties" + ) + description: Optional[StrictStr] = None + format: Optional[StrictStr] = None + default: Optional[Dict[str, Any]] = None + nullable: Optional[StrictBool] = None + read_only: Optional[StrictBool] = Field(default=None, alias="readOnly") + write_only: Optional[StrictBool] = Field(default=None, alias="writeOnly") + example: Optional[Dict[str, Any]] = None + deprecated: Optional[StrictBool] = None + content_media_type: Optional[StrictStr] = Field( + default=None, alias="contentMediaType" + ) + content_encoding: Optional[StrictStr] = Field(default=None, alias="contentEncoding") + content_schema: Optional[StrictStr] = Field(default=None, alias="contentSchema") + __properties: ClassVar[List[str]] = [ + "title", + "multipleOf", + "maximum", + "exclusiveMaximum", + "minimum", + "exclusiveMinimum", + "maxLength", + "minLength", + "pattern", + "maxItems", + "minItems", + "uniqueItems", + "maxProperties", + "minProperties", + "required", + "enum", + "type", + "not", + "allOf", + "oneOf", + "anyOf", + "items", + "properties", + "additionalProperties", + "description", + "format", + "default", + "nullable", + "readOnly", + "writeOnly", + "example", + "deprecated", + "contentMediaType", + "contentEncoding", + "contentSchema", + ] + + 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 multiple_of + if self.multiple_of: + _dict["multipleOf"] = self.multiple_of.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 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 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 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 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 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 + # override the default output from pydantic by calling `to_dict()` of additional_properties + if self.additional_properties: + _dict["additionalProperties"] = self.additional_properties.to_dict() + # 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 + + # 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 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 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_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_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 + + 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( + { + "title": obj.get("title"), + "multipleOf": ( + Multipleof.from_dict(obj["multipleOf"]) + if obj.get("multipleOf") is not None + else None + ), + "maximum": ( + Maximum.from_dict(obj["maximum"]) + if obj.get("maximum") is not None + else None + ), + "exclusiveMaximum": obj.get("exclusiveMaximum"), + "minimum": ( + Minimum.from_dict(obj["minimum"]) + if obj.get("minimum") is not None + else None + ), + "exclusiveMinimum": obj.get("exclusiveMinimum"), + "maxLength": obj.get("maxLength"), + "minLength": obj.get("minLength"), + "pattern": obj.get("pattern"), + "maxItems": obj.get("maxItems"), + "minItems": obj.get("minItems"), + "uniqueItems": obj.get("uniqueItems"), + "maxProperties": obj.get("maxProperties"), + "minProperties": obj.get("minProperties"), + "required": obj.get("required"), + "enum": obj.get("enum"), + "type": obj.get("type"), + "not": ( + Schema1Output.from_dict(obj["not"]) + if obj.get("not") is not None + else None + ), + "allOf": ( + [Schema1Output.from_dict(_item) for _item in obj["allOf"]] + if obj.get("allOf") is not None + else None + ), + "oneOf": ( + [Schema1Output.from_dict(_item) for _item in obj["oneOf"]] + if obj.get("oneOf") is not None + else None + ), + "anyOf": ( + [Schema1Output.from_dict(_item) for _item in obj["anyOf"]] + if obj.get("anyOf") is not None + else None + ), + "items": ( + Schema1Output.from_dict(obj["items"]) + if obj.get("items") is not None + else None + ), + "properties": ( + dict( + (_k, Schema1Output.from_dict(_v)) + for _k, _v in obj["properties"].items() + ) + if obj.get("properties") is not None + else None + ), + "additionalProperties": ( + SchemaOneOfAdditionalPropertiesOutput.from_dict( + obj["additionalProperties"] + ) + if obj.get("additionalProperties") is not None + else None + ), + "description": obj.get("description"), + "format": obj.get("format"), + "default": obj.get("default"), + "nullable": obj.get("nullable"), + "readOnly": obj.get("readOnly"), + "writeOnly": obj.get("writeOnly"), + "example": obj.get("example"), + "deprecated": obj.get("deprecated"), + "contentMediaType": obj.get("contentMediaType"), + "contentEncoding": obj.get("contentEncoding"), + "contentSchema": obj.get("contentSchema"), + } + ) + return _obj + + +# 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..937da0a 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. @@ -33,31 +33,31 @@ class StatusInfo(BaseModel): StatusInfo """ # noqa: E501 - created: Optional[datetime] = None - exception: Optional[Exception] = None - finished: Optional[datetime] = None + process_id: Optional[StrictStr] = Field(default=None, alias="processID") + type: StrictStr job_id: StrictStr = Field(alias="jobID") - links: Optional[List[Link]] = None + status: StatusCode message: Optional[StrictStr] = None - process_id: Optional[StrictStr] = Field(default=None, alias="processID") - progress: Optional[Annotated[int, Field(le=100, strict=True, ge=0)]] = None + exception: Optional[Exception] = None + created: Optional[datetime] = None started: Optional[datetime] = None - status: StatusCode - type: Optional[Any] + finished: Optional[datetime] = None updated: Optional[datetime] = None + progress: Optional[Annotated[int, Field(le=100, strict=True, ge=0)]] = None + links: Optional[List[Link]] = None __properties: ClassVar[List[str]] = [ - "created", - "exception", - "finished", + "processID", + "type", "jobID", - "links", + "status", "message", - "processID", - "progress", + "exception", + "created", "started", - "status", - "type", + "finished", "updated", + "progress", + "links", ] model_config = ConfigDict( @@ -107,56 +107,51 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict["links"] = _items - # set to None if created (nullable) is None - # and model_fields_set contains the field - if self.created is None and "created" in self.model_fields_set: - _dict["created"] = None - - # set to None if exception (nullable) is None - # and model_fields_set contains the field - if self.exception is None and "exception" in self.model_fields_set: - _dict["exception"] = None - - # set to None if finished (nullable) is None - # and model_fields_set contains the field - if self.finished is None and "finished" in self.model_fields_set: - _dict["finished"] = None - - # set to None if links (nullable) is None + # set to None if process_id (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 + if self.process_id is None and "process_id" in self.model_fields_set: + _dict["processID"] = None # set to None if message (nullable) is None # and model_fields_set contains the field if self.message is None and "message" in self.model_fields_set: _dict["message"] = None - # set to None if process_id (nullable) is None + # set to None if exception (nullable) is None # and model_fields_set contains the field - if self.process_id is None and "process_id" in self.model_fields_set: - _dict["processID"] = None + if self.exception is None and "exception" in self.model_fields_set: + _dict["exception"] = None - # set to None if progress (nullable) is None + # set to None if created (nullable) is None # and model_fields_set contains the field - if self.progress is None and "progress" in self.model_fields_set: - _dict["progress"] = None + if self.created is None and "created" in self.model_fields_set: + _dict["created"] = None # set to None if started (nullable) is None # and model_fields_set contains the field if self.started is None and "started" in self.model_fields_set: _dict["started"] = None - # set to None if type (nullable) is None + # set to None if finished (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 + if self.finished is None and "finished" in self.model_fields_set: + _dict["finished"] = 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: _dict["updated"] = None + # set to None if progress (nullable) is None + # and model_fields_set contains the field + if self.progress is None and "progress" in self.model_fields_set: + _dict["progress"] = 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 + return _dict @classmethod @@ -170,26 +165,26 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "created": obj.get("created"), + "processID": obj.get("processID"), + "type": obj.get("type"), + "jobID": obj.get("jobID"), + "status": obj.get("status"), + "message": obj.get("message"), "exception": ( Exception.from_dict(obj["exception"]) if obj.get("exception") is not None else None ), + "created": obj.get("created"), + "started": obj.get("started"), "finished": obj.get("finished"), - "jobID": obj.get("jobID"), + "updated": obj.get("updated"), + "progress": obj.get("progress"), "links": ( [Link.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None ), - "message": obj.get("message"), - "processID": obj.get("processID"), - "progress": obj.get("progress"), - "started": obj.get("started"), - "status": obj.get("status"), - "type": obj.get("type"), - "updated": obj.get("updated"), } ) return _obj 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..c6eb469 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,25 +19,19 @@ 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" - ) - __properties: ClassVar[List[str]] = ["failedUri", "inProgressUri", "successUri"] + success_uri: StrictStr = Field(alias="successUri") + in_progress_uri: Optional[StrictStr] = Field(default=None, alias="inProgressUri") + failed_uri: Optional[StrictStr] = Field(default=None, alias="failedUri") + __properties: ClassVar[List[str]] = ["successUri", "inProgressUri", "failedUri"] model_config = ConfigDict( populate_by_name=True, @@ -76,16 +70,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if failed_uri (nullable) is None - # and model_fields_set contains the field - if self.failed_uri is None and "failed_uri" in self.model_fields_set: - _dict["failedUri"] = None - # set to None if in_progress_uri (nullable) is None # and model_fields_set contains the field if self.in_progress_uri is None and "in_progress_uri" in self.model_fields_set: _dict["inProgressUri"] = None + # set to None if failed_uri (nullable) is None + # and model_fields_set contains the field + if self.failed_uri is None and "failed_uri" in self.model_fields_set: + _dict["failedUri"] = None + return _dict @classmethod @@ -99,9 +93,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "failedUri": obj.get("failedUri"), - "inProgressUri": obj.get("inProgressUri"), "successUri": obj.get("successUri"), + "inProgressUri": obj.get("inProgressUri"), + "failedUri": obj.get("failedUri"), } ) return _obj 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. From ec098bf9219b1c6a3bb1cd432038ccf6d1c94dce Mon Sep 17 00:00:00 2001 From: Drew Meyers Date: Mon, 9 Sep 2024 10:35:21 -0700 Subject: [PATCH 2/4] feat: Updated openapi spec --- .openapi-generator/FILES | 83 --- README.md | 16 +- docs/APIApi.md | 28 +- docs/ActualInstance.md | 14 +- docs/ActualInstance1.md | 4 +- docs/ActualInstance2.md | 4 +- docs/ActualInstance3.md | 50 +- docs/ActualInstance4.md | 50 +- docs/ActualInstance5.md | 4 +- docs/ActualInstance6.md | 4 +- docs/BboxDefCrs.md | 4 +- docs/ConformanceApi.md | 14 +- docs/DRUApi.md | 42 +- docs/Enumeration.md | 2 +- docs/Exception.md | 8 +- docs/Execute200ResponseInputAnyOfValue.md | 6 +- docs/Execute200ResponseOutputAnyOfValue.md | 6 +- docs/ExecuteWorkflows.md | 6 +- docs/ExecutionUnit.md | 8 +- docs/ExecutionUnitConfig.md | 10 +- docs/Format.md | 2 +- docs/FormatSchema.md | 4 +- docs/HealthApi.md | 12 +- docs/InlineOrRefDataInput.md | 6 +- docs/InlineOrRefDataOutput.md | 6 +- docs/InlineOrRefDataWorkflows.md | 4 +- docs/InputCollection.md | 2 +- docs/InputDescriptionInput.md | 6 +- docs/InputDescriptionOutput.md | 6 +- docs/InputParameterized.md | 2 +- docs/InputProcess.md | 6 +- docs/InputValueInput.md | 4 +- docs/InputValueNoObjectInput.md | 4 +- docs/InputValueNoObjectOutput.md | 4 +- docs/InputValueNoObjectWorkflows.md | 6 +- docs/InputValueOutput.md | 4 +- docs/InputValueWorkflows.md | 4 +- docs/InputWorkflows.md | 10 +- docs/InputWorkflows1.md | 4 +- docs/InputWorkflowsAnyOfInner.md | 10 +- docs/JobsApi.md | 54 +- docs/LandingPage.md | 4 +- docs/LandingPageApi.md | 14 +- docs/Link.md | 4 +- docs/MetadataInput.md | 6 +- docs/MetadataOneOf.md | 6 +- docs/MetadataOneOf1.md | 2 +- docs/MetadataOneOf1Value.md | 4 +- docs/MetadataOutput.md | 6 +- docs/ModelSchemaInput.md | 50 +- docs/ModelSchemaOutput.md | 50 +- docs/Ogcapppkg.md | 2 +- docs/OgcapppkgExecutionUnit.md | 12 +- docs/OgcapppkgExecutionUnitAnyOfInner.md | 12 +- docs/OutputDescriptionInput.md | 2 +- docs/OutputDescriptionOutput.md | 2 +- docs/OutputWorkflows.md | 2 +- docs/OutputWorkflows1.md | 2 +- docs/ProcessInput.md | 10 +- docs/ProcessListInput.md | 2 +- docs/ProcessListOutput.md | 2 +- docs/ProcessOutput.md | 10 +- docs/ProcessSummaryInput.md | 8 +- docs/ProcessSummaryOutput.md | 8 +- docs/ProcessesApi.md | 53 +- docs/QualifiedInputValueInput.md | 2 +- docs/QualifiedInputValueOutput.md | 2 +- docs/QualifiedInputValueWorkflows.md | 4 +- docs/Schema1Input.md | 4 +- docs/Schema1Output.md | 4 +- docs/SchemaOneOfAdditionalPropertiesInput.md | 4 +- docs/SchemaOneOfAdditionalPropertiesOutput.md | 4 +- docs/SchemaOneOfInput.md | 50 +- docs/SchemaOneOfOutput.md | 50 +- docs/StatusInfo.md | 16 +- docs/Subscriber.md | 4 +- openapi.json | 14 +- .../api/api_api.py | 16 +- .../api/conformance_api.py | 8 +- .../api/dru_api.py | 24 +- .../api/health_api.py | 2 +- .../api/jobs_api.py | 26 +- .../api/landing_page_api.py | 8 +- .../api/processes_api.py | 12 +- .../configuration.py | 9 + .../models/bbox_def_crs.py | 22 +- .../models/enumeration.py | 6 +- .../models/exception.py | 44 +- .../models/execute_workflows.py | 56 +-- .../models/execution_unit.py | 34 +- .../models/execution_unit_config.py | 112 ++--- .../models/format.py | 16 +- .../models/format_schema.py | 22 +- .../models/inline_or_ref_data_workflows.py | 36 +- .../models/input_collection.py | 6 +- .../models/input_description_input.py | 34 +- .../models/input_description_output.py | 34 +- .../models/input_parameterized.py | 6 +- .../models/input_process.py | 54 +- .../models/input_value_input.py | 22 +- .../models/input_value_no_object_input.py | 22 +- .../models/input_value_no_object_output.py | 22 +- .../models/input_value_no_object_workflows.py | 76 +-- .../models/input_value_output.py | 22 +- .../models/input_value_workflows.py | 36 +- .../models/input_workflows1.py | 36 +- .../models/landing_page.py | 22 +- .../models/link.py | 30 +- .../models/metadata_one_of.py | 40 +- .../models/metadata_one_of1.py | 16 +- .../models/metadata_one_of1_value.py | 22 +- .../models/ogcapppkg.py | 20 +- .../models/output_description_input.py | 16 +- .../models/output_description_output.py | 16 +- .../models/output_workflows.py | 16 +- .../models/output_workflows1.py | 16 +- .../models/process_input.py | 106 ++-- .../models/process_list_input.py | 28 +- .../models/process_list_output.py | 28 +- .../models/process_output.py | 106 ++-- .../models/process_summary_input.py | 76 +-- .../models/process_summary_output.py | 76 +-- .../models/qualified_input_value_input.py | 16 +- .../models/qualified_input_value_output.py | 16 +- .../models/qualified_input_value_workflows.py | 46 +- .../models/schema1_input.py | 36 +- .../models/schema1_output.py | 36 +- ...hema_one_of_additional_properties_input.py | 36 +- ...ema_one_of_additional_properties_output.py | 36 +- .../models/schema_one_of_input.py | 474 +++++++++--------- .../models/schema_one_of_output.py | 474 +++++++++--------- .../models/status_info.py | 96 ++-- .../models/subscriber.py | 20 +- 133 files changed, 1901 insertions(+), 1796 deletions(-) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index f671333..a713e3e 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -112,89 +112,6 @@ setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_actual_instance.py -test/test_actual_instance1.py -test/test_actual_instance2.py -test/test_actual_instance3.py -test/test_actual_instance4.py -test/test_actual_instance5.py -test/test_actual_instance6.py -test/test_api_api.py -test/test_bbox1.py -test/test_bbox_bbox_inner.py -test/test_bbox_def_crs.py -test/test_conformance_api.py -test/test_cpumax.py -test/test_cpumin.py -test/test_dru_api.py -test/test_enumeration.py -test/test_execute200_response_input.py -test/test_execute200_response_input_any_of_value.py -test/test_execute200_response_output.py -test/test_execute200_response_output_any_of_value.py -test/test_execute_workflows.py -test/test_execution_unit.py -test/test_execution_unit_config.py -test/test_fields_modifiers_properties.py -test/test_format.py -test/test_format_schema.py -test/test_health_api.py -test/test_inline_or_ref_data_input.py -test/test_inline_or_ref_data_output.py -test/test_inline_or_ref_data_workflows.py -test/test_input_collection.py -test/test_input_description_input.py -test/test_input_description_output.py -test/test_input_parameterized.py -test/test_input_process.py -test/test_input_value_no_object_workflows.py -test/test_input_value_workflows.py -test/test_input_workflows.py -test/test_input_workflows1.py -test/test_input_workflows_any_of_inner.py -test/test_job_list_input.py -test/test_job_list_output.py -test/test_jobs_api.py -test/test_jobtimeout.py -test/test_landing_page_api.py -test/test_maximum.py -test/test_memorymax.py -test/test_memorymin.py -test/test_metadata_input.py -test/test_metadata_one_of.py -test/test_metadata_one_of1.py -test/test_metadata_one_of1_value.py -test/test_metadata_output.py -test/test_minimum.py -test/test_model_schema_input.py -test/test_model_schema_output.py -test/test_multipleof.py -test/test_ogcapppkg.py -test/test_ogcapppkg_execution_unit.py -test/test_ogcapppkg_execution_unit_any_of_inner.py -test/test_oneof_schema2_validator.py -test/test_oneof_schema6_validator.py -test/test_output_description_input.py -test/test_output_description_output.py -test/test_output_workflows.py -test/test_output_workflows1.py -test/test_process_list_input.py -test/test_process_list_output.py -test/test_process_summary_input.py -test/test_process_summary_output.py -test/test_processes_api.py -test/test_qualified_input_value_input.py -test/test_qualified_input_value_output.py -test/test_qualified_input_value_workflows.py -test/test_reference.py -test/test_schema1_input.py -test/test_schema1_output.py -test/test_schema_one_of_additional_properties_input.py -test/test_schema_one_of_additional_properties_output.py -test/test_schema_one_of_input.py -test/test_schema_one_of_output.py -test/test_storageoutputsmin.py -test/test_storagetempmin.py tox.ini unity_sps_ogc_processes_api_python_client/__init__.py unity_sps_ogc_processes_api_python_client/api/__init__.py diff --git a/README.md b/README.md index a20c2bb..469d1c6 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,15 @@ 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 @@ -204,7 +213,12 @@ Class | Method | HTTP request | Description ## Documentation For Authorization -Endpoints do not require authorization. + +Authentication schemes defined for the API: + +### bearerAuth + +- **Type**: Bearer authentication (JWT) ## Author diff --git a/docs/APIApi.md b/docs/APIApi.md index ad59c82..dd4cd7c 100644 --- a/docs/APIApi.md +++ b/docs/APIApi.md @@ -15,6 +15,7 @@ Retrieve this API definition. ### Example +* Bearer (JWT) Authentication (bearerAuth): ```python import unity_sps_ogc_processes_api_python_client @@ -27,6 +28,15 @@ 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: @@ -58,7 +68,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[bearerAuth](../README.md#bearerAuth) ### HTTP request headers @@ -71,8 +81,8 @@ No authorization required |-------------|-------------|------------------| **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. | - | -**500** | A server error occurred. | - | **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) @@ -83,6 +93,7 @@ Retrieve the list of processes available from this API implementation & depl ### Example +* Bearer (JWT) Authentication (bearerAuth): ```python import unity_sps_ogc_processes_api_python_client @@ -96,6 +107,15 @@ 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: @@ -127,7 +147,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[bearerAuth](../README.md#bearerAuth) ### HTTP request headers @@ -141,7 +161,7 @@ No authorization required **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. | - | -**500** | A server error occurred. | - | **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 index 8b07fb6..a78bf8a 100644 --- a/docs/ActualInstance.md +++ b/docs/ActualInstance.md @@ -5,6 +5,9 @@ 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] @@ -14,19 +17,16 @@ Name | Type | Description | Notes **oneof_schema_7_validator** | [**Bbox1**](Bbox1.md) | | [optional] **oneof_schema_8_validator** | [**InputCollection**](InputCollection.md) | | [optional] **oneof_schema_9_validator** | [**InputProcess**](InputProcess.md) | | [optional] -**oneof_schema_10_validator** | [**InputParameterized**](InputParameterized.md) | | [optional] -**actual_instance** | [**ActualInstance1**](ActualInstance1.md) | | [optional] -**one_of_schemas** | **List[str]** | | [optional] **href** | **str** | | -**rel** | **str** | | [optional] -**type** | **str** | | [optional] **hreflang** | **str** | | [optional] +**rel** | **str** | | [optional] **title** | **str** | | [optional] -**media_type** | **str** | | [optional] +**type** | **str** | | [optional] **encoding** | **str** | | [optional] -**var_schema** | [**FormatSchema**](FormatSchema.md) | | [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) | | diff --git a/docs/ActualInstance1.md b/docs/ActualInstance1.md index 5c65919..08594f2 100644 --- a/docs/ActualInstance1.md +++ b/docs/ActualInstance1.md @@ -7,14 +7,14 @@ 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] -**collection** | **str** | | **input** | **str** | | -**process** | **str** | URI to the process execution end point (i.e., `.../processes/{processId}/execution`) | **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 diff --git a/docs/ActualInstance2.md b/docs/ActualInstance2.md index 8e7f83e..90864bb 100644 --- a/docs/ActualInstance2.md +++ b/docs/ActualInstance2.md @@ -5,11 +5,11 @@ 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] -**actual_instance** | [**ActualInstance**](ActualInstance.md) | | [optional] -**one_of_schemas** | **List[str]** | | [optional] ## Example diff --git a/docs/ActualInstance3.md b/docs/ActualInstance3.md index 8fdd421..fe82797 100644 --- a/docs/ActualInstance3.md +++ b/docs/ActualInstance3.md @@ -6,41 +6,41 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ref** | **str** | | -**title** | **str** | | [optional] -**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] -**maximum** | [**Maximum**](Maximum.md) | | [optional] +**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] -**minimum** | [**Minimum**](Minimum.md) | | [optional] **exclusive_minimum** | **bool** | | [optional] -**max_length** | **int** | | [optional] -**min_length** | **int** | | [optional] -**pattern** | **str** | | [optional] +**format** | **str** | | [optional] +**items** | [**Schema1Input**](Schema1Input.md) | | [optional] **max_items** | **int** | | [optional] -**min_items** | **int** | | [optional] -**unique_items** | **bool** | | [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] -**required** | **List[str]** | | [optional] -**enum** | **List[object]** | | [optional] -**type** | **str** | | [optional] +**minimum** | [**Minimum**](Minimum.md) | | [optional] +**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] **var_not** | [**Schema1Input**](Schema1Input.md) | | [optional] -**all_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] +**nullable** | **bool** | | [optional] **one_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] -**any_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] -**items** | [**Schema1Input**](Schema1Input.md) | | [optional] +**pattern** | **str** | | [optional] **properties** | [**Dict[str, Schema1Input]**](Schema1Input.md) | | [optional] -**additional_properties** | [**SchemaOneOfAdditionalPropertiesInput**](SchemaOneOfAdditionalPropertiesInput.md) | | [optional] -**description** | **str** | | [optional] -**format** | **str** | | [optional] -**default** | **object** | | [optional] -**nullable** | **bool** | | [optional] **read_only** | **bool** | | [optional] +**required** | **List[str]** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] +**unique_items** | **bool** | | [optional] **write_only** | **bool** | | [optional] -**example** | **object** | | [optional] -**deprecated** | **bool** | | [optional] -**content_media_type** | **str** | | [optional] -**content_encoding** | **str** | | [optional] -**content_schema** | **str** | | [optional] ## Example diff --git a/docs/ActualInstance4.md b/docs/ActualInstance4.md index dfb71fb..85efcba 100644 --- a/docs/ActualInstance4.md +++ b/docs/ActualInstance4.md @@ -6,41 +6,41 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ref** | **str** | | -**title** | **str** | | [optional] -**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] -**maximum** | [**Maximum**](Maximum.md) | | [optional] +**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] -**minimum** | [**Minimum**](Minimum.md) | | [optional] **exclusive_minimum** | **bool** | | [optional] -**max_length** | **int** | | [optional] -**min_length** | **int** | | [optional] -**pattern** | **str** | | [optional] +**format** | **str** | | [optional] +**items** | [**Schema1Output**](Schema1Output.md) | | [optional] **max_items** | **int** | | [optional] -**min_items** | **int** | | [optional] -**unique_items** | **bool** | | [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] -**required** | **List[str]** | | [optional] -**enum** | **List[object]** | | [optional] -**type** | **str** | | [optional] +**minimum** | [**Minimum**](Minimum.md) | | [optional] +**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] **var_not** | [**Schema1Output**](Schema1Output.md) | | [optional] -**all_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] +**nullable** | **bool** | | [optional] **one_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] -**any_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] -**items** | [**Schema1Output**](Schema1Output.md) | | [optional] +**pattern** | **str** | | [optional] **properties** | [**Dict[str, Schema1Output]**](Schema1Output.md) | | [optional] -**additional_properties** | [**SchemaOneOfAdditionalPropertiesOutput**](SchemaOneOfAdditionalPropertiesOutput.md) | | [optional] -**description** | **str** | | [optional] -**format** | **str** | | [optional] -**default** | **object** | | [optional] -**nullable** | **bool** | | [optional] **read_only** | **bool** | | [optional] +**required** | **List[str]** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] +**unique_items** | **bool** | | [optional] **write_only** | **bool** | | [optional] -**example** | **object** | | [optional] -**deprecated** | **bool** | | [optional] -**content_media_type** | **str** | | [optional] -**content_encoding** | **str** | | [optional] -**content_schema** | **str** | | [optional] ## Example diff --git a/docs/ActualInstance5.md b/docs/ActualInstance5.md index 08ed9bb..a66812b 100644 --- a/docs/ActualInstance5.md +++ b/docs/ActualInstance5.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**oneof_schema_1_validator** | [**Reference**](Reference.md) | | [optional] -**oneof_schema_2_validator** | [**SchemaOneOfInput**](SchemaOneOfInput.md) | | [optional] **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 diff --git a/docs/ActualInstance6.md b/docs/ActualInstance6.md index 7260c7c..711af45 100644 --- a/docs/ActualInstance6.md +++ b/docs/ActualInstance6.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**oneof_schema_1_validator** | [**Reference**](Reference.md) | | [optional] -**oneof_schema_2_validator** | [**SchemaOneOfOutput**](SchemaOneOfOutput.md) | | [optional] **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 diff --git a/docs/BboxDefCrs.md b/docs/BboxDefCrs.md index 348a88e..5596e71 100644 --- a/docs/BboxDefCrs.md +++ b/docs/BboxDefCrs.md @@ -6,10 +6,10 @@ BboxDefCrs Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**anyof_schema_1_validator** | **str** | | [optional] -**anyof_schema_2_validator** | **str** | | [optional] **actual_instance** | **object** | | [optional] **any_of_schemas** | **List[str]** | | [optional] +**anyof_schema_1_validator** | **str** | | [optional] +**anyof_schema_2_validator** | **str** | | [optional] ## Example diff --git a/docs/ConformanceApi.md b/docs/ConformanceApi.md index 55659a3..0d3ca0e 100644 --- a/docs/ConformanceApi.md +++ b/docs/ConformanceApi.md @@ -14,6 +14,7 @@ Retrieve the set of OGC API conformance classes that are supported by this servi ### Example +* Bearer (JWT) Authentication (bearerAuth): ```python import unity_sps_ogc_processes_api_python_client @@ -27,6 +28,15 @@ 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: @@ -58,7 +68,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[bearerAuth](../README.md#bearerAuth) ### HTTP request headers @@ -71,7 +81,7 @@ No authorization required |-------------|-------------|------------------| **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. | - | -**500** | A server error occurred. | - | **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/DRUApi.md b/docs/DRUApi.md index b620268..8991a72 100644 --- a/docs/DRUApi.md +++ b/docs/DRUApi.md @@ -18,6 +18,7 @@ Deploys a process. For more information, see [Section 6.3](http://docs.ogc.org/ ### Example +* Bearer (JWT) Authentication (bearerAuth): ```python import unity_sps_ogc_processes_api_python_client @@ -31,6 +32,15 @@ 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: @@ -64,7 +74,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[bearerAuth](../README.md#bearerAuth) ### HTTP request headers @@ -79,8 +89,8 @@ No authorization required **201** | Created | - | **403** | the processes is not mutable | - | **409** | the processes being added is already deployed (i.e. duplicate) | - | -**500** | A server error occurred. | - | **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) @@ -93,6 +103,7 @@ Replaces a process. For more information, see [Section 6.4](http://docs.ogc.org ### Example +* Bearer (JWT) Authentication (bearerAuth): ```python import unity_sps_ogc_processes_api_python_client @@ -106,6 +117,15 @@ 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: @@ -139,7 +159,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[bearerAuth](../README.md#bearerAuth) ### HTTP request headers @@ -155,8 +175,8 @@ No authorization required **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) | - | -**500** | A server error occurred. | - | **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) @@ -169,6 +189,7 @@ Undeploys a process. For more information, see [Section 6.5](http://docs.ogc.org ### Example +* Bearer (JWT) Authentication (bearerAuth): ```python import unity_sps_ogc_processes_api_python_client @@ -181,6 +202,15 @@ 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: @@ -214,7 +244,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[bearerAuth](../README.md#bearerAuth) ### HTTP request headers @@ -230,7 +260,7 @@ No authorization required **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. | - | -**500** | A server error occurred. | - | **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 index 5b9cddc..9391cdc 100644 --- a/docs/Enumeration.md +++ b/docs/Enumeration.md @@ -6,8 +6,8 @@ Enumeration Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | | **enum** | **List[str]** | | +**type** | **str** | | ## Example diff --git a/docs/Exception.md b/docs/Exception.md index c6c5629..81e96c6 100644 --- a/docs/Exception.md +++ b/docs/Exception.md @@ -6,12 +6,12 @@ JSON schema for exceptions based on RFC 7807 Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | | -**title** | **str** | | [optional] -**status** | **int** | | [optional] +**additional_properties** | **object** | | [optional] **detail** | **str** | | [optional] **instance** | **str** | | [optional] -**additional_properties** | **object** | | [optional] +**status** | **int** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | ## Example diff --git a/docs/Execute200ResponseInputAnyOfValue.md b/docs/Execute200ResponseInputAnyOfValue.md index ec532de..f99b519 100644 --- a/docs/Execute200ResponseInputAnyOfValue.md +++ b/docs/Execute200ResponseInputAnyOfValue.md @@ -8,12 +8,12 @@ Name | Type | Description | Notes **bbox** | [**List[BboxBboxInner]**](BboxBboxInner.md) | | **crs** | [**BboxDefCrs**](BboxDefCrs.md) | | [optional] **href** | **str** | | -**rel** | **str** | | [optional] -**type** | **str** | | [optional] **hreflang** | **str** | | [optional] +**rel** | **str** | | [optional] **title** | **str** | | [optional] -**media_type** | **str** | | [optional] +**type** | **str** | | [optional] **encoding** | **str** | | [optional] +**media_type** | **str** | | [optional] **var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] **value** | [**InputValueInput**](InputValueInput.md) | | diff --git a/docs/Execute200ResponseOutputAnyOfValue.md b/docs/Execute200ResponseOutputAnyOfValue.md index b543020..d34ac5a 100644 --- a/docs/Execute200ResponseOutputAnyOfValue.md +++ b/docs/Execute200ResponseOutputAnyOfValue.md @@ -8,12 +8,12 @@ Name | Type | Description | Notes **bbox** | [**List[BboxBboxInner]**](BboxBboxInner.md) | | **crs** | [**BboxDefCrs**](BboxDefCrs.md) | | [optional] **href** | **str** | | -**rel** | **str** | | [optional] -**type** | **str** | | [optional] **hreflang** | **str** | | [optional] +**rel** | **str** | | [optional] **title** | **str** | | [optional] -**media_type** | **str** | | [optional] +**type** | **str** | | [optional] **encoding** | **str** | | [optional] +**media_type** | **str** | | [optional] **var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] **value** | [**InputValueOutput**](InputValueOutput.md) | | diff --git a/docs/ExecuteWorkflows.md b/docs/ExecuteWorkflows.md index 8dd9206..9a2de24 100644 --- a/docs/ExecuteWorkflows.md +++ b/docs/ExecuteWorkflows.md @@ -7,11 +7,11 @@ ExecuteWorkflows Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **filter** | **str** | | [optional] -**properties** | [**FieldsModifiersProperties**](FieldsModifiersProperties.md) | | [optional] -**sort_by** | **List[str]** | | [optional] -**process** | **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 diff --git a/docs/ExecutionUnit.md b/docs/ExecutionUnit.md index 38535ed..74fb6ee 100644 --- a/docs/ExecutionUnit.md +++ b/docs/ExecutionUnit.md @@ -6,11 +6,11 @@ Resource containing an executable or runtime information for executing the proce Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | Type of execution unit. | -**image** | **str** | Container image reference for the execution unit. | -**deployment** | **str** | | [optional] -**config** | [**ExecutionUnitConfig**](ExecutionUnitConfig.md) | | [optional] **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 diff --git a/docs/ExecutionUnitConfig.md b/docs/ExecutionUnitConfig.md index 0b12299..9f28cc3 100644 --- a/docs/ExecutionUnitConfig.md +++ b/docs/ExecutionUnitConfig.md @@ -6,14 +6,14 @@ Hardware requirements and configuration properties for executing the process. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cpu_min** | [**Cpumin**](Cpumin.md) | | [optional] +**additional_properties** | **object** | | [optional] **cpu_max** | [**Cpumax**](Cpumax.md) | | [optional] -**memory_min** | [**Memorymin**](Memorymin.md) | | [optional] +**cpu_min** | [**Cpumin**](Cpumin.md) | | [optional] +**job_timeout** | [**Jobtimeout**](Jobtimeout.md) | | [optional] **memory_max** | [**Memorymax**](Memorymax.md) | | [optional] -**storage_temp_min** | [**Storagetempmin**](Storagetempmin.md) | | [optional] +**memory_min** | [**Memorymin**](Memorymin.md) | | [optional] **storage_outputs_min** | [**Storageoutputsmin**](Storageoutputsmin.md) | | [optional] -**job_timeout** | [**Jobtimeout**](Jobtimeout.md) | | [optional] -**additional_properties** | **object** | | [optional] +**storage_temp_min** | [**Storagetempmin**](Storagetempmin.md) | | [optional] ## Example diff --git a/docs/Format.md b/docs/Format.md index 5768641..6fdd930 100644 --- a/docs/Format.md +++ b/docs/Format.md @@ -6,8 +6,8 @@ Format Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**media_type** | **str** | | [optional] **encoding** | **str** | | [optional] +**media_type** | **str** | | [optional] **var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] ## Example diff --git a/docs/FormatSchema.md b/docs/FormatSchema.md index 33dfbe5..6e8082e 100644 --- a/docs/FormatSchema.md +++ b/docs/FormatSchema.md @@ -6,10 +6,10 @@ FormatSchema Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**oneof_schema_1_validator** | **str** | | [optional] -**oneof_schema_2_validator** | **object** | | [optional] **actual_instance** | **str** | | [optional] **one_of_schemas** | **List[str]** | | [optional] +**oneof_schema_1_validator** | **str** | | [optional] +**oneof_schema_2_validator** | **object** | | [optional] ## Example diff --git a/docs/HealthApi.md b/docs/HealthApi.md index 0a6dacb..15ff09f 100644 --- a/docs/HealthApi.md +++ b/docs/HealthApi.md @@ -16,6 +16,7 @@ Retrieves the health status of the API. ### Example +* Bearer (JWT) Authentication (bearerAuth): ```python import unity_sps_ogc_processes_api_python_client @@ -29,6 +30,15 @@ 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: @@ -56,7 +66,7 @@ This endpoint does not need any parameter. ### Authorization -No authorization required +[bearerAuth](../README.md#bearerAuth) ### HTTP request headers diff --git a/docs/InlineOrRefDataInput.md b/docs/InlineOrRefDataInput.md index ce44d33..6de1e47 100644 --- a/docs/InlineOrRefDataInput.md +++ b/docs/InlineOrRefDataInput.md @@ -8,12 +8,12 @@ Name | Type | Description | Notes **bbox** | [**List[BboxBboxInner]**](BboxBboxInner.md) | | **crs** | [**BboxDefCrs**](BboxDefCrs.md) | | [optional] **href** | **str** | | -**rel** | **str** | | [optional] -**type** | **str** | | [optional] **hreflang** | **str** | | [optional] +**rel** | **str** | | [optional] **title** | **str** | | [optional] -**media_type** | **str** | | [optional] +**type** | **str** | | [optional] **encoding** | **str** | | [optional] +**media_type** | **str** | | [optional] **var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] **value** | [**InputValueInput**](InputValueInput.md) | | diff --git a/docs/InlineOrRefDataOutput.md b/docs/InlineOrRefDataOutput.md index 9b4e7de..6008144 100644 --- a/docs/InlineOrRefDataOutput.md +++ b/docs/InlineOrRefDataOutput.md @@ -8,12 +8,12 @@ Name | Type | Description | Notes **bbox** | [**List[BboxBboxInner]**](BboxBboxInner.md) | | **crs** | [**BboxDefCrs**](BboxDefCrs.md) | | [optional] **href** | **str** | | -**rel** | **str** | | [optional] -**type** | **str** | | [optional] **hreflang** | **str** | | [optional] +**rel** | **str** | | [optional] **title** | **str** | | [optional] -**media_type** | **str** | | [optional] +**type** | **str** | | [optional] **encoding** | **str** | | [optional] +**media_type** | **str** | | [optional] **var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] **value** | [**InputValueOutput**](InputValueOutput.md) | | diff --git a/docs/InlineOrRefDataWorkflows.md b/docs/InlineOrRefDataWorkflows.md index 9a7e62d..9008ac7 100644 --- a/docs/InlineOrRefDataWorkflows.md +++ b/docs/InlineOrRefDataWorkflows.md @@ -6,11 +6,11 @@ InlineOrRefDataWorkflows 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] -**actual_instance** | [**ActualInstance**](ActualInstance.md) | | [optional] -**one_of_schemas** | **List[str]** | | [optional] ## Example diff --git a/docs/InputCollection.md b/docs/InputCollection.md index 6d26a77..bba248e 100644 --- a/docs/InputCollection.md +++ b/docs/InputCollection.md @@ -6,10 +6,10 @@ InputCollection Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**collection** | **str** | | **filter** | **str** | | [optional] **properties** | [**FieldsModifiersProperties**](FieldsModifiersProperties.md) | | [optional] **sort_by** | **List[str]** | | [optional] -**collection** | **str** | | ## Example diff --git a/docs/InputDescriptionInput.md b/docs/InputDescriptionInput.md index 8675781..ee30b69 100644 --- a/docs/InputDescriptionInput.md +++ b/docs/InputDescriptionInput.md @@ -6,13 +6,13 @@ InputDescription Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**title** | **str** | | [optional] **description** | **str** | | [optional] **keywords** | **List[str]** | | [optional] +**max_occurs** | **int** | | **metadata** | [**List[MetadataInput]**](MetadataInput.md) | | [optional] -**var_schema** | [**ModelSchemaInput**](ModelSchemaInput.md) | | **min_occurs** | **int** | | [optional] -**max_occurs** | **int** | | +**var_schema** | [**ModelSchemaInput**](ModelSchemaInput.md) | | +**title** | **str** | | [optional] **value_passing** | **List[str]** | | [optional] ## Example diff --git a/docs/InputDescriptionOutput.md b/docs/InputDescriptionOutput.md index c55d28c..e301654 100644 --- a/docs/InputDescriptionOutput.md +++ b/docs/InputDescriptionOutput.md @@ -6,13 +6,13 @@ InputDescription Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**title** | **str** | | [optional] **description** | **str** | | [optional] **keywords** | **List[str]** | | [optional] +**max_occurs** | **int** | | **metadata** | [**List[MetadataOutput]**](MetadataOutput.md) | | [optional] -**var_schema** | [**ModelSchemaOutput**](ModelSchemaOutput.md) | | **min_occurs** | **int** | | [optional] -**max_occurs** | **int** | | +**var_schema** | [**ModelSchemaOutput**](ModelSchemaOutput.md) | | +**title** | **str** | | [optional] **value_passing** | **List[str]** | | [optional] ## Example diff --git a/docs/InputParameterized.md b/docs/InputParameterized.md index a3cd3f2..8f35016 100644 --- a/docs/InputParameterized.md +++ b/docs/InputParameterized.md @@ -6,10 +6,10 @@ InputParameterized Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**input** | **str** | | **filter** | **str** | | [optional] **properties** | [**FieldsModifiersProperties**](FieldsModifiersProperties.md) | | [optional] **sort_by** | **List[str]** | | [optional] -**input** | **str** | | ## Example diff --git a/docs/InputProcess.md b/docs/InputProcess.md index 3d7436a..75b27ed 100644 --- a/docs/InputProcess.md +++ b/docs/InputProcess.md @@ -6,13 +6,13 @@ InputProcess Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**process** | **str** | URI to the process execution end point (i.e., `.../processes/{processId}/execution`) | +**filter** | **str** | | [optional] **inputs** | [**Dict[str, InputWorkflows1]**](InputWorkflows1.md) | | [optional] **outputs** | [**Dict[str, OutputWorkflows1]**](OutputWorkflows1.md) | | [optional] -**subscriber** | [**Subscriber**](Subscriber.md) | | [optional] -**filter** | **str** | | [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 diff --git a/docs/InputValueInput.md b/docs/InputValueInput.md index 6a96bb5..c9e4df7 100644 --- a/docs/InputValueInput.md +++ b/docs/InputValueInput.md @@ -6,10 +6,10 @@ InputValue Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**anyof_schema_1_validator** | [**InputValueNoObjectInput**](InputValueNoObjectInput.md) | | [optional] -**anyof_schema_2_validator** | **object** | | [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 696c0e0..646e0f6 100644 --- a/docs/InputValueNoObjectInput.md +++ b/docs/InputValueNoObjectInput.md @@ -6,6 +6,8 @@ InputValueNoObject Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**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] @@ -13,8 +15,6 @@ Name | Type | Description | Notes **oneof_schema_5_validator** | **List[object]** | | [optional] **oneof_schema_6_validator** | [**OneofSchema6Validator**](OneofSchema6Validator.md) | | [optional] **oneof_schema_7_validator** | [**Bbox**](Bbox.md) | | [optional] -**actual_instance** | **object** | | [optional] -**one_of_schemas** | **List[str]** | | [optional] ## Example diff --git a/docs/InputValueNoObjectOutput.md b/docs/InputValueNoObjectOutput.md index 5529868..327deda 100644 --- a/docs/InputValueNoObjectOutput.md +++ b/docs/InputValueNoObjectOutput.md @@ -6,6 +6,8 @@ InputValueNoObject Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**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] @@ -13,8 +15,6 @@ Name | Type | Description | Notes **oneof_schema_5_validator** | **List[object]** | | [optional] **oneof_schema_6_validator** | [**OneofSchema6Validator**](OneofSchema6Validator.md) | | [optional] **oneof_schema_7_validator** | [**Bbox**](Bbox.md) | | [optional] -**actual_instance** | **object** | | [optional] -**one_of_schemas** | **List[str]** | | [optional] ## Example diff --git a/docs/InputValueNoObjectWorkflows.md b/docs/InputValueNoObjectWorkflows.md index aa1a1ba..0d52f83 100644 --- a/docs/InputValueNoObjectWorkflows.md +++ b/docs/InputValueNoObjectWorkflows.md @@ -6,6 +6,9 @@ InputValueNoObjectWorkflows 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] @@ -15,9 +18,6 @@ Name | Type | Description | Notes **oneof_schema_7_validator** | [**Bbox1**](Bbox1.md) | | [optional] **oneof_schema_8_validator** | [**InputCollection**](InputCollection.md) | | [optional] **oneof_schema_9_validator** | [**InputProcess**](InputProcess.md) | | [optional] -**oneof_schema_10_validator** | [**InputParameterized**](InputParameterized.md) | | [optional] -**actual_instance** | [**ActualInstance1**](ActualInstance1.md) | | [optional] -**one_of_schemas** | **List[str]** | | [optional] ## Example diff --git a/docs/InputValueOutput.md b/docs/InputValueOutput.md index 5dcc187..fe75ac1 100644 --- a/docs/InputValueOutput.md +++ b/docs/InputValueOutput.md @@ -6,10 +6,10 @@ InputValue Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**anyof_schema_1_validator** | [**InputValueNoObjectOutput**](InputValueNoObjectOutput.md) | | [optional] -**anyof_schema_2_validator** | **object** | | [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 index e914f1d..2619d37 100644 --- a/docs/InputValueWorkflows.md +++ b/docs/InputValueWorkflows.md @@ -6,10 +6,10 @@ InputValueWorkflows Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**oneof_schema_1_validator** | [**InputValueNoObjectWorkflows**](InputValueNoObjectWorkflows.md) | | [optional] -**oneof_schema_2_validator** | **object** | | [optional] **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 diff --git a/docs/InputWorkflows.md b/docs/InputWorkflows.md index 2b584af..7d9387e 100644 --- a/docs/InputWorkflows.md +++ b/docs/InputWorkflows.md @@ -7,22 +7,22 @@ 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] -**collection** | **str** | | **input** | **str** | | -**process** | **str** | URI to the process execution end point (i.e., `.../processes/{processId}/execution`) | **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** | | -**rel** | **str** | | [optional] -**type** | **str** | | [optional] **hreflang** | **str** | | [optional] +**rel** | **str** | | [optional] **title** | **str** | | [optional] -**media_type** | **str** | | [optional] +**type** | **str** | | [optional] **encoding** | **str** | | [optional] +**media_type** | **str** | | [optional] **var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] **value** | [**InputValueWorkflows**](InputValueWorkflows.md) | | diff --git a/docs/InputWorkflows1.md b/docs/InputWorkflows1.md index c522f24..99d5c0b 100644 --- a/docs/InputWorkflows1.md +++ b/docs/InputWorkflows1.md @@ -6,10 +6,10 @@ InputWorkflows1 Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**oneof_schema_1_validator** | [**InlineOrRefDataWorkflows**](InlineOrRefDataWorkflows.md) | | [optional] -**oneof_schema_2_validator** | [**List[InlineOrRefDataWorkflows]**](InlineOrRefDataWorkflows.md) | | [optional] **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 diff --git a/docs/InputWorkflowsAnyOfInner.md b/docs/InputWorkflowsAnyOfInner.md index d687ddc..e5d4034 100644 --- a/docs/InputWorkflowsAnyOfInner.md +++ b/docs/InputWorkflowsAnyOfInner.md @@ -7,22 +7,22 @@ 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] -**collection** | **str** | | **input** | **str** | | -**process** | **str** | URI to the process execution end point (i.e., `.../processes/{processId}/execution`) | **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** | | -**rel** | **str** | | [optional] -**type** | **str** | | [optional] **hreflang** | **str** | | [optional] +**rel** | **str** | | [optional] **title** | **str** | | [optional] -**media_type** | **str** | | [optional] +**type** | **str** | | [optional] **encoding** | **str** | | [optional] +**media_type** | **str** | | [optional] **var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] **value** | [**InputValueWorkflows**](InputValueWorkflows.md) | | diff --git a/docs/JobsApi.md b/docs/JobsApi.md index 9ae5cbd..40fc5ac 100644 --- a/docs/JobsApi.md +++ b/docs/JobsApi.md @@ -19,6 +19,7 @@ Cancel a job execution and remove it from the jobs list. For more information, ### Example +* Bearer (JWT) Authentication (bearerAuth): ```python import unity_sps_ogc_processes_api_python_client @@ -32,6 +33,15 @@ 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: @@ -63,7 +73,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[bearerAuth](../README.md#bearerAuth) ### HTTP request headers @@ -76,8 +86,8 @@ No authorization required |-------------|-------------|------------------| **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. | - | -**500** | A server error occurred. | - | **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) @@ -90,6 +100,7 @@ Lists available jobs. For more information, see [Section 12](https://docs.ogc.o ### Example +* Bearer (JWT) Authentication (bearerAuth): ```python import unity_sps_ogc_processes_api_python_client @@ -103,6 +114,15 @@ 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: @@ -130,7 +150,7 @@ This endpoint does not need any parameter. ### Authorization -No authorization required +[bearerAuth](../README.md#bearerAuth) ### HTTP request headers @@ -155,6 +175,7 @@ Lists available results of a job. In case of a failure, lists exceptions instead ### Example +* Bearer (JWT) Authentication (bearerAuth): ```python import unity_sps_ogc_processes_api_python_client @@ -168,6 +189,15 @@ 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: @@ -201,7 +231,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[bearerAuth](../README.md#bearerAuth) ### HTTP request headers @@ -214,8 +244,8 @@ No authorization required |-------------|-------------|------------------| **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. | - | -**500** | A server error occurred. | - | **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) @@ -228,6 +258,7 @@ Shows the status of a job. For more information, see [Section 7.10](https://do ### Example +* Bearer (JWT) Authentication (bearerAuth): ```python import unity_sps_ogc_processes_api_python_client @@ -241,6 +272,15 @@ 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: @@ -272,7 +312,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[bearerAuth](../README.md#bearerAuth) ### HTTP request headers @@ -285,7 +325,7 @@ No authorization required |-------------|-------------|------------------| **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. | - | -**500** | A server error occurred. | - | **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/LandingPage.md b/docs/LandingPage.md index e085a61..3670962 100644 --- a/docs/LandingPage.md +++ b/docs/LandingPage.md @@ -6,10 +6,10 @@ LandingPage Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**title** | **str** | | [optional] -**description** | **str** | | [optional] **attribution** | **str** | | [optional] +**description** | **str** | | [optional] **links** | [**List[Link]**](Link.md) | | +**title** | **str** | | [optional] ## Example diff --git a/docs/LandingPageApi.md b/docs/LandingPageApi.md index 3a43900..6641295 100644 --- a/docs/LandingPageApi.md +++ b/docs/LandingPageApi.md @@ -14,6 +14,7 @@ Retrieve the OGC API landing page for this service. ### Example +* Bearer (JWT) Authentication (bearerAuth): ```python import unity_sps_ogc_processes_api_python_client @@ -27,6 +28,15 @@ 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: @@ -58,7 +68,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[bearerAuth](../README.md#bearerAuth) ### HTTP request headers @@ -71,7 +81,7 @@ No authorization required |-------------|-------------|------------------| **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. | - | -**500** | A server error occurred. | - | **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 1ee618b..ff720da 100644 --- a/docs/Link.md +++ b/docs/Link.md @@ -7,10 +7,10 @@ Link Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **href** | **str** | | -**rel** | **str** | | [optional] -**type** | **str** | | [optional] **hreflang** | **str** | | [optional] +**rel** | **str** | | [optional] **title** | **str** | | [optional] +**type** | **str** | | [optional] ## Example diff --git a/docs/MetadataInput.md b/docs/MetadataInput.md index 14ad79d..8b6f455 100644 --- a/docs/MetadataInput.md +++ b/docs/MetadataInput.md @@ -6,11 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **href** | **str** | | -**rel** | **str** | | [optional] -**type** | **str** | | [optional] **hreflang** | **str** | | [optional] -**title** | **str** | | [optional] +**rel** | **str** | | [optional] **role** | **str** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] **lang** | **str** | | [optional] **value** | [**MetadataOneOf1Value**](MetadataOneOf1Value.md) | | [optional] diff --git a/docs/MetadataOneOf.md b/docs/MetadataOneOf.md index a4c0852..7bc9d91 100644 --- a/docs/MetadataOneOf.md +++ b/docs/MetadataOneOf.md @@ -7,11 +7,11 @@ MetadataOneOf Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **href** | **str** | | -**rel** | **str** | | [optional] -**type** | **str** | | [optional] **hreflang** | **str** | | [optional] -**title** | **str** | | [optional] +**rel** | **str** | | [optional] **role** | **str** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] ## Example diff --git a/docs/MetadataOneOf1.md b/docs/MetadataOneOf1.md index 7e1ce8d..4571007 100644 --- a/docs/MetadataOneOf1.md +++ b/docs/MetadataOneOf1.md @@ -6,9 +6,9 @@ MetadataOneOf1 Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**lang** | **str** | | [optional] **role** | **str** | | [optional] **title** | **str** | | [optional] -**lang** | **str** | | [optional] **value** | [**MetadataOneOf1Value**](MetadataOneOf1Value.md) | | [optional] ## Example diff --git a/docs/MetadataOneOf1Value.md b/docs/MetadataOneOf1Value.md index ad5a27d..c9ec5f2 100644 --- a/docs/MetadataOneOf1Value.md +++ b/docs/MetadataOneOf1Value.md @@ -6,10 +6,10 @@ MetadataOneOf1Value Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**oneof_schema_1_validator** | **str** | | [optional] -**oneof_schema_2_validator** | **object** | | [optional] **actual_instance** | **str** | | [optional] **one_of_schemas** | **List[str]** | | [optional] +**oneof_schema_1_validator** | **str** | | [optional] +**oneof_schema_2_validator** | **object** | | [optional] ## Example diff --git a/docs/MetadataOutput.md b/docs/MetadataOutput.md index 2555a04..30230d8 100644 --- a/docs/MetadataOutput.md +++ b/docs/MetadataOutput.md @@ -6,11 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **href** | **str** | | -**rel** | **str** | | [optional] -**type** | **str** | | [optional] **hreflang** | **str** | | [optional] -**title** | **str** | | [optional] +**rel** | **str** | | [optional] **role** | **str** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] **lang** | **str** | | [optional] **value** | [**MetadataOneOf1Value**](MetadataOneOf1Value.md) | | [optional] diff --git a/docs/ModelSchemaInput.md b/docs/ModelSchemaInput.md index cd55d4d..c1d88b0 100644 --- a/docs/ModelSchemaInput.md +++ b/docs/ModelSchemaInput.md @@ -6,41 +6,41 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ref** | **str** | | -**title** | **str** | | [optional] -**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] -**maximum** | [**Maximum**](Maximum.md) | | [optional] +**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] -**minimum** | [**Minimum**](Minimum.md) | | [optional] **exclusive_minimum** | **bool** | | [optional] -**max_length** | **int** | | [optional] -**min_length** | **int** | | [optional] -**pattern** | **str** | | [optional] +**format** | **str** | | [optional] +**items** | [**Schema1Input**](Schema1Input.md) | | [optional] **max_items** | **int** | | [optional] -**min_items** | **int** | | [optional] -**unique_items** | **bool** | | [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] -**required** | **List[str]** | | [optional] -**enum** | **List[object]** | | [optional] -**type** | **str** | | [optional] +**minimum** | [**Minimum**](Minimum.md) | | [optional] +**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] **var_not** | [**Schema1Input**](Schema1Input.md) | | [optional] -**all_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] +**nullable** | **bool** | | [optional] **one_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] -**any_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] -**items** | [**Schema1Input**](Schema1Input.md) | | [optional] +**pattern** | **str** | | [optional] **properties** | [**Dict[str, Schema1Input]**](Schema1Input.md) | | [optional] -**additional_properties** | [**SchemaOneOfAdditionalPropertiesInput**](SchemaOneOfAdditionalPropertiesInput.md) | | [optional] -**description** | **str** | | [optional] -**format** | **str** | | [optional] -**default** | **object** | | [optional] -**nullable** | **bool** | | [optional] **read_only** | **bool** | | [optional] +**required** | **List[str]** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] +**unique_items** | **bool** | | [optional] **write_only** | **bool** | | [optional] -**example** | **object** | | [optional] -**deprecated** | **bool** | | [optional] -**content_media_type** | **str** | | [optional] -**content_encoding** | **str** | | [optional] -**content_schema** | **str** | | [optional] ## Example diff --git a/docs/ModelSchemaOutput.md b/docs/ModelSchemaOutput.md index 0e813f6..433b9dc 100644 --- a/docs/ModelSchemaOutput.md +++ b/docs/ModelSchemaOutput.md @@ -6,41 +6,41 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ref** | **str** | | -**title** | **str** | | [optional] -**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] -**maximum** | [**Maximum**](Maximum.md) | | [optional] +**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] -**minimum** | [**Minimum**](Minimum.md) | | [optional] **exclusive_minimum** | **bool** | | [optional] -**max_length** | **int** | | [optional] -**min_length** | **int** | | [optional] -**pattern** | **str** | | [optional] +**format** | **str** | | [optional] +**items** | [**Schema1Output**](Schema1Output.md) | | [optional] **max_items** | **int** | | [optional] -**min_items** | **int** | | [optional] -**unique_items** | **bool** | | [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] -**required** | **List[str]** | | [optional] -**enum** | **List[object]** | | [optional] -**type** | **str** | | [optional] +**minimum** | [**Minimum**](Minimum.md) | | [optional] +**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] **var_not** | [**Schema1Output**](Schema1Output.md) | | [optional] -**all_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] +**nullable** | **bool** | | [optional] **one_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] -**any_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] -**items** | [**Schema1Output**](Schema1Output.md) | | [optional] +**pattern** | **str** | | [optional] **properties** | [**Dict[str, Schema1Output]**](Schema1Output.md) | | [optional] -**additional_properties** | [**SchemaOneOfAdditionalPropertiesOutput**](SchemaOneOfAdditionalPropertiesOutput.md) | | [optional] -**description** | **str** | | [optional] -**format** | **str** | | [optional] -**default** | **object** | | [optional] -**nullable** | **bool** | | [optional] **read_only** | **bool** | | [optional] +**required** | **List[str]** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] +**unique_items** | **bool** | | [optional] **write_only** | **bool** | | [optional] -**example** | **object** | | [optional] -**deprecated** | **bool** | | [optional] -**content_media_type** | **str** | | [optional] -**content_encoding** | **str** | | [optional] -**content_schema** | **str** | | [optional] ## Example diff --git a/docs/Ogcapppkg.md b/docs/Ogcapppkg.md index ba42551..c1cd51b 100644 --- a/docs/Ogcapppkg.md +++ b/docs/Ogcapppkg.md @@ -6,8 +6,8 @@ Ogcapppkg Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**process_description** | [**ProcessInput**](ProcessInput.md) | | **execution_unit** | [**OgcapppkgExecutionUnit**](OgcapppkgExecutionUnit.md) | | +**process_description** | [**ProcessInput**](ProcessInput.md) | | ## Example diff --git a/docs/OgcapppkgExecutionUnit.md b/docs/OgcapppkgExecutionUnit.md index ce8beba..5b6cba8 100644 --- a/docs/OgcapppkgExecutionUnit.md +++ b/docs/OgcapppkgExecutionUnit.md @@ -5,17 +5,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | | -**image** | **str** | Container image reference for the execution unit. | -**deployment** | **str** | | [optional] -**config** | [**ExecutionUnitConfig**](ExecutionUnitConfig.md) | | [optional] **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** | | -**rel** | **str** | | [optional] **hreflang** | **str** | | [optional] +**rel** | **str** | | [optional] **title** | **str** | | [optional] -**media_type** | **str** | | [optional] **encoding** | **str** | | [optional] +**media_type** | **str** | | [optional] **var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] **value** | [**InputValueInput**](InputValueInput.md) | | diff --git a/docs/OgcapppkgExecutionUnitAnyOfInner.md b/docs/OgcapppkgExecutionUnitAnyOfInner.md index b7269d2..353b16d 100644 --- a/docs/OgcapppkgExecutionUnitAnyOfInner.md +++ b/docs/OgcapppkgExecutionUnitAnyOfInner.md @@ -5,17 +5,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | | -**image** | **str** | Container image reference for the execution unit. | -**deployment** | **str** | | [optional] -**config** | [**ExecutionUnitConfig**](ExecutionUnitConfig.md) | | [optional] **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** | | -**rel** | **str** | | [optional] **hreflang** | **str** | | [optional] +**rel** | **str** | | [optional] **title** | **str** | | [optional] -**media_type** | **str** | | [optional] **encoding** | **str** | | [optional] +**media_type** | **str** | | [optional] **var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] **value** | [**InputValueInput**](InputValueInput.md) | | diff --git a/docs/OutputDescriptionInput.md b/docs/OutputDescriptionInput.md index 555e0ce..45e3f15 100644 --- a/docs/OutputDescriptionInput.md +++ b/docs/OutputDescriptionInput.md @@ -6,11 +6,11 @@ OutputDescription Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**title** | **str** | | [optional] **description** | **str** | | [optional] **keywords** | **List[str]** | | [optional] **metadata** | [**List[MetadataInput]**](MetadataInput.md) | | [optional] **var_schema** | [**ModelSchemaInput**](ModelSchemaInput.md) | | +**title** | **str** | | [optional] ## Example diff --git a/docs/OutputDescriptionOutput.md b/docs/OutputDescriptionOutput.md index 8c797d9..f5c6aeb 100644 --- a/docs/OutputDescriptionOutput.md +++ b/docs/OutputDescriptionOutput.md @@ -6,11 +6,11 @@ OutputDescription Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**title** | **str** | | [optional] **description** | **str** | | [optional] **keywords** | **List[str]** | | [optional] **metadata** | [**List[MetadataOutput]**](MetadataOutput.md) | | [optional] **var_schema** | [**ModelSchemaOutput**](ModelSchemaOutput.md) | | +**title** | **str** | | [optional] ## Example diff --git a/docs/OutputWorkflows.md b/docs/OutputWorkflows.md index cbafa42..77cafe2 100644 --- a/docs/OutputWorkflows.md +++ b/docs/OutputWorkflows.md @@ -6,8 +6,8 @@ OutputWorkflows Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**format** | [**Format**](Format.md) | | [optional] **output** | **str** | | [optional] +**format** | [**Format**](Format.md) | | [optional] ## Example diff --git a/docs/OutputWorkflows1.md b/docs/OutputWorkflows1.md index 7d9fcc9..cb0d36d 100644 --- a/docs/OutputWorkflows1.md +++ b/docs/OutputWorkflows1.md @@ -6,8 +6,8 @@ OutputWorkflows1 Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**format** | [**Format**](Format.md) | | [optional] **output** | **str** | | [optional] +**format** | [**Format**](Format.md) | | [optional] ## Example diff --git a/docs/ProcessInput.md b/docs/ProcessInput.md index fc81258..2849e5e 100644 --- a/docs/ProcessInput.md +++ b/docs/ProcessInput.md @@ -6,16 +6,16 @@ Process Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**title** | **str** | | [optional] **description** | **str** | | [optional] -**keywords** | **List[str]** | | [optional] -**metadata** | [**List[MetadataInput]**](MetadataInput.md) | | [optional] **id** | **str** | | -**version** | **str** | | +**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] -**inputs** | [**Dict[str, InputDescriptionInput]**](InputDescriptionInput.md) | | [optional] +**metadata** | [**List[MetadataInput]**](MetadataInput.md) | | [optional] **outputs** | [**Dict[str, OutputDescriptionInput]**](OutputDescriptionInput.md) | | [optional] +**title** | **str** | | [optional] +**version** | **str** | | ## Example diff --git a/docs/ProcessListInput.md b/docs/ProcessListInput.md index d357618..a3671a4 100644 --- a/docs/ProcessListInput.md +++ b/docs/ProcessListInput.md @@ -6,8 +6,8 @@ ProcessList Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**processes** | [**List[ProcessSummaryInput]**](ProcessSummaryInput.md) | | **links** | [**List[Link]**](Link.md) | | +**processes** | [**List[ProcessSummaryInput]**](ProcessSummaryInput.md) | | ## Example diff --git a/docs/ProcessListOutput.md b/docs/ProcessListOutput.md index 4ff3a9d..cb80051 100644 --- a/docs/ProcessListOutput.md +++ b/docs/ProcessListOutput.md @@ -6,8 +6,8 @@ ProcessList Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**processes** | [**List[ProcessSummaryOutput]**](ProcessSummaryOutput.md) | | **links** | [**List[Link]**](Link.md) | | +**processes** | [**List[ProcessSummaryOutput]**](ProcessSummaryOutput.md) | | ## Example diff --git a/docs/ProcessOutput.md b/docs/ProcessOutput.md index 790e50f..2aa6e08 100644 --- a/docs/ProcessOutput.md +++ b/docs/ProcessOutput.md @@ -6,16 +6,16 @@ Process Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**title** | **str** | | [optional] **description** | **str** | | [optional] -**keywords** | **List[str]** | | [optional] -**metadata** | [**List[MetadataOutput]**](MetadataOutput.md) | | [optional] **id** | **str** | | -**version** | **str** | | +**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] -**inputs** | [**Dict[str, InputDescriptionOutput]**](InputDescriptionOutput.md) | | [optional] +**metadata** | [**List[MetadataOutput]**](MetadataOutput.md) | | [optional] **outputs** | [**Dict[str, OutputDescriptionOutput]**](OutputDescriptionOutput.md) | | [optional] +**title** | **str** | | [optional] +**version** | **str** | | ## Example diff --git a/docs/ProcessSummaryInput.md b/docs/ProcessSummaryInput.md index d7e0acc..b680038 100644 --- a/docs/ProcessSummaryInput.md +++ b/docs/ProcessSummaryInput.md @@ -6,14 +6,14 @@ ProcessSummary Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**title** | **str** | | [optional] **description** | **str** | | [optional] -**keywords** | **List[str]** | | [optional] -**metadata** | [**List[MetadataInput]**](MetadataInput.md) | | [optional] **id** | **str** | | -**version** | **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 diff --git a/docs/ProcessSummaryOutput.md b/docs/ProcessSummaryOutput.md index ed2eba8..725e274 100644 --- a/docs/ProcessSummaryOutput.md +++ b/docs/ProcessSummaryOutput.md @@ -6,14 +6,14 @@ ProcessSummary Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**title** | **str** | | [optional] **description** | **str** | | [optional] -**keywords** | **List[str]** | | [optional] -**metadata** | [**List[MetadataOutput]**](MetadataOutput.md) | | [optional] **id** | **str** | | -**version** | **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 diff --git a/docs/ProcessesApi.md b/docs/ProcessesApi.md index 59e03e7..23e9c90 100644 --- a/docs/ProcessesApi.md +++ b/docs/ProcessesApi.md @@ -18,6 +18,8 @@ Executes a process (this may result in the creation of a job resource e.g., for ### 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 @@ -31,6 +33,15 @@ 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: @@ -65,12 +76,12 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[bearerAuth](../README.md#bearerAuth) ### HTTP request headers -- **Content-Type**: application/json -- **Accept**: application/json +* **Content-Type**: application/json +* **Accept**: application/json ### HTTP response details @@ -80,8 +91,8 @@ No authorization required **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. | - | -**500** | A server error occurred. | - | **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) @@ -95,6 +106,8 @@ The process description contains information about inputs and outputs and a link ### 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 @@ -107,6 +120,15 @@ 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: @@ -135,12 +157,12 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[bearerAuth](../README.md#bearerAuth) ### HTTP request headers -- **Content-Type**: Not defined -- **Accept**: application/json +* **Content-Type**: Not defined +* **Accept**: application/json ### HTTP response details @@ -162,6 +184,8 @@ The list of processes contains a summary of each process the OGC API - Processes ### 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 @@ -174,6 +198,15 @@ 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: @@ -199,12 +232,12 @@ This endpoint does not need any parameter. ### Authorization -No authorization required +[bearerAuth](../README.md#bearerAuth) ### HTTP request headers -- **Content-Type**: Not defined -- **Accept**: application/json +* **Content-Type**: Not defined +* **Accept**: application/json ### HTTP response details diff --git a/docs/QualifiedInputValueInput.md b/docs/QualifiedInputValueInput.md index 81ce86b..5379c97 100644 --- a/docs/QualifiedInputValueInput.md +++ b/docs/QualifiedInputValueInput.md @@ -6,8 +6,8 @@ QualifiedInputValue Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**media_type** | **str** | | [optional] **encoding** | **str** | | [optional] +**media_type** | **str** | | [optional] **var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] **value** | [**InputValueInput**](InputValueInput.md) | | diff --git a/docs/QualifiedInputValueOutput.md b/docs/QualifiedInputValueOutput.md index 69459cf..c3e1967 100644 --- a/docs/QualifiedInputValueOutput.md +++ b/docs/QualifiedInputValueOutput.md @@ -6,8 +6,8 @@ QualifiedInputValue Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**media_type** | **str** | | [optional] **encoding** | **str** | | [optional] +**media_type** | **str** | | [optional] **var_schema** | [**FormatSchema**](FormatSchema.md) | | [optional] **value** | [**InputValueOutput**](InputValueOutput.md) | | diff --git a/docs/QualifiedInputValueWorkflows.md b/docs/QualifiedInputValueWorkflows.md index e52e4e7..e0db92f 100644 --- a/docs/QualifiedInputValueWorkflows.md +++ b/docs/QualifiedInputValueWorkflows.md @@ -6,11 +6,11 @@ QualifiedInputValueWorkflows Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**media_type** | **str** | | [optional] **encoding** | **str** | | [optional] -**var_schema** | [**FormatSchema**](FormatSchema.md) | | [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) | | diff --git a/docs/Schema1Input.md b/docs/Schema1Input.md index fd669b7..c986f64 100644 --- a/docs/Schema1Input.md +++ b/docs/Schema1Input.md @@ -6,10 +6,10 @@ Schema1 Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**oneof_schema_1_validator** | [**Reference**](Reference.md) | | [optional] -**oneof_schema_2_validator** | [**SchemaOneOfInput**](SchemaOneOfInput.md) | | [optional] **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 diff --git a/docs/Schema1Output.md b/docs/Schema1Output.md index 89a06cd..292ed5f 100644 --- a/docs/Schema1Output.md +++ b/docs/Schema1Output.md @@ -6,10 +6,10 @@ Schema1 Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**oneof_schema_1_validator** | [**Reference**](Reference.md) | | [optional] -**oneof_schema_2_validator** | [**SchemaOneOfOutput**](SchemaOneOfOutput.md) | | [optional] **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 diff --git a/docs/SchemaOneOfAdditionalPropertiesInput.md b/docs/SchemaOneOfAdditionalPropertiesInput.md index 1bd3ea0..fbaf9ae 100644 --- a/docs/SchemaOneOfAdditionalPropertiesInput.md +++ b/docs/SchemaOneOfAdditionalPropertiesInput.md @@ -6,10 +6,10 @@ SchemaOneOfAdditionalProperties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**oneof_schema_1_validator** | [**Schema1Input**](Schema1Input.md) | | [optional] -**oneof_schema_2_validator** | **bool** | | [optional] **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 diff --git a/docs/SchemaOneOfAdditionalPropertiesOutput.md b/docs/SchemaOneOfAdditionalPropertiesOutput.md index 9427533..bdb3514 100644 --- a/docs/SchemaOneOfAdditionalPropertiesOutput.md +++ b/docs/SchemaOneOfAdditionalPropertiesOutput.md @@ -6,10 +6,10 @@ SchemaOneOfAdditionalProperties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**oneof_schema_1_validator** | [**Schema1Output**](Schema1Output.md) | | [optional] -**oneof_schema_2_validator** | **bool** | | [optional] **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 diff --git a/docs/SchemaOneOfInput.md b/docs/SchemaOneOfInput.md index 33559ce..121e77c 100644 --- a/docs/SchemaOneOfInput.md +++ b/docs/SchemaOneOfInput.md @@ -6,41 +6,41 @@ SchemaOneOf Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**title** | **str** | | [optional] -**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] -**maximum** | [**Maximum**](Maximum.md) | | [optional] +**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] -**minimum** | [**Minimum**](Minimum.md) | | [optional] **exclusive_minimum** | **bool** | | [optional] -**max_length** | **int** | | [optional] -**min_length** | **int** | | [optional] -**pattern** | **str** | | [optional] +**format** | **str** | | [optional] +**items** | [**Schema1Input**](Schema1Input.md) | | [optional] **max_items** | **int** | | [optional] -**min_items** | **int** | | [optional] -**unique_items** | **bool** | | [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] -**required** | **List[str]** | | [optional] -**enum** | **List[object]** | | [optional] -**type** | **str** | | [optional] +**minimum** | [**Minimum**](Minimum.md) | | [optional] +**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] **var_not** | [**Schema1Input**](Schema1Input.md) | | [optional] -**all_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] +**nullable** | **bool** | | [optional] **one_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] -**any_of** | [**List[Schema1Input]**](Schema1Input.md) | | [optional] -**items** | [**Schema1Input**](Schema1Input.md) | | [optional] +**pattern** | **str** | | [optional] **properties** | [**Dict[str, Schema1Input]**](Schema1Input.md) | | [optional] -**additional_properties** | [**SchemaOneOfAdditionalPropertiesInput**](SchemaOneOfAdditionalPropertiesInput.md) | | [optional] -**description** | **str** | | [optional] -**format** | **str** | | [optional] -**default** | **object** | | [optional] -**nullable** | **bool** | | [optional] **read_only** | **bool** | | [optional] +**required** | **List[str]** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] +**unique_items** | **bool** | | [optional] **write_only** | **bool** | | [optional] -**example** | **object** | | [optional] -**deprecated** | **bool** | | [optional] -**content_media_type** | **str** | | [optional] -**content_encoding** | **str** | | [optional] -**content_schema** | **str** | | [optional] ## Example diff --git a/docs/SchemaOneOfOutput.md b/docs/SchemaOneOfOutput.md index b371195..99606ef 100644 --- a/docs/SchemaOneOfOutput.md +++ b/docs/SchemaOneOfOutput.md @@ -6,41 +6,41 @@ SchemaOneOf Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**title** | **str** | | [optional] -**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] -**maximum** | [**Maximum**](Maximum.md) | | [optional] +**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] -**minimum** | [**Minimum**](Minimum.md) | | [optional] **exclusive_minimum** | **bool** | | [optional] -**max_length** | **int** | | [optional] -**min_length** | **int** | | [optional] -**pattern** | **str** | | [optional] +**format** | **str** | | [optional] +**items** | [**Schema1Output**](Schema1Output.md) | | [optional] **max_items** | **int** | | [optional] -**min_items** | **int** | | [optional] -**unique_items** | **bool** | | [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] -**required** | **List[str]** | | [optional] -**enum** | **List[object]** | | [optional] -**type** | **str** | | [optional] +**minimum** | [**Minimum**](Minimum.md) | | [optional] +**multiple_of** | [**Multipleof**](Multipleof.md) | | [optional] **var_not** | [**Schema1Output**](Schema1Output.md) | | [optional] -**all_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] +**nullable** | **bool** | | [optional] **one_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] -**any_of** | [**List[Schema1Output]**](Schema1Output.md) | | [optional] -**items** | [**Schema1Output**](Schema1Output.md) | | [optional] +**pattern** | **str** | | [optional] **properties** | [**Dict[str, Schema1Output]**](Schema1Output.md) | | [optional] -**additional_properties** | [**SchemaOneOfAdditionalPropertiesOutput**](SchemaOneOfAdditionalPropertiesOutput.md) | | [optional] -**description** | **str** | | [optional] -**format** | **str** | | [optional] -**default** | **object** | | [optional] -**nullable** | **bool** | | [optional] **read_only** | **bool** | | [optional] +**required** | **List[str]** | | [optional] +**title** | **str** | | [optional] +**type** | **str** | | [optional] +**unique_items** | **bool** | | [optional] **write_only** | **bool** | | [optional] -**example** | **object** | | [optional] -**deprecated** | **bool** | | [optional] -**content_media_type** | **str** | | [optional] -**content_encoding** | **str** | | [optional] -**content_schema** | **str** | | [optional] ## Example diff --git a/docs/StatusInfo.md b/docs/StatusInfo.md index 4db2331..a8b80db 100644 --- a/docs/StatusInfo.md +++ b/docs/StatusInfo.md @@ -6,18 +6,18 @@ StatusInfo Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**process_id** | **str** | | [optional] -**type** | **str** | | +**created** | **datetime** | | [optional] +**exception** | [**Exception**](Exception.md) | | [optional] +**finished** | **datetime** | | [optional] **job_id** | **str** | | -**status** | [**StatusCode**](StatusCode.md) | | +**links** | [**List[Link]**](Link.md) | | [optional] **message** | **str** | | [optional] -**exception** | [**Exception**](Exception.md) | | [optional] -**created** | **datetime** | | [optional] +**process_id** | **str** | | [optional] +**progress** | **int** | | [optional] **started** | **datetime** | | [optional] -**finished** | **datetime** | | [optional] +**status** | [**StatusCode**](StatusCode.md) | | +**type** | **str** | | **updated** | **datetime** | | [optional] -**progress** | **int** | | [optional] -**links** | [**List[Link]**](Link.md) | | [optional] ## Example diff --git a/docs/Subscriber.md b/docs/Subscriber.md index 6a9c714..4c9b1d2 100644 --- a/docs/Subscriber.md +++ b/docs/Subscriber.md @@ -6,9 +6,9 @@ Optional URIs for callbacks for this job. Support for this parameter is not req Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**success_uri** | **str** | | -**in_progress_uri** | **str** | | [optional] **failed_uri** | **str** | | [optional] +**in_progress_uri** | **str** | | [optional] +**success_uri** | **str** | | ## Example diff --git a/openapi.json b/openapi.json index bd137b5..09af8ac 100644 --- a/openapi.json +++ b/openapi.json @@ -4472,6 +4472,13 @@ "title": "ValidationError", "type": "object" } + }, + "securitySchemes": { + "bearerAuth": { + "bearerFormat": "JWT", + "scheme": "bearer", + "type": "http" + } } }, "info": { @@ -5487,5 +5494,10 @@ ] } } - } + }, + "security": [ + { + "bearerAuth": [] + } + ] } 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 index b7ab3cb..1827750 100644 --- a/unity_sps_ogc_processes_api_python_client/api/api_api.py +++ b/unity_sps_ogc_processes_api_python_client/api/api_api.py @@ -96,8 +96,8 @@ def get_api_api_get( _response_types_map: Dict[str, Optional[str]] = { "200": "object", "406": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -167,8 +167,8 @@ def get_api_api_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": "object", "406": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -238,8 +238,8 @@ def get_api_api_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": "object", "406": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -283,7 +283,7 @@ def _get_api_api_get_serialize( ) # authentication setting - _auth_settings: List[str] = [] + _auth_settings: List[str] = ["bearerAuth"] return self.api_client.param_serialize( method="GET", @@ -360,8 +360,8 @@ def get_api_processes_api_processes_list_get( "200": "Enumeration", "404": "Exception", "406": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -432,8 +432,8 @@ def get_api_processes_api_processes_list_get_with_http_info( "200": "Enumeration", "404": "Exception", "406": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -504,8 +504,8 @@ def get_api_processes_api_processes_list_get_without_preload_content( "200": "Enumeration", "404": "Exception", "406": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -549,7 +549,7 @@ def _get_api_processes_api_processes_list_get_serialize( ) # authentication setting - _auth_settings: List[str] = [] + _auth_settings: List[str] = ["bearerAuth"] return self.api_client.param_serialize( method="GET", 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 index 1cd16e9..6d83e0a 100644 --- a/unity_sps_ogc_processes_api_python_client/api/conformance_api.py +++ b/unity_sps_ogc_processes_api_python_client/api/conformance_api.py @@ -96,8 +96,8 @@ def get_conformance_conformance_get( _response_types_map: Dict[str, Optional[str]] = { "200": "ConfClasses", "406": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -167,8 +167,8 @@ def get_conformance_conformance_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": "ConfClasses", "406": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -238,8 +238,8 @@ def get_conformance_conformance_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": "ConfClasses", "406": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -283,7 +283,7 @@ def _get_conformance_conformance_get_serialize( ) # authentication setting - _auth_settings: List[str] = [] + _auth_settings: List[str] = ["bearerAuth"] return self.api_client.param_serialize( method="GET", 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 index d551356..a69b9d1 100644 --- a/unity_sps_ogc_processes_api_python_client/api/dru_api.py +++ b/unity_sps_ogc_processes_api_python_client/api/dru_api.py @@ -103,8 +103,8 @@ def deploy_processes_post( "201": None, "403": "Exception", "409": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -181,8 +181,8 @@ def deploy_processes_post_with_http_info( "201": None, "403": "Exception", "409": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -259,8 +259,8 @@ def deploy_processes_post_without_preload_content( "201": None, "403": "Exception", "409": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -317,7 +317,7 @@ def _deploy_processes_post_serialize( _header_params["Content-Type"] = _default_content_type # authentication setting - _auth_settings: List[str] = [] + _auth_settings: List[str] = ["bearerAuth"] return self.api_client.param_serialize( method="POST", @@ -396,8 +396,8 @@ def replace_processes_process_id_put( "403": "Exception", "404": "Exception", "409": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -470,8 +470,8 @@ def replace_processes_process_id_put_with_http_info( "403": "Exception", "404": "Exception", "409": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -544,8 +544,8 @@ def replace_processes_process_id_put_without_preload_content( "403": "Exception", "404": "Exception", "409": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -600,7 +600,7 @@ def _replace_processes_process_id_put_serialize( _header_params["Content-Type"] = _default_content_type # authentication setting - _auth_settings: List[str] = [] + _auth_settings: List[str] = ["bearerAuth"] return self.api_client.param_serialize( method="PUT", @@ -682,8 +682,8 @@ def undeploy_processes_process_id_delete( "403": "Exception", "404": "Exception", "409": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -759,8 +759,8 @@ def undeploy_processes_process_id_delete_with_http_info( "403": "Exception", "404": "Exception", "409": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -836,8 +836,8 @@ def undeploy_processes_process_id_delete_without_preload_content( "403": "Exception", "404": "Exception", "409": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -884,7 +884,7 @@ def _undeploy_processes_process_id_delete_serialize( ) # authentication setting - _auth_settings: List[str] = [] + _auth_settings: List[str] = ["bearerAuth"] return self.api_client.param_serialize( method="DELETE", 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 index b6565ff..be16aa7 100644 --- a/unity_sps_ogc_processes_api_python_client/api/health_api.py +++ b/unity_sps_ogc_processes_api_python_client/api/health_api.py @@ -248,7 +248,7 @@ def _get_health_health_get_serialize( ) # authentication setting - _auth_settings: List[str] = [] + _auth_settings: List[str] = ["bearerAuth"] return self.api_client.param_serialize( method="GET", 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 index 9dcab43..9297ee8 100644 --- a/unity_sps_ogc_processes_api_python_client/api/jobs_api.py +++ b/unity_sps_ogc_processes_api_python_client/api/jobs_api.py @@ -96,8 +96,8 @@ def dismiss_jobs_job_id_delete( _response_types_map: Dict[str, Optional[str]] = { "200": "StatusInfo", "404": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -163,8 +163,8 @@ def dismiss_jobs_job_id_delete_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": "StatusInfo", "404": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -230,8 +230,8 @@ def dismiss_jobs_job_id_delete_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": "StatusInfo", "404": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -273,7 +273,7 @@ def _dismiss_jobs_job_id_delete_serialize( ) # authentication setting - _auth_settings: List[str] = [] + _auth_settings: List[str] = ["bearerAuth"] return self.api_client.param_serialize( method="DELETE", @@ -501,7 +501,7 @@ def _get_jobs_jobs_get_serialize( ) # authentication setting - _auth_settings: List[str] = [] + _auth_settings: List[str] = ["bearerAuth"] return self.api_client.param_serialize( method="GET", @@ -582,8 +582,8 @@ def get_result_jobs_job_id_results_get( _response_types_map: Dict[str, Optional[str]] = { "200": "Dict[str, InlineOrRefDataInput]", "404": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -658,8 +658,8 @@ def get_result_jobs_job_id_results_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": "Dict[str, InlineOrRefDataInput]", "404": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -734,8 +734,8 @@ def get_result_jobs_job_id_results_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": "Dict[str, InlineOrRefDataInput]", "404": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -780,7 +780,7 @@ def _get_result_jobs_job_id_results_get_serialize( ) # authentication setting - _auth_settings: List[str] = [] + _auth_settings: List[str] = ["bearerAuth"] return self.api_client.param_serialize( method="GET", @@ -852,8 +852,8 @@ def get_status_jobs_job_id_get( _response_types_map: Dict[str, Optional[str]] = { "200": "StatusInfo", "404": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -919,8 +919,8 @@ def get_status_jobs_job_id_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": "StatusInfo", "404": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -986,8 +986,8 @@ def get_status_jobs_job_id_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": "StatusInfo", "404": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -1029,7 +1029,7 @@ def _get_status_jobs_job_id_get_serialize( ) # authentication setting - _auth_settings: List[str] = [] + _auth_settings: List[str] = ["bearerAuth"] return self.api_client.param_serialize( method="GET", 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 index 64eed05..b309e1c 100644 --- 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 @@ -96,8 +96,8 @@ def get_landing_page_get( _response_types_map: Dict[str, Optional[str]] = { "200": "LandingPage", "406": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -167,8 +167,8 @@ def get_landing_page_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": "LandingPage", "406": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -238,8 +238,8 @@ def get_landing_page_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": "LandingPage", "406": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -283,7 +283,7 @@ def _get_landing_page_get_serialize( ) # authentication setting - _auth_settings: List[str] = [] + _auth_settings: List[str] = ["bearerAuth"] return self.api_client.param_serialize( method="GET", 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 index 419c9db..7a64f57 100644 --- a/unity_sps_ogc_processes_api_python_client/api/processes_api.py +++ b/unity_sps_ogc_processes_api_python_client/api/processes_api.py @@ -125,8 +125,8 @@ def execute_processes_process_id_execution_post( "201": "StatusInfo", "303": None, "404": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -216,8 +216,8 @@ def execute_processes_process_id_execution_post_with_http_info( "201": "StatusInfo", "303": None, "404": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -307,8 +307,8 @@ def execute_processes_process_id_execution_post_without_preload_content( "201": "StatusInfo", "303": None, "404": "Exception", - "500": "Exception", "422": "HTTPValidationError", + "500": "Exception", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -371,7 +371,7 @@ def _execute_processes_process_id_execution_post_serialize( _header_params["Content-Type"] = _default_content_type # authentication setting - _auth_settings: List[str] = [] + _auth_settings: List[str] = ["bearerAuth"] return self.api_client.param_serialize( method="POST", @@ -617,7 +617,7 @@ def _get_process_description_processes_process_id_get_serialize( ) # authentication setting - _auth_settings: List[str] = [] + _auth_settings: List[str] = ["bearerAuth"] return self.api_client.param_serialize( method="GET", @@ -842,7 +842,7 @@ def _get_processes_processes_get_serialize( ) # authentication setting - _auth_settings: List[str] = [] + _auth_settings: List[str] = ["bearerAuth"] return self.api_client.param_serialize( method="GET", diff --git a/unity_sps_ogc_processes_api_python_client/configuration.py b/unity_sps_ogc_processes_api_python_client/configuration.py index d5957cb..542373a 100644 --- a/unity_sps_ogc_processes_api_python_client/configuration.py +++ b/unity_sps_ogc_processes_api_python_client/configuration.py @@ -67,6 +67,7 @@ class Configuration: in PEM format. :param retries: Number of retries for API requests. + :Example: """ _default = None @@ -390,6 +391,14 @@ def auth_settings(self): :return: The Auth Settings information dict. """ auth = {} + if self.access_token is not None: + auth["bearerAuth"] = { + "type": "bearer", + "in": "header", + "format": "JWT", + "key": "Authorization", + "value": "Bearer " + self.access_token, + } return auth def to_debug_report(self): 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 index a9f0a0d..24a583b 100644 --- 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 @@ -28,15 +28,15 @@ class BboxDefCrs(BaseModel): BboxDefCrs """ # noqa: E501 - anyof_schema_1_validator: Optional[StrictStr] = None - anyof_schema_2_validator: Optional[StrictStr] = None 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]] = [ - "anyof_schema_1_validator", - "anyof_schema_2_validator", "actual_instance", "any_of_schemas", + "anyof_schema_1_validator", + "anyof_schema_2_validator", ] model_config = ConfigDict( @@ -76,6 +76,11 @@ def to_dict(self) -> Dict[str, Any]: 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 ( @@ -92,11 +97,6 @@ def to_dict(self) -> Dict[str, Any]: ): _dict["anyof_schema_2_validator"] = None - # 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 - return _dict @classmethod @@ -110,10 +110,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "anyof_schema_1_validator": obj.get("anyof_schema_1_validator"), - "anyof_schema_2_validator": obj.get("anyof_schema_2_validator"), "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/enumeration.py b/unity_sps_ogc_processes_api_python_client/models/enumeration.py index f1967f2..a830f62 100644 --- a/unity_sps_ogc_processes_api_python_client/models/enumeration.py +++ b/unity_sps_ogc_processes_api_python_client/models/enumeration.py @@ -28,9 +28,9 @@ class Enumeration(BaseModel): Enumeration """ # noqa: E501 - type: StrictStr enum: List[StrictStr] - __properties: ClassVar[List[str]] = ["type", "enum"] + type: StrictStr + __properties: ClassVar[List[str]] = ["enum", "type"] model_config = ConfigDict( populate_by_name=True, @@ -80,5 +80,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({"type": obj.get("type"), "enum": obj.get("enum")}) + _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 34594fc..0d8f6ef 100644 --- a/unity_sps_ogc_processes_api_python_client/models/exception.py +++ b/unity_sps_ogc_processes_api_python_client/models/exception.py @@ -28,19 +28,19 @@ class Exception(BaseModel): JSON schema for exceptions based on RFC 7807 """ # noqa: E501 - type: StrictStr - title: Optional[StrictStr] = None - status: Optional[StrictInt] = None + additional_properties: Optional[Dict[str, Any]] = None detail: Optional[StrictStr] = None instance: Optional[StrictStr] = None - additional_properties: Optional[Dict[str, Any]] = None + status: Optional[StrictInt] = None + title: Optional[StrictStr] = None + type: StrictStr __properties: ClassVar[List[str]] = [ - "type", - "title", - "status", + "additional_properties", "detail", "instance", - "additional_properties", + "status", + "title", + "type", ] model_config = ConfigDict( @@ -80,16 +80,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # 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 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 - # 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: @@ -100,6 +90,16 @@ def to_dict(self) -> Dict[str, Any]: if self.instance is None and "instance" in self.model_fields_set: _dict["instance"] = None + # 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 + + # 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 @@ -113,12 +113,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "type": obj.get("type"), - "title": obj.get("title"), - "status": obj.get("status"), + "additional_properties": obj.get("additional_properties"), "detail": obj.get("detail"), "instance": obj.get("instance"), - "additional_properties": obj.get("additional_properties"), + "status": obj.get("status"), + "title": obj.get("title"), + "type": obj.get("type"), } ) return _obj 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 index a7ab03c..80c737b 100644 --- a/unity_sps_ogc_processes_api_python_client/models/execute_workflows.py +++ b/unity_sps_ogc_processes_api_python_client/models/execute_workflows.py @@ -40,19 +40,19 @@ class ExecuteWorkflows(BaseModel): """ # noqa: E501 filter: Optional[StrictStr] = None - properties: Optional[FieldsModifiersProperties] = None - sort_by: Optional[List[StrictStr]] = Field(default=None, alias="sortBy") - process: 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", - "properties", - "sortBy", - "process", "inputs", "outputs", + "process", + "properties", + "sortBy", "subscriber", ] @@ -93,9 +93,6 @@ def to_dict(self) -> Dict[str, Any]: 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 each value in inputs (dict) _field_dict = {} if self.inputs: @@ -110,6 +107,9 @@ def to_dict(self) -> Dict[str, Any]: 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() @@ -118,30 +118,30 @@ def to_dict(self) -> Dict[str, Any]: if self.filter is None and "filter" in self.model_fields_set: _dict["filter"] = None - # set to None if properties (nullable) is None + # set to None if inputs (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 + if self.inputs is None and "inputs" in self.model_fields_set: + _dict["inputs"] = None - # set to None if sort_by (nullable) is None + # set to None if outputs (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 + 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 inputs (nullable) is None + # set to None if properties (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 + if self.properties is None and "properties" in self.model_fields_set: + _dict["properties"] = None - # set to None if outputs (nullable) is None + # set to None if sort_by (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 + 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 @@ -162,13 +162,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { "filter": obj.get("filter"), - "properties": ( - FieldsModifiersProperties.from_dict(obj["properties"]) - if obj.get("properties") is not None - else None - ), - "sortBy": obj.get("sortBy"), - "process": obj.get("process"), "inputs": ( dict( (_k, InputWorkflows.from_dict(_v)) @@ -185,6 +178,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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 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 index 3eea289..444a439 100644 --- a/unity_sps_ogc_processes_api_python_client/models/execution_unit.py +++ b/unity_sps_ogc_processes_api_python_client/models/execution_unit.py @@ -32,19 +32,19 @@ class ExecutionUnit(BaseModel): Resource containing an executable or runtime information for executing the process. """ # noqa: E501 - type: StrictStr = Field(description="Type of execution unit.") + 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." ) - deployment: Optional[StrictStr] = None - config: Optional[ExecutionUnitConfig] = None - additional_properties: Optional[Dict[str, Any]] = None + type: StrictStr = Field(description="Type of execution unit.") __properties: ClassVar[List[str]] = [ - "type", - "image", - "deployment", - "config", "additional_properties", + "config", + "deployment", + "image", + "type", ] model_config = ConfigDict( @@ -87,16 +87,16 @@ def to_dict(self) -> Dict[str, Any]: # 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 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 - # 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 @@ -110,15 +110,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "type": obj.get("type"), - "image": obj.get("image"), - "deployment": obj.get("deployment"), + "additional_properties": obj.get("additional_properties"), "config": ( ExecutionUnitConfig.from_dict(obj["config"]) if obj.get("config") is not None else None ), - "additional_properties": obj.get("additional_properties"), + "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 index 2c0ba34..09ef33b 100644 --- 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 @@ -40,27 +40,27 @@ class ExecutionUnitConfig(BaseModel): Hardware requirements and configuration properties for executing the process. """ # noqa: E501 - cpu_min: Optional[Cpumin] = Field(default=None, alias="cpuMin") + additional_properties: Optional[Dict[str, Any]] = None cpu_max: Optional[Cpumax] = Field(default=None, alias="cpuMax") - memory_min: Optional[Memorymin] = Field(default=None, alias="memoryMin") + 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") - storage_temp_min: Optional[Storagetempmin] = Field( - default=None, alias="storageTempMin" - ) + memory_min: Optional[Memorymin] = Field(default=None, alias="memoryMin") storage_outputs_min: Optional[Storageoutputsmin] = Field( default=None, alias="storageOutputsMin" ) - job_timeout: Optional[Jobtimeout] = Field(default=None, alias="jobTimeout") - additional_properties: Optional[Dict[str, Any]] = None + storage_temp_min: Optional[Storagetempmin] = Field( + default=None, alias="storageTempMin" + ) __properties: ClassVar[List[str]] = [ - "cpuMin", + "additional_properties", "cpuMax", - "memoryMin", + "cpuMin", + "jobTimeout", "memoryMax", - "storageTempMin", + "memoryMin", "storageOutputsMin", - "jobTimeout", - "additional_properties", + "storageTempMin", ] model_config = ConfigDict( @@ -100,54 +100,51 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # 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 cpu_max if self.cpu_max: _dict["cpuMax"] = self.cpu_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 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 storage_temp_min - if self.storage_temp_min: - _dict["storageTempMin"] = self.storage_temp_min.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 job_timeout - if self.job_timeout: - _dict["jobTimeout"] = self.job_timeout.to_dict() - # 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 - + # 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 memory_min (nullable) is None + # set to None if cpu_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 + 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 storage_temp_min (nullable) is None + # set to None if memory_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 + 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 @@ -157,10 +154,13 @@ def to_dict(self) -> Dict[str, Any]: ): _dict["storageOutputsMin"] = None - # set to None if job_timeout (nullable) is None + # set to None if storage_temp_min (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 + if ( + self.storage_temp_min is None + and "storage_temp_min" in self.model_fields_set + ): + _dict["storageTempMin"] = None return _dict @@ -175,19 +175,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "cpuMin": ( - Cpumin.from_dict(obj["cpuMin"]) - if obj.get("cpuMin") is not None - else None - ), + "additional_properties": obj.get("additional_properties"), "cpuMax": ( Cpumax.from_dict(obj["cpuMax"]) if obj.get("cpuMax") is not None else None ), - "memoryMin": ( - Memorymin.from_dict(obj["memoryMin"]) - if obj.get("memoryMin") is not 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": ( @@ -195,9 +196,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("memoryMax") is not None else None ), - "storageTempMin": ( - Storagetempmin.from_dict(obj["storageTempMin"]) - if obj.get("storageTempMin") is not None + "memoryMin": ( + Memorymin.from_dict(obj["memoryMin"]) + if obj.get("memoryMin") is not None else None ), "storageOutputsMin": ( @@ -205,12 +206,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("storageOutputsMin") is not None else None ), - "jobTimeout": ( - Jobtimeout.from_dict(obj["jobTimeout"]) - if obj.get("jobTimeout") is not None + "storageTempMin": ( + Storagetempmin.from_dict(obj["storageTempMin"]) + if obj.get("storageTempMin") is not None else None ), - "additional_properties": obj.get("additional_properties"), } ) return _obj diff --git a/unity_sps_ogc_processes_api_python_client/models/format.py b/unity_sps_ogc_processes_api_python_client/models/format.py index afe8c5c..7821baf 100644 --- a/unity_sps_ogc_processes_api_python_client/models/format.py +++ b/unity_sps_ogc_processes_api_python_client/models/format.py @@ -30,10 +30,10 @@ class Format(BaseModel): Format """ # noqa: E501 - media_type: Optional[StrictStr] = Field(default=None, alias="mediaType") 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]] = ["mediaType", "encoding", "schema"] + __properties: ClassVar[List[str]] = ["encoding", "mediaType", "schema"] model_config = ConfigDict( populate_by_name=True, @@ -75,16 +75,16 @@ def to_dict(self) -> Dict[str, Any]: # 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 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 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: @@ -103,8 +103,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "mediaType": obj.get("mediaType"), "encoding": obj.get("encoding"), + "mediaType": obj.get("mediaType"), "schema": ( FormatSchema.from_dict(obj["schema"]) if obj.get("schema") is not None 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 index 77171dc..e2e4896 100644 --- a/unity_sps_ogc_processes_api_python_client/models/format_schema.py +++ b/unity_sps_ogc_processes_api_python_client/models/format_schema.py @@ -28,15 +28,15 @@ class FormatSchema(BaseModel): FormatSchema """ # noqa: E501 - oneof_schema_1_validator: Optional[StrictStr] = None - oneof_schema_2_validator: Optional[Dict[str, Any]] = None 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]] = [ - "oneof_schema_1_validator", - "oneof_schema_2_validator", "actual_instance", "one_of_schemas", + "oneof_schema_1_validator", + "oneof_schema_2_validator", ] model_config = ConfigDict( @@ -76,6 +76,11 @@ def to_dict(self) -> Dict[str, Any]: 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 ( @@ -92,11 +97,6 @@ def to_dict(self) -> Dict[str, Any]: ): _dict["oneof_schema_2_validator"] = None - # 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 - return _dict @classmethod @@ -110,10 +110,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "oneof_schema_1_validator": obj.get("oneof_schema_1_validator"), - "oneof_schema_2_validator": obj.get("oneof_schema_2_validator"), "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/inline_or_ref_data_workflows.py b/unity_sps_ogc_processes_api_python_client/models/inline_or_ref_data_workflows.py index 4ec065f..35c28ff 100644 --- 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 @@ -39,17 +39,17 @@ 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 - actual_instance: Optional[ActualInstance] = None - one_of_schemas: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = [ + "actual_instance", + "one_of_schemas", "oneof_schema_1_validator", "oneof_schema_2_validator", "oneof_schema_3_validator", - "actual_instance", - "one_of_schemas", ] model_config = ConfigDict( @@ -89,6 +89,9 @@ def to_dict(self) -> Dict[str, Any]: 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() @@ -98,9 +101,11 @@ def to_dict(self) -> Dict[str, Any]: # 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() - # 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() + # 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 ( @@ -125,11 +130,6 @@ def to_dict(self) -> Dict[str, Any]: ): _dict["oneof_schema_3_validator"] = None - # 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 - return _dict @classmethod @@ -143,6 +143,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _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"] @@ -162,12 +168,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("oneof_schema_3_validator") is not None else None ), - "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"), } ) return _obj 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 index d7657ef..5687767 100644 --- a/unity_sps_ogc_processes_api_python_client/models/input_collection.py +++ b/unity_sps_ogc_processes_api_python_client/models/input_collection.py @@ -32,11 +32,11 @@ 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") - collection: StrictStr - __properties: ClassVar[List[str]] = ["filter", "properties", "sortBy", "collection"] + __properties: ClassVar[List[str]] = ["collection", "filter", "properties", "sortBy"] model_config = ConfigDict( populate_by_name=True, @@ -106,6 +106,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { + "collection": obj.get("collection"), "filter": obj.get("filter"), "properties": ( FieldsModifiersProperties.from_dict(obj["properties"]) @@ -113,7 +114,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: else None ), "sortBy": obj.get("sortBy"), - "collection": obj.get("collection"), } ) 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 index b7fbd54..784578a 100644 --- 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 @@ -35,22 +35,22 @@ class InputDescriptionInput(BaseModel): InputDescription """ # noqa: E501 - title: Optional[StrictStr] = None description: Optional[StrictStr] = None keywords: Optional[List[StrictStr]] = None + max_occurs: Optional[StrictInt] = Field(alias="maxOccurs") metadata: Optional[List[MetadataInput]] = None - var_schema: ModelSchemaInput = Field(alias="schema") min_occurs: Optional[StrictInt] = Field(default=None, alias="minOccurs") - max_occurs: Optional[StrictInt] = Field(alias="maxOccurs") + var_schema: ModelSchemaInput = Field(alias="schema") + title: Optional[StrictStr] = None value_passing: Optional[List[StrictStr]] = Field(default=None, alias="valuePassing") __properties: ClassVar[List[str]] = [ - "title", "description", "keywords", + "maxOccurs", "metadata", - "schema", "minOccurs", - "maxOccurs", + "schema", + "title", "valuePassing", ] @@ -101,11 +101,6 @@ def to_dict(self) -> Dict[str, Any]: # 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 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 description (nullable) is None # and model_fields_set contains the field if self.description is None and "description" in self.model_fields_set: @@ -116,6 +111,11 @@ def to_dict(self) -> Dict[str, Any]: 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: @@ -126,10 +126,10 @@ def to_dict(self) -> Dict[str, Any]: if self.min_occurs is None and "min_occurs" in self.model_fields_set: _dict["minOccurs"] = None - # set to None if max_occurs (nullable) is None + # set to None if title (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 + 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 @@ -149,21 +149,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "title": obj.get("title"), "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 ), - "minOccurs": obj.get("minOccurs"), - "maxOccurs": obj.get("maxOccurs"), + "title": obj.get("title"), "valuePassing": obj.get("valuePassing"), } ) 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 index 25bfeb8..ce30f1e 100644 --- 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 @@ -35,22 +35,22 @@ class InputDescriptionOutput(BaseModel): InputDescription """ # noqa: E501 - title: Optional[StrictStr] = None description: Optional[StrictStr] = None keywords: Optional[List[StrictStr]] = None + max_occurs: Optional[StrictInt] = Field(alias="maxOccurs") metadata: Optional[List[MetadataOutput]] = None - var_schema: ModelSchemaOutput = Field(alias="schema") min_occurs: Optional[StrictInt] = Field(default=None, alias="minOccurs") - max_occurs: Optional[StrictInt] = Field(alias="maxOccurs") + var_schema: ModelSchemaOutput = Field(alias="schema") + title: Optional[StrictStr] = None value_passing: Optional[List[StrictStr]] = Field(default=None, alias="valuePassing") __properties: ClassVar[List[str]] = [ - "title", "description", "keywords", + "maxOccurs", "metadata", - "schema", "minOccurs", - "maxOccurs", + "schema", + "title", "valuePassing", ] @@ -101,11 +101,6 @@ def to_dict(self) -> Dict[str, Any]: # 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 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 description (nullable) is None # and model_fields_set contains the field if self.description is None and "description" in self.model_fields_set: @@ -116,6 +111,11 @@ def to_dict(self) -> Dict[str, Any]: 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: @@ -126,10 +126,10 @@ def to_dict(self) -> Dict[str, Any]: if self.min_occurs is None and "min_occurs" in self.model_fields_set: _dict["minOccurs"] = None - # set to None if max_occurs (nullable) is None + # set to None if title (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 + 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 @@ -149,21 +149,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "title": obj.get("title"), "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 ), - "minOccurs": obj.get("minOccurs"), - "maxOccurs": obj.get("maxOccurs"), + "title": obj.get("title"), "valuePassing": obj.get("valuePassing"), } ) 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 index f88dc1f..24f141a 100644 --- a/unity_sps_ogc_processes_api_python_client/models/input_parameterized.py +++ b/unity_sps_ogc_processes_api_python_client/models/input_parameterized.py @@ -32,11 +32,11 @@ 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") - input: StrictStr = Field(alias="$input") - __properties: ClassVar[List[str]] = ["filter", "properties", "sortBy", "$input"] + __properties: ClassVar[List[str]] = ["$input", "filter", "properties", "sortBy"] model_config = ConfigDict( populate_by_name=True, @@ -106,6 +106,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { + "$input": obj.get("$input"), "filter": obj.get("filter"), "properties": ( FieldsModifiersProperties.from_dict(obj["properties"]) @@ -113,7 +114,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: else None ), "sortBy": obj.get("sortBy"), - "$input": obj.get("$input"), } ) 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 index 8ca9fad..2dc6edc 100644 --- a/unity_sps_ogc_processes_api_python_client/models/input_process.py +++ b/unity_sps_ogc_processes_api_python_client/models/input_process.py @@ -39,23 +39,23 @@ 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`)" ) - inputs: Optional[Dict[str, InputWorkflows1]] = None - outputs: Optional[Dict[str, OutputWorkflows1]] = None - subscriber: Optional[Subscriber] = None - filter: 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]] = [ - "process", + "filter", "inputs", "outputs", - "subscriber", - "filter", + "process", "properties", "sortBy", + "subscriber", ] model_config = ConfigDict( @@ -109,12 +109,17 @@ def to_dict(self) -> Dict[str, Any]: 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 subscriber - if self.subscriber: - _dict["subscriber"] = self.subscriber.to_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: @@ -125,16 +130,6 @@ def to_dict(self) -> Dict[str, Any]: if self.outputs is None and "outputs" in self.model_fields_set: _dict["outputs"] = 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 - - # 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: @@ -145,6 +140,11 @@ def to_dict(self) -> Dict[str, Any]: 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 @@ -158,7 +158,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "process": obj.get("process"), + "filter": obj.get("filter"), "inputs": ( dict( (_k, InputWorkflows1.from_dict(_v)) @@ -175,18 +175,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("outputs") is not None else None ), - "subscriber": ( - Subscriber.from_dict(obj["subscriber"]) - if obj.get("subscriber") is not None - else None - ), - "filter": obj.get("filter"), + "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/input_value_input.py b/unity_sps_ogc_processes_api_python_client/models/input_value_input.py index a09d6ac..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 @@ -32,15 +32,15 @@ class InputValueInput(BaseModel): InputValue """ # noqa: E501 - anyof_schema_1_validator: Optional[InputValueNoObjectInput] = None - anyof_schema_2_validator: Optional[Dict[str, Any]] = None actual_instance: Optional[Any] = None any_of_schemas: Optional[List[StrictStr]] = None + anyof_schema_1_validator: Optional[InputValueNoObjectInput] = None + anyof_schema_2_validator: Optional[Dict[str, Any]] = None __properties: ClassVar[List[str]] = [ - "anyof_schema_1_validator", - "anyof_schema_2_validator", "actual_instance", "any_of_schemas", + "anyof_schema_1_validator", + "anyof_schema_2_validator", ] model_config = ConfigDict( @@ -83,6 +83,11 @@ def to_dict(self) -> Dict[str, Any]: # 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 ( @@ -99,11 +104,6 @@ def to_dict(self) -> Dict[str, Any]: ): _dict["anyof_schema_2_validator"] = None - # 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 - return _dict @classmethod @@ -117,14 +117,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _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"), - "actual_instance": obj.get("actual_instance"), - "any_of_schemas": obj.get("any_of_schemas"), } ) 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 14fbb6d..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 @@ -36,6 +36,8 @@ class InputValueNoObjectInput(BaseModel): 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 @@ -43,9 +45,9 @@ class InputValueNoObjectInput(BaseModel): oneof_schema_5_validator: Optional[List[Dict[str, Any]]] = None oneof_schema_6_validator: Optional[OneofSchema6Validator] = None oneof_schema_7_validator: Optional[Bbox] = None - actual_instance: Optional[Any] = None - one_of_schemas: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = [ + "actual_instance", + "one_of_schemas", "oneof_schema_1_validator", "oneof_schema_2_validator", "oneof_schema_3_validator", @@ -53,8 +55,6 @@ class InputValueNoObjectInput(BaseModel): "oneof_schema_5_validator", "oneof_schema_6_validator", "oneof_schema_7_validator", - "actual_instance", - "one_of_schemas", ] model_config = ConfigDict( @@ -103,6 +103,11 @@ def to_dict(self) -> Dict[str, Any]: # 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 ( @@ -151,11 +156,6 @@ def to_dict(self) -> Dict[str, Any]: ): _dict["oneof_schema_7_validator"] = None - # 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 - return _dict @classmethod @@ -169,6 +169,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _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"]) @@ -188,8 +190,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("oneof_schema_7_validator") is not None else None ), - "actual_instance": obj.get("actual_instance"), - "one_of_schemas": obj.get("one_of_schemas"), } ) 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 ade09b7..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 @@ -36,6 +36,8 @@ class InputValueNoObjectOutput(BaseModel): 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 @@ -43,9 +45,9 @@ class InputValueNoObjectOutput(BaseModel): oneof_schema_5_validator: Optional[List[Dict[str, Any]]] = None oneof_schema_6_validator: Optional[OneofSchema6Validator] = None oneof_schema_7_validator: Optional[Bbox] = None - actual_instance: Optional[Any] = None - one_of_schemas: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = [ + "actual_instance", + "one_of_schemas", "oneof_schema_1_validator", "oneof_schema_2_validator", "oneof_schema_3_validator", @@ -53,8 +55,6 @@ class InputValueNoObjectOutput(BaseModel): "oneof_schema_5_validator", "oneof_schema_6_validator", "oneof_schema_7_validator", - "actual_instance", - "one_of_schemas", ] model_config = ConfigDict( @@ -103,6 +103,11 @@ def to_dict(self) -> Dict[str, Any]: # 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 ( @@ -151,11 +156,6 @@ def to_dict(self) -> Dict[str, Any]: ): _dict["oneof_schema_7_validator"] = None - # 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 - return _dict @classmethod @@ -169,6 +169,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _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"]) @@ -188,8 +190,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("oneof_schema_7_validator") is not None else None ), - "actual_instance": obj.get("actual_instance"), - "one_of_schemas": obj.get("one_of_schemas"), } ) 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 index 870cc74..e6bbf62 100644 --- 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 @@ -46,6 +46,9 @@ 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 @@ -55,10 +58,10 @@ class InputValueNoObjectWorkflows(BaseModel): oneof_schema_7_validator: Optional[Bbox1] = None oneof_schema_8_validator: Optional[InputCollection] = None oneof_schema_9_validator: Optional[InputProcess] = None - oneof_schema_10_validator: Optional[InputParameterized] = None - actual_instance: Optional[ActualInstance1] = None - one_of_schemas: Optional[List[StrictStr]] = 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", @@ -68,9 +71,6 @@ class InputValueNoObjectWorkflows(BaseModel): "oneof_schema_7_validator", "oneof_schema_8_validator", "oneof_schema_9_validator", - "oneof_schema_10_validator", - "actual_instance", - "one_of_schemas", ] model_config = ConfigDict( @@ -110,6 +110,14 @@ def to_dict(self) -> Dict[str, Any]: 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() @@ -125,14 +133,19 @@ def to_dict(self) -> Dict[str, Any]: # 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() - # 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 actual_instance - if self.actual_instance: - _dict["actual_instance"] = self.actual_instance.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 ( @@ -205,19 +218,6 @@ def to_dict(self) -> Dict[str, Any]: ): _dict["oneof_schema_9_validator"] = 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 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 - return _dict @classmethod @@ -231,6 +231,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _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"]) @@ -260,17 +271,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("oneof_schema_9_validator") is not None else None ), - "oneof_schema_10_validator": ( - InputParameterized.from_dict(obj["oneof_schema_10_validator"]) - if obj.get("oneof_schema_10_validator") is not None - else None - ), - "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"), } ) return _obj 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 e1a2344..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 @@ -32,15 +32,15 @@ class InputValueOutput(BaseModel): InputValue """ # noqa: E501 - anyof_schema_1_validator: Optional[InputValueNoObjectOutput] = None - anyof_schema_2_validator: Optional[Dict[str, Any]] = None actual_instance: Optional[Any] = None any_of_schemas: Optional[List[StrictStr]] = None + anyof_schema_1_validator: Optional[InputValueNoObjectOutput] = None + anyof_schema_2_validator: Optional[Dict[str, Any]] = None __properties: ClassVar[List[str]] = [ - "anyof_schema_1_validator", - "anyof_schema_2_validator", "actual_instance", "any_of_schemas", + "anyof_schema_1_validator", + "anyof_schema_2_validator", ] model_config = ConfigDict( @@ -83,6 +83,11 @@ def to_dict(self) -> Dict[str, Any]: # 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 ( @@ -99,11 +104,6 @@ def to_dict(self) -> Dict[str, Any]: ): _dict["anyof_schema_2_validator"] = None - # 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 - return _dict @classmethod @@ -117,14 +117,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _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"), - "actual_instance": obj.get("actual_instance"), - "any_of_schemas": obj.get("any_of_schemas"), } ) 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 index 969e8ad..4af0000 100644 --- 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 @@ -32,15 +32,15 @@ class InputValueWorkflows(BaseModel): InputValueWorkflows """ # noqa: E501 - oneof_schema_1_validator: Optional[InputValueNoObjectWorkflows] = None - oneof_schema_2_validator: Optional[Dict[str, Any]] = None 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]] = [ - "oneof_schema_1_validator", - "oneof_schema_2_validator", "actual_instance", "one_of_schemas", + "oneof_schema_1_validator", + "oneof_schema_2_validator", ] model_config = ConfigDict( @@ -80,12 +80,17 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # 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 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 ( @@ -102,11 +107,6 @@ def to_dict(self) -> Dict[str, Any]: ): _dict["oneof_schema_2_validator"] = None - # 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 - return _dict @classmethod @@ -120,6 +120,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _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"] @@ -128,12 +134,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: else None ), "oneof_schema_2_validator": obj.get("oneof_schema_2_validator"), - "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"), } ) return _obj 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 index 04f39f2..52da758 100644 --- a/unity_sps_ogc_processes_api_python_client/models/input_workflows1.py +++ b/unity_sps_ogc_processes_api_python_client/models/input_workflows1.py @@ -35,15 +35,15 @@ class InputWorkflows1(BaseModel): InputWorkflows1 """ # noqa: E501 - oneof_schema_1_validator: Optional[InlineOrRefDataWorkflows] = None - oneof_schema_2_validator: Optional[List[InlineOrRefDataWorkflows]] = None 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]] = [ - "oneof_schema_1_validator", - "oneof_schema_2_validator", "actual_instance", "one_of_schemas", + "oneof_schema_1_validator", + "oneof_schema_2_validator", ] model_config = ConfigDict( @@ -83,6 +83,9 @@ def to_dict(self) -> Dict[str, Any]: 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() @@ -93,9 +96,11 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict["oneof_schema_2_validator"] = _items - # 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() + # 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 ( @@ -112,11 +117,6 @@ def to_dict(self) -> Dict[str, Any]: ): _dict["oneof_schema_2_validator"] = None - # 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 - return _dict @classmethod @@ -130,6 +130,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _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 @@ -143,12 +149,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("oneof_schema_2_validator") is not None else None ), - "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"), } ) return _obj 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 d966e73..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 @@ -30,11 +30,11 @@ class LandingPage(BaseModel): LandingPage """ # noqa: E501 - title: Optional[StrictStr] = None - description: Optional[StrictStr] = None attribution: Optional[StrictStr] = None + description: Optional[StrictStr] = None links: List[Link] - __properties: ClassVar[List[str]] = ["title", "description", "attribution", "links"] + title: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["attribution", "description", "links", "title"] model_config = ConfigDict( populate_by_name=True, @@ -80,20 +80,20 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict["links"] = _items - # set to None if title (nullable) is None + # set to None if attribution (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 + if self.attribution is None and "attribution" in self.model_fields_set: + _dict["attribution"] = 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 attribution (nullable) is None + # set to None if title (nullable) is None # and model_fields_set contains the field - if self.attribution is None and "attribution" in self.model_fields_set: - _dict["attribution"] = None + if self.title is None and "title" in self.model_fields_set: + _dict["title"] = None return _dict @@ -108,14 +108,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "title": obj.get("title"), - "description": obj.get("description"), "attribution": obj.get("attribution"), + "description": obj.get("description"), "links": ( [Link.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None ), + "title": obj.get("title"), } ) return _obj 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 895edf9..2ebaa99 100644 --- a/unity_sps_ogc_processes_api_python_client/models/link.py +++ b/unity_sps_ogc_processes_api_python_client/models/link.py @@ -29,11 +29,11 @@ class Link(BaseModel): """ # noqa: E501 href: StrictStr - rel: Optional[StrictStr] = None - type: Optional[StrictStr] = None hreflang: Optional[StrictStr] = None + rel: Optional[StrictStr] = None title: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["href", "rel", "type", "hreflang", "title"] + type: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["href", "hreflang", "rel", "title", "type"] model_config = ConfigDict( populate_by_name=True, @@ -72,26 +72,26 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # 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 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 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 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 @@ -106,10 +106,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { "href": obj.get("href"), - "rel": obj.get("rel"), - "type": obj.get("type"), "hreflang": obj.get("hreflang"), + "rel": obj.get("rel"), "title": obj.get("title"), + "type": obj.get("type"), } ) return _obj 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 index cb763ce..771f83e 100644 --- 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 @@ -29,18 +29,18 @@ class MetadataOneOf(BaseModel): """ # noqa: E501 href: StrictStr - rel: Optional[StrictStr] = None - type: Optional[StrictStr] = None hreflang: Optional[StrictStr] = None - title: Optional[StrictStr] = None + rel: Optional[StrictStr] = None role: Optional[StrictStr] = None + title: Optional[StrictStr] = None + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = [ "href", - "rel", - "type", "hreflang", - "title", + "rel", "role", + "title", + "type", ] model_config = ConfigDict( @@ -80,30 +80,30 @@ def to_dict(self) -> Dict[str, Any]: 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 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 hreflang (nullable) is None + # set to None if role (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 + 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 role (nullable) is None + # set to None if type (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 + if self.type is None and "type" in self.model_fields_set: + _dict["type"] = None return _dict @@ -119,11 +119,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { "href": obj.get("href"), - "rel": obj.get("rel"), - "type": obj.get("type"), "hreflang": obj.get("hreflang"), - "title": obj.get("title"), + "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 index 8be635e..a9e3fb4 100644 --- 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 @@ -32,11 +32,11 @@ class MetadataOneOf1(BaseModel): MetadataOneOf1 """ # noqa: E501 + lang: Optional[StrictStr] = None role: Optional[StrictStr] = None title: Optional[StrictStr] = None - lang: Optional[StrictStr] = None value: Optional[MetadataOneOf1Value] = None - __properties: ClassVar[List[str]] = ["role", "title", "lang", "value"] + __properties: ClassVar[List[str]] = ["lang", "role", "title", "value"] model_config = ConfigDict( populate_by_name=True, @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: # 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: @@ -88,11 +93,6 @@ def to_dict(self) -> Dict[str, Any]: if self.title is None and "title" in self.model_fields_set: _dict["title"] = None - # 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 value (nullable) is None # and model_fields_set contains the field if self.value is None and "value" in self.model_fields_set: @@ -111,9 +111,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { + "lang": obj.get("lang"), "role": obj.get("role"), "title": obj.get("title"), - "lang": obj.get("lang"), "value": ( MetadataOneOf1Value.from_dict(obj["value"]) if obj.get("value") is not None 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 index bd2a5d1..cabc2e9 100644 --- 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 @@ -28,15 +28,15 @@ class MetadataOneOf1Value(BaseModel): MetadataOneOf1Value """ # noqa: E501 - oneof_schema_1_validator: Optional[StrictStr] = None - oneof_schema_2_validator: Optional[Dict[str, Any]] = None 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]] = [ - "oneof_schema_1_validator", - "oneof_schema_2_validator", "actual_instance", "one_of_schemas", + "oneof_schema_1_validator", + "oneof_schema_2_validator", ] model_config = ConfigDict( @@ -76,6 +76,11 @@ def to_dict(self) -> Dict[str, Any]: 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 ( @@ -92,11 +97,6 @@ def to_dict(self) -> Dict[str, Any]: ): _dict["oneof_schema_2_validator"] = None - # 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 - return _dict @classmethod @@ -110,10 +110,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "oneof_schema_1_validator": obj.get("oneof_schema_1_validator"), - "oneof_schema_2_validator": obj.get("oneof_schema_2_validator"), "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/ogcapppkg.py b/unity_sps_ogc_processes_api_python_client/models/ogcapppkg.py index fd62945..f52ddd6 100644 --- a/unity_sps_ogc_processes_api_python_client/models/ogcapppkg.py +++ b/unity_sps_ogc_processes_api_python_client/models/ogcapppkg.py @@ -33,9 +33,9 @@ class Ogcapppkg(BaseModel): Ogcapppkg """ # noqa: E501 - process_description: ProcessInput = Field(alias="processDescription") execution_unit: OgcapppkgExecutionUnit = Field(alias="executionUnit") - __properties: ClassVar[List[str]] = ["processDescription", "executionUnit"] + process_description: ProcessInput = Field(alias="processDescription") + __properties: ClassVar[List[str]] = ["executionUnit", "processDescription"] model_config = ConfigDict( populate_by_name=True, @@ -74,12 +74,12 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of process_description - if self.process_description: - _dict["processDescription"] = self.process_description.to_dict() # 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 @@ -93,16 +93,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "processDescription": ( - ProcessInput.from_dict(obj["processDescription"]) - if obj.get("processDescription") is not None - else None - ), "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/output_description_input.py b/unity_sps_ogc_processes_api_python_client/models/output_description_input.py index b8c90b0..eff8924 100644 --- 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 @@ -35,17 +35,17 @@ class OutputDescriptionInput(BaseModel): OutputDescription """ # noqa: E501 - title: Optional[StrictStr] = None 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]] = [ - "title", "description", "keywords", "metadata", "schema", + "title", ] model_config = ConfigDict( @@ -95,11 +95,6 @@ def to_dict(self) -> Dict[str, Any]: # 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 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 description (nullable) is None # and model_fields_set contains the field if self.description is None and "description" in self.model_fields_set: @@ -115,6 +110,11 @@ def to_dict(self) -> Dict[str, Any]: 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 @@ -128,7 +128,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "title": obj.get("title"), "description": obj.get("description"), "keywords": obj.get("keywords"), "metadata": ( @@ -141,6 +140,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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 index 17d2499..6b27caa 100644 --- 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 @@ -35,17 +35,17 @@ class OutputDescriptionOutput(BaseModel): OutputDescription """ # noqa: E501 - title: Optional[StrictStr] = None 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]] = [ - "title", "description", "keywords", "metadata", "schema", + "title", ] model_config = ConfigDict( @@ -95,11 +95,6 @@ def to_dict(self) -> Dict[str, Any]: # 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 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 description (nullable) is None # and model_fields_set contains the field if self.description is None and "description" in self.model_fields_set: @@ -115,6 +110,11 @@ def to_dict(self) -> Dict[str, Any]: 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 @@ -128,7 +128,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "title": obj.get("title"), "description": obj.get("description"), "keywords": obj.get("keywords"), "metadata": ( @@ -141,6 +140,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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 index ee78866..1d7c39f 100644 --- a/unity_sps_ogc_processes_api_python_client/models/output_workflows.py +++ b/unity_sps_ogc_processes_api_python_client/models/output_workflows.py @@ -30,9 +30,9 @@ class OutputWorkflows(BaseModel): OutputWorkflows """ # noqa: E501 - format: Optional[Format] = None output: Optional[StrictStr] = Field(default=None, alias="$output") - __properties: ClassVar[List[str]] = ["format", "$output"] + format: Optional[Format] = None + __properties: ClassVar[List[str]] = ["$output", "format"] model_config = ConfigDict( populate_by_name=True, @@ -74,16 +74,16 @@ def to_dict(self) -> Dict[str, Any]: # 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 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 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 @@ -97,12 +97,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { + "$output": obj.get("$output"), "format": ( Format.from_dict(obj["format"]) if obj.get("format") is not None else None ), - "$output": obj.get("$output"), } ) 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 index afd4780..b3ea76d 100644 --- a/unity_sps_ogc_processes_api_python_client/models/output_workflows1.py +++ b/unity_sps_ogc_processes_api_python_client/models/output_workflows1.py @@ -30,9 +30,9 @@ class OutputWorkflows1(BaseModel): OutputWorkflows1 """ # noqa: E501 - format: Optional[Format] = None output: Optional[StrictStr] = Field(default=None, alias="$output") - __properties: ClassVar[List[str]] = ["format", "$output"] + format: Optional[Format] = None + __properties: ClassVar[List[str]] = ["$output", "format"] model_config = ConfigDict( populate_by_name=True, @@ -74,16 +74,16 @@ def to_dict(self) -> Dict[str, Any]: # 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 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 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 @@ -97,12 +97,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { + "$output": obj.get("$output"), "format": ( Format.from_dict(obj["format"]) if obj.get("format") is not None else None ), - "$output": obj.get("$output"), } ) 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 9f463b6..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 @@ -42,29 +42,29 @@ class ProcessInput(BaseModel): Process """ # noqa: E501 - title: Optional[StrictStr] = None description: Optional[StrictStr] = None - keywords: Optional[List[StrictStr]] = None - metadata: Optional[List[MetadataInput]] = None id: StrictStr - version: StrictStr + 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 - inputs: Optional[Dict[str, InputDescriptionInput]] = None + metadata: Optional[List[MetadataInput]] = None outputs: Optional[Dict[str, OutputDescriptionInput]] = None + title: Optional[StrictStr] = None + version: StrictStr __properties: ClassVar[List[str]] = [ - "title", "description", - "keywords", - "metadata", "id", - "version", + "inputs", "jobControlOptions", + "keywords", "links", - "inputs", + "metadata", "outputs", + "title", + "version", ] model_config = ConfigDict( @@ -104,20 +104,6 @@ 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 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 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 value in inputs (dict) _field_dict = {} if self.inputs: @@ -125,6 +111,20 @@ def to_dict(self) -> Dict[str, Any]: 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: + 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 # override the default output from pydantic by calling `to_dict()` of each value in outputs (dict) _field_dict = {} if self.outputs: @@ -132,25 +132,15 @@ def to_dict(self) -> Dict[str, Any]: if self.outputs[_key]: _field_dict[_key] = self.outputs[_key].to_dict() _dict["outputs"] = _field_dict - # 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 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 + # set to None if inputs (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 + if self.inputs is None and "inputs" in self.model_fields_set: + _dict["inputs"] = None # set to None if job_control_options (nullable) is None # and model_fields_set contains the field @@ -160,21 +150,31 @@ def to_dict(self) -> Dict[str, Any]: ): _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 inputs (nullable) is None + # set to None if metadata (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 + if self.metadata is None and "metadata" in self.model_fields_set: + _dict["metadata"] = 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 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 @@ -188,28 +188,26 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "title": obj.get("title"), "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 + "id": obj.get("id"), + "inputs": ( + dict( + (_k, InputDescriptionInput.from_dict(_v)) + for _k, _v in obj["inputs"].items() + ) + if obj.get("inputs") is not None else None ), - "id": obj.get("id"), - "version": obj.get("version"), "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 ), - "inputs": ( - dict( - (_k, InputDescriptionInput.from_dict(_v)) - for _k, _v in obj["inputs"].items() - ) - if obj.get("inputs") is not None + "metadata": ( + [MetadataInput.from_dict(_item) for _item in obj["metadata"]] + if obj.get("metadata") is not None else None ), "outputs": ( @@ -220,6 +218,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("outputs") 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_list_input.py b/unity_sps_ogc_processes_api_python_client/models/process_list_input.py index 710bc95..4a42d0c 100644 --- 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 @@ -33,9 +33,9 @@ class ProcessListInput(BaseModel): ProcessList """ # noqa: E501 - processes: List[ProcessSummaryInput] links: List[Link] - __properties: ClassVar[List[str]] = ["processes", "links"] + processes: List[ProcessSummaryInput] + __properties: ClassVar[List[str]] = ["links", "processes"] model_config = ConfigDict( populate_by_name=True, @@ -74,13 +74,6 @@ 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 processes (list) - _items = [] - if self.processes: - for _item in self.processes: - if _item: - _items.append(_item.to_dict()) - _dict["processes"] = _items # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] if self.links: @@ -88,6 +81,13 @@ def to_dict(self) -> Dict[str, Any]: 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 @@ -101,16 +101,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "processes": ( - [ProcessSummaryInput.from_dict(_item) for _item in obj["processes"]] - if obj.get("processes") is not None - else None - ), "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 index f7143ee..705cd6d 100644 --- 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 @@ -33,9 +33,9 @@ class ProcessListOutput(BaseModel): ProcessList """ # noqa: E501 - processes: List[ProcessSummaryOutput] links: List[Link] - __properties: ClassVar[List[str]] = ["processes", "links"] + processes: List[ProcessSummaryOutput] + __properties: ClassVar[List[str]] = ["links", "processes"] model_config = ConfigDict( populate_by_name=True, @@ -74,13 +74,6 @@ 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 processes (list) - _items = [] - if self.processes: - for _item in self.processes: - if _item: - _items.append(_item.to_dict()) - _dict["processes"] = _items # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] if self.links: @@ -88,6 +81,13 @@ def to_dict(self) -> Dict[str, Any]: 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 @@ -101,6 +101,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _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) @@ -109,11 +114,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("processes") 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/process_output.py b/unity_sps_ogc_processes_api_python_client/models/process_output.py index 6de41e8..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 @@ -42,29 +42,29 @@ class ProcessOutput(BaseModel): Process """ # noqa: E501 - title: Optional[StrictStr] = None description: Optional[StrictStr] = None - keywords: Optional[List[StrictStr]] = None - metadata: Optional[List[MetadataOutput]] = None id: StrictStr - version: StrictStr + 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 - inputs: Optional[Dict[str, InputDescriptionOutput]] = None + metadata: Optional[List[MetadataOutput]] = None outputs: Optional[Dict[str, OutputDescriptionOutput]] = None + title: Optional[StrictStr] = None + version: StrictStr __properties: ClassVar[List[str]] = [ - "title", "description", - "keywords", - "metadata", "id", - "version", + "inputs", "jobControlOptions", + "keywords", "links", - "inputs", + "metadata", "outputs", + "title", + "version", ] model_config = ConfigDict( @@ -104,20 +104,6 @@ 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 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 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 value in inputs (dict) _field_dict = {} if self.inputs: @@ -125,6 +111,20 @@ def to_dict(self) -> Dict[str, Any]: 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: + 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 # override the default output from pydantic by calling `to_dict()` of each value in outputs (dict) _field_dict = {} if self.outputs: @@ -132,25 +132,15 @@ def to_dict(self) -> Dict[str, Any]: if self.outputs[_key]: _field_dict[_key] = self.outputs[_key].to_dict() _dict["outputs"] = _field_dict - # 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 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 + # set to None if inputs (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 + if self.inputs is None and "inputs" in self.model_fields_set: + _dict["inputs"] = None # set to None if job_control_options (nullable) is None # and model_fields_set contains the field @@ -160,21 +150,31 @@ def to_dict(self) -> Dict[str, Any]: ): _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 inputs (nullable) is None + # set to None if metadata (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 + if self.metadata is None and "metadata" in self.model_fields_set: + _dict["metadata"] = 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 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 @@ -188,28 +188,26 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "title": obj.get("title"), "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 + "id": obj.get("id"), + "inputs": ( + dict( + (_k, InputDescriptionOutput.from_dict(_v)) + for _k, _v in obj["inputs"].items() + ) + if obj.get("inputs") is not None else None ), - "id": obj.get("id"), - "version": obj.get("version"), "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 ), - "inputs": ( - dict( - (_k, InputDescriptionOutput.from_dict(_v)) - for _k, _v in obj["inputs"].items() - ) - if obj.get("inputs") is not None + "metadata": ( + [MetadataOutput.from_dict(_item) for _item in obj["metadata"]] + if obj.get("metadata") is not None else None ), "outputs": ( @@ -220,6 +218,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("outputs") 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_input.py b/unity_sps_ogc_processes_api_python_client/models/process_summary_input.py index 878f868..62c39e3 100644 --- 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 @@ -36,25 +36,25 @@ class ProcessSummaryInput(BaseModel): ProcessSummary """ # noqa: E501 - title: Optional[StrictStr] = None description: Optional[StrictStr] = None - keywords: Optional[List[StrictStr]] = None - metadata: Optional[List[MetadataInput]] = None id: StrictStr - version: 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]] = [ - "title", "description", - "keywords", - "metadata", "id", - "version", "jobControlOptions", + "keywords", "links", + "metadata", + "title", + "version", ] model_config = ConfigDict( @@ -94,13 +94,6 @@ 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 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 each item in links (list) _items = [] if self.links: @@ -108,26 +101,18 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict["links"] = _items - # 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 - + # 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 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 job_control_options (nullable) is None # and model_fields_set contains the field if ( @@ -136,11 +121,26 @@ def to_dict(self) -> Dict[str, Any]: ): _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 @@ -154,22 +154,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "title": obj.get("title"), "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 - ), "id": obj.get("id"), - "version": obj.get("version"), "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 index 1211304..f4b2468 100644 --- 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 @@ -36,25 +36,25 @@ class ProcessSummaryOutput(BaseModel): ProcessSummary """ # noqa: E501 - title: Optional[StrictStr] = None description: Optional[StrictStr] = None - keywords: Optional[List[StrictStr]] = None - metadata: Optional[List[MetadataOutput]] = None id: StrictStr - version: 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]] = [ - "title", "description", - "keywords", - "metadata", "id", - "version", "jobControlOptions", + "keywords", "links", + "metadata", + "title", + "version", ] model_config = ConfigDict( @@ -94,13 +94,6 @@ 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 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 each item in links (list) _items = [] if self.links: @@ -108,26 +101,18 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict["links"] = _items - # 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 - + # 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 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 job_control_options (nullable) is None # and model_fields_set contains the field if ( @@ -136,11 +121,26 @@ def to_dict(self) -> Dict[str, Any]: ): _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 @@ -154,22 +154,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "title": obj.get("title"), "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 - ), "id": obj.get("id"), - "version": obj.get("version"), "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 index addc586..b128658 100644 --- 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 @@ -33,11 +33,11 @@ class QualifiedInputValueInput(BaseModel): QualifiedInputValue """ # noqa: E501 - media_type: Optional[StrictStr] = Field(default=None, alias="mediaType") 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]] = ["mediaType", "encoding", "schema", "value"] + __properties: ClassVar[List[str]] = ["encoding", "mediaType", "schema", "value"] model_config = ConfigDict( populate_by_name=True, @@ -82,16 +82,16 @@ def to_dict(self) -> Dict[str, Any]: # 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 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 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: @@ -110,8 +110,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "mediaType": obj.get("mediaType"), "encoding": obj.get("encoding"), + "mediaType": obj.get("mediaType"), "schema": ( FormatSchema.from_dict(obj["schema"]) if obj.get("schema") is not None 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 index 5e95d4b..fde6372 100644 --- 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 @@ -33,11 +33,11 @@ class QualifiedInputValueOutput(BaseModel): QualifiedInputValue """ # noqa: E501 - media_type: Optional[StrictStr] = Field(default=None, alias="mediaType") 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]] = ["mediaType", "encoding", "schema", "value"] + __properties: ClassVar[List[str]] = ["encoding", "mediaType", "schema", "value"] model_config = ConfigDict( populate_by_name=True, @@ -82,16 +82,16 @@ def to_dict(self) -> Dict[str, Any]: # 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 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 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: @@ -110,8 +110,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "mediaType": obj.get("mediaType"), "encoding": obj.get("encoding"), + "mediaType": obj.get("mediaType"), "schema": ( FormatSchema.from_dict(obj["schema"]) if obj.get("schema") is not None 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 index 302400a..047de8f 100644 --- 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 @@ -36,19 +36,19 @@ class QualifiedInputValueWorkflows(BaseModel): QualifiedInputValueWorkflows """ # noqa: E501 - media_type: Optional[StrictStr] = Field(default=None, alias="mediaType") encoding: Optional[StrictStr] = None - var_schema: Optional[FormatSchema] = Field(default=None, alias="schema") 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]] = [ - "mediaType", "encoding", - "schema", "filter", + "mediaType", "properties", + "schema", "sortBy", "value", ] @@ -90,40 +90,40 @@ def to_dict(self) -> Dict[str, Any]: 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 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 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 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 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 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: @@ -142,19 +142,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "mediaType": obj.get("mediaType"), "encoding": obj.get("encoding"), - "schema": ( - FormatSchema.from_dict(obj["schema"]) - if obj.get("schema") is not None - else None - ), "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"]) 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 index 094845b..de965ad 100644 --- a/unity_sps_ogc_processes_api_python_client/models/schema1_input.py +++ b/unity_sps_ogc_processes_api_python_client/models/schema1_input.py @@ -36,15 +36,15 @@ class Schema1Input(BaseModel): Schema1 """ # noqa: E501 - oneof_schema_1_validator: Optional[Reference] = None - oneof_schema_2_validator: Optional[SchemaOneOfInput] = None 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]] = [ - "oneof_schema_1_validator", - "oneof_schema_2_validator", "actual_instance", "one_of_schemas", + "oneof_schema_1_validator", + "oneof_schema_2_validator", ] model_config = ConfigDict( @@ -84,15 +84,20 @@ def to_dict(self) -> Dict[str, Any]: 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 actual_instance - if self.actual_instance: - _dict["actual_instance"] = self.actual_instance.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 ( @@ -109,11 +114,6 @@ def to_dict(self) -> Dict[str, Any]: ): _dict["oneof_schema_2_validator"] = None - # 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 - return _dict @classmethod @@ -127,6 +127,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _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 @@ -137,12 +143,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("oneof_schema_2_validator") is not None else None ), - "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"), } ) return _obj 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 index 7df6b43..3ed692e 100644 --- a/unity_sps_ogc_processes_api_python_client/models/schema1_output.py +++ b/unity_sps_ogc_processes_api_python_client/models/schema1_output.py @@ -36,15 +36,15 @@ class Schema1Output(BaseModel): Schema1 """ # noqa: E501 - oneof_schema_1_validator: Optional[Reference] = None - oneof_schema_2_validator: Optional[SchemaOneOfOutput] = None 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]] = [ - "oneof_schema_1_validator", - "oneof_schema_2_validator", "actual_instance", "one_of_schemas", + "oneof_schema_1_validator", + "oneof_schema_2_validator", ] model_config = ConfigDict( @@ -84,15 +84,20 @@ def to_dict(self) -> Dict[str, Any]: 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 actual_instance - if self.actual_instance: - _dict["actual_instance"] = self.actual_instance.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 ( @@ -109,11 +114,6 @@ def to_dict(self) -> Dict[str, Any]: ): _dict["oneof_schema_2_validator"] = None - # 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 - return _dict @classmethod @@ -127,6 +127,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _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 @@ -137,12 +143,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("oneof_schema_2_validator") is not None else None ), - "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"), } ) return _obj 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 index ed20ced..4319935 100644 --- 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 @@ -33,15 +33,15 @@ class SchemaOneOfAdditionalPropertiesInput(BaseModel): SchemaOneOfAdditionalProperties """ # noqa: E501 - oneof_schema_1_validator: Optional[Schema1Input] = None - oneof_schema_2_validator: Optional[StrictBool] = None 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]] = [ - "oneof_schema_1_validator", - "oneof_schema_2_validator", "actual_instance", "one_of_schemas", + "oneof_schema_1_validator", + "oneof_schema_2_validator", ] model_config = ConfigDict( @@ -81,12 +81,17 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # 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 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 ( @@ -103,11 +108,6 @@ def to_dict(self) -> Dict[str, Any]: ): _dict["oneof_schema_2_validator"] = None - # 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 - return _dict @classmethod @@ -121,18 +121,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "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"), "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 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 index c600d14..e9a0797 100644 --- 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 @@ -35,15 +35,15 @@ class SchemaOneOfAdditionalPropertiesOutput(BaseModel): SchemaOneOfAdditionalProperties """ # noqa: E501 - oneof_schema_1_validator: Optional[Schema1Output] = None - oneof_schema_2_validator: Optional[StrictBool] = None 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]] = [ - "oneof_schema_1_validator", - "oneof_schema_2_validator", "actual_instance", "one_of_schemas", + "oneof_schema_1_validator", + "oneof_schema_2_validator", ] model_config = ConfigDict( @@ -83,12 +83,17 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # 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 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 ( @@ -105,11 +110,6 @@ def to_dict(self) -> Dict[str, Any]: ): _dict["oneof_schema_2_validator"] = None - # 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 - return _dict @classmethod @@ -123,18 +123,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "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"), "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 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 index 9f07bc3..bcee790 100644 --- 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 @@ -36,97 +36,97 @@ class SchemaOneOfInput(BaseModel): SchemaOneOf """ # noqa: E501 - title: Optional[StrictStr] = None - multiple_of: Optional[Multipleof] = Field(default=None, alias="multipleOf") - maximum: Optional[Maximum] = None + 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" ) - minimum: Optional[Minimum] = None 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" ) - min_length: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( - default=None, alias="minLength" - ) - pattern: Optional[StrictStr] = None - max_items: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( - default=None, alias="maxItems" + 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" ) - unique_items: Optional[StrictBool] = Field(default=None, alias="uniqueItems") - max_properties: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( - default=None, alias="maxProperties" + 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" ) - required: Optional[Annotated[List[StrictStr], Field(min_length=1)]] = None - enum: Optional[Annotated[List[Dict[str, Any]], Field(min_length=1)]] = None - type: Optional[StrictStr] = None + minimum: Optional[Minimum] = None + multiple_of: Optional[Multipleof] = Field(default=None, alias="multipleOf") var_not: Optional[Schema1Input] = Field(default=None, alias="not") - all_of: Optional[List[Schema1Input]] = Field(default=None, alias="allOf") + nullable: Optional[StrictBool] = None one_of: Optional[List[Schema1Input]] = Field(default=None, alias="oneOf") - any_of: Optional[List[Schema1Input]] = Field(default=None, alias="anyOf") - items: Optional[Schema1Input] = None + pattern: Optional[StrictStr] = None properties: Optional[Dict[str, Schema1Input]] = None - additional_properties: Optional[SchemaOneOfAdditionalPropertiesInput] = Field( - default=None, alias="additionalProperties" - ) - description: Optional[StrictStr] = None - format: Optional[StrictStr] = None - default: Optional[Dict[str, Any]] = None - nullable: Optional[StrictBool] = 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") - example: Optional[Dict[str, Any]] = None - deprecated: Optional[StrictBool] = None - content_media_type: Optional[StrictStr] = Field( - default=None, alias="contentMediaType" - ) - content_encoding: Optional[StrictStr] = Field(default=None, alias="contentEncoding") - content_schema: Optional[StrictStr] = Field(default=None, alias="contentSchema") __properties: ClassVar[List[str]] = [ - "title", - "multipleOf", - "maximum", + "additionalProperties", + "allOf", + "anyOf", + "contentEncoding", + "contentMediaType", + "contentSchema", + "default", + "deprecated", + "description", + "enum", + "example", "exclusiveMaximum", - "minimum", "exclusiveMinimum", - "maxLength", - "minLength", - "pattern", + "format", + "items", "maxItems", - "minItems", - "uniqueItems", + "maxLength", "maxProperties", + "maximum", + "minItems", + "minLength", "minProperties", - "required", - "enum", - "type", + "minimum", + "multipleOf", "not", - "allOf", + "nullable", "oneOf", - "anyOf", - "items", + "pattern", "properties", - "additionalProperties", - "description", - "format", - "default", - "nullable", "readOnly", + "required", + "title", + "type", + "uniqueItems", "writeOnly", - "example", - "deprecated", - "contentMediaType", - "contentEncoding", - "contentSchema", ] model_config = ConfigDict( @@ -166,18 +166,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # 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 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 var_not - if self.var_not: - _dict["not"] = self.var_not.to_dict() + # 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: @@ -185,13 +176,6 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict["allOf"] = _items - # 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 item in any_of (list) _items = [] if self.any_of: @@ -202,6 +186,25 @@ def to_dict(self) -> Dict[str, Any]: # 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: @@ -209,23 +212,69 @@ def to_dict(self) -> Dict[str, Any]: if self.properties[_key]: _field_dict[_key] = self.properties[_key].to_dict() _dict["properties"] = _field_dict - # override the default output from pydantic by calling `to_dict()` of additional_properties - if self.additional_properties: - _dict["additionalProperties"] = self.additional_properties.to_dict() - # set to None if title (nullable) is None + # set to None if additional_properties (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 + if ( + self.additional_properties is None + and "additional_properties" in self.model_fields_set + ): + _dict["additionalProperties"] = None - # set to None if multiple_of (nullable) is None + # set to None if all_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 + if self.all_of is None and "all_of" in self.model_fields_set: + _dict["allOf"] = None - # set to None if maximum (nullable) is None + # set to None if any_of (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 + 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 @@ -235,11 +284,6 @@ def to_dict(self) -> Dict[str, Any]: ): _dict["exclusiveMaximum"] = 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 exclusive_minimum (nullable) is None # and model_fields_set contains the field if ( @@ -248,159 +292,115 @@ def to_dict(self) -> Dict[str, Any]: ): _dict["exclusiveMinimum"] = 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 min_length (nullable) is None + # set to None if format (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 + if self.format is None and "format" in self.model_fields_set: + _dict["format"] = None - # set to None if pattern (nullable) is None + # set to None if items (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 + 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 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 unique_items (nullable) is None + # set to None if max_length (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 + 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 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 enum (nullable) is None + # set to None if minimum (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 + if self.minimum is None and "minimum" in self.model_fields_set: + _dict["minimum"] = None - # set to None if type (nullable) is None + # set to None if multiple_of (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 + 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 all_of (nullable) is None + # set to None if nullable (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 + 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 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 items (nullable) is None + # set to None if pattern (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 + 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 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 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 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 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 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 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 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 - - # set to None if example (nullable) is None + # set to None if required (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 + if self.required is None and "required" in self.model_fields_set: + _dict["required"] = None - # set to None if deprecated (nullable) is None + # set to None if title (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 + if self.title is None and "title" in self.model_fields_set: + _dict["title"] = None - # set to None if content_media_type (nullable) is None + # set to None if 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 + if self.type is None and "type" in self.model_fields_set: + _dict["type"] = None - # set to None if content_encoding (nullable) is None + # set to None if unique_items (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 + if self.unique_items is None and "unique_items" in self.model_fields_set: + _dict["uniqueItems"] = None - # set to None if content_schema (nullable) is None + # set to None if write_only (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 + if self.write_only is None and "write_only" in self.model_fields_set: + _dict["writeOnly"] = None return _dict @@ -415,60 +415,72 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "title": obj.get("title"), - "multipleOf": ( - Multipleof.from_dict(obj["multipleOf"]) - if obj.get("multipleOf") is not None + "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 ), - "exclusiveMaximum": obj.get("exclusiveMaximum"), + "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 ), - "exclusiveMinimum": obj.get("exclusiveMinimum"), - "maxLength": obj.get("maxLength"), - "minLength": obj.get("minLength"), - "pattern": obj.get("pattern"), - "maxItems": obj.get("maxItems"), - "minItems": obj.get("minItems"), - "uniqueItems": obj.get("uniqueItems"), - "maxProperties": obj.get("maxProperties"), - "minProperties": obj.get("minProperties"), - "required": obj.get("required"), - "enum": obj.get("enum"), - "type": obj.get("type"), + "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 ), - "allOf": ( - [Schema1Input.from_dict(_item) for _item in obj["allOf"]] - if obj.get("allOf") 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 ), - "anyOf": ( - [Schema1Input.from_dict(_item) for _item in obj["anyOf"]] - if obj.get("anyOf") is not None - else None - ), - "items": ( - Schema1Input.from_dict(obj["items"]) - if obj.get("items") is not None - else None - ), + "pattern": obj.get("pattern"), "properties": ( dict( (_k, Schema1Input.from_dict(_v)) @@ -477,24 +489,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("properties") is not None else None ), - "additionalProperties": ( - SchemaOneOfAdditionalPropertiesInput.from_dict( - obj["additionalProperties"] - ) - if obj.get("additionalProperties") is not None - else None - ), - "description": obj.get("description"), - "format": obj.get("format"), - "default": obj.get("default"), - "nullable": obj.get("nullable"), "readOnly": obj.get("readOnly"), + "required": obj.get("required"), + "title": obj.get("title"), + "type": obj.get("type"), + "uniqueItems": obj.get("uniqueItems"), "writeOnly": obj.get("writeOnly"), - "example": obj.get("example"), - "deprecated": obj.get("deprecated"), - "contentMediaType": obj.get("contentMediaType"), - "contentEncoding": obj.get("contentEncoding"), - "contentSchema": obj.get("contentSchema"), } ) return _obj 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 index 99a1454..58672f1 100644 --- 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 @@ -38,97 +38,97 @@ class SchemaOneOfOutput(BaseModel): SchemaOneOf """ # noqa: E501 - title: Optional[StrictStr] = None - multiple_of: Optional[Multipleof] = Field(default=None, alias="multipleOf") - maximum: Optional[Maximum] = None + 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" ) - minimum: Optional[Minimum] = None 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" ) - min_length: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( - default=None, alias="minLength" - ) - pattern: Optional[StrictStr] = None - max_items: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( - default=None, alias="maxItems" + 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" ) - unique_items: Optional[StrictBool] = Field(default=None, alias="uniqueItems") - max_properties: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field( - default=None, alias="maxProperties" + 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" ) - required: Optional[Annotated[List[StrictStr], Field(min_length=1)]] = None - enum: Optional[Annotated[List[Dict[str, Any]], Field(min_length=1)]] = None - type: Optional[StrictStr] = None + minimum: Optional[Minimum] = None + multiple_of: Optional[Multipleof] = Field(default=None, alias="multipleOf") var_not: Optional[Schema1Output] = Field(default=None, alias="not") - all_of: Optional[List[Schema1Output]] = Field(default=None, alias="allOf") + nullable: Optional[StrictBool] = None one_of: Optional[List[Schema1Output]] = Field(default=None, alias="oneOf") - any_of: Optional[List[Schema1Output]] = Field(default=None, alias="anyOf") - items: Optional[Schema1Output] = None + pattern: Optional[StrictStr] = None properties: Optional[Dict[str, Schema1Output]] = None - additional_properties: Optional[SchemaOneOfAdditionalPropertiesOutput] = Field( - default=None, alias="additionalProperties" - ) - description: Optional[StrictStr] = None - format: Optional[StrictStr] = None - default: Optional[Dict[str, Any]] = None - nullable: Optional[StrictBool] = 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") - example: Optional[Dict[str, Any]] = None - deprecated: Optional[StrictBool] = None - content_media_type: Optional[StrictStr] = Field( - default=None, alias="contentMediaType" - ) - content_encoding: Optional[StrictStr] = Field(default=None, alias="contentEncoding") - content_schema: Optional[StrictStr] = Field(default=None, alias="contentSchema") __properties: ClassVar[List[str]] = [ - "title", - "multipleOf", - "maximum", + "additionalProperties", + "allOf", + "anyOf", + "contentEncoding", + "contentMediaType", + "contentSchema", + "default", + "deprecated", + "description", + "enum", + "example", "exclusiveMaximum", - "minimum", "exclusiveMinimum", - "maxLength", - "minLength", - "pattern", + "format", + "items", "maxItems", - "minItems", - "uniqueItems", + "maxLength", "maxProperties", + "maximum", + "minItems", + "minLength", "minProperties", - "required", - "enum", - "type", + "minimum", + "multipleOf", "not", - "allOf", + "nullable", "oneOf", - "anyOf", - "items", + "pattern", "properties", - "additionalProperties", - "description", - "format", - "default", - "nullable", "readOnly", + "required", + "title", + "type", + "uniqueItems", "writeOnly", - "example", - "deprecated", - "contentMediaType", - "contentEncoding", - "contentSchema", ] model_config = ConfigDict( @@ -168,18 +168,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # 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 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 var_not - if self.var_not: - _dict["not"] = self.var_not.to_dict() + # 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: @@ -187,13 +178,6 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict["allOf"] = _items - # 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 item in any_of (list) _items = [] if self.any_of: @@ -204,6 +188,25 @@ def to_dict(self) -> Dict[str, Any]: # 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: @@ -211,23 +214,69 @@ def to_dict(self) -> Dict[str, Any]: if self.properties[_key]: _field_dict[_key] = self.properties[_key].to_dict() _dict["properties"] = _field_dict - # override the default output from pydantic by calling `to_dict()` of additional_properties - if self.additional_properties: - _dict["additionalProperties"] = self.additional_properties.to_dict() - # set to None if title (nullable) is None + # set to None if additional_properties (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 + if ( + self.additional_properties is None + and "additional_properties" in self.model_fields_set + ): + _dict["additionalProperties"] = None - # set to None if multiple_of (nullable) is None + # set to None if all_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 + if self.all_of is None and "all_of" in self.model_fields_set: + _dict["allOf"] = None - # set to None if maximum (nullable) is None + # set to None if any_of (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 + 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 @@ -237,11 +286,6 @@ def to_dict(self) -> Dict[str, Any]: ): _dict["exclusiveMaximum"] = 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 exclusive_minimum (nullable) is None # and model_fields_set contains the field if ( @@ -250,159 +294,115 @@ def to_dict(self) -> Dict[str, Any]: ): _dict["exclusiveMinimum"] = 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 min_length (nullable) is None + # set to None if format (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 + if self.format is None and "format" in self.model_fields_set: + _dict["format"] = None - # set to None if pattern (nullable) is None + # set to None if items (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 + 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 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 unique_items (nullable) is None + # set to None if max_length (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 + 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 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 enum (nullable) is None + # set to None if minimum (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 + if self.minimum is None and "minimum" in self.model_fields_set: + _dict["minimum"] = None - # set to None if type (nullable) is None + # set to None if multiple_of (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 + 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 all_of (nullable) is None + # set to None if nullable (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 + 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 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 items (nullable) is None + # set to None if pattern (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 + 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 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 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 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 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 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 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 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 - - # set to None if example (nullable) is None + # set to None if required (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 + if self.required is None and "required" in self.model_fields_set: + _dict["required"] = None - # set to None if deprecated (nullable) is None + # set to None if title (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 + if self.title is None and "title" in self.model_fields_set: + _dict["title"] = None - # set to None if content_media_type (nullable) is None + # set to None if 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 + if self.type is None and "type" in self.model_fields_set: + _dict["type"] = None - # set to None if content_encoding (nullable) is None + # set to None if unique_items (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 + if self.unique_items is None and "unique_items" in self.model_fields_set: + _dict["uniqueItems"] = None - # set to None if content_schema (nullable) is None + # set to None if write_only (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 + if self.write_only is None and "write_only" in self.model_fields_set: + _dict["writeOnly"] = None return _dict @@ -417,60 +417,72 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "title": obj.get("title"), - "multipleOf": ( - Multipleof.from_dict(obj["multipleOf"]) - if obj.get("multipleOf") is not None + "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 ), - "exclusiveMaximum": obj.get("exclusiveMaximum"), + "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 ), - "exclusiveMinimum": obj.get("exclusiveMinimum"), - "maxLength": obj.get("maxLength"), - "minLength": obj.get("minLength"), - "pattern": obj.get("pattern"), - "maxItems": obj.get("maxItems"), - "minItems": obj.get("minItems"), - "uniqueItems": obj.get("uniqueItems"), - "maxProperties": obj.get("maxProperties"), - "minProperties": obj.get("minProperties"), - "required": obj.get("required"), - "enum": obj.get("enum"), - "type": obj.get("type"), + "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 ), - "allOf": ( - [Schema1Output.from_dict(_item) for _item in obj["allOf"]] - if obj.get("allOf") 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 ), - "anyOf": ( - [Schema1Output.from_dict(_item) for _item in obj["anyOf"]] - if obj.get("anyOf") is not None - else None - ), - "items": ( - Schema1Output.from_dict(obj["items"]) - if obj.get("items") is not None - else None - ), + "pattern": obj.get("pattern"), "properties": ( dict( (_k, Schema1Output.from_dict(_v)) @@ -479,24 +491,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("properties") is not None else None ), - "additionalProperties": ( - SchemaOneOfAdditionalPropertiesOutput.from_dict( - obj["additionalProperties"] - ) - if obj.get("additionalProperties") is not None - else None - ), - "description": obj.get("description"), - "format": obj.get("format"), - "default": obj.get("default"), - "nullable": obj.get("nullable"), "readOnly": obj.get("readOnly"), + "required": obj.get("required"), + "title": obj.get("title"), + "type": obj.get("type"), + "uniqueItems": obj.get("uniqueItems"), "writeOnly": obj.get("writeOnly"), - "example": obj.get("example"), - "deprecated": obj.get("deprecated"), - "contentMediaType": obj.get("contentMediaType"), - "contentEncoding": obj.get("contentEncoding"), - "contentSchema": obj.get("contentSchema"), } ) return _obj 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 937da0a..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 @@ -33,31 +33,31 @@ class StatusInfo(BaseModel): StatusInfo """ # noqa: E501 - process_id: Optional[StrictStr] = Field(default=None, alias="processID") - type: StrictStr + created: Optional[datetime] = None + exception: Optional[Exception] = None + finished: Optional[datetime] = None job_id: StrictStr = Field(alias="jobID") - status: StatusCode + links: Optional[List[Link]] = None message: Optional[StrictStr] = None - exception: Optional[Exception] = None - created: Optional[datetime] = None + process_id: Optional[StrictStr] = Field(default=None, alias="processID") + progress: Optional[Annotated[int, Field(le=100, strict=True, ge=0)]] = None started: Optional[datetime] = None - finished: Optional[datetime] = None + status: StatusCode + type: StrictStr updated: Optional[datetime] = None - progress: Optional[Annotated[int, Field(le=100, strict=True, ge=0)]] = None - links: Optional[List[Link]] = None __properties: ClassVar[List[str]] = [ - "processID", - "type", + "created", + "exception", + "finished", "jobID", - "status", + "links", "message", - "exception", - "created", + "processID", + "progress", "started", - "finished", + "status", + "type", "updated", - "progress", - "links", ] model_config = ConfigDict( @@ -107,50 +107,50 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict["links"] = _items - # set to None if process_id (nullable) is None - # and model_fields_set contains the field - if self.process_id is None and "process_id" in self.model_fields_set: - _dict["processID"] = None - - # set to None if message (nullable) is None + # set to None if created (nullable) is None # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict["message"] = None + if self.created is None and "created" in self.model_fields_set: + _dict["created"] = None # set to None if exception (nullable) is None # and model_fields_set contains the field if self.exception is None and "exception" in self.model_fields_set: _dict["exception"] = None - # set to None if created (nullable) is None + # set to None if finished (nullable) is None # and model_fields_set contains the field - if self.created is None and "created" in self.model_fields_set: - _dict["created"] = None + if self.finished is None and "finished" in self.model_fields_set: + _dict["finished"] = None - # set to None if started (nullable) is None + # set to None if links (nullable) is None # and model_fields_set contains the field - if self.started is None and "started" in self.model_fields_set: - _dict["started"] = None + if self.links is None and "links" in self.model_fields_set: + _dict["links"] = None - # set to None if finished (nullable) is None + # set to None if message (nullable) is None # and model_fields_set contains the field - if self.finished is None and "finished" in self.model_fields_set: - _dict["finished"] = None + if self.message is None and "message" in self.model_fields_set: + _dict["message"] = None - # set to None if updated (nullable) is None + # set to None if process_id (nullable) is None # and model_fields_set contains the field - if self.updated is None and "updated" in self.model_fields_set: - _dict["updated"] = None + if self.process_id is None and "process_id" in self.model_fields_set: + _dict["processID"] = None # set to None if progress (nullable) is None # and model_fields_set contains the field if self.progress is None and "progress" in self.model_fields_set: _dict["progress"] = None - # set to None if links (nullable) is None + # set to None if started (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 + if self.started is None and "started" in self.model_fields_set: + _dict["started"] = 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: + _dict["updated"] = None return _dict @@ -165,26 +165,26 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "processID": obj.get("processID"), - "type": obj.get("type"), - "jobID": obj.get("jobID"), - "status": obj.get("status"), - "message": obj.get("message"), + "created": obj.get("created"), "exception": ( Exception.from_dict(obj["exception"]) if obj.get("exception") is not None else None ), - "created": obj.get("created"), - "started": obj.get("started"), "finished": obj.get("finished"), - "updated": obj.get("updated"), - "progress": obj.get("progress"), + "jobID": obj.get("jobID"), "links": ( [Link.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None ), + "message": obj.get("message"), + "processID": obj.get("processID"), + "progress": obj.get("progress"), + "started": obj.get("started"), + "status": obj.get("status"), + "type": obj.get("type"), + "updated": obj.get("updated"), } ) return _obj 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 c6eb469..a3acdcd 100644 --- a/unity_sps_ogc_processes_api_python_client/models/subscriber.py +++ b/unity_sps_ogc_processes_api_python_client/models/subscriber.py @@ -28,10 +28,10 @@ class Subscriber(BaseModel): 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 - success_uri: StrictStr = Field(alias="successUri") - in_progress_uri: Optional[StrictStr] = Field(default=None, alias="inProgressUri") failed_uri: Optional[StrictStr] = Field(default=None, alias="failedUri") - __properties: ClassVar[List[str]] = ["successUri", "inProgressUri", "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( populate_by_name=True, @@ -70,16 +70,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if in_progress_uri (nullable) is None - # and model_fields_set contains the field - if self.in_progress_uri is None and "in_progress_uri" in self.model_fields_set: - _dict["inProgressUri"] = None - # set to None if failed_uri (nullable) is None # and model_fields_set contains the field if self.failed_uri is None and "failed_uri" in self.model_fields_set: _dict["failedUri"] = None + # set to None if in_progress_uri (nullable) is None + # and model_fields_set contains the field + if self.in_progress_uri is None and "in_progress_uri" in self.model_fields_set: + _dict["inProgressUri"] = None + return _dict @classmethod @@ -93,9 +93,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "successUri": obj.get("successUri"), - "inProgressUri": obj.get("inProgressUri"), "failedUri": obj.get("failedUri"), + "inProgressUri": obj.get("inProgressUri"), + "successUri": obj.get("successUri"), } ) return _obj From 1a9761848a2e11f94f89e5a431559b3d92966fe2 Mon Sep 17 00:00:00 2001 From: Drew Meyers Date: Mon, 9 Sep 2024 13:03:40 -0700 Subject: [PATCH 3/4] feat: Updated openapi spec --- .pre-commit-config.yaml | 3 ++- .../models/actual_instance.py | 13 +++++++------ .../models/actual_instance1.py | 3 ++- .../models/actual_instance2.py | 8 ++++---- .../models/actual_instance3.py | 7 ++++--- .../models/actual_instance4.py | 7 ++++--- .../models/actual_instance5.py | 4 ++-- .../models/actual_instance6.py | 8 ++++---- .../models/inline_or_ref_data_workflows.py | 19 ++++++++++--------- .../models/input_process.py | 7 ++++--- .../models/input_value_no_object_workflows.py | 9 +++++---- .../models/input_value_workflows.py | 8 ++++---- .../models/input_workflows1.py | 14 +++++++------- .../models/qualified_input_value_workflows.py | 7 ++++--- .../models/schema1_input.py | 13 +++++++------ .../models/schema1_output.py | 13 +++++++------ ...hema_one_of_additional_properties_input.py | 10 +++++----- ...ema_one_of_additional_properties_output.py | 14 +++++++------- .../models/schema_one_of_input.py | 9 +++++---- .../models/schema_one_of_output.py | 13 +++++++------ 20 files changed, 101 insertions(+), 88 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0972704..3a76ab4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -45,7 +45,8 @@ repos: - id: ruff args: [ "--fix", - "--unsafe-fixes" + "--unsafe-fixes", + "--ignore", "E402" ] - repo: https://github.com/PyCQA/bandit 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 index 689ec7f..6f02505 100644 --- a/unity_sps_ogc_processes_api_python_client/models/actual_instance.py +++ b/unity_sps_ogc_processes_api_python_client/models/actual_instance.py @@ -22,13 +22,7 @@ from pydantic import BaseModel, ValidationError, field_validator from typing_extensions import Self -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.link import Link -from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows import ( - QualifiedInputValueWorkflows, -) ACTUALINSTANCE_ANY_OF_SCHEMAS = [ "InputValueNoObjectWorkflows", @@ -195,5 +189,12 @@ def to_str(self) -> str: 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 index 4362f15..99d909d 100644 --- a/unity_sps_ogc_processes_api_python_client/models/actual_instance1.py +++ b/unity_sps_ogc_processes_api_python_client/models/actual_instance1.py @@ -37,7 +37,6 @@ 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 ACTUALINSTANCE1_ANY_OF_SCHEMAS = [ "Bbox1", @@ -333,5 +332,7 @@ def to_str(self) -> str: 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 index 41431da..6efcd09 100644 --- a/unity_sps_ogc_processes_api_python_client/models/actual_instance2.py +++ b/unity_sps_ogc_processes_api_python_client/models/actual_instance2.py @@ -22,10 +22,6 @@ from pydantic import BaseModel, ValidationError, field_validator from typing_extensions import Self -from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows import ( - InlineOrRefDataWorkflows, -) - ACTUALINSTANCE2_ANY_OF_SCHEMAS = [ "InlineOrRefDataWorkflows", "List[InlineOrRefDataWorkflows]", @@ -171,5 +167,9 @@ def to_str(self) -> str: 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 index 35b6c49..7407ef7 100644 --- a/unity_sps_ogc_processes_api_python_client/models/actual_instance3.py +++ b/unity_sps_ogc_processes_api_python_client/models/actual_instance3.py @@ -23,9 +23,6 @@ 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, -) ACTUALINSTANCE3_ANY_OF_SCHEMAS = ["Reference", "SchemaOneOfInput"] @@ -157,5 +154,9 @@ def to_str(self) -> str: 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 index e7a59b0..79eed1a 100644 --- a/unity_sps_ogc_processes_api_python_client/models/actual_instance4.py +++ b/unity_sps_ogc_processes_api_python_client/models/actual_instance4.py @@ -23,9 +23,6 @@ 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, -) ACTUALINSTANCE4_ANY_OF_SCHEMAS = ["Reference", "SchemaOneOfOutput"] @@ -157,5 +154,9 @@ def to_str(self) -> str: 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 index 4c19914..1b8d379 100644 --- a/unity_sps_ogc_processes_api_python_client/models/actual_instance5.py +++ b/unity_sps_ogc_processes_api_python_client/models/actual_instance5.py @@ -22,8 +22,6 @@ from pydantic import BaseModel, StrictBool, ValidationError, field_validator from typing_extensions import Self -from unity_sps_ogc_processes_api_python_client.models.schema1_input import Schema1Input - ACTUALINSTANCE5_ANY_OF_SCHEMAS = ["Schema1Input", "bool"] @@ -157,5 +155,7 @@ def to_str(self) -> str: 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 index f4c55be..2904b21 100644 --- a/unity_sps_ogc_processes_api_python_client/models/actual_instance6.py +++ b/unity_sps_ogc_processes_api_python_client/models/actual_instance6.py @@ -22,10 +22,6 @@ from pydantic import BaseModel, StrictBool, ValidationError, field_validator from typing_extensions import Self -from unity_sps_ogc_processes_api_python_client.models.schema1_output import ( - Schema1Output, -) - ACTUALINSTANCE6_ANY_OF_SCHEMAS = ["Schema1Output", "bool"] @@ -159,5 +155,9 @@ def to_str(self) -> str: 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/inline_or_ref_data_workflows.py b/unity_sps_ogc_processes_api_python_client/models/inline_or_ref_data_workflows.py index 35c28ff..1e8a040 100644 --- 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 @@ -22,16 +22,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing_extensions import Self -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.link import Link -from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows import ( - QualifiedInputValueWorkflows, -) class InlineOrRefDataWorkflows(BaseModel): @@ -173,5 +164,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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_process.py b/unity_sps_ogc_processes_api_python_client/models/input_process.py index 2dc6edc..d155151 100644 --- a/unity_sps_ogc_processes_api_python_client/models/input_process.py +++ b/unity_sps_ogc_processes_api_python_client/models/input_process.py @@ -25,9 +25,6 @@ from unity_sps_ogc_processes_api_python_client.models.fields_modifiers_properties import ( FieldsModifiersProperties, ) -from unity_sps_ogc_processes_api_python_client.models.input_workflows1 import ( - InputWorkflows1, -) from unity_sps_ogc_processes_api_python_client.models.output_workflows1 import ( OutputWorkflows1, ) @@ -192,5 +189,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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_no_object_workflows.py b/unity_sps_ogc_processes_api_python_client/models/input_value_no_object_workflows.py index e6bbf62..ed3d010 100644 --- 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 @@ -22,9 +22,6 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr from typing_extensions import Self -from unity_sps_ogc_processes_api_python_client.models.actual_instance1 import ( - ActualInstance1, -) 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, @@ -32,7 +29,6 @@ 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.oneof_schema2_validator import ( OneofSchema2Validator, ) @@ -276,5 +272,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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_workflows.py b/unity_sps_ogc_processes_api_python_client/models/input_value_workflows.py index 4af0000..aec91b5 100644 --- 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 @@ -22,10 +22,6 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing_extensions import Self -from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows import ( - InputValueNoObjectWorkflows, -) - class InputValueWorkflows(BaseModel): """ @@ -139,5 +135,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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_workflows1.py b/unity_sps_ogc_processes_api_python_client/models/input_workflows1.py index 52da758..63c88db 100644 --- a/unity_sps_ogc_processes_api_python_client/models/input_workflows1.py +++ b/unity_sps_ogc_processes_api_python_client/models/input_workflows1.py @@ -22,13 +22,6 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing_extensions import Self -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, -) - class InputWorkflows1(BaseModel): """ @@ -154,5 +147,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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/qualified_input_value_workflows.py b/unity_sps_ogc_processes_api_python_client/models/qualified_input_value_workflows.py index 047de8f..1714deb 100644 --- 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 @@ -26,9 +26,6 @@ FieldsModifiersProperties, ) from unity_sps_ogc_processes_api_python_client.models.format_schema import FormatSchema -from unity_sps_ogc_processes_api_python_client.models.input_value_workflows import ( - InputValueWorkflows, -) class QualifiedInputValueWorkflows(BaseModel): @@ -166,5 +163,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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/schema1_input.py b/unity_sps_ogc_processes_api_python_client/models/schema1_input.py index de965ad..8a78829 100644 --- a/unity_sps_ogc_processes_api_python_client/models/schema1_input.py +++ b/unity_sps_ogc_processes_api_python_client/models/schema1_input.py @@ -22,13 +22,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing_extensions import Self -from unity_sps_ogc_processes_api_python_client.models.actual_instance3 import ( - ActualInstance3, -) 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, -) class Schema1Input(BaseModel): @@ -148,5 +142,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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 index 3ed692e..8911c5f 100644 --- a/unity_sps_ogc_processes_api_python_client/models/schema1_output.py +++ b/unity_sps_ogc_processes_api_python_client/models/schema1_output.py @@ -22,13 +22,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing_extensions import Self -from unity_sps_ogc_processes_api_python_client.models.actual_instance4 import ( - ActualInstance4, -) 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, -) class Schema1Output(BaseModel): @@ -148,5 +142,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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 index 4319935..6269a22 100644 --- 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 @@ -22,11 +22,6 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr from typing_extensions import Self -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 - class SchemaOneOfAdditionalPropertiesInput(BaseModel): """ @@ -138,5 +133,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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 index e9a0797..1ad1cbc 100644 --- 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 @@ -22,13 +22,6 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr from typing_extensions import Self -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, -) - class SchemaOneOfAdditionalPropertiesOutput(BaseModel): """ @@ -140,5 +133,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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 index bcee790..45c4c1f 100644 --- 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 @@ -25,10 +25,6 @@ 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 -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, -) class SchemaOneOfInput(BaseModel): @@ -500,5 +496,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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 index 58672f1..916ea8c 100644 --- 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 @@ -25,12 +25,6 @@ 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 -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, -) class SchemaOneOfOutput(BaseModel): @@ -502,5 +496,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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) From 6888386e2e92196f59883a6984e74977ae98c4dd Mon Sep 17 00:00:00 2001 From: Drew Meyers Date: Mon, 9 Sep 2024 13:07:39 -0700 Subject: [PATCH 4/4] feat: Require python 3.8 or greater --- .github/workflows/python.yml | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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/pyproject.toml b/pyproject.toml index b273fac..72e76b1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "Unity Processing API conforming to 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"