Bug fixes and a few missing APIs#1089
Conversation
| "$ref": "#/parameters/VaultName" | ||
| }, | ||
| { | ||
| "name": "resourceBackupResourceVaultConfig", |
There was a problem hiding this comment.
resourceBackupResourceVaultConfig sounds too wordy and doesn't provide a lot of semantic information, consider renaming it to just backupResourceVaultConfig
| "$ref": "#/parameters/VaultName" | ||
| }, | ||
| { | ||
| "name": "resourceBackupResourceConfig", |
There was a problem hiding this comment.
Same comment as above for naming the param
| } | ||
| } | ||
| }, | ||
| "BackupResourceVaultConfigResource": { |
There was a problem hiding this comment.
This is Very confusing. I'd rather say BackupResourceVaultConfig with an allOf on BackupResourceVaultConfigProperties, on similar lines, you don't need to say BackupResource, just calling it Backup is just fine unless that is what makes semantic sense at your services' end.
My intention here is to point out that the model names are getting too verbose here without adding a lot of value.
| } | ||
| }, | ||
| "definitions": { | ||
| "BackupResourceConfig": { |
There was a problem hiding this comment.
Just call this BackupConfigProperties and call BackupResourceConfigResource as BackupConfig/BackupConfigResource
| "properties": { | ||
| "properties": { | ||
| "$ref": "#/definitions/BackupResourceConfig", | ||
| "x-ms-client-flatten": true |
| "readOnly": true | ||
| }, | ||
| "lastUpdatedTimeUtc": { | ||
| "description": "UTC time at which the upgrade operation status was last updated.", |
There was a problem hiding this comment.
Consider setting a date-time format here
There was a problem hiding this comment.
Can't be changed - API is already in production
| "type": "string", | ||
| "readOnly": true | ||
| }, | ||
| "endTimeUtc": { |
There was a problem hiding this comment.
Consider setting a date-time format here
There was a problem hiding this comment.
Can't be changed - API is already in production
| "properties": { | ||
| "$ref": "#/definitions/VaultProperties", | ||
| "x-ms-client-flatten": true | ||
| "$ref": "#/definitions/VaultProperties" |
There was a problem hiding this comment.
Any reason why you don't want the VaultProperties to be flattened here, it would be a better user experience if you did flattening
There was a problem hiding this comment.
There seems to be a bug in our RP at this point where this structure bodes well with the service. When I applied client flattening, there were issues during Create Vault API call.
There was a problem hiding this comment.
@olydis do we have any recommendations here, the nesting of properties seems a little unnatural.
There was a problem hiding this comment.
Yes, flattening is recommended. If there was a bug with flattening applied, it would be very helpful for us to file that bug (tons of services rely on flattening - so it better be bug free).
There was a problem hiding this comment.
I understand @dragonfly91 implied that there is a bug at their service end. If this indeed is the structure that the service expects, this shouldn't be a blocker but we highly recommend that this be revisited and fixed.
| } | ||
| } | ||
| }, | ||
| "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig": { |
There was a problem hiding this comment.
General convention for constructing URLs is providers/provider.namespace/typename/{typevalue} Consider parameterizing /backupconfig/vaultconfig accordingly
| "deprecated": false | ||
| } | ||
| }, | ||
| "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig": { |
There was a problem hiding this comment.
General convention for constructing URLs is providers/provider.namespace/typename/{typevalue} Consider parameterizing /backupstorageconfig/vaultstorageconfig accordingly
There was a problem hiding this comment.
I acknowledge this issue but we can't take this at this moment, as this API is already in production
There was a problem hiding this comment.
Thanks, please track this issue appropriately at your end since moving forward we plan to make these as hard requirements
dsgouda
left a comment
There was a problem hiding this comment.
I have a minor doubt regarding client flattening that I need to get resolved, will approve once that's done. Also, posted a couple of related questions
| "type": "string", | ||
| "readOnly": true | ||
| }, | ||
| "startTimeUtc": { |
There was a problem hiding this comment.
Just so I understand, do you mean that the service itself works with a plain string instead of a formatted date-time one?
| "properties": { | ||
| "$ref": "#/definitions/VaultProperties", | ||
| "x-ms-client-flatten": true | ||
| "$ref": "#/definitions/VaultProperties" |
There was a problem hiding this comment.
@olydis do we have any recommendations here, the nesting of properties seems a little unnatural.
| "deprecated": false | ||
| } | ||
| }, | ||
| "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig": { |
There was a problem hiding this comment.
Thanks, please track this issue appropriately at your end since moving forward we plan to make these as hard requirements
| } | ||
| }, | ||
| "definitions": { | ||
| "BackupStorageConfig": { |
There was a problem hiding this comment.
This is much better, but I would go further and simply name this as BackupStorageConfigProperties (same for BackupVaultConfigProperties)
There was a problem hiding this comment.
Is this fine for you:
BackupStorageConfigResource -> BackupStorageConfig
BackupStorageConfig -> BackupStorageConfigProperties
There was a problem hiding this comment.
I would like that very much!
dsgouda
left a comment
There was a problem hiding this comment.
Other than the comment about client flattening recommendations, LGTM
Pending CI builds
|
No modification for Python |
|
No modification for NodeJS |
Add new VSOnline Plan access token APIs to PPE and Prod Swagger
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