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

[Synapse] - Build SDK based on API version 2021-04-01-preview and add SQL DW Gen3 API (2020-04-01-preview) #21769

Conversation

idear1203
Copy link
Contributor

@idear1203 idear1203 commented Jun 10, 2021

major Swagger PR link: Azure/azure-rest-api-specs#13874
Swagger PR link to fix some breaking changes (Sku definition conflict between v2 and v3, exception to use ErrorResponse rather than ErrorContract): Azure/azure-rest-api-specs#14839 . These breaking changes have been approved.
MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.

Changelog
Please ensure to add changelog with this PR by answ...

Commit history page: https://github.com/Azure/azure-rest-api-specs/commits/master/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-04-01-preview

All SDK Contribution checklist:

This checklist is used to make sure that common guidelines for a pull request are followed.

  • Please open PR in Draft mode if it is:
    • Work in progress or not intended to be merged.
    • Encountering multiple pipeline failures and working on fixes.
  • If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
  • I have read the contribution guidelines.
  • The pull request does not introduce breaking changes.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

SDK Generation Guidelines

  • The generate.cmd file for the SDK has been updated with the version of AutoRest, as well as the commitid of your swagger spec or link to the swagger spec, used to generate the code. (Track 2 only)
  • The *.csproj and AssemblyInfo.cs files have been updated with the new version of the SDK. Please double check nuget.org current release version.

Additional management plane SDK specific contribution checklist:

Note: Only applies to Microsoft.Azure.Management.[RP] or Azure.ResourceManager.[RP]

  • Include updated management metadata.
  • Update AzureRP.props to add/remove version info to maintain up to date API versions.

Management plane SDK Troubleshooting

  • If this is very first SDK for a services and you are adding new service folders directly under /SDK, please add new service label and/or contact assigned reviewer.

  • If the check fails at the Verify Code Generation step, please ensure:

    • Do not modify any code in generated folders.
    • Do not selectively include/remove generated files in the PR.
    • Do use generate.ps1/cmd to generate this PR instead of calling autorest directly.
      Please pay attention to the @microsoft.csharp version output after running generate.ps1. If it is lower than current released version (2.3.82), please run it again as it should pull down the latest version.

    Note: We have recently updated the PSH module called by generate.ps1 to emit additional data. This would help reduce/eliminate the Code Verification check error. Please run following command:

      `dotnet msbuild eng/mgmt.proj /t:Util /p:UtilityName=InstallPsModules`
    

Old outstanding PR cleanup

Please note:
If PRs (including draft) has been out for more than 60 days and there are no responses from our query or followups, they will be closed to maintain a concise list for our reviewers.

@idear1203 idear1203 changed the title [Synapse] - Build SDK based on API version 2021-04-01-preview [Synapse] - Build SDK based on API version 2021-04-01-preview and add SQL DW Gen3 API (2020-04-01-preview) Jun 10, 2021
@@ -39,7 +39,7 @@ public OperationResource()
/// <param name="endTime">Operation start time</param>
/// <param name="percentComplete">Completion percentage of the
/// operation</param>
public OperationResource(string id = default(string), string name = default(string), string status = default(string), object properties = default(object), ErrorDetail error = default(ErrorDetail), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), double? percentComplete = default(double?))
public OperationResource(string id = default(string), string name = default(string), string status = default(string), object properties = default(object), ErrorResponse error = default(ErrorResponse), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), double? percentComplete = default(double?))
Copy link
Member

Choose a reason for hiding this comment

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

this will result in a breaking change, please revert or have the breaking change team add the approval label to the spec pr

@@ -86,7 +86,7 @@ public OperationResource(string id = default(string), string name = default(stri
/// Gets or sets errors from the operation
/// </summary>
[JsonProperty(PropertyName = "error")]
public ErrorDetail Error { get; set; }
public ErrorResponse Error { get; set; }
Copy link
Member

Choose a reason for hiding this comment

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

this will result in a breaking change, please revert or have the breaking change team add the approval label to the spec pr

/// Number code, e.g. P3.</param>
/// <param name="tier">The tier or edition of the particular SKU, e.g.
/// Basic, Premium.</param>
public Sku(string name, string tier = default(string))
Copy link
Member

Choose a reason for hiding this comment

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

this will result in a breaking change, please revert or have the breaking change team add the approval label to the spec pr

Copy link
Contributor Author

Choose a reason for hiding this comment

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

reverted

/// </summary>
[JsonProperty(PropertyName = "capacity")]
public int? Capacity { get; set; }
Copy link
Member

Choose a reason for hiding this comment

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

this will result in a breaking change, please revert or have the breaking change team add the approval label to the spec pr

Copy link
Contributor Author

Choose a reason for hiding this comment

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

reverted

@idear1203 idear1203 force-pushed the synapse_generate_code_based_on_latest_swagger_20210609 branch from 1ab9ecb to 313b1d0 Compare June 29, 2021 09:18
@idear1203 idear1203 force-pushed the synapse_generate_code_based_on_latest_swagger_20210609 branch from 5c3dd71 to a7bcdf2 Compare June 29, 2021 12:15
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.

2 participants