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

[Purview - API Scanning] API Review 2022-07-01-preview #19797

Merged
merged 22 commits into from
Oct 12, 2022

Conversation

pvadali-az
Copy link
Contributor

@pvadali-az pvadali-az commented Jul 17, 2022

Data Plane API - Pull Request

API Info: The Basics

Most of the information about your service should be captured in the issue that serves as your engagement record.

  • Link to engagement record issue:

Is this review for (select one):

  • a private preview
  • a public preview
  • GA release

Change Scope

This section will help us focus on the specific parts of your API that are new or have been modified.
Please share a link to the design document for the new APIs, a link to the previous Open API document (swagger) if applicable, and the root paths that have been updated.

  • Design Document:
  • Previous Open API Doc:
  • Updated paths:

❔Got questions? Need additional info?? We are here to help!

Contact us!

The Azure API Review Board is dedicated to helping you create amazing APIs. You can read about our mission and learn more about our process on our wiki.

Click here for links to tools, specs, guidelines & other good stuff

Tooling

Guidelines & Specifications

Helpful Links

@openapi-workflow-bot
Copy link

Hi, @pvadali-az Thanks for your PR. I am workflow bot for review process. Here are some small tips.

  • Please ensure to do self-check against checklists in first PR comment.
  • PR assignee is the person auto-assigned and responsible for your current PR reviewing and merging.
  • For specs comparison cross API versions, Use API Specs Comparison Report Generator
  • If there is CI failure(s), to fix CI error(s) is mandatory for PR merging; or you need to provide justification in PR comment for explanation. How to fix?

  • Any feedback about review process or workflow bot, pls contact swagger and tools team. vscswagger@microsoft.com

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Jul 17, 2022

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️⚠️Breaking Change(Cross-Version): 73 Warnings warning [Detail]
    compared swaggers (via Oad v0.9.7)] new version base version
    scanningService.json 2022-07-01-preview(c3e868b) 2022-02-01-preview(main)

    The following breaking changes are detected by comparison with the latest preview version:

    Only 30 items are listed, please refer to log for more details.

    Rule Message
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'AmazonPostgreSqlRoleARNScan' removed or renamed?
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L2788:3
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2023:3
    ⚠️ 1009 - RemovedRequiredParameter The required parameter 'keyVaultName' was removed in the new version.
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L37:11
    ⚠️ 1009 - RemovedRequiredParameter The required parameter 'keyVaultName' was removed in the new version.
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L80:11
    ⚠️ 1009 - RemovedRequiredParameter The required parameter 'keyVaultName' was removed in the new version.
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L128:11
    ⚠️ 1010 - AddingRequiredParameter The required parameter 'azureKeyVaultName' was added in the new version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L55:11
    ⚠️ 1010 - AddingRequiredParameter The required parameter 'azureKeyVaultName' was added in the new version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L98:11
    ⚠️ 1010 - AddingRequiredParameter The required parameter 'azureKeyVaultName' was added in the new version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L152:11
    ⚠️ 1011 - AddingResponseCode The new version adds a response code '201'.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L123:11
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'AmazonPostgreSqlRoleARN' from the old version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3292:9
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2448:9
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'AmazonPostgreSqlRoleARN' from the old version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3292:9
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2448:9
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'AmazonPostgreSqlRoleARN' from the old version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3292:9
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2448:9
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'AmazonPostgreSqlRoleARN' from the old version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3292:9
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2448:9
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'AmazonPostgreSqlRoleARN' from the old version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3292:9
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2448:9
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'AmazonPostgreSqlRoleARN' from the old version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3292:9
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2448:9
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'AmazonPostgreSqlRoleARN' from the old version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3292:9
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2448:9
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'AmazonPostgreSqlRoleARN' from the old version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3292:9
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2448:9
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'AmazonPostgreSqlRoleARN' from the old version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3292:9
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2448:9
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'AmazonPostgreSqlRoleARN' from the old version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3292:9
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2448:9
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'AmazonPostgreSqlRoleARN' from the old version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3292:9
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2448:9
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'AmazonPostgreSqlRoleARN' from the old version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3292:9
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2448:9
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'AmazonPostgreSqlRoleARN' from the old version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3292:9
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2448:9
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'AmazonPostgreSqlRoleARN' from the old version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3292:9
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2448:9
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'AmazonPostgreSqlRoleARN' from the old version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3292:9
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2448:9
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'AmazonPostgreSqlRoleARN' from the old version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3292:9
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2448:9
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'AmazonPostgreSqlRoleARN' from the old version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3292:9
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2448:9
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'AmazonPostgreSqlRoleARN' from the old version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3292:9
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2448:9
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'AmazonPostgreSqlRoleARN' from the old version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3292:9
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2448:9
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'AmazonPostgreSqlRoleARN' from the old version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3292:9
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2448:9
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'AmazonPostgreSqlRoleARN' from the old version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3292:9
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2448:9
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'AmazonPostgreSqlRoleARN' from the old version.
    New: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3292:9
    Old: Azure.Analytics.Purview.Scanning/preview/2022-02-01-preview/scanningService.json#L2448:9
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️⚠️LintDiff: 213 Warnings warning [Detail]
    compared tags (via openapi-validator v1.13.0) new version base version
    package-2022-07-01-preview package-2022-07-01-preview(c3e868b) default(main)

    [must fix]The following errors/warnings are introduced by current PR:

    Only 30 items are listed, please refer to log for more details.

    Rule Message Related RPC [For API reviewers]
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L2821
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3476
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3608
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L3669
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L4121
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L4191
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L4293
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L4385
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L4434
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L4476
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L4528
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L4547
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L4606
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L4658
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L4706
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L4787
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L4837
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L4909
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L4943
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L4974
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L5005
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L5039
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L5073
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L5111
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L5142
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L5173
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L5204
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L5235
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L5273
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Azure.Analytics.Purview.Scanning/preview/2022-07-01-preview/scanningService.json#L5308
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️ApiReadinessCheck succeeded [Detail] [Expand]
    ️️✔️~[Staging] ServiceAPIReadinessTest succeeded [Detail] [Expand]
    Validation passes for ServiceAPIReadinessTest.
    ️️✔️~[Staging] TrafficValidation succeeded [Detail] [Expand]
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️️✔️PoliCheck succeeded [Detail] [Expand]
    Validation passed for PoliCheck.
    ️⚠️SDK Track2 Validation: 78 Warnings warning [Detail]
    • The following tags are being changed in this PR
      • "https://github.com/Azure/azure-rest-api-specs/blob/c3e868b344281dc855c6a2c8352315c5f17f49c7/specification/purview/data-plane/readme.md#tag-package-2022-07-01-preview">purview/data-plane/readme.md#package-2022-07-01-preview
    The following errors/warnings are introduced by current PR:

    Only 30 items are listed, please refer to log for more details.

    Rule Message
    ⚠️ UnkownSecurityScheme "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Security scheme azure_auth is unknown and will not be processed. Only supported types are AADToken,
    AzureKey,
    Anonymous"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'AzureKeyVaultProperties' -> 'AzureKeyVaultPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'FilterProperties' -> 'FilterPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'ManagedVirtualNetworkProperties' -> 'ManagedVirtualNetworkPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'ManagedPrivateEndpointProperties' -> 'ManagedPrivateEndpointPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'TriggerProperties' -> 'TriggerPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'SystemClassificationRuleProperties' -> 'SystemClassificationRulePropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'CustomClassificationRuleProperties' -> 'CustomClassificationRulePropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'RoleARNCredentialProperties' -> 'RoleARNCredentialPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'ServicePrincipalAzureKeyVaultCredentialProperties' -> 'ServicePrincipalAzureKeyVaultCredentialPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'ManagedIdentityAzureKeyVaultCredentialProperties' -> 'ManagedIdentityAzureKeyVaultCredentialPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'ManagedIntegrationRuntimeProperties' -> 'ManagedIntegrationRuntimePropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'SelfHostedIntegrationRuntimeProperties' -> 'SelfHostedIntegrationRuntimePropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'SelfHostedIntegrationRuntimeStatusProperties' -> 'SelfHostedIntegrationRuntimeStatusPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'ManagedIntegrationRuntimeStatusProperties' -> 'ManagedIntegrationRuntimeStatusPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'AzureSubscriptionScanRulesetProperties' -> 'AzureSubscriptionScanRulesetPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'AzureResourceGroupScanRulesetProperties' -> 'AzureResourceGroupScanRulesetPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'AzureSynapseWorkspaceScanRulesetProperties' -> 'AzureSynapseWorkspaceScanRulesetPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'AzureSynapseScanRulesetProperties' -> 'AzureSynapseScanRulesetPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'AdlsGen1ScanRulesetProperties' -> 'AdlsGen1ScanRulesetPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'AdlsGen2ScanRulesetProperties' -> 'AdlsGen2ScanRulesetPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'AmazonAccountScanRulesetProperties' -> 'AmazonAccountScanRulesetPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'AmazonS3ScanRulesetProperties' -> 'AmazonS3ScanRulesetPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'AmazonSqlScanRulesetProperties' -> 'AmazonSqlScanRulesetPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'AzureCosmosDbScanRulesetProperties' -> 'AzureCosmosDbScanRulesetPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'AzureDataExplorerScanRulesetProperties' -> 'AzureDataExplorerScanRulesetPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'AzureFileServiceScanRulesetProperties' -> 'AzureFileServiceScanRulesetPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'AzureSqlDatabaseScanRulesetProperties' -> 'AzureSqlDatabaseScanRulesetPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'AmazonPostgreSqlScanRulesetProperties' -> 'AmazonPostgreSqlScanRulesetPropertiesAutoGenerated'"
    ⚠️ PreNamer/DeduplicateName "readme":"purview/data-plane/readme.md",
    "tag":"package-2022-07-01-preview",
    "details":"Deduplicating schema name: 'AzurePostgreSqlScanRulesetProperties' -> 'AzurePostgreSqlScanRulesetPropertiesAutoGenerated'"
    ️️✔️PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️️✔️SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    ️️✔️Lint(RPaaS) succeeded [Detail] [Expand]
    Validation passes for Lint(RPaaS).
    ️️✔️CadlValidation succeeded [Detail] [Expand]
    Validation passes for CadlValidation.
    ️️✔️PR Summary succeeded [Detail] [Expand]
    Validation passes for Summary.
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Jul 17, 2022

    Swagger Generation Artifacts

    ️️✔️ApiDocPreview succeeded [Detail] [Expand]
     Please click here to preview with your @microsoft account. 
    ️️✔️SDK Breaking Change Tracking succeeded [Detail] [Expand]

    Breaking Changes Tracking

    ️❌ azure-sdk-for-net-track2 failed [Detail]
    • Failed [Logs]Release - Generate from d7c7531. SDK Automation 14.0.0
      Only show 24 items here, please refer to log for details.
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96mLine |
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96m 515 | �[0m         �[96mGeneratePackage -projectFolder $projectFolder -sdkRootPath $s�[0m …
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96m     | �[91m         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[91m�[96m     | �[91mFailed to build sdk. exit code: False
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[91mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:515
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96mLine |
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96m 515 | �[0m         �[96mGeneratePackage -projectFolder $projectFolder -sdkRootPath $s�[0m …
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96m     | �[91m         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[91m�[96m     | �[91mFailed to packe sdk. exit code: False
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[91mGet-ChildItem: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:599
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96mLine |
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96m 599 | �[0m … rtifacts += �[96mGet-ChildItem $artifactsPath -Filter *.nupkg -exclude *.s�[0m …
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96m     | �[91m               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[91m�[96m     | �[91mCannot find path
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96m     | �[91m'/mnt/vss/_work/1/s/azure-sdk-for-net/artifacts/packages/Debug/' because it does not exist.
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[91mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:515
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96mLine |
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96m 515 | �[0m         �[96mGeneratePackage -projectFolder $projectFolder -sdkRootPath $s�[0m …
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[96m     | �[91m         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[91m�[96m     | �[91mFailed to generate sdk artifact
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
    • Azure.Analytics.Purview.Account [View full logs]  [Release SDK Changes]
      info	[Changelog]
    • Azure.Analytics.Purview.Administration [View full logs]  [Release SDK Changes]
      info	[Changelog]
    • Azure.Analytics.Purview.Catalog [View full logs]  [Release SDK Changes]
      info	[Changelog]
    • Azure.Analytics.Purview.Scanning [View full logs]  [Release SDK Changes]
      info	[Changelog]
    • ️✔️Azure.Analytics.Purview.Share [View full logs]  [Release SDK Changes]
      info	[Changelog]
    Posted by Swagger Pipeline | How to fix these errors?

    @pvadali-az pvadali-az changed the title Adding a new dataplane api scanning version [Draft] [NotReadyForReview] Adds a new dataplane api scanning version Jul 17, 2022
    @openapi-workflow-bot openapi-workflow-bot bot added ARMReview WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels Jul 17, 2022
    @openapi-workflow-bot
    Copy link

    Hi, @pvadali-az your PR are labelled with WaitForARMFeedback. A notification email will be sent out shortly afterwards to notify ARM review board(armapireview@microsoft.com).

    @pvadali-az pvadali-az marked this pull request as ready for review July 18, 2022 16:58
    @pvadali-az pvadali-az requested a review from a team as a code owner July 18, 2022 16:58
    @pvadali-az pvadali-az requested review from tg-msft and johanste and removed request for a team July 18, 2022 16:58
    @pvadali-az pvadali-az changed the title [Draft] [NotReadyForReview] Adds a new dataplane api scanning version Adds a new dataplane api scanning version Jul 18, 2022
    @markweitzel markweitzel changed the title Adds a new dataplane api scanning version [Purview - API Scanning] API Review 2022-07-02-preview Jul 18, 2022
    @rkmanda rkmanda removed WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required ARMReview labels Jul 20, 2022
    @markweitzel markweitzel linked an issue Jul 22, 2022 that may be closed by this pull request
    2 tasks
    @pvadali-az pvadali-az changed the title [Purview - API Scanning] API Review 2022-07-02-preview [Purview - API Scanning] API Review 2022-07-01-preview Jul 26, 2022
    @mikekistler
    Copy link
    Member

    /azp run

    @azure-pipelines
    Copy link

    Azure Pipelines successfully started running 1 pipeline(s).

    @openapi-workflow-bot
    Copy link

    Hi @pvadali-az, Your PR has some issues. Please fix the CI sequentially by following the order of Avocado, semantic validation, model validation, breaking change, lintDiff. If you have any questions, please post your questions in this channel https://aka.ms/swaggersupport.

    TaskHow to fixPriority
    AvocadoFix-AvocadoHigh
    Semantic validationFix-SemanticValidation-ErrorHigh
    Model validationFix-ModelValidation-ErrorHigh
    LintDiffFix-LintDiffhigh
    If you need further help, please feedback via swagger feedback.

    @mikekistler
    Copy link
    Member

    • Add a global security requirement

    • Add x-ms-error-code response header on error responses (needs service changes to support)

    • All parameters need descriptions

    • Operations with a 202 response should specify x-ms-long-running-operation: true.

    • A 202 response should include an Operation-Location response header.

    • Operation might be pageable. Consider adding the x-ms-pageable extension.

    • Use camelcase. E.g. "VNet" -> "Vnet"

    • Use consistent path parameter names:

      • Inconsistent parameter names "dataSourceName" and "dataSourceType" for path segment "datasources".
      • Inconsistent parameter names "classificationRuleVersion" and "version" for path segment "versions".
    • No need for an allOf when a simple $ref will do. There are many instances of this problem.

    • Many body parameters are not marked as required. This is a common mistake. Please double check all body parameters and mark as required unless the body is truly optional.

    • The final path parameter on a "put" should specify a maximum length (maxLength) and characters allowed (pattern).

    • There are some schemas that specify additionalProperties with type object. This is a common error - please double check.

    }
    }
    },
    "/integrationruntimes/{integrationRuntimeName}/disableInteractiveQuery": {

    Choose a reason for hiding this comment

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

    Endpoint seems not consistent. Should it be ":disableInteractiveQuery" as an action?

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

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

    This was an oversight by me since we did not discuss about this endpoint in specific. Since this needs a service change and Scannning is going switch over to manual generation of swagger, they will address this there. If this is a hard requirement for this PR, I can accommodate that service change (mentioned about this in the email)

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

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

    changed to /integrationruntimes/{integrationRuntimeName}:disableInteractiveQuery

    "200": {
    "description": "Success",
    "schema": {
    "$ref": "#/definitions/IActionResult"

    Choose a reason for hiding this comment

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

    I think it is an object without any properties? That is meaningless to user.

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

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

    Explained in the email. This and http 204 have same underlying problem.

    Choose a reason for hiding this comment

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

    It is used in 200.

    So it is intended to be 200 but still with response body as "{}"?

    Comment on lines +3701 to +3704
    "status": {
    "type": "string",
    "readOnly": true
    }

    Choose a reason for hiding this comment

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

    Should it be enum?

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

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

    Yes, but there is no clarity on what the expected values are even within my change. Several properties could be enums, but DataFactory's swagger did not mark them as enums and hence swashbuckle did not generate enums from Datafactory provided models. This will be a bigger change and I felt it is a bit out of scope for this PR. Let me know. (also explained in the email)

    Copy link
    Member

    @mikekistler mikekistler left a comment

    Choose a reason for hiding this comment

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

    @weidongxu-microsoft has pointed out a number of issues and I have added a few more.

    Please address these and then flag us to re-review.

    @AzureRestAPISpecReview AzureRestAPISpecReview added ARMReview WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels Sep 20, 2022
    Copy link
    Member

    @mikekistler mikekistler left a comment

    Choose a reason for hiding this comment

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

    Looks good for preview. 👍

    @weidongxu-microsoft weidongxu-microsoft removed the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Sep 22, 2022
    @tjprescott
    Copy link
    Member

    @pvadali-az you will need to address the failing Avocado checks to merge this.

    @weidongxu-microsoft weidongxu-microsoft added the APIStewardshipBoard-SignedOff The Azure API Stewardship team has reviewed and approved the changes. label Oct 1, 2022
    @pvadali-az
    Copy link
    Contributor Author

    @pvadali-az you will need to address the failing Avocado checks to merge this.

    @tjprescott I fixed avocado errors just now. I will have to wait until next to merge this since service change hasn't rolled out to all regions.

    @weidongxu-microsoft weidongxu-microsoft merged commit d7c7531 into Azure:main Oct 12, 2022
    anandanthony pushed a commit to anandMicro/azure-rest-api-specs that referenced this pull request Dec 16, 2022
    * Adding a new dataplane api scanning version
    
    * fixing example validation
    
    * adds new scanning version details to ReadMe
    
    * fixing validation errors
    
    * marks value as requried field for paginated results
    
    * pr feedback
    
    * fixing examples
    
    * fixing examples
    
    * fixing examples
    
    * fixing examples
    
    * setting managedVNetName to default
    
    * setting managedVNetName to default
    
    * pr feedback, initial commit
    
    * fixes validation errors
    
    * fixes model-validation errors
    
    * pr feedback
    
    * pr feedback
    
    * remove error code header
    
    * changing path pattern for interactiveQuery APIs
    
    * fixes avocado
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    APIStewardshipBoard-SignedOff The Azure API Stewardship team has reviewed and approved the changes. ARMReview CI-FixRequiredOnFailure data-plane Purview
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    [Purview - API Scanning] API Review 2022-07-02-preview
    8 participants