[Do not merge] Adding workspace level quota management APIs#5972
[Do not merge] Adding workspace level quota management APIs#5972leizhaoPS wants to merge 8 commits intoAzure:masterfrom
Conversation
Automation for azure-sdk-for-pythonEncountered an unknown error: (azure-sdk-for-python)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 33, in exception_to_github
yield context
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 170, in rest_handle_action
return rest_pull_close(body, restapi_repo, sdk_pr_target_repo, sdkbase, sdk_tag)
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 185, in rest_pull_close
rest_pr_management(rest_pr, sdk_pr_target_repo, sdk_tag, sdk_default_base)
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github_handler.py", line 151, in rest_pr_management
sdk_tag=sdk_tag
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/SwaggerToSdkNewCLI.py", line 254, in generate_sdk_from_git_object
with manage_git_folder(gh_token, Path(temp_dir) / Path("rest"), branched_rest_api_id, pr_number=pr_number) as restapi_git_folder, \
File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
return next(self.gen)
File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 272, in manage_git_folder
clone_to_path(gh_token, temp_dir, split_git_id[0], branch_or_commit=branch, pr_number=pr_number)
File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 212, in clone_to_path
repo.git.checkout(branch_or_commit)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 548, in <lambda>
return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 1014, in _call_process
return self.execute(call, **exec_kwargs)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 825, in execute
raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git checkout cd8b1d2f6b320240b5c72320cfe196fe0cd8f68b
stderr: 'fatal: reference is not a tree: cd8b1d2f6b320240b5c72320cfe196fe0cd8f68b' |
Automation for azure-sdk-for-rubyNothing to generate for azure-sdk-for-ruby |
Automation for azure-sdk-for-jsA PR has been created for you: |
Automation for azure-sdk-for-goEncountered an unknown error: (azure-sdk-for-go)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 33, in exception_to_github
yield context
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 170, in rest_handle_action
return rest_pull_close(body, restapi_repo, sdk_pr_target_repo, sdkbase, sdk_tag)
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 185, in rest_pull_close
rest_pr_management(rest_pr, sdk_pr_target_repo, sdk_tag, sdk_default_base)
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github_handler.py", line 151, in rest_pr_management
sdk_tag=sdk_tag
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/SwaggerToSdkNewCLI.py", line 254, in generate_sdk_from_git_object
with manage_git_folder(gh_token, Path(temp_dir) / Path("rest"), branched_rest_api_id, pr_number=pr_number) as restapi_git_folder, \
File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
return next(self.gen)
File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 272, in manage_git_folder
clone_to_path(gh_token, temp_dir, split_git_id[0], branch_or_commit=branch, pr_number=pr_number)
File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 212, in clone_to_path
repo.git.checkout(branch_or_commit)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 548, in <lambda>
return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 1014, in _call_process
return self.execute(call, **exec_kwargs)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 825, in execute
raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git checkout cd8b1d2f6b320240b5c72320cfe196fe0cd8f68b
stderr: 'fatal: reference is not a tree: cd8b1d2f6b320240b5c72320cfe196fe0cd8f68b' |
...rce-manager/Microsoft.MachineLearningServices/stable/2018-11-19/machineLearningServices.json
Outdated
Show resolved
Hide resolved
...rce-manager/Microsoft.MachineLearningServices/stable/2018-11-19/machineLearningServices.json
Outdated
Show resolved
Hide resolved
|
Can one of the admins verify this patch? |
Automation for azure-sdk-for-javaNothing to generate for azure-sdk-for-java |
|
Consider folks will give comments, close the draft PR and I will reopen a new PR |
|
reopen as normal PR |
...rce-manager/Microsoft.MachineLearningServices/stable/2018-11-19/machineLearningServices.json
Outdated
Show resolved
Hide resolved
...rce-manager/Microsoft.MachineLearningServices/stable/2018-11-19/machineLearningServices.json
Outdated
Show resolved
Hide resolved
...rce-manager/Microsoft.MachineLearningServices/stable/2018-11-19/machineLearningServices.json
Outdated
Show resolved
Hide resolved
...rce-manager/Microsoft.MachineLearningServices/stable/2018-11-19/machineLearningServices.json
Outdated
Show resolved
Hide resolved
...rce-manager/Microsoft.MachineLearningServices/stable/2018-11-19/machineLearningServices.json
Show resolved
Hide resolved
...er/Microsoft.MachineLearningServices/preview/2018-03-01-preview/machineLearningServices.json
Outdated
Show resolved
Hide resolved
...er/Microsoft.MachineLearningServices/preview/2018-03-01-preview/machineLearningServices.json
Outdated
Show resolved
Hide resolved
|
Adding ArmFeedbackRequested as there is one comment that is not responded to (or addressed) .. on adding this under preview api first.. also another minor comment I have added on operation name |
SDK Automation [Logs] (Generated from fcd620f)
|
|
@leizhaoPS all jobs are failing and this PR has [Do Not Merge] |
|
hi @leizhaoPS are you still on this PR? could you pls address comments and fix CI? |
|
Sorry, the purpose of this PR is to get design sign-off from ARM, for now I close it and will check-in a new version later |
To update quota, we use the Post call with the action quota URI (similar to Usages): subscriptions/{subscriptionId}/providers/Microsoft.BatchAI/locations/{locationName}/updateQuotas
Parameters of this call:
Subscription ID (uri)
location (uri)
vmFamily (body)
workspaceId (body)
Quota (body)
api-version (query)
To get quota, we use Post call on the list action quota URI: subscriptions/{subscriptionId}/providers/Microsoft.BatchAI/locations/{locationName}/listQuotas
Parameters of this call:
Subscription ID (uri)
location (uri)
api-version (query)
Changes:
Added new API for update Quotas
Added new API for list Quotas
Added two examples:
ListWorkspaceQuotasByVMFamily.json
UpdateQuota.json
Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.
Contribution checklist:
ARM API Review Checklist
Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.
Please follow the link to find more details on API review process.