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

Microsoft.Search RP Supports New 2024-06-01-Preview API #29104

Merged
merged 20 commits into from
May 25, 2024

Conversation

efrainretana
Copy link
Contributor

@efrainretana efrainretana commented May 14, 2024

ARM (Control Plane) API Specification Update Pull Request

Tip

Overwhelmed by all this guidance? See the Getting help section at the bottom of this PR description.

PR review workflow diagram

Please understand this diagram before proceeding. It explains how to get your PR approved & merged.

spec_pr_review_workflow_diagram

Purpose of this PR

What's the purpose of this PR? Check the specific option that applies. This is mandatory!

  • New resource provider.
  • New API version for an existing resource provider. (If API spec is not defined in TypeSpec, the PR should have been created in adherence to OpenAPI specs PR creation guidance).
  • Update existing version for a new feature. (This is applicable only when you are revising a private preview API version.)
  • Update existing version to fix OpenAPI spec quality issues in S360.
  • Other, please clarify:
    • edit this with your clarification

Due diligence checklist

To merge this PR, you must go through the following checklist and confirm you understood
and followed the instructions by checking all the boxes:

  • I confirm this PR is modifying Azure Resource Manager (ARM) related specifications, and not data plane related specifications.
  • I have reviewed following Resource Provider guidelines, including
    ARM resource provider contract and
    REST guidelines (estimated time: 4 hours).
    I understand this is required before I can proceed to the diagram Step 2, "ARM API changes review", for this PR.

Additional information

Viewing API changes

For convenient view of the API changes made by this PR, refer to the URLs provided in the table
in the Generated ApiView comment added to this PR. You can use ApiView to show API versions diff.

Suppressing failures

If one or multiple validation error/warning suppression(s) is detected in your PR, please follow the
suppressions guide to get approval.

Getting help

  • First, please carefully read through this PR description, from top to bottom. Please fill out the Purpose of this PR and Due diligence checklist.
  • To understand what you must do next to merge this PR, see the Next Steps to Merge comment. It will appear within few minutes of submitting this PR and will continue to be up-to-date with current PR state.
  • For guidance on fixing this PR CI check failures, see the hyperlinks provided in given failure
    and https://aka.ms/ci-fix.
  • For help with ARM review (PR workflow diagram Step 2), see https://aka.ms/azsdk/pr-arm-review.
  • If the PR CI checks appear to be stuck in queued state, please add a comment with contents /azp run.
    This should result in a new comment denoting a PR validation pipeline has started and the checks should be updated after few minutes.
  • If the help provided by the previous points is not enough, post to https://aka.ms/azsdk/support/specreview-channel and link to this PR.

Copied the files in a separate commit.
This allows reviewers to easily diff subsequent changes against the previous spec.
Updated the API version from preview/2024-03-01-preview to preview/2024-06-01-preview.
Copy link

openapi-pipeline-app bot commented May 15, 2024

Next Steps to Merge

✅ All automated merging requirements have been met! To get your PR merged, see aka.ms/azsdk/specreview/merge.

Copy link

openapi-pipeline-app bot commented May 15, 2024

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
️❌Breaking Change(Cross-Version): 23 Errors, 1 Warnings failed [Detail]
Compared specs (v0.10.9) new version base version
search.json 2024-06-01-preview(a2fe037) 2023-11-01(main)
search.json 2024-06-01-preview(a2fe037) 2024-03-01-preview(main)

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

