-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Improve API documentation and add DeviceSecurityGroups to stable API #7047
Improve API documentation and add DeviceSecurityGroups to stable API #7047
Conversation
…github.com/hagba/azure-rest-api-specs into dev-security-Microsoft.Security-2019-01-01
In Testing, Please Ignore[Logs] (Generated from e5b2100, Iteration 34)
|
Automation for azure-sdk-for-pythonThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-goThe initial PR has been merged into your service PR: |
@hagba Hello. Please solve the conflicts first and then it will trigger CI. |
Can one of the admins verify this patch? |
…github.com/hagba/azure-rest-api-specs into dev-security-Microsoft.Security-2019-01-01
…ble/2019-08-01/iotSecuritySolutions.json Co-Authored-By: Nick Schonning <nschonni@gmail.com>
…ble/2019-08-01/iotSecuritySolutionAnalytics.json Co-Authored-By: Nick Schonning <nschonni@gmail.com>
…github.com/hagba/azure-rest-api-specs into dev-security-Microsoft.Security-2019-01-01
...ion/security/resource-manager/Microsoft.Security/stable/2019-08-01/deviceSecurityGroups.json
Outdated
Show resolved
Hide resolved
...rity/resource-manager/Microsoft.Security/stable/2019-08-01/iotSecuritySolutionAnalytics.json
Show resolved
Hide resolved
...ion/security/resource-manager/Microsoft.Security/stable/2019-08-01/iotSecuritySolutions.json
Outdated
Show resolved
Hide resolved
Fixes were made according to the comments.
Can you approve the PR?
Thanks,
Hagit
From: MyronFanQiu <notifications@github.com>
Sent: Monday, September 2, 2019 5:51 AM
To: Azure/azure-rest-api-specs <azure-rest-api-specs@noreply.github.com>
Cc: Hagit Badash <hagb@microsoft.com>; Mention <mention@noreply.github.com>
Subject: Re: [Azure/azure-rest-api-specs] Improve API documentation and add DeviceSecurityGroups to stable API (#7047)
@myronfanqiu requested changes on this pull request.
________________________________
In specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/deviceSecurityGroups.json<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-rest-api-specs%2Fpull%2F7047%23discussion_r319792790&data=02%7C01%7Chagb%40microsoft.com%7Ceb0c67a94034464ecf6308d72f5058ff%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637029894449667585&sdata=uAfbEJMR9Dsx7LWBnjNIVPbwuMRo09SEkhezDHnEaCc%3D&reserved=0>:
+ "maxThreshold": {
+ "type": "integer",
+ "description": "The maximum threshold."
+ }
+ },
+ "required": [
+ "minThreshold",
+ "maxThreshold"
+ ]
+ },
+ "TimeWindowCustomAlertRule": {
+ "type": "object",
+ "description": "A custom alert rule that checks if the number of activities (depends on the custom alert type) in a time window is within the given range.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/CustomAlertRule"
ThresholdCustomAlertRule contains all CustomAlertRule's definition. So why do we need both of them?
________________________________
In specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/iotSecuritySolutionAnalytics.json<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-rest-api-specs%2Fpull%2F7047%23discussion_r319792956&data=02%7C01%7Chagb%40microsoft.com%7Ceb0c67a94034464ecf6308d72f5058ff%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637029894449677577&sdata=XdcG2gDEAl7j2EONJqRRLR0%2F3cjE5uzPfRXpgMWkDGc%3D&reserved=0>:
],
- "description": "Security Analytics of a security solution",
- "operationId": "IoTSecuritySolutionsAnalytics_GetAll",
+ "description": "Use this method to get IoT security Analytics metrics in an array.",
+ "operationId": "IotSecuritySolutionAnalytics_List",
This will cause breaking changes for all SDKs. Could we generate a new API version?
________________________________
In specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/iotSecuritySolutions.json<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-rest-api-specs%2Fpull%2F7047%23discussion_r319793407&data=02%7C01%7Chagb%40microsoft.com%7Ceb0c67a94034464ecf6308d72f5058ff%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637029894449687573&sdata=RLDSIY61wWL4xWH7gXnFT5aGlZII7FGyNBJhxS7%2BaS4%3D&reserved=0>:
"properties": {
"query": {
"type": "string",
- "x-nullable": true,
+ "x-nullable": true,
format error?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-rest-api-specs%2Fpull%2F7047%3Femail_source%3Dnotifications%26email_token%3DALTVOKBUJRD34XAX22P4YWDQHR5QFA5CNFSM4IQA2332YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCDKNMBQ%23pullrequestreview-282383878&data=02%7C01%7Chagb%40microsoft.com%7Ceb0c67a94034464ecf6308d72f5058ff%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637029894449687573&sdata=erCmBhlTZxVrPZxFmticSa5usV55LTSxndBGwP3uiRY%3D&reserved=0>, or mute the thread<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALTVOKFGGAAYYKLQ6SHYKGDQHR5QFANCNFSM4IQA233Q&data=02%7C01%7Chagb%40microsoft.com%7Ceb0c67a94034464ecf6308d72f5058ff%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637029894449697569&sdata=GDPWKJI9qoZUBKAJc9kswXFMbOMJflQwjpYCgnwabZU%3D&reserved=0>.
|
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.
A few minor comments. Thanks
} | ||
} | ||
}, | ||
"/{resourceId}/providers/Microsoft.Security/deviceSecurityGroups/{deviceSecurityGroupName}": { |
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.
If this extension resource only extends IOT hub resources, a more explicit path can be specified rather than '/{resourceId}'.
"readOnly": true, | ||
"description": "The description of the custom alert." | ||
}, | ||
"isEnabled": { |
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.
For all 'isEnabled' booleans: a string enum (with modelAsString=true) is a more futureproof way to achieve the same. That is, if you define this as 'state: (enabled|disabled)' you can more easily add tertiary states in the future without a breaking type change. It's worth considering whether you will ever have other states.
...ion/security/resource-manager/Microsoft.Security/stable/2019-08-01/deviceSecurityGroups.json
Show resolved
Hide resolved
...ion/security/resource-manager/Microsoft.Security/stable/2019-08-01/deviceSecurityGroups.json
Show resolved
Hide resolved
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.
Comments are non-blocking. Will sign off
@raych1 Thanks for help. |
ink to the spec review PR: Azure/azure-rest-api-specs#7047
* Add new attribute for the resource * Align the format for the same property * Fix the issue
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.