-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Add swagger for ACE provisioning GSM sevice, the related APIs can be used for ManagementPartner management #2285
Conversation
…i first, will add another 3 api later
…the second Partner_Get to PartnerNoId_Get
I've updated the target branch to conform to the policy changes that were made in late December 2017. Other than that, I need to reassign this to load balance a little. |
@jeffrey-ace While I'm reviewing, please note that we introduced The review will be published soon. |
Added preview sub folder. thank you |
|
||
``` yaml $(tag) == 'package-2018-02' | ||
input-file: | ||
- Microsoft.ManagementPartner\2018-02-01\gsm.json |
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.
Please use forward slashes.
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.
Fixed, thank you
"put": { | ||
"summary": "Add a specific `Partner`.", | ||
"description": "Add a management partner for the objectId and tenantId.", | ||
"operationId": "Partner_Put", |
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.
Rename this to "CreateOrUpdate" to keep it consistent.
} | ||
} | ||
}, | ||
"ManagementPartnerState": { |
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.
Please add "description".
} | ||
} | ||
}, | ||
"PartnerProperties": { |
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.
Please add "description".
"Deleted" | ||
] | ||
}, | ||
"ErrorResponseCode": { |
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.
Please add "description" for the type.
"OperationList": { | ||
"type": "object", | ||
"properties": { | ||
"value": { |
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.
Please add "description".
}, | ||
"OperationResponse": { | ||
"type": "object", | ||
"properties": { |
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.
Please add "description" for all the properties.
}, | ||
"OperationDisplay": { | ||
"type": "object", | ||
"properties": { |
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.
Please add "description" for all properties.
}, | ||
"PartnerProperties": { | ||
"type": "object", | ||
"properties": { |
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.
Please provide more useful descriptions for the properties.
"operationId": "PartnerNoId_Get", | ||
"x-ms-examples": { | ||
"GetPartnerDetails": { | ||
"$ref": "./examples/GetPartnerDetails.json" |
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 example is not valid for this operation - "partnerId" is not a parameter here.
The reviews are collapsed - "show outdated" button should show my comments. Thanks! |
Was unable to find SDK Azure/azure-sdk-for-python PR for this closed PR. |
@jianghaolu, thanks for you review, fixed all your comments, can you please take a look? |
@jeffrey-ace - is this a new RP? Apologies but I dont understand the scenarios and so will not be able to do a meaningful review from ARM side. Please set up a skype call and include folks from Azure API review board - @NiklasGustafsson @johanste @david justice. |
@ravbhatnagar we already had a skype meeting with Simon Davies, can you please sync with him or add him as a reviewer too? |
Hi @jeffrey-ace After fixing the forward slash CI is able to report more issues. I'll be publishing them in a moment. |
"partnerId": "123456", | ||
"tenantId": "1b1121dd-6900-412a-af73-e8d44f81e1c1", | ||
"objectId": "aa67f786-0552-423e-8849-244ed12bf581", | ||
"version": 3, |
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.
Version is defined as a string - same in other examples..
"put": { | ||
"summary": "Create a specific `Partner`.", | ||
"description": "Create a management partner for the objectId and tenantId.", | ||
"operationId": "Partner_Put", |
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 name should be "Create" or "CreateOrUpdate", in 1st case "Patch" should also be named "Update"
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.
Sorry, what should be changed to "Create",
Partner_Put should be changed to Parnter_Create?
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.
Yes - sorry for the confusion
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, will update
"description": "this is the management partner operations response", | ||
"x-ms-azure-resource": true, | ||
"properties": { | ||
"etag": { |
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.
Description missing.
"type": "object", | ||
"description": "this is the management partner operations error", | ||
"properties": { | ||
"error": { |
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.
Description missing.
"type": "object", | ||
"description": "this is the extended error info", | ||
"properties": { | ||
"code": { |
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.
Description still missing for "error" and "message"
"type": "object", | ||
"description": "this is the management partner operations list", | ||
"properties": { | ||
"value": { |
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.
Description missing.
"OperationResponse": { | ||
"type": "object", | ||
"description": "this is the management partner operations response", | ||
"properties": { |
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.
Descriptions are still missing for these properties.
"OperationDisplay": { | ||
"description": "this is the management partner operation", | ||
"type": "object", | ||
"properties": { |
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.
Description still missing for these properties.
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.
@jianghaolu fixed all the issues, can you please help check
} | ||
}, | ||
"/providers/Microsoft.ManagementPartner/partners": { | ||
"get": { |
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.
Why are there 2 gets for partner one with and without the id? In the case of the one without the partner Id why is this not a list?
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.
@simongdavies you are right, we only need one get operation, the partner is optional. Delete the one without partner id. Can you please approve
Was unable to find SDK Azure/azure-sdk-for-go PR for this closed PR. |
Was unable to find SDK Azure/azure-sdk-for-python PR for this closed PR. |
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. |
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. |
Code review is approved, can you please help merge? |
This commit was treated and no generation was made for Python |
Swagger to SDK encountered an error: (Azure/azure-sdk-for-go)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/github_tools.py", line 28, in exception_to_github
yield context
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 180, in rest_handle_action
return rest_pull_close(body, github_con, restapi_repo, sdk_pr_target_repo, sdkbase)
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 306, in rest_pull_close
rest_pr.create_issue_comment("Was unable to create SDK %s PR for this closed PR.", sdkid)
TypeError: create_issue_comment() takes 2 positional arguments but 3 were given |
This commit was treated and no generation was made for Python |
Swagger to SDK encountered an error: (Azure/azure-sdk-for-python)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/github_tools.py", line 28, in exception_to_github
yield context
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 180, in rest_handle_action
return rest_pull_close(body, github_con, restapi_repo, sdk_pr_target_repo, sdkbase)
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 306, in rest_pull_close
rest_pr.create_issue_comment("Was unable to create SDK %s PR for this closed PR.", sdkid)
TypeError: create_issue_comment() takes 2 positional arguments but 3 were given |
No modification for AutorestCI/azure-sdk-for-ruby |
No modification for AutorestCI/azure-sdk-for-python |
1 similar comment
No modification for AutorestCI/azure-sdk-for-python |
No modification for AutorestCI/azure-sdk-for-ruby |
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-version
in the path should match theapi-version
in the spec).Quality of Swagger