Rule Message
1019 - RemovedEnumValue The new version is removing enum value(s) 'succeeded, provisioning, failed' from the old version.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L2491:9
Old: Microsoft.Search/stable/2023-11-01/search.json#L2209:9
1036 - ConstraintChanged The new version has a different 'pattern' value than the previous one.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L88:9
Old: Microsoft.Search/stable/2023-11-01/search.json#L88:9
1036 - ConstraintChanged The new version has a different 'pattern' value than the previous one.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L136:9
Old: Microsoft.Search/stable/2023-11-01/search.json#L136:9
1036 - ConstraintChanged The new version has a different 'pattern' value than the previous one.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L211:9
Old: Microsoft.Search/stable/2023-11-01/search.json#L211:9
1036 - ConstraintChanged The new version has a different 'pattern' value than the previous one.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L269:9
Old: Microsoft.Search/stable/2023-11-01/search.json#L269:9
1036 - ConstraintChanged The new version has a different 'pattern' value than the previous one.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L317:9
Old: Microsoft.Search/stable/2023-11-01/search.json#L317:9
1036 - ConstraintChanged The new version has a different 'pattern' value than the previous one.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L554:9
Old: Microsoft.Search/stable/2023-11-01/search.json#L542:9
1036 - ConstraintChanged The new version has a different 'pattern' value than the previous one.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L600:9
Old: Microsoft.Search/stable/2023-11-01/search.json#L588:9
1036 - ConstraintChanged The new version has a different 'pattern' value than the previous one.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L702:9
Old: Microsoft.Search/stable/2023-11-01/search.json#L690:9
1036 - ConstraintChanged The new version has a different 'pattern' value than the previous one.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L750:9
Old: Microsoft.Search/stable/2023-11-01/search.json#L738:9
1036 - ConstraintChanged The new version has a different 'pattern' value than the previous one.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L808:9
Old: Microsoft.Search/stable/2023-11-01/search.json#L796:9
1036 - ConstraintChanged The new version has a different 'pattern' value than the previous one.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L857:9
Old: Microsoft.Search/stable/2023-11-01/search.json#L845:9
1036 - ConstraintChanged The new version has a different 'pattern' value than the previous one.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L914:9
Old: Microsoft.Search/stable/2023-11-01/search.json#L902:9
1036 - ConstraintChanged The new version has a different 'pattern' value than the previous one.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L966:9
Old: Microsoft.Search/stable/2023-11-01/search.json#L954:9
1036 - ConstraintChanged The new version has a different 'pattern' value than the previous one.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L1027:9
Old: Microsoft.Search/stable/2023-11-01/search.json#L1015:9
1036 - ConstraintChanged The new version has a different 'pattern' value than the previous one.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L1080:9
Old: Microsoft.Search/stable/2023-11-01/search.json#L1068:9
1036 - ConstraintChanged The new version has a different 'pattern' value than the previous one.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L1137:9
Old: Microsoft.Search/stable/2023-11-01/search.json#L1125:9
1036 - ConstraintChanged The new version has a different 'pattern' value than the previous one.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L3226:5
Old: Microsoft.Search/stable/2023-11-01/search.json#L2510:5
1047 - XmsEnumChanged The new version has a different x-ms-enum 'modelAsString' than the previous one.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L2406:9
Old: Microsoft.Search/stable/2023-11-01/search.json#L2142:9
1047 - XmsEnumChanged The new version has a different x-ms-enum 'modelAsString' than the previous one.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L2096:9
Old: Microsoft.Search/stable/2023-11-01/search.json#L1881:9
1047 - XmsEnumChanged The new version has a different x-ms-enum 'modelAsString' than the previous one.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L2132:9
Old: Microsoft.Search/stable/2023-11-01/search.json#L1895:9
1047 - XmsEnumChanged The new version has a different x-ms-enum 'modelAsString' than the previous one.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L1645:9
Old: Microsoft.Search/stable/2023-11-01/search.json#L1478:9
1047 - XmsEnumChanged The new version has a different x-ms-enum 'modelAsString' than the previous one.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L2874:9
Old: Microsoft.Search/stable/2023-11-01/search.json#L2423:9


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

Rule Message
⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'succeeded, provisioning, failed' from the old version.
New: Microsoft.Search/preview/2024-06-01-preview/search.json#L2491:9
Old: Microsoft.Search/preview/2024-03-01-preview/search.json#L2485:9
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️⚠️LintDiff: 0 Warnings warning [Detail]
Compared specs (v2.2.2) new version base version
package-preview-2024-06 package-preview-2024-06(a2fe037) default(main)

