Skip to content

Commit e33404d

Browse files
committed
update configs
1 parent b5759e8 commit e33404d

File tree

77 files changed

+388
-499
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+388
-499
lines changed

eng/tools/typespec-validation/src/rules/sdk-tspconfig-validation.ts

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -179,15 +179,6 @@ export class TspConfigJavaAzPackageDirectorySubRule extends TspconfigEmitterOpti
179179
}
180180

181181
// ----- TS management modular sub rules -----
182-
export class _TspConfigTsMgmtModularGenerateMetadataTrueSubRule extends TspconfigEmitterOptionsSubRuleBase {
183-
constructor() {
184-
super("@azure-tools/typespec-ts", "generateMetadata", true);
185-
}
186-
protected skip(config: any, folder: string) {
187-
return skipForNonModularOrDataPlaneInTsEmitter(config, folder);
188-
}
189-
}
190-
191182
export class TspConfigTsMgmtModularGenerateMetadataTrueSubRule extends TspconfigEmitterOptionsSubRuleBase {
192183
constructor() {
193184
super("@azure-tools/typespec-ts", "generate-metadata", true);
@@ -197,15 +188,6 @@ export class TspConfigTsMgmtModularGenerateMetadataTrueSubRule extends Tspconfig
197188
}
198189
}
199190

200-
export class _TspConfigTsMgmtModularHierarchyClientFalseSubRule extends TspconfigEmitterOptionsSubRuleBase {
201-
constructor() {
202-
super("@azure-tools/typespec-ts", "hierarchyClient", false);
203-
}
204-
protected skip(config: any, folder: string) {
205-
return skipForNonModularOrDataPlaneInTsEmitter(config, folder);
206-
}
207-
}
208-
209191
export class TspConfigTsMgmtModularHierarchyClientFalseSubRule extends TspconfigEmitterOptionsSubRuleBase {
210192
constructor() {
211193
super("@azure-tools/typespec-ts", "hierarchy-client", false);
@@ -215,15 +197,6 @@ export class TspConfigTsMgmtModularHierarchyClientFalseSubRule extends Tspconfig
215197
}
216198
}
217199

218-
export class _TspConfigTsMgmtModularExperimentalExtensibleEnumsTrueSubRule extends TspconfigEmitterOptionsSubRuleBase {
219-
constructor() {
220-
super("@azure-tools/typespec-ts", "experimentalExtensibleEnums", true);
221-
}
222-
protected skip(config: any, folder: string) {
223-
return skipForNonModularOrDataPlaneInTsEmitter(config, folder);
224-
}
225-
}
226-
227200
export class TspConfigTsMgmtModularExperimentalExtensibleEnumsTrueSubRule extends TspconfigEmitterOptionsSubRuleBase {
228201
constructor() {
229202
super("@azure-tools/typespec-ts", "experimental-extensible-enums", true);
@@ -233,15 +206,6 @@ export class TspConfigTsMgmtModularExperimentalExtensibleEnumsTrueSubRule extend
233206
}
234207
}
235208

236-
export class _TspConfigTsMgmtModularEnableOperationGroupTrueSubRule extends TspconfigEmitterOptionsSubRuleBase {
237-
constructor() {
238-
super("@azure-tools/typespec-ts", "enableOperationGroup", true);
239-
}
240-
protected skip(config: any, folder: string) {
241-
return skipForNonModularOrDataPlaneInTsEmitter(config, folder);
242-
}
243-
}
244-
245209
export class TspConfigTsMgmtModularEnableOperationGroupTrueSubRule extends TspconfigEmitterOptionsSubRuleBase {
246210
constructor() {
247211
super("@azure-tools/typespec-ts", "enable-operation-group", true);
@@ -260,19 +224,6 @@ export class TspConfigTsMgmtModularPackageDirectorySubRule extends TspconfigEmit
260224
}
261225
}
262226

263-
export class _TspConfigTsMgmtModularPackageNameMatchPatternSubRule extends TspconfigEmitterOptionsSubRuleBase {
264-
constructor() {
265-
super(
266-
"@azure-tools/typespec-ts",
267-
"packageDetails.name",
268-
new RegExp(/^\@azure\/arm(?:-[a-z]+)+$/),
269-
);
270-
}
271-
protected skip(config: any, folder: string) {
272-
return skipForNonModularOrDataPlaneInTsEmitter(config, folder);
273-
}
274-
}
275-
276227
export class TspConfigTsMgmtModularPackageNameMatchPatternSubRule extends TspconfigEmitterOptionsSubRuleBase {
277228
constructor() {
278229
super(
@@ -463,16 +414,11 @@ export const defaultRules = [
463414
new TspConfigCommonAzServiceDirMatchPatternSubRule(),
464415
new TspConfigJavaAzPackageDirectorySubRule(),
465416
new TspConfigTsMgmtModularGenerateMetadataTrueSubRule(),
466-
new _TspConfigTsMgmtModularGenerateMetadataTrueSubRule(),
467417
new TspConfigTsMgmtModularHierarchyClientFalseSubRule(),
468-
new _TspConfigTsMgmtModularHierarchyClientFalseSubRule(),
469418
new TspConfigTsMgmtModularExperimentalExtensibleEnumsTrueSubRule(),
470-
new _TspConfigTsMgmtModularExperimentalExtensibleEnumsTrueSubRule(),
471419
new TspConfigTsMgmtModularEnableOperationGroupTrueSubRule(),
472-
new _TspConfigTsMgmtModularEnableOperationGroupTrueSubRule(),
473420
new TspConfigTsMgmtModularPackageDirectorySubRule(),
474421
new TspConfigTsMgmtModularPackageNameMatchPatternSubRule(),
475-
new _TspConfigTsMgmtModularPackageNameMatchPatternSubRule(),
476422
new TspConfigGoMgmtServiceDirMatchPatternSubRule(),
477423
new TspConfigGoMgmtPackageDirectorySubRule(),
478424
new TspConfigGoMgmtModuleEqualStringSubRule(),

eng/tools/typespec-validation/test/sdk-tspconfig-validation.test.ts

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,11 @@ import {
44
SdkTspConfigValidationRule,
55
TspConfigCommonAzServiceDirMatchPatternSubRule,
66
TspConfigTsMgmtModularGenerateMetadataTrueSubRule,
7-
_TspConfigTsMgmtModularGenerateMetadataTrueSubRule,
87
TspConfigTsMgmtModularHierarchyClientFalseSubRule,
9-
_TspConfigTsMgmtModularHierarchyClientFalseSubRule,
108
TspConfigTsMgmtModularExperimentalExtensibleEnumsTrueSubRule,
11-
_TspConfigTsMgmtModularExperimentalExtensibleEnumsTrueSubRule,
129
TspConfigTsMgmtModularEnableOperationGroupTrueSubRule,
13-
_TspConfigTsMgmtModularEnableOperationGroupTrueSubRule,
1410
TspConfigTsMgmtModularPackageDirectorySubRule,
1511
TspConfigTsMgmtModularPackageNameMatchPatternSubRule,
16-
_TspConfigTsMgmtModularPackageNameMatchPatternSubRule,
1712
TspConfigGoMgmtServiceDirMatchPatternSubRule,
1813
TspConfigGoMgmtPackageDirectorySubRule,
1914
TspConfigGoMgmtModuleEqualStringSubRule,
@@ -186,24 +181,6 @@ const tsManagementGenerateMetadataTestCases = createEmitterOptionTestCases(
186181
[new TspConfigTsMgmtModularGenerateMetadataTrueSubRule()],
187182
);
188183

189-
const _tsManagementGenerateMetadataTestCases = createEmitterOptionTestCases(
190-
"@azure-tools/typespec-ts",
191-
managementTspconfigFolder,
192-
"generateMetadata",
193-
true,
194-
false,
195-
[new _TspConfigTsMgmtModularGenerateMetadataTrueSubRule()],
196-
);
197-
198-
const _tsManagementHierarchyClientTestCases = createEmitterOptionTestCases(
199-
"@azure-tools/typespec-ts",
200-
managementTspconfigFolder,
201-
"hierarchyClient",
202-
false,
203-
true,
204-
[new _TspConfigTsMgmtModularHierarchyClientFalseSubRule()],
205-
);
206-
207184
const tsManagementHierarchyClientTestCases = createEmitterOptionTestCases(
208185
"@azure-tools/typespec-ts",
209186
managementTspconfigFolder,
@@ -213,15 +190,6 @@ const tsManagementHierarchyClientTestCases = createEmitterOptionTestCases(
213190
[new TspConfigTsMgmtModularHierarchyClientFalseSubRule()],
214191
);
215192

216-
const _tsManagementExperimentalExtensibleEnumsTestCases = createEmitterOptionTestCases(
217-
"@azure-tools/typespec-ts",
218-
managementTspconfigFolder,
219-
"experimentalExtensibleEnums",
220-
true,
221-
false,
222-
[new _TspConfigTsMgmtModularExperimentalExtensibleEnumsTrueSubRule()],
223-
);
224-
225193
const tsManagementExperimentalExtensibleEnumsTestCases = createEmitterOptionTestCases(
226194
"@azure-tools/typespec-ts",
227195
managementTspconfigFolder,
@@ -231,15 +199,6 @@ const tsManagementExperimentalExtensibleEnumsTestCases = createEmitterOptionTest
231199
[new TspConfigTsMgmtModularExperimentalExtensibleEnumsTrueSubRule()],
232200
);
233201

234-
const _tsManagementEnableOperationGroupTestCases = createEmitterOptionTestCases(
235-
"@azure-tools/typespec-ts",
236-
managementTspconfigFolder,
237-
"enableOperationGroup",
238-
true,
239-
false,
240-
[new _TspConfigTsMgmtModularEnableOperationGroupTrueSubRule()],
241-
);
242-
243202
const tsManagementEnableOperationGroupTestCases = createEmitterOptionTestCases(
244203
"@azure-tools/typespec-ts",
245204
managementTspconfigFolder,
@@ -258,15 +217,6 @@ const tsManagementPackageDirTestCases = createEmitterOptionTestCases(
258217
[new TspConfigTsMgmtModularPackageDirectorySubRule()],
259218
);
260219

261-
const _tsManagementPackageNameTestCases = createEmitterOptionTestCases(
262-
"@azure-tools/typespec-ts",
263-
managementTspconfigFolder,
264-
"packageDetails.name",
265-
"@azure/arm-aaa-bbb",
266-
"@azure/aaa-bbb",
267-
[new _TspConfigTsMgmtModularPackageNameMatchPatternSubRule()],
268-
);
269-
270220
const tsManagementPackageNameTestCases = createEmitterOptionTestCases(
271221
"@azure-tools/typespec-ts",
272222
managementTspconfigFolder,
@@ -481,16 +431,11 @@ describe("tspconfig", function () {
481431
...commonAzureServiceDirTestCases,
482432
// ts
483433
...tsManagementGenerateMetadataTestCases,
484-
..._tsManagementGenerateMetadataTestCases,
485434
...tsManagementHierarchyClientTestCases,
486-
..._tsManagementHierarchyClientTestCases,
487435
...tsManagementExperimentalExtensibleEnumsTestCases,
488-
..._tsManagementExperimentalExtensibleEnumsTestCases,
489436
...tsManagementEnableOperationGroupTestCases,
490-
..._tsManagementEnableOperationGroupTestCases,
491437
...tsManagementPackageDirTestCases,
492438
...tsManagementPackageNameTestCases,
493-
..._tsManagementPackageNameTestCases,
494439
// go
495440
...goManagementServiceDirTestCases,
496441
...goManagementPackageDirTestCases,

specification/ai/DocumentIntelligence/tspconfig.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ options:
5151
"@azure-tools/typespec-ts":
5252
title: DocumentIntelligence
5353
package-dir: "ai-document-intelligence-rest"
54-
generateMetadata: true
55-
generate-tests: false
56-
packageDetails:
54+
generate-metadata: true
55+
generate-test: false
56+
package-details:
5757
name: "@azure-rest/ai-document-intelligence"
5858
description: "Document Intelligence Rest Client"
5959
version: "1.0.0"

specification/ai/Face/tspconfig.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ options:
2929
flavor: azure
3030
"@azure-tools/typespec-ts":
3131
package-dir: "ai-vision-face-rest"
32-
generateMetadata: true
33-
generateTest: true
32+
generate-metadata: true
33+
generate-test: true
3434
flavor: azure
35-
packageDetails:
35+
package-details:
3636
name: "@azure-rest/ai-vision-face"
3737
description: "Face API REST Client"
3838
"@azure-tools/typespec-java":

specification/ai/HealthInsights/HealthInsights.RadiologyInsights/tspconfig.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ options:
5656
"@azure-tools/typespec-ts":
5757
package-dir: "azurehealthinsightsradiologyinsights-rest"
5858
emitter-output-dir: "{js-sdk-folder}/sdk/{service-directory-name}/health-insights-cancerprofiling-rest"
59-
generateMetadata: true
60-
generateTest: true
61-
packageDetails:
59+
generate-metadata: true
60+
generate-test: true
61+
package-details:
6262
name: "@azure-rest/health-insights-radiologyinsights"
6363
flavor: azure

specification/ai/ImageAnalysis/tspconfig.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ options:
3333
flavor: azure
3434
"@azure-tools/typespec-ts":
3535
package-dir: "ai-vision-image-analysis-rest"
36-
packageDetails:
36+
package-details:
3737
name: "@azure-rest/ai-vision-image-analysis"
3838
flavor: azure

specification/ai/OpenAI.Assistants/tspconfig.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ options:
4040
flavor: azure
4141
"@azure-tools/typespec-ts":
4242
package-dir: "openai"
43-
generateMetadata: false
44-
generateTest: false
45-
isModularLibrary: true
46-
packageDetails:
43+
generate-metadata: false
44+
generate-test: false
45+
is-modular-library: true
46+
package-details:
4747
name: "@azure/openai-assistants"
4848
flavor: azure

specification/apicenter/ApiCenter.DataApi/tspconfig.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ options:
2727
model-namespace: false
2828
"@azure-tools/typespec-ts":
2929
package-dir: "azure-apicenter-rest"
30-
generateMetadata: true
31-
generateTest: true
30+
generate-metadata: true
31+
generate-test: true
3232
flavor: azure
33-
packageDetails:
33+
package-details:
3434
name: "@azure-rest/azure-apicenter-rest"
3535
description: "azure.ApiCenter Service"
3636
"@azure-tools/typespec-java":

specification/app/Microsoft.App.DynamicSessions/tspconfig.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ options:
2424
flavor: azure
2525
"@azure-tools/typespec-ts":
2626
package-dir: "microsoft-app-dynamicsessions-rest"
27-
generateMetadata: true
28-
generateTest: true
29-
packageDetails:
27+
generate-metadata: true
28+
generate-test: true
29+
package-details:
3030
name: "@azure-rest/microsoft-app-dynamicsessions-rest"
3131
description: "Microsoft.App Dynamic Sessions Service"
3232
flavor: azure

specification/appcomplianceautomation/AppComplianceAutomation.Management/tspconfig.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ options:
1616
arm-resource-flattening: true
1717
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/appcomplianceautomation.json"
1818
"@azure-tools/typespec-ts":
19-
azureSdkForJs: true
20-
isModularLibrary: true
21-
generateMetadata: true
22-
hierarchyClient: false
23-
experimentalExtensibleEnums: true
24-
enableOperationGroup: true
19+
azure-sdk-for-js: true
20+
is-modular-library: true
21+
generate-metadata: true
22+
hierarchy-client: false
23+
experimental-extensible-enums: true
24+
enable-operation-group: true
2525
flavor: azure
2626
package-dir: "arm-appcomplianceautomation"
27-
packageDetails:
27+
package-details:
2828
name: "@azure/arm-appcomplianceautomation"
2929
"@azure-tools/typespec-python":
3030
package-dir: "azure-mgmt-appcomplianceautomation"

specification/appconfiguration/AppConfiguration/tspconfig.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ options:
2828
flavor: azure
2929
"@azure-tools/typespec-ts":
3030
package-dir: "azure-appconfiguration-rest"
31-
generateMetadata: true
32-
generateTest: true
33-
packageDetails:
31+
generate-metadata: true
32+
generate-test: true
33+
package-details:
3434
name: "@azure-rest/azure-appconfiguration-rest"
3535
description: "Azure App Configuration"
3636
flavor: azure

specification/applicationinsights/ApplicationInsights.LiveMetrics/tspconfig.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ options:
2828
flavor: azure
2929
"@azure-tools/typespec-ts":
3030
package-dir: "livemetrics-rest"
31-
generateMetadata: true
32-
generateTest: true
33-
packageDetails:
31+
generate-metadata: true
32+
generate-test: true
33+
package-details:
3434
name: "@azure-rest/livemetrics-rest"
3535
description: "LiveMetrics Service"
3636
flavor: azure

specification/azurefleet/AzureFleet.Management/tspconfig.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ options:
4747
head-as-boolean: true
4848
inject-spans: true
4949
"@azure-tools/typespec-ts":
50-
azureSdkForJs: true
51-
isModularLibrary: true
52-
generateMetadata: true
53-
hierarchyClient: false
54-
experimentalExtensibleEnums: true
55-
enableOperationGroup: true
50+
azure-sdk-for-js: true
51+
is-modular-library: true
52+
generate-metadata: true
53+
hierarchy-client: false
54+
experimental-extensible-enums: true
55+
enable-operation-group: true
5656
package-dir: "arm-computefleet"
5757
flavor: "azure"
58-
packageDetails:
58+
package-details:
5959
name: "@azure/arm-computefleet"

specification/batch/Azure.Batch/tspconfig.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ options:
3333
generate-sample: true
3434
"@azure-tools/typespec-ts":
3535
package-dir: "batch-rest"
36-
packageDetails:
36+
package-details:
3737
name: "@azure-rest/batch"
3838
description: "Batch Service Rest Level Client"
3939
version: "1.0.0-beta.1"

specification/chaos/Chaos.Management/tspconfig.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ options:
1414
omit-unreachable-types: true
1515
use-read-only-status-schema: true
1616
"@azure-tools/typespec-ts":
17-
azureSdkForJs: true
18-
isModularLibrary: true
19-
generateMetadata: true
20-
hierarchyClient: false
21-
experimentalExtensibleEnums: true
22-
enableOperationGroup: true
17+
azure-sdk-for-js: true
18+
is-modular-library: true
19+
generate-metadata: true
20+
hierarchy-client: false
21+
experimental-extensible-enums: true
22+
enable-operation-group: true
2323
clear-output-folder: true
2424
package-dir: "arm-chaos"
2525
flavor: "azure"
26-
packageDetails:
26+
package-details:
2727
name: "@azure/arm-chaos"
2828
"@azure-tools/typespec-python":
2929
package-dir: "azure-mgmt-chaos"

0 commit comments

Comments
 (0)