Skip to content

Commit

Permalink
Upgrade compiler to 0.57 (#4981)
Browse files Browse the repository at this point in the history
  • Loading branch information
pshao25 authored Jun 25, 2024
1 parent 765bc78 commit 74c57ee
Show file tree
Hide file tree
Showing 20 changed files with 415 additions and 483 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@autorest/openapi-to-typespec",
"comment": "Upgrade compiler version to 0.57",
"type": "patch"
}
],
"packageName": "@autorest/openapi-to-typespec"
}
329 changes: 170 additions & 159 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions packages/extensions/openapi-to-typespec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@
"@azure-tools/codegen": "~2.10.0",
"@autorest/extension-base": "~3.6.0",
"@autorest/codemodel": "~4.20.0",
"@typespec/compiler": "^0.56.0",
"@typespec/rest": "^0.56.0",
"@typespec/http": "^0.56.0",
"@typespec/versioning": "^0.56.0",
"@typespec/prettier-plugin-typespec": "^0.56.0",
"@azure-tools/typespec-azure-core": "^0.42.0",
"@azure-tools/typespec-autorest": "^0.42.0",
"@azure-tools/typespec-azure-resource-manager": "^0.42.0",
"@typespec/openapi": "^0.56.0",
"@typespec/openapi3": "^0.56.0",
"@typespec/compiler": "^0.57.0",
"@typespec/rest": "^0.57.0",
"@typespec/http": "^0.57.0",
"@typespec/versioning": "^0.57.0",
"@typespec/prettier-plugin-typespec": "^0.57.0",
"@azure-tools/typespec-azure-core": "^0.43.0",
"@azure-tools/typespec-autorest": "^0.43.0",
"@azure-tools/typespec-azure-resource-manager": "^0.43.0",
"@typespec/openapi": "^0.57.0",
"@typespec/openapi3": "^0.57.0",
"prettier": "~3.1.0",
"lodash": "~4.17.20",
"pluralize": "^8.0.0",
Expand All @@ -68,8 +68,8 @@
"fs-extra": "^10.1.0",
"@types/fs-extra": "^9.0.13",
"chalk": "^4.1.0",
"@azure-tools/typespec-autorest": "^0.42.0",
"@azure-tools/typespec-client-generator-core": "^0.42.0",
"@azure-tools/typespec-autorest": "^0.43.0",
"@azure-tools/typespec-client-generator-core": "^0.43.0",
"webpack-cli": "~5.1.4",
"webpack": "~5.89.0",
"@typescript-eslint/eslint-plugin": "^6.11.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@
],
"x-ms-enum": {
"name": "AlignMode",
"modelAsString": true
"modelAsString": false
}
},
"AlignPolicy": {
Expand Down Expand Up @@ -655,6 +655,17 @@
"score"
]
},
"ApiVersion": {
"type": "string",
"description": "Anomaly Detector API version (for example, v1.0).",
"enum": [
"v1.1-preview.1"
],
"x-ms-enum": {
"name": "ApiVersion",
"modelAsString": false
}
},
"Azure.Core.Foundations.Error": {
"type": "object",
"description": "The error object.",
Expand Down Expand Up @@ -805,7 +816,7 @@
],
"x-ms-enum": {
"name": "DataSchema",
"modelAsString": true
"modelAsString": false
}
},
"DetectRequest": {
Expand Down Expand Up @@ -959,7 +970,7 @@
],
"x-ms-enum": {
"name": "DetectionStatus",
"modelAsString": true
"modelAsString": false
}
},
"DiagnosticsInfo": {
Expand Down Expand Up @@ -1454,7 +1465,7 @@
],
"x-ms-enum": {
"name": "ModelStatus",
"modelAsString": true
"modelAsString": false
}
},
"PagedModelSnapshot": {
Expand Down Expand Up @@ -1495,7 +1506,7 @@
],
"x-ms-enum": {
"name": "TimeGranularity",
"modelAsString": true,
"modelAsString": false,
"values": [
{
"name": "yearly",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2055,7 +2055,7 @@
"kind"
]
},
"Azure.ResourceManager.Foundations.CheckNameAvailabilityReason": {
"Azure.ResourceManager.CommonTypes.CheckNameAvailabilityReason": {
"type": "string",
"description": "Possible reasons for a name not being available.",
"enum": [
Expand Down Expand Up @@ -2102,7 +2102,7 @@
"description": "Indicates if the resource name is available."
},
"reason": {
"$ref": "#/definitions/Azure.ResourceManager.Foundations.CheckNameAvailabilityReason",
"$ref": "#/definitions/Azure.ResourceManager.CommonTypes.CheckNameAvailabilityReason",
"description": "The reason why the given name is not available."
},
"message": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,12 @@ interface Workspaces {
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility"
@operationId("PrivateLinkResources_List")
@summary("""
Called by Client (Portal, CLI, etc) to get available "private link resources" for the workspace.
Each "private link resource" is a connection endpoint (IP address) to the resource.
Pre single connection endpoint per workspace: the Data Plane IP address, returned by DNS resolution.
Other RPs, such as Azure Storage, have multiple - one for Blobs, other for Queues, etc.
Defined in the "[NRP] Private Endpoint Design" doc, topic "GET API for GroupIds".
""")
Called by Client (Portal, CLI, etc) to get available "private link resources" for the workspace.
Each "private link resource" is a connection endpoint (IP address) to the resource.
Pre single connection endpoint per workspace: the Data Plane IP address, returned by DNS resolution.
Other RPs, such as Azure Storage, have multiple - one for Blobs, other for Queues, etc.
Defined in the "[NRP] Private Endpoint Design" doc, topic "GET API for GroupIds".
""")
@route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateLinkResources")
@get
list(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,10 @@
"$ref": "#/definitions/DataProduct"
},
"headers": {
"Azure-AsyncOperation": {
"type": "string",
"description": "A link to the status monitor"
},
"Retry-After": {
"type": "integer",
"format": "int32",
Expand Down Expand Up @@ -720,6 +724,10 @@
"$ref": "#/definitions/DataType"
},
"headers": {
"Azure-AsyncOperation": {
"type": "string",
"description": "A link to the status monitor"
},
"Retry-After": {
"type": "integer",
"format": "int32",
Expand Down Expand Up @@ -1433,90 +1441,6 @@
"storageAccountSasToken"
]
},
"Azure.ResourceManager.Foundations.ManagedServiceIdentity": {
"type": "object",
"description": "The properties of the managed service identities assigned to this resource.",
"properties": {
"tenantId": {
"type": "string",
"description": "The Active Directory tenant id of the principal.",
"readOnly": true
},
"principalId": {
"type": "string",
"description": "The active directory identifier of this principal.",
"readOnly": true
},
"type": {
"$ref": "#/definitions/Azure.ResourceManager.Foundations.ManagedServiceIdentityType",
"description": "The type of managed identity assigned to this resource."
},
"userAssignedIdentities": {
"$ref": "#/definitions/Azure.ResourceManager.Foundations.UserAssignedIdentities",
"description": "The identities assigned to this resource by the user."
}
},
"required": [
"type"
]
},
"Azure.ResourceManager.Foundations.ManagedServiceIdentityType": {
"type": "string",
"description": "The kind of managed identity assigned to this resource.",
"enum": [
"None",
"SystemAssigned",
"UserAssigned",
"SystemAssigned, UserAssigned"
],
"x-ms-enum": {
"name": "ManagedServiceIdentityType",
"modelAsString": true,
"values": [
{
"name": "None",
"value": "None",
"description": "No managed identity."
},
{
"name": "SystemAssigned",
"value": "SystemAssigned",
"description": "System assigned managed identity."
},
{
"name": "UserAssigned",
"value": "UserAssigned",
"description": "User assigned managed identity."
},
{
"name": "SystemAndUserAssigned",
"value": "SystemAssigned, UserAssigned",
"description": "System and user assigned managed identity."
}
]
}
},
"Azure.ResourceManager.Foundations.UserAssignedIdentities": {
"type": "object",
"description": "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.\",",
"additionalProperties": {
"$ref": "#/definitions/Azure.ResourceManager.Foundations.UserAssignedIdentity"
}
},
"Azure.ResourceManager.Foundations.UserAssignedIdentity": {
"type": "object",
"description": "A managed identity assigned by the user.",
"properties": {
"clientId": {
"type": "string",
"description": "The active directory client identifier for this principal."
},
"principalId": {
"type": "string",
"description": "The active directory identifier for this principal."
}
}
},
"ConsumptionEndpointsProperties": {
"type": "object",
"description": "Details of Consumption Properties",
Expand Down Expand Up @@ -1648,14 +1572,10 @@
"properties": {
"$ref": "#/definitions/DataProductProperties",
"description": "The resource-specific properties for this resource.",
"x-ms-client-flatten": true,
"x-ms-mutability": [
"read",
"create"
]
"x-ms-client-flatten": true
},
"identity": {
"$ref": "#/definitions/Azure.ResourceManager.Foundations.ManagedServiceIdentity",
"$ref": "../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity",
"description": "The managed service identities assigned to this resource."
}
},
Expand Down Expand Up @@ -1918,7 +1838,7 @@
"description": "The type used for update operations of the DataProduct.",
"properties": {
"identity": {
"$ref": "#/definitions/Azure.ResourceManager.Foundations.ManagedServiceIdentity",
"$ref": "../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity",
"description": "The managed service identities assigned to this resource."
},
"tags": {
Expand Down Expand Up @@ -2031,11 +1951,7 @@
"properties": {
"$ref": "#/definitions/DataProductsCatalogProperties",
"description": "The resource-specific properties for this resource.",
"x-ms-client-flatten": true,
"x-ms-mutability": [
"read",
"create"
]
"x-ms-client-flatten": true
}
},
"allOf": [
Expand Down Expand Up @@ -2094,11 +2010,7 @@
"properties": {
"$ref": "#/definitions/DataTypeProperties",
"description": "The resource-specific properties for this resource.",
"x-ms-client-flatten": true,
"x-ms-mutability": [
"read",
"create"
]
"x-ms-client-flatten": true
}
},
"allOf": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@
"$ref": "#/definitions/TrafficController"
},
"headers": {
"Azure-AsyncOperation": {
"type": "string",
"description": "A link to the status monitor"
},
"Retry-After": {
"type": "integer",
"format": "int32",
Expand Down Expand Up @@ -520,6 +524,10 @@
"$ref": "#/definitions/Association"
},
"headers": {
"Azure-AsyncOperation": {
"type": "string",
"description": "A link to the status monitor"
},
"Retry-After": {
"type": "integer",
"format": "int32",
Expand Down Expand Up @@ -812,6 +820,10 @@
"$ref": "#/definitions/Frontend"
},
"headers": {
"Azure-AsyncOperation": {
"type": "string",
"description": "A link to the status monitor"
},
"Retry-After": {
"type": "integer",
"format": "int32",
Expand Down Expand Up @@ -964,11 +976,7 @@
"properties": {
"$ref": "#/definitions/AssociationProperties",
"description": "The resource-specific properties for this resource.",
"x-ms-client-flatten": true,
"x-ms-mutability": [
"read",
"create"
]
"x-ms-client-flatten": true
}
},
"allOf": [
Expand Down Expand Up @@ -1097,11 +1105,7 @@
"properties": {
"$ref": "#/definitions/FrontendProperties",
"description": "The resource-specific properties for this resource.",
"x-ms-client-flatten": true,
"x-ms-mutability": [
"read",
"create"
]
"x-ms-client-flatten": true
}
},
"allOf": [
Expand Down Expand Up @@ -1227,11 +1231,7 @@
"properties": {
"$ref": "#/definitions/TrafficControllerProperties",
"description": "The resource-specific properties for this resource.",
"x-ms-client-flatten": true,
"x-ms-mutability": [
"read",
"create"
]
"x-ms-client-flatten": true
}
},
"allOf": [
Expand Down
Loading

0 comments on commit 74c57ee

Please sign in to comment.