Skip to content

Commit dbe3931

Browse files
committed
tsp - upgrade tsp to 1.7.0
1 parent 03a6227 commit dbe3931

File tree

9 files changed

+327
-491
lines changed

9 files changed

+327
-491
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 296 additions & 432 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/typespec-powershell/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,17 @@
4444
"vitest": "1.6.1"
4545
},
4646
"peerDependencies": {
47-
"@azure-tools/typespec-azure-core": ">=0.61.0 <1.0.0",
48-
"@azure-tools/typespec-client-generator-core": ">=0.61.0 <1.0.0",
49-
"@typespec/compiler": ">=1.5.0 <2.0.0",
50-
"@typespec/http": ">=1.5.0 <2.0.0",
51-
"@typespec/streams": ">=0.75.0 <1.0.0",
52-
"@typespec/xml": ">=0.75.0 <1.0.0",
53-
"@typespec/rest": ">=0.75.0 <1.0.0",
54-
"@typespec/versioning": ">=0.75.0 <1.0.0",
55-
"@typespec/openapi": ">=1.5.0 <2.0.0",
56-
"@azure-tools/typespec-azure-resource-manager": ">=0.61.0 <1.0.0",
57-
"@azure-tools/typespec-azure-rulesets": ">=0.61.0 <1.0.0"
47+
"@azure-tools/typespec-azure-core": ">=0.63.0 <1.0.0",
48+
"@azure-tools/typespec-client-generator-core": ">=0.63.0 <1.0.0",
49+
"@typespec/compiler": ">=1.7.0 <2.0.0",
50+
"@typespec/http": ">=1.7.0 <2.0.0",
51+
"@typespec/streams": ">=0.77.0 <1.0.0",
52+
"@typespec/xml": ">=0.77.0 <1.0.0",
53+
"@typespec/rest": ">=0.77.0 <1.0.0",
54+
"@typespec/versioning": ">=0.77.0 <1.0.0",
55+
"@typespec/openapi": ">=1.7.0 <2.0.0",
56+
"@azure-tools/typespec-azure-resource-manager": ">=0.63.0 <1.0.0",
57+
"@azure-tools/typespec-azure-rulesets": ">=0.63.0 <1.0.0"
5858
},
5959
"scripts": {
6060
"build": "tsc",

tests-upgrade/tests-emitter/Chaos.Management.brown/experiment.models.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ model Experiment extends Azure.ResourceManager.Foundations.TrackedResource {
3030

3131
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Required implementation to avoid breaking .NET SDK changes"
3232
@doc("The resource-specific properties for this resource.")
33-
@Azure.ResourceManager.Private.conditionalClientFlatten
33+
@Azure.ClientGenerator.Core.Legacy.flattenProperty
3434
@Azure.ResourceManager.Private.armResourcePropertiesOptionality(false)
3535
properties?: ExperimentProperties;
3636
}

tests-upgrade/tests-emitter/ElasticSan.brown/models.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ model PrivateLinkResource extends Azure.ResourceManager.Foundations.Resource {
967967
* Resource properties.
968968
*/
969969
#suppress "@azure-tools/typespec-azure-core/no-private-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
970-
@Azure.ResourceManager.Private.conditionalClientFlatten
970+
@Azure.ClientGenerator.Core.Legacy.flattenProperty
971971
properties?: PrivateLinkResourceProperties;
972972
}
973973

tests-upgrade/tests-emitter/Help.Management.brown/DiagnosticResource.tsp

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,9 @@ interface DiagnosticResources {
3434
/**
3535
* Creates a diagnostic for the specific resource using solutionId from discovery solutions. <br/>Diagnostics are powerful solutions that access product resources or other relevant data and provide the root cause of the issue and the steps to address the issue.<br/><br/>
3636
*/
37-
create is Legacy.ExtensionOperations.CreateOrUpdateAsync<
37+
create is Legacy.Extension.CreateOrUpdateAsync<
38+
Extension.ScopeParameter,
3839
DiagnosticResource,
39-
Parameters = {
40-
...ApiVersionParameter;
41-
...Extension.ScopeParameter;
42-
...Legacy.Provider;
43-
44-
/**
45-
* Unique resource name for insight resources
46-
*/
47-
@path
48-
@segment("diagnostics")
49-
@minLength(1)
50-
@maxLength(100)
51-
@pattern("^[A-Za-z0-9-+@()_]+$")
52-
diagnosticsResourceName: string;
53-
},
5440
OptionalRequestBody = true
5541
>;
5642
}

tests-upgrade/tests-emitter/Help.Management.brown/SimplifiedSolutionsResource.tsp

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,9 @@ interface SimplifiedSolutionsResources {
3434
/**
3535
* Creates Simplified Solutions for an Azure subscription using 'solutionId' from Discovery Solutions as the input. <br/><br/> Simplified Solutions API makes the consumption of solutions APIs easier while still providing access to the same powerful solutions rendered in Solutions API. With Simplified Solutions, users don't have to worry about stitching together the article using replacement maps and can use the content in the API response to directly render as HTML content.<br/>
3636
*/
37-
create is Legacy.ExtensionOperations.CreateOrUpdateAsync<
37+
create is Legacy.Extension.CreateOrUpdateAsync<
38+
Extension.ScopeParameter,
3839
SimplifiedSolutionsResource,
39-
Parameters = {
40-
...ApiVersionParameter;
41-
...Extension.ScopeParameter;
42-
...Legacy.Provider;
43-
44-
/**
45-
* Simplified Solutions Resource Name.
46-
*/
47-
@path
48-
@segment("simplifiedSolutions")
49-
@minLength(1)
50-
@maxLength(100)
51-
@pattern("^[A-Za-z0-9-+@()_]+$")
52-
simplifiedSolutionsResourceName: string;
53-
},
5440
OptionalRequestBody = true
5541
>;
5642
}

tests-upgrade/tests-emitter/Oracle.Database.Management.brown/models/autonomousdatabase/autonomousDatabase.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ model AutonomousDatabaseUpdate
614614
>>> {
615615
#suppress "@azure-tools/typespec-azure-core/no-private-usage" "backward compatibility"
616616
@doc("The resource-specific properties for this resource.")
617-
@Azure.ResourceManager.Private.conditionalClientFlatten
617+
@Azure.ClientGenerator.Core.Legacy.flattenProperty
618618
properties?: AutonomousDatabaseUpdateProperties;
619619
}
620620

tests-upgrade/tests-emitter/ServiceFabricManagedClusters.Management.brown/NodeType.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ model VMSSExtension {
881881
* Describes the properties of a Virtual Machine Scale Set Extension.
882882
*/
883883
#suppress "@azure-tools/typespec-azure-core/no-private-usage" "Backwards compatibility with existing flatten"
884-
@Azure.ResourceManager.Private.conditionalClientFlatten
884+
@Azure.ClientGenerator.Core.Legacy.flattenProperty
885885
properties: VMSSExtensionProperties;
886886
}
887887
/**

tests-upgrade/tests-emitter/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
"version": "0.1.0",
44
"type": "module",
55
"dependencies": {
6-
"@typespec/compiler": "1.5.0",
7-
"@azure-tools/typespec-autorest": "0.61.0",
8-
"@azure-tools/typespec-azure-core": "0.61.0",
9-
"@azure-tools/typespec-azure-resource-manager": "0.61.0",
10-
"@azure-tools/typespec-client-generator-core": "0.61.0",
11-
"@azure-tools/typespec-azure-rulesets": "0.61.0",
12-
"@typespec/http": "1.5.0",
13-
"@typespec/openapi": "1.5.0",
14-
"@typespec/rest": "0.75.0",
15-
"@typespec/streams": "0.75.0",
16-
"@typespec/versioning": "0.75.0",
17-
"@typespec/xml": "0.75.0",
6+
"@typespec/compiler": "1.7.0",
7+
"@azure-tools/typespec-autorest": "0.63.0",
8+
"@azure-tools/typespec-azure-core": "0.63.0",
9+
"@azure-tools/typespec-azure-resource-manager": "0.63.0",
10+
"@azure-tools/typespec-client-generator-core": "0.63.0",
11+
"@azure-tools/typespec-azure-rulesets": "0.63.0",
12+
"@typespec/http": "1.7.0",
13+
"@typespec/openapi": "1.7.0",
14+
"@typespec/rest": "0.77.0",
15+
"@typespec/streams": "0.77.0",
16+
"@typespec/versioning": "0.77.0",
17+
"@typespec/xml": "0.77.0",
1818
"@azure-tools/typespec-liftr-base": "0.10.0"
1919
},
2020
"scripts": {

0 commit comments

Comments
 (0)