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

Remove autorest models with internal properties #22259

Merged
merged 5 commits into from
Jun 29, 2021

Conversation

AlexanderSher
Copy link
Contributor

No description provided.

@pakrym
Copy link
Contributor

pakrym commented Jun 28, 2021

Can we get rid of https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventgrid/Azure.Messaging.EventGrid/src/Customization/EventGridModelFactory.cs#L11-L19 ?

Copy link
Member

@annelo-msft annelo-msft left a comment

Choose a reason for hiding this comment

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

For ACR, this is removing a model type that customers may still want to mock ... are there plans to replace the methods in model factory so they can be created with only the public properties?

@AlexanderSher
Copy link
Contributor Author

@annelo-msft The problem is that we can't be sure that public properties are enough for the model to be fully initialized, so we can't simply supply default values for property types.

Copy link
Member

@JoshLove-msft JoshLove-msft left a comment

Choose a reason for hiding this comment

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

EG changes look good

Copy link
Member

@christothes christothes left a comment

Choose a reason for hiding this comment

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

tables looks good

…o RemoveInternalFields

# Conflicts:
#	sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2ModelFactory.cs
@AlexanderSher AlexanderSher merged commit 2348056 into Azure:main Jun 29, 2021
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-net that referenced this pull request Feb 3, 2023
Fix runningOperationIds data type (Azure#22259)

* Fix runningOperationIds data type

* Fix PR comments
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-net that referenced this pull request Feb 3, 2023
Fix runningOperationIds data type (Azure#22259)

* Fix runningOperationIds data type

* Fix PR comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants