{"id":20626445,"url":"https://github.com/chgeuer/ex_microsoft_azure_management_generator","last_synced_at":"2025-04-15T15:20:46.175Z","repository":{"id":57500700,"uuid":"131975670","full_name":"chgeuer/ex_microsoft_azure_management_generator","owner":"chgeuer","description":"Generates Elixir SDKs from Microsoft Azure Swagger specifications. ","archived":false,"fork":false,"pushed_at":"2020-01-07T10:54:36.000Z","size":27,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-03-15T07:06:16.701Z","etag":null,"topics":["azure","azure-resource-manager","elixir","elixir-client","elixir-lang","elixir-library"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chgeuer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-03T09:54:56.000Z","updated_at":"2023-08-29T11:02:28.000Z","dependencies_parsed_at":"2022-08-30T20:10:22.573Z","dependency_job_id":null,"html_url":"https://github.com/chgeuer/ex_microsoft_azure_management_generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chgeuer%2Fex_microsoft_azure_management_generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chgeuer%2Fex_microsoft_azure_management_generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chgeuer%2Fex_microsoft_azure_management_generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chgeuer%2Fex_microsoft_azure_management_generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chgeuer","download_url":"https://codeload.github.com/chgeuer/ex_microsoft_azure_management_generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249094939,"owners_count":21211837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","azure-resource-manager","elixir","elixir-client","elixir-lang","elixir-library"],"created_at":"2024-11-16T13:13:16.812Z","updated_at":"2025-04-15T15:20:46.149Z","avatar_url":"https://github.com/chgeuer.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ExMicrosoftAzureManagementGenerator\n\nGenerates Elixir SDKs from Microsoft Azure Swagger specifications. \n\n## Download\n\nAvailable on [hex.pm](https://hex.pm/packages/ex_microsoft_azure_management_generator) and [GitHub](https://github.com/chgeuer/ex_microsoft_azure_management_generator).\n\n## Support\n\nThis is *not* an official SDK from the Microsoft Azure team, but a generator by an Elixir noob. \n\n## Maturity\n\nThe code generated by this tool is not yet 100% checked. I have been able to `GET` information from the Azure Resource Manager API, as well as making deployments (`PUT`). For examples, please see the [chgeuer/ex_microsoft_azure_management_samples](https://github.com/chgeuer/ex_microsoft_azure_management_samples/blob/master/lib/sample.ex) repository. \n\n## Dependencies\n\n- Java must be installed\n\n## How to run\n\nDo a `mix deps.get`  (obviously) and simply call `./generate.sh` on Linux or `.\\generate.cmd` on Windows. This will read the `swagger.json` file, pull the mentioned Swagger 2.0 definitions from the Azure Swagger specifications repo, and build the clients. Check the [config section](#configuration) for details. \n\n## Configuration\n\nThe example configuration in `swagger.json` below generates two SDKs, one for the Azure Compute provider, and one for the PostgreSQL managed database. \n\nThe compute SDK joins multiple Swagger definitions (`skus`, `compute`, `runCommands` and `disk`) in a single Elixir SDK. \n\n```json\n[\n    { \n        \"app_name\": \"ex_microsoft_azure_management_compute\",\n        \"package\": \"Microsoft.Azure.Management.Compute\", \n        \"name\": \"Microsoft.Azure.Management.Compute\", \n        \"url\": [\n            \"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/compute/resource-manager/Microsoft.Compute/stable/2017-09-01/skus.json\",\n            \"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/compute.json\",\n            \"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/runCommands.json\",\n            \"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/disk.json\"\n         ]\n    },\n    { \n        \"app_name\": \"ex_microsoft_azure_management_postgresql\",\n        \"package\": \"Microsoft.Azure.Management.Database.PostgreSql\", \n        \"name\": \"Microsoft.Azure.Management.Database.PostgreSql\", \n        \"url\": [ \n            \"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2017-12-01/postgresql.json\"\n         ]\n    },\n    ...\n]\n```\n\n# notes\n\n```cmd\nREM https://openapi-generator.tech/docs/customization\n\njava -jar C:\\github\\openapitools\\openapi-generator\\modules\\openapi-generator-cli\\target\\openapi-generator-cli.jar help generate\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchgeuer%2Fex_microsoft_azure_management_generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchgeuer%2Fex_microsoft_azure_management_generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchgeuer%2Fex_microsoft_azure_management_generator/lists"}