The following errors/warnings exist before current PR submission:

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

Rule Message
OperationsApiSchemaUsesCommonTypes Operations API path must follow the schema provided in the common types.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L58
PathForResourceAction Path for 'post' method on a resource type MUST follow valid resource naming.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L121
PathForResourceAction Path for 'post' method on a resource type MUST follow valid resource naming.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L196
DeleteResponseCodes Synchronous delete operations must have responses with 200, 204 and default return codes. They also must have no other response codes.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L303
MissingXmsErrorResponse Response code 404 is defined without a x-ms-error-response.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L348
NoErrorCodeResponses Invalid status code specified. Please refer to the documentation for the allowed set.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L348
ResourceNameRestriction The resource name parameter 'searchServiceName' should be defined with a 'pattern' restriction.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L360
PatchBodyParametersSchema Properties of a PATCH request body must not be required, property:type.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L510
PatchBodyParametersSchema Properties of a PATCH request body must not have default value, property:replicaCount.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L510
PatchBodyParametersSchema Properties of a PATCH request body must not have default value, property:partitionCount.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L510
PatchBodyParametersSchema Properties of a PATCH request body must not have default value, property:hostingMode.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L510
PatchBodyParametersSchema Properties of a PATCH request body must not have default value, property:publicNetworkAccess.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L510
DeleteResponseCodes Synchronous delete operations must have responses with 200, 204 and default return codes. They also must have no other response codes.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L586
MissingXmsErrorResponse Response code 404 is defined without a x-ms-error-response.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L624
NoErrorCodeResponses Invalid status code specified. Please refer to the documentation for the allowed set.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L624
GetCollectionOnlyHasValueAndNextLink Get endpoints for collections of resources must only have the value and nextLink properties in their model.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L722
PutResponseCodes Synchronous and long-running PUT operations must have responses with 200, 201 and default return codes. They also must not have other response codes.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L736
ProvisioningStateMustBeReadOnly provisioningState property must be set to readOnly.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L782
ProvisioningStateMustBeReadOnly provisioningState property must be set to readOnly.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L831
DeleteResponseCodes Synchronous delete operations must have responses with 200, 204 and default return codes. They also must have no other response codes.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L843
DeleteOperationResponses The delete operation is defined without a 200 or 204 error response implementation,please add it.'
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L877
DeleteResponseBodyEmpty The delete response body must be empty.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L880
ProvisioningStateMustBeReadOnly provisioningState property must be set to readOnly.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L880
MissingXmsErrorResponse Response code 404 is defined without a x-ms-error-response.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L884
NoErrorCodeResponses Invalid status code specified. Please refer to the documentation for the allowed set.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L884
ResourceNameRestriction The resource name parameter 'sharedPrivateLinkResourceName' should be defined with a 'pattern' restriction.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L947
ProvisioningStateSpecifiedForLROPut 201 response schema in long running PUT operation is missing ProvisioningState property. A LRO PUT operations response schema must have ProvisioningState specified for the 200 and 201 status codes.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L948
PutResponseCodes Synchronous and long-running PUT operations must have responses with 200, 201 and default return codes. They also must not have other response codes.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L948
ProvisioningStateMustBeReadOnly provisioningState property must be set to readOnly.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L998
LroLocationHeader A 202 response should include an Location response header.
Location: Microsoft.Search/preview/2024-06-01-preview/search.json#L1002
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️️✔️TypeSpecAPIView 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.
️️✔️SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️Lint(RPaaS) succeeded [Detail] [Expand]
Validation passes for Lint(RPaaS).
️️✔️PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
️️✔️Automated merging requirements met succeeded [Detail] [Expand]
Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-pipeline-app bot commented May 15, 2024

Swagger Generation Artifacts

️️✔️ApiDocPreview succeeded [Detail] [Expand]
 Please click here to preview with your @microsoft account. 
️️✔️ azure-sdk-for-net-track2 succeeded [Detail] [Expand]
  • ️✔️Succeeded in generating from c2e1348c7219acfc1ff85acc6f0c81dd18cdd65b. SDK Automation 14.0.0
    command	pwsh ./eng/scripts/Automation-Sdk-Init.ps1 ../azure-sdk-for-net_tmp/initInput.json ../azure-sdk-for-net_tmp/initOutput.json
    command	pwsh ./eng/scripts/Invoke-GenerateAndBuildV2.ps1 ../azure-sdk-for-net_tmp/generateInput.json ../azure-sdk-for-net_tmp/generateOutput.json
  • ️✔️Azure.ResourceManager.Search [Preview SDK Changes]
    • Azure.ResourceManager.Search.1.3.0-alpha.20240524.1.nupkg
    info	[Changelog]
️⚠️ azure-sdk-for-python warning [Detail]
  • ⚠️Warning in generating from c2e1348c7219acfc1ff85acc6f0c81dd18cdd65b. 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] W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] WARNING: Skipping azure-nspkg as it is not installed.
    cmderr	[automation_init.sh]  notice
    cmderr	[automation_init.sh] npm notice New minor version of npm available! 10.5.0 -> 10.8.0
    cmderr	[automation_init.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.8.0>
    cmderr	[automation_init.sh] npm notice Run `npm install -g npm@10.8.0` to update!
    cmderr	[automation_init.sh] npm notice
    command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
  • ️✔️azure-mgmt-search [Preview SDK Changes]
    • azure-mgmt-search-1.0.0b1.zip
    • azure_mgmt_search-1.0.0b1-py3-none-any.whl
️⚠️ azure-sdk-for-java warning [Detail]
  • ⚠️Warning in generating from c2e1348c7219acfc1ff85acc6f0c81dd18cdd65b. 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
    command	./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
    cmderr	[generate.py] [COMPILE] Maven build fail.
    cmderr	[generate.py] You can inquire in "Language - Java" Teams channel. Please include the link of this Pull Request in the query.
  • ️✔️azure-resourcemanager-search [Preview SDK Changes]
    • pom.xml
️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
  • ️✔️Succeeded in generating from c2e1348c7219acfc1ff85acc6f0c81dd18cdd65b. SDK Automation 14.0.0
    command	sh ./eng/scripts/automation_init.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
    command	generator automation-v2 ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
  • ️✔️sdk/resourcemanager/search/armsearch [Preview SDK Changes]
️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
  • ️✔️Succeeded in generating from c2e1348c7219acfc1ff85acc6f0c81dd18cdd65b. SDK Automation 14.0.0
    command	sh .scripts/automation_init.sh ../azure-sdk-for-js_tmp/initInput.json ../azure-sdk-for-js_tmp/initOutput.json
    warn	File azure-sdk-for-js_tmp/initOutput.json not found to read
    command	sh .scripts/automation_generate.sh ../azure-sdk-for-js_tmp/generateInput.json ../azure-sdk-for-js_tmp/generateOutput.json
  • ️✔️@azure/arm-search [Preview SDK Changes]
    • azure-arm-search-3.3.0-beta.2.tgz
️❌ azure-resource-manager-schemas failed [Detail]
  • Code Generator Failed in generating from c2e1348c7219acfc1ff85acc6f0c81dd18cdd65b. Schema Automation 14.0.0
    command	.sdkauto/initScript.sh ../azure-resource-manager-schemas_tmp/initInput.json ../azure-resource-manager-schemas_tmp/initOutput.json
    cmderr	[initScript.sh] Submodule 'bicep-types-az' (https://github.com/Azure/bicep-types-az) registered for path 'bicep-types-az'
    cmderr	[initScript.sh] Cloning into '/mnt/vss/_work/1/s/azure-resource-manager-schemas/bicep-types-az'...
    cmderr	[initScript.sh] Submodule 'bicep-types' (https://github.com/Azure/bicep-types) registered for path 'bicep-types-az/bicep-types'
    cmderr	[initScript.sh] Cloning into '/mnt/vss/_work/1/s/azure-resource-manager-schemas/bicep-types-az/bicep-types'...
    cmderr	[initScript.sh]  notice
    cmderr	[initScript.sh] npm notice New minor version of npm available! 10.5.0 -> 10.8.0
    cmderr	[initScript.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.8.0>
    cmderr	[initScript.sh] npm notice Run `npm install -g npm@10.8.0` to update!
    cmderr	[initScript.sh] npm notice
    error	Script return with result [failed] code [1] signal [null] cwd [azure-resource-manager-schemas]: .sdkauto/initScript.sh
    warn	File azure-resource-manager-schemas_tmp/initOutput.json not found to read
    command	.sdkauto/generateScript.sh ../azure-resource-manager-schemas_tmp/generateInput.json ../azure-resource-manager-schemas_tmp/generateOutput.json
    cmderr	[generateScript.sh] /mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/ts-node@9.0.0_typescript@5.3.3/node_modules/ts-node/src/index.ts:500
    cmderr	[generateScript.sh]     return new TSError(diagnosticText, diagnosticCodes)
    cmderr	[generateScript.sh]            ^
    cmderr	[generateScript.sh] TSError: ⨯ Unable to compile TypeScript:
    cmderr	[generateScript.sh] cmd/generateall.ts(6,20): error TS2307: Cannot find module 'colors' or its corresponding type declarations.
    cmderr	[generateScript.sh] cmd/generateall.ts(10,19): error TS2307: Cannot find module 'yargs' or its corresponding type declarations.
    cmderr	[generateScript.sh] cmd/generateall.ts(11,18): error TS2307: Cannot find module 'path' or its corresponding type declarations.
    cmderr	[generateScript.sh] cmd/generateall.ts(13,35): error TS2307: Cannot find module 'fs' or its corresponding type declarations.
    cmderr	[generateScript.sh] cmd/generateall.ts(14,23): error TS2307: Cannot find module 'strip-ansi' or its corresponding type declarations.
    cmderr	[generateScript.sh] cmd/generateall.ts(42,9): error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
    cmderr	[generateScript.sh] cmd/generateall.ts(53,9): error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
    cmderr	[generateScript.sh] cmd/generateall.ts(69,67): error TS7006: Parameter 'x' implicitly has an 'any' type.
    cmderr	[generateScript.sh] cmd/generateall.ts(70,49): error TS7006: Parameter 'f' implicitly has an 'any' type.
    cmderr	[generateScript.sh] cmd/generateall.ts(94,21): error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
    cmderr	[generateScript.sh] cmd/generateall.ts(105,21): error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
    cmderr	[generateScript.sh] cmd/generateall.ts(106,21): error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
    cmderr	[generateScript.sh] cmd/generateall.ts(157,13): error TS2591: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
    cmderr	[generateScript.sh]     at createTSError (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/ts-node@9.0.0_typescript@5.3.3/node_modules/ts-node/src/index.ts:500:12)
    cmderr	[generateScript.sh]     at reportTSError (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/ts-node@9.0.0_typescript@5.3.3/node_modules/ts-node/src/index.ts:504:19)
    cmderr	[generateScript.sh]     at getOutput (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/ts-node@9.0.0_typescript@5.3.3/node_modules/ts-node/src/index.ts:739:36)
    cmderr	[generateScript.sh]     at Object.compile (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/ts-node@9.0.0_typescript@5.3.3/node_modules/ts-node/src/index.ts:955:32)
    cmderr	[generateScript.sh]     at Module.m._compile (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/ts-node@9.0.0_typescript@5.3.3/node_modules/ts-node/src/index.ts:1043:43)
    cmderr	[generateScript.sh]     at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
    cmderr	[generateScript.sh]     at Object.require.extensions.<computed> [as .ts] (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/ts-node@9.0.0_typescript@5.3.3/node_modules/ts-node/src/index.ts:1046:12)
    cmderr	[generateScript.sh]     at Module.load (node:internal/modules/cjs/loader:1203:32)
    cmderr	[generateScript.sh]     at Function.Module._load (node:internal/modules/cjs/loader:1019:12)
    cmderr	[generateScript.sh]     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
    error	Script return with result [failed] code [1] signal [null] cwd [azure-resource-manager-schemas]: .sdkauto/generateScript.sh
    warn	Skip package processing as generation is failed
    error	ERROR: The 'breakingChangesLabel' configuration is missing or incorrect from the 'swagger_to_sdk_config.json file.
️️✔️ azure-powershell succeeded [Detail] [Expand]
  • ️✔️Succeeded in generating from c2e1348c7219acfc1ff85acc6f0c81dd18cdd65b. SDK Automation 14.0.0
    command	sh ./tools/SwaggerCI/init.sh ../azure-powershell_tmp/initInput.json ../azure-powershell_tmp/initOutput.json
    command	pwsh ./tools/SwaggerCI/psci.ps1 ../azure-powershell_tmp/generateInput.json ../azure-powershell_tmp/generateOutput.json
  • ️✔️Az.search.DefaultTag [Preview SDK Changes]
    • Az.Search.0.1.0.nupkg
Posted by Swagger Pipeline | How to fix these errors?

@JeffreyRichter JeffreyRichter added the BreakingChange-Approved-UserImpact Changes are not backward compatible and may cause customer disruption. label May 17, 2024
@efrainretana
Copy link
Contributor Author

efrainretana commented May 17, 2024

/azp run

Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@AzureRestAPISpecReview AzureRestAPISpecReview added the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label May 17, 2024
@efrainretana
Copy link
Contributor Author

efrainretana commented May 20, 2024

Awaiting review for ARM reviewer. Current position # 46. ETA: 5 days

@efrainretana
Copy link
Contributor Author

Current position # 45. ETA: 5 days

@efrainretana
Copy link
Contributor Author

Current position # 37. ETA: 4 days

@efrainretana
Copy link
Contributor Author

Received guidance from Razvan around updating our common types: We asked if it was possible to return null SystemData or omit from response while the implementation is complete. His suggestion: Don't upgrade common types until implementation is ready, as this can provide inaccurate data and some confusion (or not great experience). His suggestion was to upgrade to common type that does not use new system data properly (Such as v3). Unfortunately, we are trying to use v5 to make use of -> NSP definition, UserAssignedIdentity definition, and Resource definition which is only accessible in v5>=.
We will be reverting back to our previous common types and definitions.

@efrainretana
Copy link
Contributor Author

Current position # 28. ETA: 3 days

@razvanbadea-msft razvanbadea-msft added the ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review label May 24, 2024
@openapi-pipeline-app openapi-pipeline-app bot removed the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label May 24, 2024
@efrainretana
Copy link
Contributor Author

/pr RequestMerge

@razvanbadea-msft razvanbadea-msft merged commit c3cc9ab into main May 25, 2024
30 of 32 checks passed
@razvanbadea-msft razvanbadea-msft deleted the efrainretana/2024-06-01-Preview branch May 25, 2024 08:26
Francisco-Gamino pushed a commit to Francisco-Gamino/azure-rest-api-specs that referenced this pull request Jun 5, 2024
* Copy files from preview/2024-03-01-preview

Copied the files in a separate commit.
This allows reviewers to easily diff subsequent changes against the previous spec.

* Update version to preview/2024-06-01-preview

Updated the API version from preview/2024-03-01-preview to preview/2024-06-01-preview.

* Added tag for 2024-06-01-preview in readme file

* Add new features for bypass and resourceAccessRules

* Prettier fixes

* Accumulated fixes

* Fix common types, error definition

* typo in version

* Update examples for provisioning state, add new update example for resource access rules

* Add missing example ref

* Remove resource access rules, unneeded. Update Bypass description

* Fix casing

* revert to v2 common types per guidance

* revert to v2 common types per guidance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARMReview ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review BreakingChange-Approved-UserImpact Changes are not backward compatible and may cause customer disruption. BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required new-api-version ReadyForApiTest <valid label in PR review process>add this label when swagger and service APIs are ready for test resource-manager
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants