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

Re-enable the rpc cases & Bump compiler to v0.55 #1881

Merged
merged 5 commits into from
Jun 7, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
776 changes: 419 additions & 357 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,7 @@ export class LROsImpl implements LROs {
OperationState<LROsPatch201RetryWithAsyncHeaderResponse>
>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "azure-async-operation"
intervalInMs: options?.updateIntervalInMs
Copy link
Member Author

Choose a reason for hiding this comment

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

Changed introduced by testserver fix: Azure/autorest.testserver#413

});
await poller.poll();
return poller;
Expand Down
20 changes: 10 additions & 10 deletions packages/typespec-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"version": "1.0.0",
"type": "module",
"dependencies": {
"@typespec/compiler": "~0.44.0",
"@typespec/compiler": ">=0.45.0 <1.0.0",
"@azure-tools/typespec-ts": "workspace:^0.13.1",
"@typespec/http": "~0.44.0",
"@typespec/rest": "~0.44.0",
"@typespec/openapi": "~0.44.0",
"@typespec/versioning": "~0.44.0",
"@azure-tools/typespec-azure-core": "~0.30.0",
"@azure-tools/typespec-autorest": "~0.30.0",
"@azure-tools/typespec-client-generator-core": "~0.30.0",
"@typespec/openapi3": "~0.44.0",
"@typespec/prettier-plugin-typespec": "~0.44.0",
"@typespec/http": ">=0.45.0 <1.0.0",
"@typespec/rest": ">=0.45.0 <1.0.0",
"@typespec/openapi": ">=0.45.0 <1.0.0",
"@typespec/versioning": ">=0.45.0 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.31.0 <1.0.0",
"@azure-tools/typespec-autorest": ">=0.31.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.31.0 <1.0.0",
"@typespec/openapi3": ">=0.45.0 <1.0.0",
"@typespec/prettier-plugin-typespec": ">=0.45.0 <1.0.0",
"prettier": "2.7.1"
},
"devDependencies": {
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
"$ref": "#/definitions/Project"
},
"x-ms-identifiers": [],
"x-typespec-name": "Project[]",
"description": "The Project items on this page"
"description": "The Project items on this page",
"x-typespec-name": "Project[]"
},
"nextLink": {
"type": "string",
Expand Down Expand Up @@ -131,7 +131,7 @@
"description": "The request has succeeded.",
"headers": {
"Operation-Location": {
"description": "The location of an instance of OperationStatus",
"description": "The location for monitoring the operation state.",
"type": "string",
"format": "uri"
}
Expand All @@ -144,7 +144,7 @@
"description": "The request has succeeded and a new resource has been created as a result.",
"headers": {
"Operation-Location": {
"description": "The location of an instance of OperationStatus",
"description": "The location for monitoring the operation state.",
"type": "string",
"format": "uri"
}
Expand Down Expand Up @@ -226,7 +226,7 @@
"description": "The request has been accepted for processing, but processing has not yet completed.",
"headers": {
"Operation-Location": {
"description": "The location of an instance of OperationStatus",
"description": "The location for monitoring the operation state.",
"type": "string",
"format": "uri"
}
Expand Down Expand Up @@ -294,7 +294,7 @@
"description": "The request has been accepted for processing, but processing has not yet completed.",
"headers": {
"Operation-Location": {
"description": "The location of an instance of OperationStatus",
"description": "The location for monitoring the operation state.",
"type": "string",
"format": "uri"
}
Expand Down Expand Up @@ -336,7 +336,7 @@
"description": "The request has been accepted for processing, but processing has not yet completed.",
"headers": {
"Operation-Location": {
"description": "The location of an instance of OperationStatus",
"description": "The location for monitoring the operation state.",
"type": "string",
"format": "uri"
}
Expand Down Expand Up @@ -387,7 +387,7 @@
"description": "The request has been accepted for processing, but processing has not yet completed.",
"headers": {
"Operation-Location": {
"description": "The location of an instance of OperationStatus",
"description": "The location for monitoring the operation state.",
"type": "string",
"format": "uri"
}
Expand Down Expand Up @@ -436,8 +436,8 @@
"$ref": "#/definitions/Deployment"
},
"x-ms-identifiers": [],
"x-typespec-name": "Deployment[]",
"description": "The Deployment items on this page"
"description": "The Deployment items on this page",
"x-typespec-name": "Deployment[]"
},
"nextLink": {
"type": "string",
Expand Down Expand Up @@ -551,7 +551,7 @@
"description": "The request has succeeded.",
"headers": {
"Operation-Location": {
"description": "The location of an instance of OperationStatus",
"description": "The location for monitoring the operation state.",
"type": "string",
"format": "uri"
}
Expand All @@ -564,7 +564,7 @@
"description": "The request has succeeded and a new resource has been created as a result.",
"headers": {
"Operation-Location": {
"description": "The location of an instance of OperationStatus",
"description": "The location for monitoring the operation state.",
"type": "string",
"format": "uri"
}
Expand Down Expand Up @@ -614,7 +614,7 @@
"description": "The request has been accepted for processing, but processing has not yet completed.",
"headers": {
"Operation-Location": {
"description": "The location of an instance of OperationStatus",
"description": "The location for monitoring the operation state.",
"type": "string",
"format": "uri"
}
Expand Down Expand Up @@ -786,7 +786,7 @@
"description": "The request has been accepted for processing, but processing has not yet completed.",
"headers": {
"Operation-Location": {
"description": "The location of an instance of OperationStatus",
"description": "The location for monitoring the operation state.",
"type": "string",
"format": "uri"
}
Expand Down Expand Up @@ -916,8 +916,8 @@
"$ref": "#/definitions/Azure.Core.Foundations.Error"
},
"x-ms-identifiers": [],
"x-typespec-name": "Azure.Core.Foundations.Error[]",
"description": "An array of details about specific errors that led to this reported error."
"description": "An array of details about specific errors that led to this reported error.",
"x-typespec-name": "Azure.Core.Foundations.Error[]"
},
"innererror": {
"$ref": "#/definitions/Azure.Core.Foundations.InnerError",
Expand All @@ -927,8 +927,7 @@
"description": "The error object.",
"required": [
"code",
"message",
"details"
"message"
]
},
"Azure.Core.Foundations.ErrorResponse": {
Expand Down Expand Up @@ -956,13 +955,11 @@
"description": "Inner error."
}
},
"description": "An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.",
"required": [
"code"
]
"description": "An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses."
},
"Azure.Core.Foundations.OperationState": {
"type": "string",
"description": "Enum describing allowed operation states.",
"enum": [
"InProgress",
"Succeeded",
Expand All @@ -971,7 +968,29 @@
],
"x-ms-enum": {
"name": "OperationState",
"modelAsString": true
"modelAsString": true,
"values": [
{
"name": "InProgress",
"value": "InProgress",
"description": "The operation is in progress."
},
{
"name": "Succeeded",
"value": "Succeeded",
"description": "The operation has completed successfully."
},
{
"name": "Failed",
"value": "Failed",
"description": "The operation has failed."
},
{
"name": "Canceled",
"value": "Canceled",
"description": "The operation has been canceled by the user."
}
]
}
},
"Deployment": {
Expand Down Expand Up @@ -1023,8 +1042,8 @@
"$ref": "#/definitions/JobWarning"
},
"x-ms-identifiers": [],
"x-typespec-name": "JobWarning[]",
"description": "The warnings that were encountered while executing the job."
"description": "The warnings that were encountered while executing the job.",
"x-typespec-name": "JobWarning[]"
},
"errors": {
"$ref": "#/definitions/Azure.Core.Foundations.Error",
Expand Down Expand Up @@ -1092,8 +1111,8 @@
"$ref": "#/definitions/JobWarning"
},
"x-ms-identifiers": [],
"x-typespec-name": "JobWarning[]",
"description": "The warnings that were encountered while executing the job."
"description": "The warnings that were encountered while executing the job.",
"x-typespec-name": "JobWarning[]"
},
"errors": {
"$ref": "#/definitions/Azure.Core.Foundations.Error",
Expand Down Expand Up @@ -1155,8 +1174,8 @@
"$ref": "#/definitions/SupportedLanguage"
},
"x-ms-identifiers": [],
"x-typespec-name": "SupportedLanguage[]",
"description": "The SupportedLanguage items on this page"
"description": "The SupportedLanguage items on this page",
"x-typespec-name": "SupportedLanguage[]"
},
"nextLink": {
"type": "string",
Expand All @@ -1179,8 +1198,8 @@
"$ref": "#/definitions/TrainingConfigVersion"
},
"x-ms-identifiers": [],
"x-typespec-name": "TrainingConfigVersion[]",
"description": "The TrainingConfigVersion items on this page"
"description": "The TrainingConfigVersion items on this page",
"x-typespec-name": "TrainingConfigVersion[]"
},
"nextLink": {
"type": "string",
Expand Down Expand Up @@ -1383,8 +1402,8 @@
"$ref": "#/definitions/JobWarning"
},
"x-ms-identifiers": [],
"x-typespec-name": "JobWarning[]",
"description": "The warnings that were encountered while executing the job."
"description": "The warnings that were encountered while executing the job.",
"x-typespec-name": "JobWarning[]"
},
"errors": {
"$ref": "#/definitions/Azure.Core.Foundations.Error",
Expand Down Expand Up @@ -1466,8 +1485,8 @@
"required": true,
"description": "The API version to use for this operation.",
"x-ms-client-name": "apiVersion",
"minLength": 1,
"type": "string",
"minLength": 1,
"x-ms-parameter-location": "method"
},
"Azure.Core.MaxPageSizeQueryParameter": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,8 @@
"in": "path",
"required": true,
"description": "The user id, either an AAD object ID or certificate fingerprint.",
"x-ms-skip-url-encoding": true,
"type": "string"
"type": "string",
"x-ms-skip-url-encoding": true
}
],
"responses": {
Expand Down Expand Up @@ -457,8 +457,8 @@
"in": "path",
"required": true,
"description": "The user id, either an AAD object ID or certificate fingerprint.",
"x-ms-skip-url-encoding": true,
"type": "string"
"type": "string",
"x-ms-skip-url-encoding": true
}
],
"responses": {
Expand Down Expand Up @@ -495,8 +495,8 @@
"in": "path",
"required": true,
"description": "The user id, either an AAD object ID or certificate fingerprint.",
"x-ms-skip-url-encoding": true,
"type": "string"
"type": "string",
"x-ms-skip-url-encoding": true
},
{
"name": "resource",
Expand Down Expand Up @@ -562,8 +562,8 @@
"$ref": "#/definitions/Azure.Core.Foundations.Error"
},
"x-ms-identifiers": [],
"x-typespec-name": "Azure.Core.Foundations.Error[]",
"description": "An array of details about specific errors that led to this reported error."
"description": "An array of details about specific errors that led to this reported error.",
"x-typespec-name": "Azure.Core.Foundations.Error[]"
},
"innererror": {
"$ref": "#/definitions/Azure.Core.Foundations.InnerError",
Expand All @@ -573,8 +573,7 @@
"description": "The error object.",
"required": [
"code",
"message",
"details"
"message"
]
},
"Azure.Core.Foundations.ErrorResponse": {
Expand Down Expand Up @@ -602,10 +601,7 @@
"description": "Inner error."
}
},
"description": "An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.",
"required": [
"code"
]
"description": "An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses."
},
"Collection": {
"type": "object",
Expand Down Expand Up @@ -755,8 +751,8 @@
"$ref": "#/definitions/LedgerEntry"
},
"x-ms-identifiers": [],
"x-typespec-name": "LedgerEntry[]",
"description": "Array of ledger entries."
"description": "Array of ledger entries.",
"x-typespec-name": "LedgerEntry[]"
},
"state": {
"$ref": "#/definitions/LedgerQueryState",
Expand Down Expand Up @@ -845,8 +841,8 @@
"required": true,
"description": "The API version to use for this operation.",
"x-ms-client-name": "apiVersion",
"minLength": 1,
"type": "string",
"minLength": 1,
"x-ms-parameter-location": "method"
},
"CollectionIdParameter": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { ConfidentialLedgerClient } from "./clientDefinitions";

/**
* Initialize a new instance of `ConfidentialLedgerClient`
* @param ledgerUri - The parameter ledgerUri
* @param ledgerUri - Represent a URL string as described by https://url.spec.whatwg.org/
* @param credentials - uniquely identify client credential
* @param options - the parameter for all optional parameters
*/
Expand Down
Loading