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

Update Synapse with ADF swagger changes/2019-06-01-preview #12924

Merged
merged 15 commits into from
Mar 17, 2021

Conversation

drosales57
Copy link
Contributor

This is a PR generated at OpenAPI Hub. You can view your work branch via this link.

Changelog

Please ensure to add changelog with this PR by answering the following questions.

  1. What's the purpose of the update?
    • new service onboarding
    • new API version
    • update existing version for new feature
    • update existing version to fix swagger quality issue in s360
    • Other, please clarify
  2. When you are targeting to deploy new service/feature to public regions? Please provide date, or month to public if date is not available yet.
  3. When you expect to publish swagger? Please provide date, or month to public if date is not available yet.
  4. If it's an update to existing version, please select SDKs of specific language and CLIs that require refresh after swagger is published.
    • SDK of .NET (need service team to ensure code readiness)
    • SDK of Python
    • SDK of Java
    • SDK of Js
    • SDK of Go
    • PowerShell
    • CLI
    • Terraform
    • No, no need to refresh for updates in this PR

Contribution checklist:

If any further question about AME onboarding or validation tools, please view the FAQ.

ARM API Review Checklist

  • Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.

    • Adding new API(s)
    • Adding a new API version
    • Adding a new service
  • Please ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

  • If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist

If there are following updates in the PR, ensure to request an approval from API Review Board as defined in the Breaking Change Policy.

  • Removing API(s) in stable version
  • Removing properties in stable version
  • Removing API version(s) in stable version
  • Updating API in stable version with Breaking Change Validation errors
  • Updating API(s) in preview over 1 year

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.

Please follow the link to find more details on PR review process.

@openapi-workflow-bot
Copy link

Hi, @drosales57 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. vsswagger@microsoft.com

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Feb 9, 2021

    Swagger Validation Report

    ️🔄BreakingChange inProgress [Detail]
    ️⚠️LintDiff: 2 Warnings warning [Detail]

    Rule Message
    ⚠️ R2018 - XmsEnumValidation The enum types should have x-ms-enum type extension set with appropriate options. Property name: type
    Location: Microsoft.Synapse/preview/2019-06-01-preview/integrationRuntime.json#L2950
    ⚠️ R2018 - XmsEnumValidation The enum types should have x-ms-enum type extension set with appropriate options. Property name: type
    Location: Microsoft.Synapse/preview/2019-06-01-preview/integrationRuntime.json#L2950
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️❌SemanticValidation: 7 Errors, 0 Warnings failed [Detail]
    Rule Message
    OBJECT_MISSING_REQUIRED_PROPERTY_DEFINITION Missing required property definition: dataFlow
    JsonUrl: Microsoft.Synapse/preview/2019-06-01-preview/artifacts.json#L6956
    OBJECT_MISSING_REQUIRED_PROPERTY_DEFINITION Missing required property definition: dataFlow
    JsonUrl: preview/2019-06-01-preview/entityTypes/DataFlow.json#L6956
    OBJECT_MISSING_REQUIRED_PROPERTY_DEFINITION Missing required property definition: dataFlow
    JsonUrl: preview/2019-06-01-preview/entityTypes/Dataset.json#L6956
    OBJECT_MISSING_REQUIRED_PROPERTY_DEFINITION Missing required property definition: dataFlow
    JsonUrl: preview/2019-06-01-preview/entityTypes/LinkedService.json#L6956
    OBJECT_MISSING_REQUIRED_PROPERTY_DEFINITION Missing required property definition: dataFlow
    JsonUrl: preview/2019-06-01-preview/entityTypes/Pipeline.json#L6956
    OBJECT_MISSING_REQUIRED_PROPERTY_DEFINITION Missing required property definition: dataFlow
    JsonUrl: preview/2019-06-01-preview/entityTypes/Trigger.json#L6956
    OBJECT_MISSING_REQUIRED_PROPERTY_DEFINITION Missing required property definition: dataFlow
    JsonUrl: Microsoft.Synapse/preview/2019-06-01-preview/library.json#L6956
    ️️✔️[Staging] Cross Version BreakingChange (Base on preview version) succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️[Staging] Cross Version BreakingChange (Base on stable version) succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️❌[Staging] SDK Track2 Validation: 4 Errors, 67 Warnings failed [Detail] Only 10 items are listed, please refer to log for more details.

    Rule Message
    PreCheck/DuplicateSchema "readme":"synapse/resource-manager/readme.md",
    "tag":"package-2019-06-01-preview",
    "details":"Duplicate Schema named CloudError -- properties.error.$ref: undefined => "#/components/schemas/schemas:812" ; This error can be temporarily avoided by using the 'modelerfour.lenient-model-deduplication' setting. NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that."
    PreCheck/DuplicateSchema "readme":"synapse/resource-manager/readme.md",
    "tag":"package-2019-06-01-preview",
    "details":"Duplicate Schema named CloudErrorBody -- properties.details.$ref: undefined => "#/components/schemas/schemas:816" ; This error can be temporarily avoided by using the 'modelerfour.lenient-model-deduplication' setting. NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that."
    PreCheck/DuplicateSchema "readme":"synapse/resource-manager/readme.md",
    "tag":"package-2019-06-01-preview",
    "details":"Duplicate Schema named PrivateEndpointConnectionForPrivateLinkHubBasic -- properties.id.description: "identifier" =>,
    properties.id.readOnly: true =>,
    properties.id.$ref: undefined => "#/components/schemas/schemas:1109",
    properties.properties.description: "Properties of private endpoint connection for private link hub" =>,
    properties.properties.x-ms-client-flatten: true => ; This error can be temporarily avoided by using the 'modelerfour.lenient-model-deduplication' setting. NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that."
    AutorestCore/Exception "readme":"synapse/resource-manager/readme.md",
    "tag":"package-2019-06-01-preview",
    "details":"Error: Plugin prechecker reported failure."
    ⚠️ PreCheck/SchemaMissingType "readme":"synapse/data-plane/readme.md",
    "tag":"package-artifacts-2019-06-01-preview",
    "details":"The schema 'SubResource' with an undefined type and 'allOf'/'anyOf'/'oneOf' is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"synapse/data-plane/readme.md",
    "tag":"package-artifacts-2019-06-01-preview",
    "details":"The schema 'ScheduleTrigger' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"synapse/data-plane/readme.md",
    "tag":"package-artifacts-2019-06-01-preview",
    "details":"The schema 'ScheduleTrigger-typeProperties' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"synapse/data-plane/readme.md",
    "tag":"package-artifacts-2019-06-01-preview",
    "details":"The schema 'BlobTrigger-typeProperties' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"synapse/data-plane/readme.md",
    "tag":"package-artifacts-2019-06-01-preview",
    "details":"The schema 'BlobEventsTrigger' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"synapse/data-plane/readme.md",
    "tag":"package-artifacts-2019-06-01-preview",
    "details":"The schema 'BlobEventsTrigger-typeProperties' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ️❌[Staging] PrettierCheck: 1 Errors, 0 Warnings failed [Detail]
    Rule Message
    HowToFix Code style issues found
    path: preview/2019-06-01-preview/entityTypes/Dataset.json
    ️️✔️[Staging] SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Feb 9, 2021

    Swagger Generation Artifacts

    ️️✔️ azure-resource-manager-schemas succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from ba2d430. Schema Automation 14.0.0
      warn	Skip initScript due to not configured
      command	npx n 12
      warn		specification/synapse/data-plane/readme.md skipped due to azure-resource-manager-schemas not found in swagger-to-sdk
      command	autorest --use=@autorest/azureresourceschema@3.0.92 --version=3.0.6374 --azureresourceschema --multiapi --title=none --pass-thru:subset-reducer --azureresourceschema-folder=/home/vsts/work/1/s/azure-resource-manager-schemas/azure-resource-manager-schemas ../../azure-rest-api-specs/specification/synapse/resource-manager/readme.md
    • ️✔️synapse [View full logs]  [Release Schema Changes]
      cmderr	[resource-manager] node-pre-gyp
      cmderr	[resource-manager] WARN Using request for node-pre-gyp https download
      cmderr	[resource-manager] WARN template-schema-validation-tools@1.0.0 No repository field.
      cmderr	[resource-manager] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
      cmderr	[resource-manager] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
    ️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from ba2d430. SDK Automation 14.0.0
      warn	Skip initScript due to not configured
      warn		specification/synapse/data-plane/readme.md skipped due to azure-sdk-for-js not found in swagger-to-sdk
      command	autorest --version=V2 --typescript --license-header=MICROSOFT_MIT_NO_VERSION --use=@microsoft.azure/autorest.typescript@4.4.4 --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js/azure-sdk-for-js ../../azure-rest-api-specs/specification/synapse/resource-manager/readme.md
    • ️✔️@azure/arm-synapse [View full logs]  [Release SDK Changes]
      cmderr	[npmPack] loaded rollup.config.js with warnings
      cmderr	[npmPack] (!) Unused external imports
      cmderr	[npmPack] default imported from external module 'rollup' but never used
      cmderr	[npmPack] ./esm/synapseManagementClient.js → ./dist/arm-synapse.js...
      cmderr	[npmPack] created ./dist/arm-synapse.js in 1.1s
    ️️✔️ azure-sdk-for-net succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from ba2d430. SDK Automation 14.0.0
      warn	Skip initScript due to not configured
      command	sudo apt-get install -y dotnet-sdk-5.0
      warn		specification/synapse/data-plane/readme.md skipped due to azure-sdk-for-net not found in swagger-to-sdk
      command	autorest --version=V2 --csharp --reflect-api-versions --license-header=MICROSOFT_MIT_NO_VERSION --use=@microsoft.azure/autorest.csharp@2.3.82 --csharp-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-net/sdk ../azure-rest-api-specs/specification/synapse/resource-manager/readme.md
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
    • ️✔️Microsoft.Azure.Management.Synapse [View full logs]  [Release SDK Changes]
    ️⚠️ azure-sdk-for-java warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from ba2d430. SDK Automation 14.0.0
      command	./eng/mgmt/automation/init.sh ../azure-sdk-for-java_tmp/initInput.json ../azure-sdk-for-java_tmp/initOutput.json
      warn		specification/synapse/data-plane/readme.md skipped due to azure-sdk-for-java not found in swagger-to-sdk
      command	./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
      warn	No file changes detected after generation
      warn	No package detected after generation
    • ️✔️azure-resourcemanager-synapse [View full logs]  [Release SDK Changes]
      cmderr	[Inst] 2021-03-17 23:12:29 DEBUG Got artifact_id: azure-resourcemanager-synapse
      cmderr	[Inst] 2021-03-17 23:12:29 DEBUG Got artifact: pom.xml
      cmderr	[Inst] 2021-03-17 23:12:29 DEBUG Got artifact: azure-resourcemanager-synapse-1.0.0-beta.1-sources.jar
      cmderr	[Inst] 2021-03-17 23:12:29 DEBUG Got artifact: azure-resourcemanager-synapse-1.0.0-beta.1.jar
      cmderr	[Inst] 2021-03-17 23:12:29 DEBUG Match jar package: azure-resourcemanager-synapse-1.0.0-beta.1.jar
      cmderr	[Inst] 2021-03-17 23:12:29 DEBUG output: {"full": "```sh\ncurl -L \"https://portal.azure-devex-tools.com/api/sdk-dl-pub?p=Azure/12924/azure-sdk-for-java/azure-resourcemanager-synapse/azure-resourcemanager-synapse-1.0.0-beta.1.jar\" -o azure-resourcemanager-synapse-1.0.0-beta.1.jar\nmvn install:install-file -DgroupId=com.azure.resourcemanager -DartifactId=azure-resourcemanager-synapse -Dversion=1.0.0-beta.0 -Dfile=azure-resourcemanager-synapse-1.0.0-beta.1.jar -Dpackaging=jar -DgeneratePom=true
      ```"}
    ️❌ azure-sdk-for-go failed [Detail]
    • Failed [Logs]Release - Generate from ba2d430. SDK Automation 14.0.0
      command	sh ./initScript.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
      warn		specification/synapse/data-plane/readme.md skipped due to azure-sdk-for-go not found in swagger-to-sdk
      command	go run ./tools/generator/main.go ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
      Validation Failed: {"resource":"PullRequest","field":"head","code":"invalid"}
      HttpError: Validation Failed: {"resource":"PullRequest","field":"head","code":"invalid"}
          at /home/vsts/work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/@octokit/request@5.4.9/node_modules/@octokit/request/dist-node/index.js:66:23
          at processTicksAndRejections (internal/process/task_queues.js:93:5)
          at async workflowPkgUpdatePR (/home/vsts/work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/workflowPackage.js:305:21)
          at async Object.exports.workflowPkgMain (/home/vsts/work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/workflowPackage.js:40:5)
          at async workflowHandleReadmeMd (/home/vsts/work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/workflow.js:171:9)
          at async Object.exports.workflowMain (/home/vsts/work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/workflow.js:83:9)
          at async Object.exports.sdkAutoMain (/home/vsts/work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/entrypoint.js:152:13)
          at async /home/vsts/work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/cli/cli.js:18:20
    • ️✔️synapse/mgmt/2020-12-01/synapse [View full logs]  [Release SDK Changes]
      info	[Changelog] ### New Content
      info	[Changelog]
      info	[Changelog] - New function `*LibraryListResponsePage.Next() error`
      info	[Changelog] - New function `NewLibraryListResponseIterator(LibraryListResponsePage) LibraryListResponseIterator`
      info	[Changelog] - New function `LibraryListResponsePage.NotDone() bool`
      info	[Changelog] - New function `NewLibraryClientWithBaseURI(string, string) LibraryClient`
      info	[Changelog] - New function `NewLibraryListResponsePage(LibraryListResponse, func(context.Context, LibraryListResponse) (LibraryListResponse, error)) LibraryListResponsePage`
      info	[Changelog] - New function `LibrariesClient.ListByWorkspace(context.Context, string, string) (LibraryListResponsePage, error)`
      info	[Changelog] - New function `LibrariesClient.ListByWorkspaceSender(*http.Request) (*http.Response, error)`
      info	[Changelog] - New function `*LibraryListResponsePage.NextWithContext(context.Context) error`
      info	[Changelog] - New function `LibraryResource.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `LibraryListResponseIterator.NotDone() bool`
      info	[Changelog] - New function `LibrariesClient.ListByWorkspacePreparer(context.Context, string, string) (*http.Request, error)`
      info	[Changelog] - New function `*LibraryListResponseIterator.NextWithContext(context.Context) error`
      info	[Changelog] - New function `LibraryClient.Get(context.Context, string, string, string) (LibraryResource, error)`
      info	[Changelog] - New function `*LibraryListResponseIterator.Next() error`
      info	[Changelog] - New function `LibraryListResponsePage.Values() []LibraryResource`
      info	[Changelog] - New function `NewLibrariesClientWithBaseURI(string, string) LibrariesClient`
      info	[Changelog] - New function `LibrariesClient.ListByWorkspaceResponder(*http.Response) (LibraryListResponse, error)`
      info	[Changelog] - New function `LibraryListResponse.IsEmpty() bool`
      info	[Changelog] - New function `LibraryClient.GetSender(*http.Request) (*http.Response, error)`
      info	[Changelog] - New function `LibrariesClient.ListByWorkspaceComplete(context.Context, string, string) (LibraryListResponseIterator, error)`
      info	[Changelog] - New function `LibraryListResponsePage.Response() LibraryListResponse`
      info	[Changelog] - New function `NewLibrariesClient(string) LibrariesClient`
      info	[Changelog] - New function `LibraryListResponseIterator.Response() LibraryListResponse`
      info	[Changelog] - New function `*LibraryResource.UnmarshalJSON([]byte) error`
      info	[Changelog] - New function `LibraryClient.GetResponder(*http.Response) (LibraryResource, error)`
      info	[Changelog] - New function `LibraryClient.GetPreparer(context.Context, string, string, string) (*http.Request, error)`
      info	[Changelog] - New function `NewLibraryClient(string) LibraryClient`
      info	[Changelog] - New function `LibraryListResponseIterator.Value() LibraryResource`
      info	[Changelog] - New struct `LibrariesClient`
      info	[Changelog] - New struct `LibraryClient`
      info	[Changelog] - New struct `LibraryListResponse`
      info	[Changelog] - New struct `LibraryListResponseIterator`
      info	[Changelog] - New struct `LibraryListResponsePage`
      info	[Changelog] - New struct `LibraryResource`
      info	[Changelog]
      info	[Changelog] Total 0 breaking change(s), 40 additive change(s).
      info	[Changelog]
    • ️✔️preview/synapse/mgmt/2019-06-01-preview/synapse [View full logsBreaking Change Detected
      Only show 60 items here, please refer to log for details.
      info	[Changelog] - New function `SQLPoolColumnProperties.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `NewPrivateLinkHubPrivateLinkResourcesClientWithBaseURI(string, string) PrivateLinkHubPrivateLinkResourcesClient`
      info	[Changelog] - New function `SQLPoolGeoBackupPoliciesClient.CreateOrUpdate(context.Context, string, string, string, GeoBackupPolicy) (GeoBackupPolicy, error)`
      info	[Changelog] - New function `SQLPoolSensitivityLabelsClient.UpdateResponder(*http.Response) (autorest.Response, error)`
      info	[Changelog] - New function `SQLPoolMaintenanceWindowOptionsClient.GetSender(*http.Request) (*http.Response, error)`
      info	[Changelog] - New function `SensitivityLabelUpdate.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `SQLPoolRecommendedSensitivityLabelsClient.UpdatePreparer(context.Context, string, string, string, RecommendedSensitivityLabelUpdateList) (*http.Request, error)`
      info	[Changelog] - New function `PossibleDayOfWeekValues() []DayOfWeek`
      info	[Changelog] - New function `SQLPoolMaintenanceWindowsClient.Get(context.Context, string, string, string, string) (MaintenanceWindows, error)`
      info	[Changelog] - New function `MaintenanceWindows.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `SQLPoolMaintenanceWindowsClient.CreateOrUpdateResponder(*http.Response) (autorest.Response, error)`
      info	[Changelog] - New function `PrivateLinkHubPrivateLinkResourcesClient.GetPreparer(context.Context, string, string, string) (*http.Request, error)`
      info	[Changelog] - New function `SQLPoolMaintenanceWindowsClient.CreateOrUpdatePreparer(context.Context, string, string, string, string, MaintenanceWindows) (*http.Request, error)`
      info	[Changelog] - New function `SQLPoolMaintenanceWindowOptionsClient.Get(context.Context, string, string, string, string) (MaintenanceWindowOptions, error)`
      info	[Changelog] - New function `SQLPoolSensitivityLabelsClient.UpdatePreparer(context.Context, string, string, string, SensitivityLabelUpdateList) (*http.Request, error)`
      info	[Changelog] - New function `BigDataPoolResourceProperties.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `NewSQLPoolMaintenanceWindowsClient(string) SQLPoolMaintenanceWindowsClient`
      info	[Changelog] - New function `PrivateLinkHubPrivateLinkResourcesClient.ListPreparer(context.Context, string, string) (*http.Request, error)`
      info	[Changelog] - New function `SQLPoolMaintenanceWindowsClient.GetResponder(*http.Response) (MaintenanceWindows, error)`
      info	[Changelog] - New function `RecommendedSensitivityLabelUpdate.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `SQLPoolMaintenanceWindowsClient.CreateOrUpdateSender(*http.Request) (*http.Response, error)`
      info	[Changelog] - New struct `DynamicExecutorAllocation`
      info	[Changelog] - New struct `LibraryInfo`
      info	[Changelog] - New struct `MaintenanceWindowOptions`
      info	[Changelog] - New struct `MaintenanceWindowOptionsProperties`
      info	[Changelog] - New struct `MaintenanceWindowTimeRange`
      info	[Changelog] - New struct `MaintenanceWindows`
      info	[Changelog] - New struct `MaintenanceWindowsProperties`
      info	[Changelog] - New struct `ManagedVirtualNetworkReference`
      info	[Changelog] - New struct `PrivateLinkHubPrivateLinkResourcesClient`
      info	[Changelog] - New struct `RecommendedSensitivityLabelUpdate`
      info	[Changelog] - New struct `RecommendedSensitivityLabelUpdateList`
      info	[Changelog] - New struct `RecommendedSensitivityLabelUpdateProperties`
      info	[Changelog] - New struct `SQLPoolMaintenanceWindowOptionsClient`
      info	[Changelog] - New struct `SQLPoolMaintenanceWindowsClient`
      info	[Changelog] - New struct `SQLPoolRecommendedSensitivityLabelsClient`
      info	[Changelog] - New struct `SensitivityLabelUpdate`
      info	[Changelog] - New struct `SensitivityLabelUpdateList`
      info	[Changelog] - New struct `SensitivityLabelUpdateProperties`
      info	[Changelog] - New field `ManagedVirtualNetwork` in struct `ManagedIntegrationRuntime`
      info	[Changelog] - New field `IsComputed` in struct `SQLPoolColumnProperties`
      info	[Changelog] - New field `ManagedBy` in struct `SensitivityLabel`
      info	[Changelog] - New field `DynamicExecutorAllocation` in struct `BigDataPoolResourceProperties`
      info	[Changelog] - New field `CacheSize` in struct `BigDataPoolResourceProperties`
      info	[Changelog] - New field `CustomLibraries` in struct `BigDataPoolResourceProperties`
      info	[Changelog] - New field `LastSucceededTimestamp` in struct `BigDataPoolResourceProperties`
      info	[Changelog] - New field `LastCommitID` in struct `WorkspaceRepositoryConfiguration`
      info	[Changelog] - New field `TenantID` in struct `WorkspaceRepositoryConfiguration`
      info	[Changelog] - New field `SchemaName` in struct `SensitivityLabelProperties`
      info	[Changelog] - New field `TableName` in struct `SensitivityLabelProperties`
      info	[Changelog] - New field `ColumnName` in struct `SensitivityLabelProperties`
      info	[Changelog] - New field `Rank` in struct `SensitivityLabelProperties`
      info	[Changelog] - New field `AdlaResourceID` in struct `WorkspaceProperties`
      info	[Changelog]
      info	[Changelog] Total 1 breaking change(s), 119 additive change(s).
      info	[Changelog]
      error	Fatal error: Validation Failed: {"resource":"PullRequest","field":"head","code":"invalid"}
      error	The following packages are still pending:
      error		synapse/mgmt/2020-12-01/synapse
      error		preview/synapse/mgmt/2019-06-01-preview/synapse
    ️⚠️ azure-sdk-for-python warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from ba2d430. SDK Automation 14.0.0
      command	sh scripts/automation_init.sh ../azure-sdk-for-python_tmp/initInput.json ../azure-sdk-for-python_tmp/initOutput.json
      cmderr	[automation_init.sh] WARNING: Skipping azure-nspkg as it is not installed.
      warn		specification/synapse/data-plane/readme.md skipped due to azure-sdk-for-python not found in swagger-to-sdk
      command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
    • ️✔️azure-mgmt-synapse [View full logs]  [Release SDK Changes]
      info	[Changelog] **Features**
      info	[Changelog]
      info	[Changelog]   - Model Workspace has a new parameter network_settings
      info	[Changelog]   - Model WorkspacePatchInfo has a new parameter network_settings
      info	[Changelog]   - Added operation group LibraryOperations
      info	[Changelog]   - Added operation group LibrariesOperations
    ️️✔️[Staging] ApiDocPreview succeeded [Detail] [Expand]
     Please click here to preview with your @microsoft account. 
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-workflow-bot
    Copy link

    Hi @drosales57, one or multiple breaking change(s) is detected in your PR. Please check out the breaking change(s), and provide business justification in the PR comment and @ PR assignee why you must have these change(s), and how external customer impact can be mitigated. Please ensure to follow breaking change policy to request breaking change review and approval before proceeding swagger PR review.
    Action: To initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
    If you want to know the production traffic statistic, please see ARM Traffic statistic.
    If you think it is false positive breaking change, please provide the reasons in the PR comment, report to Swagger Tooling Team via https://aka.ms/swaggerfeedback.

    @drosales57 drosales57 marked this pull request as ready for review February 11, 2021 22:47
    @drosales57 drosales57 changed the title [Hub Generated] Review request for Microsoft.Synapse to add version preview/2019-06-01-preview Update Synapse with ADF swagger changes/2019-06-01-preview Feb 11, 2021
    Copy link
    Contributor

    @idear1203 idear1203 left a comment

    Choose a reason for hiding this comment

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

    :shipit:

    @@ -335,12 +335,55 @@
    "Microsoft.Storage.BlobDeleted"
    ],
    "x-ms-enum": {
    "name": "BlobEventType",
    "name": "BlobEventTypes",
    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    BlobEventTypes [](start = 19, length = 14)

    Can we keep the previous BlobEventType ? I made that change before to fix the CI pipeline issue:

    "readme":"synapse/data-plane/readme.md",
    "tag":"package-artifacts-2019-06-01-preview",
    "details":"Duplicate Schema named BlobEventTypes -- type: undefined => "string",
    items: "$ref":"#/components/schemas/BlobEventTypes" =>,
    enum: undefined => ["Microsoft.Storage.BlobCreated",
    "Microsoft.Storage.BlobDeleted"],
    x-ms-enum: undefined => "name":"BlobEventTypes",
    "modelAsString":true ; This error can be temporarily avoided by using the 'modelerfour.lenient-model-deduplication' setting. NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that."
    

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

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

    done

    @openapi-workflow-bot
    Copy link

    Hi @drosales57, Your PR has some issues. Please fix the CI sequentially by following the order of Avocado, semantic validation, model validation, breaking change, lintDiff.

    TaskHow to fixPrioritySupport (Microsoft alias)
    AvocadoFix-AvocadoHighruowan
    Semantic validationFix-SemanticValidation-ErrorHighraychen, jianyxi
    Model validationFix-ModelValidation-ErrorHighraychen,jianyxi
    LintDiffFix-LintDiffhighjianyxi, ruoxuan
    If you need further help, please feedback via swagger feedback."

    @@ -624,6 +650,7 @@
    },
    "DynamicsCrmLinkedServiceTypeProperties": {
    "description": "Dynamics CRM linked service properties.",
    "type": "object",
    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    "type": "object", [](start = 6, length = 17)

    string

    @openapi-workflow-bot
    Copy link

    NewApiVersionRequired reason:

    A service’s API is a contract with customers and is represented by using the api-version query parameter. Changes such as adding an optional property to a request/response or introducing a new operation is a change to the service’s contract and therefore requires a new api-version value. This is critically important for documentation, client libraries, and customer support.

    EXAMPLE: if a customer calls a service in the public cloud using api-version=2020-07-27, the new property or operation may exist but if they call the service in a government cloud, air-gapped cloud, or Azure Stack Hub cloud using the same api-version, the property or operation may not exist. Because there is no clear relationship between the service api-version and the new property/operation, customers can’t trust the documentation and Azure customer have difficulty helping customers diagnose issues. In addition, each client library version documents the service version it supports. When an optional property or new operation is added to a service and its Swagger, new client libraries must be produced to expose this functionality to customers. Without updating the api-version, it is unclear to customers which version of a client library supports these new features.

    @joheredi
    Copy link
    Member

    Talked to @drosales57 , we would like to change the enums to string types but leave non-enums to be object types. Those non-enums can be other expressions or strings.

    @drosales57, @idear1203 I would like to understand better the scenario when objects are used instead of string, would you mind sharing an example of a request/response with an object vs string? Is there a more specific object definition we can use instead of just object?

    @drosales57
    Copy link
    Contributor Author

    Talked to @drosales57 , we would like to change the enums to string types but leave non-enums to be object types. Those non-enums can be other expressions or strings.

    @drosales57, @idear1203 I would like to understand better the scenario when objects are used instead of string, would you mind sharing an example of a request/response with an object vs string? Is there a more specific object definition we can use instead of just object?

    Many fields in datasets, linkedservices, and pipeline activities can have an expresssion or static value like an integer or stirng.
    Let take a simple example of a pipeline with a Wait activity. The wait activity waits for a specified number seconds (has type int)

    Here's the sample payload that we would publish

    {
        "name": "Pipeline1",
        "properties": {
          "activities": [
            {
              "name": "Wait1",
              "type": "Wait",
              "dependsOn": [],
              "userProperties": [],
              "typeProperties": { "waitTimeInSeconds": 1 }
            }
          ],
          "annotations": []
        }
      }
    

    Now say the customer wants to vary the wait time in the Wait activity based on a pipeline parameter value. Below we have pipeline parameter called "waitTimeParameter"

    {
        "name": "Pipeline1",
        "properties": {
          "activities": [
            {
              "name": "Wait1",
              "type": "Wait",
              "dependsOn": [],
              "userProperties": [],
              "typeProperties": {
                "waitTimeInSeconds": {
                  "value": "@pipeline().parameters.waitTimeParameter",
                  "type": "Expression"
                }
              }
            }
          ],
          "parameters": { "waitTimeParameter": { "type": "int" } },
          "annotations": []
        }
      }
    

    We can reference this pipeline parameter value using the expression (type object):

    {
        "value": "@pipeline().parameters.waitTimeParameter",
        "type": "Expression"
    }
    

    @lmazuel lmazuel merged commit ba2d430 into Azure:master Mar 17, 2021
    MirzaSikander pushed a commit to MirzaSikander/azure-rest-api-specs that referenced this pull request Mar 22, 2021
    * initial changes
    
    * Fix CI pipeline issues
    
    * address comment
    
    * Fix CI pipeline errors
    
    * Fix syntax errors in example files
    
    * Fix CI pipeline errors
    
    * Resolve CI errors
    
    * Fix CI issues
    
    * Change dataFlow to dataflow
    
    * address review comments
    
    * address comment
    
    * fix enums that support expressions
    
    * Fix comment
    
    Co-authored-by: Dongwei Wang <dongwwa@microsoft.com>
    mkarmark pushed a commit to mkarmark/azure-rest-api-specs that referenced this pull request Jul 21, 2021
    * initial changes
    
    * Fix CI pipeline issues
    
    * address comment
    
    * Fix CI pipeline errors
    
    * Fix syntax errors in example files
    
    * Fix CI pipeline errors
    
    * Resolve CI errors
    
    * Fix CI issues
    
    * Change dataFlow to dataflow
    
    * address review comments
    
    * address comment
    
    * fix enums that support expressions
    
    * Fix comment
    
    Co-authored-by: Dongwei Wang <dongwwa@microsoft.com>
    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