-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
web: type error in sslState in HostNameSslState class #141
Comments
@naveedaz - Can you please take a look into this issue? |
@lmazuel From code gen point of view, the extension "x-ms-enum" is documented over here. I am not sure about Python. v3.4 has enums implemented and v2.7 does not. |
@lmazuel - Update to my comment: |
This is the actual response from the server, I know it's important to check that this is not a language specific problem. No Python here :) |
It's what I think too. |
Thanks for confirming. Then this is a server side issue. @naveedaz from webapps team would be in a better position to comment. |
@naveedaz - Any update on this? |
From Microsoft.Web standpoint the response has enumerations as proper enumtypes like for SSLState: Disabled, SniEnabled, IpBasedEnabled etc. |
@naveedaz ARM doesn't know schema of individual resources, so maping "string" to int (and vise-versa) is not possible at our layer. Most likely issue is caused by Microsoft.Web RP or client tools/libs. |
@naveedaz @IlyaGrebnov I can assure you that this it NOT a client tools/libs problem: the answer I got is direct from the REST API. |
Yes, I believe this is know bug in Antares/Geomaster RP which serialize enums to numbers by default. |
@IlyaGrebnov @naveedaz Is this possible to have a status on this one? At least a status: we will fix it, we won't, you will need a new API version, there is an open issue there http://xxxx, etc. Thank you for considering this. |
@naveedaz could you please comment on this? ARM simple proxy response from resource provider. And I believe this is issue on 'GeoMester'. |
@naveedaz are there any plan to correct this issue, or should we expect the API to continue to return the integer response? If we are to expect the API to return the integer response, can you then ensure that any new enums will be added to the end of the list, thus preserving the correctness of the generated code? Any change to the order of the enumeration will be a breaking change to end users. /cc @kamaljit for visibility. |
@naveedaz - It has been open for more than 6 months now. Any ETA for this fix? |
We are working on a fix targeted for next release ETA end of month. The fix will be api-version specific to prevent breaking existing clients. |
Thanks for the update, will that fix include the issue mentioned in #137? |
Yes. It will address that issue as well. |
@naveedaz Is this still on track to be fixed by the end of this month? |
@jhendrixMSFT The fix was checked in 10/13/2016. However, we hit some bumps with our deployment train and is now targeted for Nov 11 2016. Users will have to use api-version >= 2016-08-01. The latest composite swagger files have the updated api versions. https://github.com/Azure/azure-rest-api-specs/blob/master/arm-web/compositeWebAppClient.json. |
FYI the fix is deployed. Users will have to use api-version >= 2016-08-01. The latest composite swagger files have the updated api versions. https://github.com/Azure/azure-rest-api-specs/blob/master/arm-web/compositeWebAppClient.json. "hostNameSslStates": [
{
"name": "naveedalb.trafficmanager.net",
"sslState": "Disabled",
"ipBasedSslResult": null,
"virtualIP": null,
"thumbprint": null,
"toUpdate": null,
"toUpdateIpBasedSsl": null,
"ipBasedSslState": "NotConfigured",
"hostType": "Standard"
},
{
"name": "naveedasrc.azurewebsites.net",
"sslState": "Disabled",
"ipBasedSslResult": null,
"virtualIP": null,
"thumbprint": null,
"toUpdate": null,
"toUpdateIpBasedSsl": null,
"ipBasedSslState": "NotConfigured",
"hostType": "Standard"
},
{
"name": "naveedasrc.scm.azurewebsites.net",
"sslState": "Disabled",
"ipBasedSslResult": null,
"virtualIP": null,
"thumbprint": null,
"toUpdate": null,
"toUpdateIpBasedSsl": null,
"ipBasedSslState": "NotConfigured",
"hostType": "Repository"
}
] |
* Adding Microsoft.Web ResourceHealthMetadata APIs Adding the new Microsoft.Web ResourceHealthMetadata resource APIs. Includes subscription level list, resource group level list, site level list, and site level get * Fixing ResourceHealthMetadata operation descriptions and updating readOnly properties As per comments from dsgouda, making descriptions contain more information than the summary. Additionally marking certain properties as readOnly as they ought to be * Removing ResourceHealthMetadata x-ms-pageable readonly property to fix CI x-ms-pageable can't have any additional properties, so can't make it readOnly * Microsoft.Web ResourceHealthMetadata API removing text/json as a potential produces type As per dsgouda, ARM only support application json types, so removing the "text/json" produces type from all the APIs
Hello,
I work in the MS Azure Python SDK team and I'm currently trying the Autorest generated version for Python,
I'm just trying to do a
get
a a website using webspace+name using this Python SDK generated from the Web Swagger file (rev. c81ae63) with the"Sites_GetSite
method.I got in result for
hostNameSslStates
Regarding the Swagger spec, "sslState" is an enum:
However, as you can see the
sslState
I got is 0, not a string.It's the second bug (after #137) I open on the web file so far, is this possible to have at least a confirmation or state from the web team about this?
Thank you,
The text was updated successfully, but these errors were encountered: