elixir-cloud-aai / ga4gh-sdk

Generic SDK and CLI for GA4GH API services
Apache License 2.0
13 stars 2 forks source link

feat(serviceinfo,tes): add models #35

Closed aaravm closed 3 months ago

aaravm commented 3 months ago

This PR contains all the autogenerated models created by running the script in the #27 This PR doesn't contain any manually written code, and everything is autogenerated

Summary by Sourcery

Add autogenerated models for the Task Execution Service (TES) API and GA4GH service-info API. Introduce scripts to automate the generation of these models from OpenAPI specifications.

New Features:

Enhancements:

sourcery-ai[bot] commented 3 months ago

Reviewer's Guide by Sourcery

This pull request adds autogenerated models for the Task Execution Service (TES) and Service Info APIs. It includes a shell script to automate the model generation process and adds the generated Rust code for various data structures and enums used in these APIs.

File-Level Changes

Files Changes
utils/script.sh Added a shell script (utils/script.sh) to generate OpenAPI models
lib/src/tes/models/tes_service_info.rs
lib/src/tes/models/tes_task.rs
lib/src/tes/models/service.rs
lib/src/tes/models/tes_state.rs
lib/src/tes/models/tes_executor.rs
lib/src/tes/models/tes_resources.rs
lib/src/tes/models/tes_input.rs
lib/src/tes/models/tes_task_log.rs
lib/src/tes/models/tes_output.rs
lib/src/tes/models/tes_service_type.rs
lib/src/tes/models/tes_executor_log.rs
lib/src/tes/models/tes_file_type.rs
lib/src/tes/models/service_type.rs
lib/src/tes/models/tes_output_file_log.rs
lib/src/tes/models/service_organization.rs
lib/src/tes/models/tes_list_tasks_response.rs
lib/src/tes/models/mod.rs
lib/src/tes/models/tes_create_task_response.rs
Added autogenerated models for the Task Execution Service (TES) API
lib/src/serviceinfo/models/service.rs
lib/src/serviceinfo/models/service_type.rs
lib/src/serviceinfo/models/service_organization.rs
lib/src/serviceinfo/models/mod.rs
Added autogenerated models for the Service Info API
utils/build-models.sh Added a build script to automate the model generation process

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.
aaravm commented 3 months ago

Ok, I have moved transport and configuration to utils folder, and moved tes and serviceinfo to a clients folder in further PRs. @uniqueg, I have merged #30, and have moved the structs to a utils folder in this PR, and moved the models to clients, since the comment regarding changing folders is mentioned here. I think this PR is ready to be merged.