Skip to content
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

[Hub Generated] Review request for Microsoft.DigitalTwins to add version preview/2020-03-01-preview #8740

Conversation

pechkarus
Copy link
Contributor

If you are a MSFT employee you can view your work branch via this link.

Contribution checklist:

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Mar 17, 2020

azure-sdk-for-java - Release

⚠️ warning [Logs] [Expand Details]
  • ⚠️ Generate from 7b1d1ca with merge commit 94bc05a. SDK Automation 13.0.17.20200326.3
    Failed to find any diff after autorest so no changed packages was found.

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Mar 17, 2020

azure-sdk-for-js - Release

⚠️ warning [Logs] [Expand Details]
  • ⚠️ Generate from 7b1d1ca with merge commit 94bc05a. SDK Automation 13.0.17.20200326.3
    Failed to find any diff after autorest so no changed packages was found.

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Mar 17, 2020

azure-cli-extensions - Release

No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Mar 17, 2020

azure-sdk-for-go - Release

️✔️ succeeded [Logs] [Expand Details]

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Mar 17, 2020

azure-sdk-for-python - Release

⚠️ warning [Logs] [Expand Details]
  • ⚠️ Generate from 7b1d1ca with merge commit 94bc05a. SDK Automation 13.0.17.20200326.3
    Failed to find any changed packages. Please check the changed file list.
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/digitaltwins/__init__.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/digitaltwins/_azure_digital_twins_management_client.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/digitaltwins/_configuration.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/digitaltwins/models/__init__.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/digitaltwins/models/_azure_digital_twins_management_client_enums.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/digitaltwins/models/_models.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/digitaltwins/models/_models_py3.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/digitaltwins/models/_paged_models.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/digitaltwins/operations/__init__.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/digitaltwins/operations/_digital_twins_endpoint_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/digitaltwins/operations/_digital_twins_io_thubs_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/digitaltwins/operations/_digital_twins_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/digitaltwins/operations/_io_thub_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/digitaltwins/operations/_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/digitaltwins/version.py

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Mar 17, 2020

azure-sdk-for-net - Release

No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@pechkarus pechkarus requested a review from sup-s March 17, 2020 18:39
@@ -1177,7 +1177,6 @@
],
"properties": {
"properties": {
"x-ms-client-flatten": true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"x-ms-client-flatten": true, [](start = 10, length = 28)

May I ask why do you remove "x-ms-client-flatten": true. This will impact the generated SDK. What is the expected SDK data structure?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason it is removed it to avoid flattening of DigitalTwinsEndpointResourceProperties which uses "discriminator": "endpointType", to model inheritance. If this flag is present generated SDK does not have a way to use sub-classes to set properties value (e.g. EventGrid, EventHub and ServiceBus).
Also there is no scenario where properties fields are set directly, they should only be initialized via sub-classes.

@qianwens qianwens merged commit 94bc05a into Azure:master Apr 3, 2020
00Kai0 pushed a commit to 00Kai0/azure-rest-api-specs that referenced this pull request Oct 12, 2020
…ion preview/2020-03-01-preview (Azure#8740)

* Remove x-ms-client-flatten flag from endpoint properties

* Adds suppression to readme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants