This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 245
Azure Stack API Steps to regenerate SDKs
Sarangan Rajamanickam edited this page Aug 4, 2017
·
4 revisions
Use the following command to clone the specs repository:
git clone https://github.com/Azure/azure-rest-api-specs.git
git checkout current
If you would like to (re)generate the azure_mgmt_compute, then open the readme.md file in <YOUR_SPECS_REPOSITORY_CLONED_PATH>/specification/compute/resource-manager/ path and add a new tag such as:
``` yaml $(tag) == '<YOUR_TAG_NAME>'
input-file:
- Microsoft.Compute/2017-03-30/compute.json
- Microsoft.Compute/2017-03-30/disk.json
- Microsoft.Compute/2017-03-30/runCommands.json
- Microsoft.ContainerService/2017-01-31/containerService.json
<YOUR_TAG_NAME> could be something similar to package-compute-2017-03.This tag name will be used to generate the Ruby SDK.
Use the following command to install autorest:
npm install -g autorest
Use the following command to clone Ruby SDK:
git clone https://github.com/Azure/azure-sdk-for-ruby.git
If you would like to (re)generate the azure_mgmt_compute, then open <YOUR_AZURE_RUBY_SDK_CLONED_PATH>/management/azure_mgmt_compute/lib folder and delete the ‘generated’ folder.
If you would like to (re)generate the azure_mgmt_compute, then you can use the following command:
autorest <YOUR_SPECS_REPOSITORY_CLONED_PATH>/current/specification/compute/resource-manager/readme.md --package-version=<YOUR_PACKAGE_VERSION> --namespace=Azure::ARM::Compute --package-name=azure_mgmt_compute --output-folder=<YOUR_AZURE_RUBY_SDK_CLONED_PATH>/ management/azure_mgmt_compute/lib --ruby --azure-arm –tag=<YOUR_TAG_NAME>