-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Microsoft.Automation linkedWorkspace operations #2490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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/swaggertosdk/github_tools.py", line 29, in exception_to_github
yield context
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 167, 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 182, 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 142, in rest_pr_management
sdk_tag=sdk_tag
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/SwaggerToSdkNewCLI.py", line 222, in generate_sdk_from_git_object
manage_git_folder(gh_token, Path(temp_dir) / Path("rest"), branched_rest_api_id) 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/swaggertosdk/github_tools.py", line 245, in manage_git_folder
clone_to_path(gh_token, temp_dir, split_git_id[0], branch=branch)
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/github_tools.py", line 187, in clone_to_path
_git_clone_to_path(https_authenticated_url, folder, branch)
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/git_tools.py", line 72, in clone_to_path
repo.git.checkout(branch_or_commit)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 551, in <lambda>
return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 1010, in _call_process
return self.execute(call, **exec_kwargs)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 821, in execute
raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(1)
cmdline: git checkout linkedWorkspace
stderr: 'error: pathspec 'linkedWorkspace' did not match any file(s) known to git.' |
Automation for azure-sdk-for-pythonA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
|
@vrdmr is added to the review. #Closed |
|
@vivlingaiah is added to the review. #Closed |
|
Hi There, I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result: File: AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback Thanks for your co-operation. |
|
@ravbhatnagar new operations |
|
Hi There, I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result: File: AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback Thanks for your co-operation. |
|
@olydis Just to make sure we are on the same page - GET linkedWorkspace operation is not new. It is missing in the Swagger-based SDK. It is in the Hydra-based SDK though. |
olydis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "./definitions.json#/definitions/LinkedWorkspace" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a collection GET call. It should return a value array. Also it only has id property?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now, our web service returns a single linked workspace, with id property only for GET linkedWorkspace. The id property will either be null or the resource id of the linked workspace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The API has been out there for 1.5 years. It is not on Azure REST API documentation because of an issue we had with available operations API, which has been fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, what can we do then :). This is definitely not the correct design.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ravbhatnagar for your feedback. I will advocate fixing the API in our next version:
GET /providers/Microsoft.Automation/automationAccounts/{automationAccountName}/linkedWorkspaces
which returns an array of linked workspaces.
Of course nothing is set in stone yet.
|
Signing off! The API breaks the ARM RPC contract but as this has been in prod for 1.5 yrs, I dont think we should change it. |
|
@AutorestCI rebuild azure-sdk-for-python |
This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information
api-versionin the path should match theapi-versionin the spec).Quality of Swagger