Skip to content

Commit

Permalink
Upgrade to TypeSpec 0.62.0 (#31439)
Browse files Browse the repository at this point in the history
timotheeguerin authored Nov 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 7dfd170 commit 0410d40
Showing 51 changed files with 842 additions and 489 deletions.
1,130 changes: 710 additions & 420 deletions package-lock.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -2,21 +2,21 @@
"name": "azure-rest-api-specs",
"devDependencies": {
"@azure-tools/typespec-apiview": "0.4.9",
"@azure-tools/typespec-autorest": "0.47.0",
"@azure-tools/typespec-azure-core": "0.47.0",
"@azure-tools/typespec-azure-portal-core": "0.47.0",
"@azure-tools/typespec-azure-resource-manager": "0.47.1",
"@azure-tools/typespec-azure-rulesets": "0.47.0",
"@azure-tools/typespec-autorest": "0.48.0",
"@azure-tools/typespec-azure-core": "0.48.0",
"@azure-tools/typespec-azure-portal-core": "0.48.0",
"@azure-tools/typespec-azure-resource-manager": "0.48.0",
"@azure-tools/typespec-azure-rulesets": "0.48.0",
"@azure-tools/typespec-client-generator-cli": "0.13.3",
"@azure-tools/typespec-client-generator-core": "0.47.4",
"@azure-tools/typespec-client-generator-core": "0.48.0",
"@azure-tools/typespec-liftr-base": "0.4.0",
"@azure/avocado": "^0.9.1",
"@typespec/compiler": "0.61.2",
"@typespec/http": "0.61.0",
"@typespec/openapi": "0.61.0",
"@typespec/openapi3": "0.61.0",
"@typespec/rest": "0.61.0",
"@typespec/versioning": "0.61.0",
"@typespec/compiler": "0.62.0",
"@typespec/http": "0.62.0",
"@typespec/openapi": "0.62.0",
"@typespec/openapi3": "0.62.0",
"@typespec/rest": "0.62.0",
"@typespec/versioning": "0.62.0",
"azure-rest-api-specs-eng-tools": "file:eng/tools",
"oav": "^3.5.1",
"prettier": "~3.3.3",
1 change: 1 addition & 0 deletions specification/ai/Face/tspconfig.yaml
Original file line number Diff line number Diff line change
@@ -49,3 +49,4 @@ linter:
disable:
"@azure-tools/typespec-azure-core/operation-missing-api-version": "API version located in the host template"
"@azure-tools/typespec-azure-core/use-standard-operations": "Most of our operation doesn't fit standard ops"
"@azure-tools/typespec-azure-core/use-standard-names": "Most of our operation doesn't fit standard ops"
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@ namespace ClientForAzureHealthInsights;
interface RadiologyInsightsClient {
#suppress "@azure-tools/typespec-azure-core/long-running-polling-operation-required" "Polling through operation-location"
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "https://github.com/microsoft/typespec/issues/2037"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Legacy name"
inferRadiologyInsights is AzureHealthInsights.RadiologyInsights.createJob;
}

Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@ interface RadiologyInsights {
@get
getJob is HealthInsightsOperations.ResourceRead<RadiologyInsightsJob>;

#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Legacy name"
@summary("Create Radiology Insights job")
@tag("RadiologyInsights")
@doc("Creates a Radiology Insights job with the given request body.")
Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@ interface TrialMatcher {
@get
getJob is HealthInsightsOperations.ResourceRead<TrialMatcherJob>;

#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Legacy name"
@summary("Create Trial Matcher job")
@tag("TrialMatcher")
@doc("Creates a Trial Matcher job with the given request body.")
Original file line number Diff line number Diff line change
@@ -2655,7 +2655,7 @@ components:
nullable: true
description: The Unix timestamp, in seconds, representing when this failed.
incomplete_details:
oneOf:
allOf:
- $ref: '#/components/schemas/IncompleteRunDetails'
nullable: true
description: Details on why the run is incomplete. Will be `null` if the run is not incomplete.
Original file line number Diff line number Diff line change
@@ -1431,7 +1431,7 @@ components:
We generally recommend altering this or temperature but not both.
default: 1
response_format:
oneOf:
allOf:
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
nullable: true
description: The response format of the tool calls used by this assistant.
@@ -1499,7 +1499,7 @@ components:
We generally recommend altering this or temperature but not both.
default: 1
response_format:
oneOf:
allOf:
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
nullable: true
description: The response format of the tool calls used by this assistant.
@@ -1805,12 +1805,12 @@ components:
nullable: true
description: The strategy to use for dropping messages as the context windows moves forward.
tool_choice:
oneOf:
allOf:
- $ref: '#/components/schemas/AssistantsApiToolChoiceOption'
nullable: true
description: Controls whether or not and which tool is called by the model.
response_format:
oneOf:
allOf:
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
nullable: true
description: Specifies the format that the model must output.
@@ -1949,12 +1949,12 @@ components:
nullable: true
description: The strategy to use for dropping messages as the context windows moves forward.
tool_choice:
oneOf:
allOf:
- $ref: '#/components/schemas/AssistantsApiToolChoiceOption'
nullable: true
description: Controls whether or not and which tool is called by the model.
response_format:
oneOf:
allOf:
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
nullable: true
description: Specifies the format that the model must output.
@@ -3656,7 +3656,7 @@ components:
nullable: true
description: The Unix timestamp, in seconds, representing when this failed.
incomplete_details:
oneOf:
allOf:
- $ref: '#/components/schemas/IncompleteRunDetails'
nullable: true
description: Details on why the run is incomplete. Will be `null` if the run is not incomplete.
@@ -3695,12 +3695,12 @@ components:
nullable: true
description: The strategy to use for dropping messages as the context windows moves forward.
tool_choice:
oneOf:
allOf:
- $ref: '#/components/schemas/AssistantsApiToolChoiceOption'
nullable: true
description: Controls whether or not and which tool is called by the model.
response_format:
oneOf:
allOf:
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
nullable: true
description: The response format of the tool calls used in this run.
@@ -3841,7 +3841,7 @@ components:
We generally recommend altering this or temperature but not both.
default: 1
response_format:
oneOf:
allOf:
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
nullable: true
description: The response format of the tool calls used by this assistant.
Original file line number Diff line number Diff line change
@@ -1439,7 +1439,7 @@ components:
We generally recommend altering this or temperature but not both.
default: 1
response_format:
oneOf:
allOf:
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
nullable: true
description: The response format of the tool calls used by this assistant.
@@ -1507,7 +1507,7 @@ components:
We generally recommend altering this or temperature but not both.
default: 1
response_format:
oneOf:
allOf:
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
nullable: true
description: The response format of the tool calls used by this assistant.
@@ -1813,12 +1813,12 @@ components:
nullable: true
description: The strategy to use for dropping messages as the context windows moves forward.
tool_choice:
oneOf:
allOf:
- $ref: '#/components/schemas/AssistantsApiToolChoiceOption'
nullable: true
description: Controls whether or not and which tool is called by the model.
response_format:
oneOf:
allOf:
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
nullable: true
description: Specifies the format that the model must output.
@@ -1962,12 +1962,12 @@ components:
nullable: true
description: The strategy to use for dropping messages as the context windows moves forward.
tool_choice:
oneOf:
allOf:
- $ref: '#/components/schemas/AssistantsApiToolChoiceOption'
nullable: true
description: Controls whether or not and which tool is called by the model.
response_format:
oneOf:
allOf:
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
nullable: true
description: Specifies the format that the model must output.
@@ -3696,7 +3696,7 @@ components:
nullable: true
description: The Unix timestamp, in seconds, representing when this failed.
incomplete_details:
oneOf:
allOf:
- $ref: '#/components/schemas/IncompleteRunDetails'
nullable: true
description: Details on why the run is incomplete. Will be `null` if the run is not incomplete.
@@ -3735,12 +3735,12 @@ components:
nullable: true
description: The strategy to use for dropping messages as the context windows moves forward.
tool_choice:
oneOf:
allOf:
- $ref: '#/components/schemas/AssistantsApiToolChoiceOption'
nullable: true
description: Controls whether or not and which tool is called by the model.
response_format:
oneOf:
allOf:
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
nullable: true
description: The response format of the tool calls used in this run.
@@ -3881,7 +3881,7 @@ components:
We generally recommend altering this or temperature but not both.
default: 1
response_format:
oneOf:
allOf:
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
nullable: true
description: The response format of the tool calls used by this assistant.
Original file line number Diff line number Diff line change
@@ -22,6 +22,7 @@ interface Apis {
ListQueryParametersTrait<StandardListQueryParameters>
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Legacy name"
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Cannot model with standard operations"
@doc("List a collection of APIs across workspaces.")
@route("/apis")
Original file line number Diff line number Diff line change
@@ -20,6 +20,7 @@ interface Environments {
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Cannot model with standard operations"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Legacy name"
@doc("List a collection of environments across workspaces.")
@route("/environments")
listAll is Azure.Core.Foundations.Operation<
8 changes: 4 additions & 4 deletions specification/appconfiguration/AppConfiguration/models.tsp
Original file line number Diff line number Diff line change
@@ -119,7 +119,7 @@ model KeyListResult {
items?: Key[];

@doc("The URI that can be used to request the next set of paged results.")
@nextLink
@Azure.Core.nextLink
`@nextLink`?: string;
}

@@ -162,7 +162,7 @@ model KeyValueListResult {
etag?: string;

@doc("The URI that can be used to request the next set of paged results.")
@nextLink
@Azure.Core.nextLink
`@nextLink`?: string;
}

@@ -207,7 +207,7 @@ model SnapshotListResult {
items?: Snapshot[];

@doc("The URI that can be used to request the next set of paged results.")
@nextLink
@Azure.Core.nextLink
`@nextLink`?: string;
}

@@ -304,7 +304,7 @@ model LabelListResult {
items?: Label[];

@doc("The URI that can be used to request the next set of paged results.")
@nextLink
@Azure.Core.nextLink
`@nextLink`?: string;
}

7 changes: 7 additions & 0 deletions specification/appconfiguration/AppConfiguration/routes.tsp
Original file line number Diff line number Diff line change
@@ -48,6 +48,7 @@ alias AppConfigResponseHeaders = {
};

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Pre-existing API contract"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Legacy name"
@summary("Gets a list of keys.")
@doc("Gets a list of keys.")
op getKeys is Foundations.ResourceList<
@@ -114,6 +115,7 @@ op checkKeys is appConfigOperation<
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Pre-existing API contract"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Legacy name"
@summary("Gets a list of key-values.")
@doc("Gets a list of key-values.")
op getKeyValues is Foundations.ResourceList<
@@ -309,6 +311,7 @@ op getKeyValue is Foundations.ResourceOperation<
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Pre-existing API contract"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Legacy name"
@summary("Creates a key-value.")
@doc("Creates a key-value.")
@route("/kv/{key}")
@@ -438,6 +441,7 @@ op checkKeyValue is appConfigOperation<
OkResponse & AppConfigResponseHeaders
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Legacy name"
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Pre-existing API contract"
@summary("Gets a list of key-value snapshots.")
@doc("Gets a list of key-value snapshots.")
@@ -651,6 +655,7 @@ op checkSnapshot is appConfigOperation<
}
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Legacy name"
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Pre-existing API contract"
@summary("Gets a list of labels.")
@doc("Gets a list of labels.")
@@ -723,6 +728,7 @@ op checkLabels is appConfigOperation<
}
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Legacy name"
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Pre-existing API contract"
@summary("Locks a key-value.")
@doc("Locks a key-value.")
@@ -795,6 +801,7 @@ op deleteLock is appConfigOperation<
contentTypeHeader<"application/vnd.microsoft.appconfig.kv+json">
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Legacy name"
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Pre-existing API contract"
@summary("Gets a list of key-value revisions.")
@doc("Gets a list of key-value revisions.")
Original file line number Diff line number Diff line change
@@ -57,6 +57,6 @@ model VirtualMachineScaleSetListResult {
value: Array<VirtualMachineScaleSet>;

@doc("The link to the next page of items")
@nextLink
@Azure.Core.nextLink
nextLink?: url;
}
26 changes: 13 additions & 13 deletions specification/batch/Azure.Batch/models.tsp
Original file line number Diff line number Diff line change
@@ -722,7 +722,7 @@ model BatchApplicationListResult {

#suppress "@azure-tools/typespec-azure-core/casing-style" "The names of Property types must use camelCase"
@doc("The URL to get the next set of results.")
@nextLink
@Azure.Core.nextLink
`odata.nextLink`?: string;
}

@@ -778,7 +778,7 @@ model BatchPoolListUsageMetricsResult {

#suppress "@azure-tools/typespec-azure-core/casing-style" "The names of Property types must use camelCase"
@doc("The URL to get the next set of results.")
@nextLink
@Azure.Core.nextLink
`odata.nextLink`?: string;
}

@@ -809,7 +809,7 @@ model BatchAccountListSupportedImagesResult {

#suppress "@azure-tools/typespec-azure-core/casing-style" "The names of Property types must use camelCase"
@doc("The URL to get the next set of results.")
@nextLink
@Azure.Core.nextLink
`odata.nextLink`?: string;
}

@@ -880,7 +880,7 @@ model BatchPoolNodeCountsListResult {

#suppress "@azure-tools/typespec-azure-core/casing-style" "The names of Property types must use camelCase"
@doc("The URL to get the next set of results.")
@nextLink
@Azure.Core.nextLink
`odata.nextLink`?: string;
}

@@ -1095,7 +1095,7 @@ model BatchNodeFileListResult {

#suppress "@azure-tools/typespec-azure-core/casing-style" "The names of Property types must use camelCase"
@doc("The URL to get the next set of results.")
@nextLink
@Azure.Core.nextLink
`odata.nextLink`?: string;
}

@@ -2338,7 +2338,7 @@ model BatchJobScheduleListResult {

#suppress "@azure-tools/typespec-azure-core/casing-style" "The names of Property types must use camelCase"
@doc("The URL to get the next set of results.")
@nextLink
@Azure.Core.nextLink
`odata.nextLink`?: string;
}

@@ -2576,7 +2576,7 @@ model BatchJobListResult {

#suppress "@azure-tools/typespec-azure-core/casing-style" "The names of Property types must use camelCase"
@doc("The URL to get the next set of results.")
@nextLink
@Azure.Core.nextLink
`odata.nextLink`?: string;
}

@@ -2592,7 +2592,7 @@ model BatchJobPreparationAndReleaseTaskStatusListResult {

#suppress "@azure-tools/typespec-azure-core/casing-style" "The names of Property types must use camelCase"
@doc("The URL to get the next set of results.")
@nextLink
@Azure.Core.nextLink
`odata.nextLink`?: string;
}

@@ -3106,7 +3106,7 @@ model BatchPoolListResult {

#suppress "@azure-tools/typespec-azure-core/casing-style" "The names of Property types must use camelCase"
@doc("The URL to get the next set of results.")
@nextLink
@Azure.Core.nextLink
`odata.nextLink`?: string;
}

@@ -3545,7 +3545,7 @@ model BatchTaskListResult {

#suppress "@azure-tools/typespec-azure-core/casing-style" "The names of Property types must use camelCase"
@doc("The URL to get the next set of results.")
@nextLink
@Azure.Core.nextLink
`odata.nextLink`?: string;
}

@@ -3591,7 +3591,7 @@ model BatchTaskListSubtasksResult {

#suppress "@azure-tools/typespec-azure-core/casing-style" "The names of Property types must use camelCase"
@doc("The URL to get the next set of results.")
@nextLink
@Azure.Core.nextLink
`odata.nextLink`?: string;
}

@@ -3965,7 +3965,7 @@ model BatchNodeListResult {

#suppress "@azure-tools/typespec-azure-core/casing-style" "The names of Property types must use camelCase"
@doc("The URL to get the next set of results.")
@nextLink
@Azure.Core.nextLink
`odata.nextLink`?: string;
}

@@ -4022,6 +4022,6 @@ model BatchNodeVMExtensionListResult {
value?: BatchNodeVMExtension[];

@doc("The URL to get the next set of results.")
@nextLink
@Azure.Core.nextLink
`odata.nextLink`?: string;
}
Original file line number Diff line number Diff line change
@@ -362,7 +362,7 @@ model ModelList {
maxCount: int32;

@doc("Link to fetch more models.")
@nextLink
@Azure.Core.nextLink
nextLink?: string;
}

Original file line number Diff line number Diff line change
@@ -12,6 +12,8 @@ emit:
linter:
extends:
- "@azure-tools/typespec-azure-rulesets/data-plane"
disable:
"@azure-tools/typespec-azure-core/operation-missing-api-version": "Not using standard versioning"
options:
"@azure-tools/typespec-autorest":
azure-resource-provider-folder: "data-plane"
Original file line number Diff line number Diff line change
@@ -489,6 +489,7 @@ interface ConversationalAnalysisAuthoring {
* Gets the detailed results of the evaluation for a trained model. This includes
* the raw inference results for the data included in the evaluation process.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
getModelEvaluationResults is languageOperations.ResourceList<
ConversationalAnalysisAuthoringUtteranceEvaluationResult,
ListQueryParametersTrait<StandardListQueryParameters &
@@ -699,6 +700,7 @@ interface ConversationalAnalysisAuthoring {
* returns deployments belonging to projects owned by other resources.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@route("/authoring/analyze-conversations/projects/global/deployments/resources")
@get
@added(Versions.v2023_04_15_preview)
@@ -816,6 +818,7 @@ interface ConversationalAnalysisAuthoring {
* Lists the support training config version for a given project type.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@route("/authoring/analyze-conversations/projects/global/training-config-versions")
@get
listTrainingConfigVersions is Azure.Core.Foundations.Operation<
Original file line number Diff line number Diff line change
@@ -52,6 +52,7 @@ alias languageOperations = ResourceOperations<ServiceTraits, ErrorResponse>;

/** Get the status of a document analysis job. A job can consist of one or more tasks. After all tasks succeed, the job transitions to the succeeded state and results are available for each task. */
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@summary("Get analysis status and results")
op analyzeDocumentsJobStatus is languageOperations.ResourceRead<
AnalyzeDocumentsJobState,
Original file line number Diff line number Diff line change
@@ -571,6 +571,7 @@ interface TextAnalysisAuthoring {
* Gets the detailed results of the evaluation for a trained model. This includes
* the raw inference results for the data included in the evaluation process.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
getModelEvaluationResults is languageOperations.ResourceList<
TextAnalysisAuthoringDocumentEvaluationResult,
ListQueryParametersTrait<StandardListQueryParameters &
@@ -746,6 +747,7 @@ interface TextAnalysisAuthoring {
/**
* Lists the supported languages.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
getSupportedLanguages is languageOperations.ResourceList<
TextAnalysisAuthoringSupportedLanguage,
ListQueryParametersTrait<ProjectKindQueryParameter &
@@ -756,6 +758,7 @@ interface TextAnalysisAuthoring {
* Lists the supported prebuilt entities that can be used while creating composed
* entities.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@added(Versions.v2023_04_15_preview)
getSupportedPrebuiltEntities is languageOperations.ResourceList<
TextAnalysisAuthoringPrebuiltEntity,
Original file line number Diff line number Diff line change
@@ -81,6 +81,7 @@ op analyzeText is RpcOperation<

/** Get the status of an analysis job. A job can consist of one or more tasks. After all tasks succeed, the job transitions to the succeeded state and results are available for each task. */
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@summary("Get analysis status and results")
op analyzeTextJobStatus is languageOperations.ResourceRead<
AnalyzeTextJobState,
Original file line number Diff line number Diff line change
@@ -35,6 +35,7 @@ op analyzeConversations is RpcOperation<
>;

/** Get the status of an analysis job. A job can consist of one or more tasks. After all tasks succeed, the job transitions to the succeeded state and results are available for each task. */
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@added(Versions.v2023_04_01)
@summary("Get analysis status and results")
op analyzeConversationsJobStatus is languageOperations.ResourceRead<
2 changes: 2 additions & 0 deletions specification/cognitiveservices/OpenAI.Inference/client.tsp
Original file line number Diff line number Diff line change
@@ -42,6 +42,7 @@ interface OpenAIClient {

getEmbeddings is Azure.OpenAI.getEmbeddings;

#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
listFiles is Azure.OpenAI.listFiles;

@@ -58,6 +59,7 @@ interface OpenAIClient {
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
getFileContent is Azure.OpenAI.getFileContent;

#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
listBatches is Azure.OpenAI.listBatches;

Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ using TypeSpec.Versioning;
namespace ClientForAcsJobRouter;

// Your customizations here
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@client({
name: "JobRouterAdministrationClient",
service: AzureCommunicationRoutingService,
@@ -66,6 +67,7 @@ interface JobRouterAdministrationRestClient {
deleteQueue is AzureCommunicationRoutingService.JobRouterAdministrationOperations.deleteQueue;
}

#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@client({
name: "JobRouterClient",
service: AzureCommunicationRoutingService,
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@ using TypeSpec.Rest;
using TypeSpec.Http;
using TypeSpec.Versioning;

#suppress "@azure-tools/typespec-azure-core/auth-required" "!!FIXME!!"
@service({
title: "Azure Communication Routing Service",
})
Original file line number Diff line number Diff line change
@@ -26,6 +26,7 @@ alias GetOperations = Azure.Core.ResourceOperations<GetOperationTraits>;
alias PatchOperations = Azure.Core.ResourceOperations<PatchOperationTraits>;

interface JobRouterAdministrationOperations {
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@summary("Creates or updates a classification policy.")
@doc("Creates or updates a classification policy.")
upsertClassificationPolicy is PatchOperations.ResourceCreateOrUpdate<ClassificationPolicy>;
@@ -45,6 +46,7 @@ interface JobRouterAdministrationOperations {
ListClassificationPoliciesQueryParams
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@summary("Creates or updates a distribution policy.")
@doc("Creates or updates a distribution policy.")
upsertDistributionPolicy is PatchOperations.ResourceCreateOrUpdate<DistributionPolicy>;
@@ -64,6 +66,7 @@ interface JobRouterAdministrationOperations {
ListDistributionPoliciesQueryParams
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@summary("Creates or updates a exception policy.")
@doc("Creates or updates a exception policy.")
upsertExceptionPolicy is PatchOperations.ResourceCreateOrUpdate<ExceptionPolicy>;
@@ -82,7 +85,7 @@ interface JobRouterAdministrationOperations {
ExceptionPolicy,
ListExceptionPoliciesQueryParams
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@summary("Creates or updates a queue.")
@doc("Creates or updates a queue.")
upsertQueue is PatchOperations.ResourceCreateOrUpdate<RouterQueue>;
@@ -101,6 +104,7 @@ interface JobRouterAdministrationOperations {
}

interface JobRouterOperations {
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@summary("Creates or updates a router job.")
@doc("Creates or updates a router job.")
upsertJob is PatchOperations.ResourceCreateOrUpdate<RouterJob>;
@@ -228,6 +232,7 @@ interface JobRouterOperations {
RouterQueueStatistics
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@summary("Creates or updates a worker.")
@doc("Creates or updates a worker.")
upsertWorker is PatchOperations.ResourceCreateOrUpdate<RouterWorker>;
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@ namespace ClientForAcsMessages;
})
interface NotificationMessagesClient
extends Azure.Communication.MessagesService.NotificationMessagesOperations {
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@access(Access.internal, "csharp")
@clientName("downloadMediaInternal", "csharp")
downloadMedia is Azure.Communication.MessagesService.StreamOperations.getMedia;
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ op getEntryStatus is Foundations.Operation<
ServiceTraits
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
@doc("Get the status of all entries operations")
@route("/operations")
Original file line number Diff line number Diff line change
@@ -67,7 +67,7 @@ model EntryIds {
transactionIds: string[];

@doc("Path to the next page of results")
@nextLink
@Azure.Core.nextLink
nextLink?: string;
}

Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@ import "./recovery.tsp";
import "./service_state.tsp";
import "./transactions.tsp";

#suppress "@azure-tools/typespec-azure-core/auth-required" "!!FIXME!!"
@service({
title: "Managed CCF Governance",
})
2 changes: 2 additions & 0 deletions specification/devcenter/DevCenter/DevBox/routes.tsp
Original file line number Diff line number Diff line change
@@ -93,6 +93,7 @@ interface DevBoxes {
@doc("Gets a Dev Box.")
getDevBoxByUser is StandardResourceOperations.ResourceRead<DevBox>;

#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Standard operations produce wrong swagger"
// The standard operation names the body as resource, so the generated swagger has parameter
// {
@@ -235,6 +236,7 @@ interface DevBoxes {
// "name": "body",
// "in": "body",
// }
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@doc("Applies customizations to the Dev Box.")
@put
@route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/customizationGroups/{customizationGroupName}")
1 change: 1 addition & 0 deletions specification/devcenter/DevCenter/client.tsp
Original file line number Diff line number Diff line change
@@ -32,6 +32,7 @@ interface DevBoxesClientOperations {
listAllDevBoxesByUser is DevCenterService.DevBoxes.listAllDevBoxesByUser;
listDevBoxes is DevCenterService.DevBoxes.listDevBoxesByUser;
getDevBox is DevCenterService.DevBoxes.getDevBoxByUser;
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@convenientAPI(false, "csharp") // https://github.com/Azure/azure-rest-api-specs/issues/28083
createDevBox is DevCenterService.DevBoxes.createDevBox;
deleteDevBox is DevCenterService.DevBoxes.deleteDevBox;
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@ import "./Microsoft.ResourceNotifications/Resources.tsp";
import "./propertyNameOverride.tsp";

/** Azure Messaging EventGrid SystemEvents */
#suppress "@azure-tools/typespec-azure-core/auth-required" "!!FIXME!!"
@service({
title: "Azure.Messaging.SystemEvents",
})
4 changes: 2 additions & 2 deletions specification/fabric/Microsoft.Fabric.Management/models.tsp
Original file line number Diff line number Diff line change
@@ -115,7 +115,7 @@ model RpSkuEnumerationForNewResourceResult {
value: Array<RpSkuDetailsForNewResource>;

@doc("Url for the next page. Null if no more pages available")
@nextLink
@Azure.Core.nextLink
nextLink?: string;
}

@@ -145,7 +145,7 @@ model RpSkuEnumerationForExistingResourceResult {
value: Array<RpSkuDetailsForExistingResource>;

@doc("Url for the next page. Null if no more pages available")
@nextLink
@Azure.Core.nextLink
nextLink?: string;
}

Original file line number Diff line number Diff line change
@@ -28,6 +28,7 @@ alias DeidentifyOperations = ResourceOperations<

// Text-Deidentification Operations

#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@summary("Create a de-identification job.")
@pollingOperation(getJob)
op createJob is DeidentifyOperations.LongRunningResourceCreateOrReplace<DeidentificationJob>;
4 changes: 4 additions & 0 deletions specification/loadtestservice/LoadTestService/client.tsp
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@ namespace Customizations;
@@clientName(MetricDimensionsRequest.timespan, "time_interval", "python");

#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@client({
name: "LoadTestAdministrationClient",
service: Microsoft.LoadTestService,
@@ -36,6 +37,7 @@ interface AdministrationOperations {
}

#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@client({
name: "LoadTestRunClient",
service: Microsoft.LoadTestService,
@@ -65,6 +67,7 @@ interface TestRunOperations {

// NOTE: `LoadTestAdministrationClient` will contain all administration operations and `LoadTestRunClient` will contain all run based operations
// A separate interface is made to just segregate the operations by resource type
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@client({
name: "LoadTestAdministrationClient",
service: Microsoft.LoadTestService,
@@ -76,6 +79,7 @@ interface TestProfileAdministrationOperations {
listTestProfiles is TestProfileAdministration.listTestProfiles;
}

#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@client({
name: "LoadTestRunClient",
service: Microsoft.LoadTestService,
4 changes: 4 additions & 0 deletions specification/loadtestservice/LoadTestService/routes.tsp
Original file line number Diff line number Diff line change
@@ -53,6 +53,7 @@ interface LoadTestAdministration {

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Our operation is not following the standard put behavior https://github.com/Azure/typespec-azure/issues/3743"
#suppress "@azure-tools/typespec-azure-core/byos" "It is limiting for users to have storage first before creating a load test also it will be breaking change for us."
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@summary("""
Upload input file for a given test Id. File size can't be more than 50 MB.
Existing file with same name for the given test will be overwritten. File
@@ -241,6 +242,7 @@ interface LoadTestRun {
stop is StandardResourceOperations.ResourceAction<TestRun, {}, TestRun, {}>;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@summary("List the metric namespaces for a load test run.")
@doc("List the metric namespaces for a load test run.")
@route("/test-runs/{testRunId}/metric-namespaces")
@@ -261,6 +263,7 @@ interface LoadTestRun {
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@summary("List the metric definitions for a load test run.")
@doc("List the metric definitions for a load test run.")
@route("/test-runs/{testRunId}/metric-definitions")
@@ -315,6 +318,7 @@ interface LoadTestRun {
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@summary("List the dimension values for the given metric dimension name.")
@doc("List the dimension values for the given metric dimension name.")
@route("/test-runs/{testRunId}/metric-dimensions/{name}/values")
Original file line number Diff line number Diff line change
@@ -53,7 +53,7 @@ model PagedIndex {
value: Index[];

@doc("The link to the next page of items")
@nextLink
@Azure.Core.nextLink
nextLink?: ResourceLocation<Index>;
}

@@ -77,7 +77,7 @@ model PagedPrompt {
value: Prompt[];

@doc("The link to the next page of items")
@nextLink
@Azure.Core.nextLink
nextLink?: ResourceLocation<Prompt>;
}

Original file line number Diff line number Diff line change
@@ -35,6 +35,7 @@ interface Indexes {
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Waiting for bug fix: https://github.com/Azure/typespec-azure-pr/issues/3739."
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@doc("Creates or updates a IndexVersion.")
@route("/indexes/{name}/versions/{version}")
@put
@@ -157,6 +158,7 @@ interface Prompts {
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Waiting for bug fix: https://github.com/Azure/typespec-azure-pr/issues/3739."
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@doc("Creates or updates a Prompt")
@route("/prompts/{name}/versions/{version}")
@put
1 change: 1 addition & 0 deletions specification/playwrighttesting/PlaywrightTesting/main.tsp
Original file line number Diff line number Diff line change
@@ -190,6 +190,7 @@ alias Operations = Azure.Core.ResourceOperations<ServiceTraits>;
interface AccessTokens {
// AccessToken Operations

#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@doc("Creates an access-token with given access-token id in guid format.")
createAccessToken is Operations.ResourceCreateOrReplace<AccessToken>;

Original file line number Diff line number Diff line change
@@ -41,3 +41,5 @@ options:
linter:
extends:
- "@azure-tools/typespec-azure-rulesets/data-plane"
disable:
"@azure-tools/typespec-azure-core/use-standard-names": "Mapping to atlas API"
2 changes: 2 additions & 0 deletions specification/quantum/Quantum.Workspace/operations/jobs.tsp
Original file line number Diff line number Diff line change
@@ -127,6 +127,7 @@ namespace Quantum.Workspace.Operations {
using Quantum.Workspace.BaseOperations;
interface JobOperations {
/** Create a new job. */
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
create is CreateOperation<JobDetails>;

/** Update job properties. */
@@ -138,6 +139,7 @@ namespace Quantum.Workspace.Operations {
update is PatchOperation<JobDetails>;
/** Request the cancellation of an existing job. */
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
cancel is CancelOperation<JobDetails>;
/** Get job by its id. */
Original file line number Diff line number Diff line change
@@ -72,6 +72,7 @@ namespace Quantum.Workspace.Operations {
using Quantum.Workspace.BaseOperations;
interface SessionOperations {
/** Open a new session. */
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
open is CreateOperation<SessionDetails>;

/** Close an existing session. */
@@ -90,6 +91,7 @@ namespace Quantum.Workspace.Operations {
We had to use a custom ResourceList to avoid an autoroute bug for workspace/jobs and sesssions/{sessionId}/jobs.
See https://github.com/Azure/typespec-azure/issues/494
"""
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@operationId("SessionsJobs_List")
jobsList is CustomListOperation<
Resource = JobDetails,
1 change: 1 addition & 0 deletions specification/riskiq/Easm/client.tsp
Original file line number Diff line number Diff line change
@@ -64,6 +64,7 @@ interface EasmClient {
runTask is Easm.Tasks.runTask;
downloadTask is Easm.Tasks.downloadTask;

#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
getCisaCves is Easm.CisaCves.getCisaCves;
getCisaCve is Easm.CisaCves.getCisaCve;

6 changes: 3 additions & 3 deletions specification/riskiq/Easm/models.tsp
Original file line number Diff line number Diff line change
@@ -216,7 +216,7 @@ model AssetPageResult {
mark?: string;

@doc("The link to access the next page of results. Not set if at the end of the result set.")
@nextLink
@Azure.Core.nextLink
nextLink?: string;

@doc("The items in the current page of results.")
@@ -714,7 +714,7 @@ model DiscoRunPageResult {
totalElements?: int64;

@doc("The link to access the next page of results. Not set if at the end of the result set.")
@nextLink
@Azure.Core.nextLink
nextLink?: string;

@doc("The items in the current page of results.")
@@ -1527,7 +1527,7 @@ model DeltaPageResult {
totalElements?: int64;

@doc("The link to access the next page of results. Not set if at the end of the result set.")
@nextLink
@Azure.Core.nextLink
nextLink?: string;

@doc("The items in the current page of results.")
1 change: 1 addition & 0 deletions specification/riskiq/Easm/routes.tsp
Original file line number Diff line number Diff line change
@@ -274,6 +274,7 @@ interface Tasks {
@tag("CisaCves")
@doc("Provides access to cisa cves.")
interface CisaCves {
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@doc("Retrieve a list of CisaCves for the provided search parameters.")
@Versioning.added(Versions.v2024_03_01_preview)
getCisaCves is Operations.ResourceList<CisaCveResult, CisaCveListTrait>;
Original file line number Diff line number Diff line change
@@ -151,11 +151,6 @@
}
},
"definitions": {
"Azure.Core.uuid": {
"type": "string",
"format": "uuid",
"description": "Universally Unique Identifier"
},
"Azure.ResourceManager.ResourceProvisioningState": {
"type": "string",
"description": "The provisioning state of a resource type.",
@@ -368,7 +363,7 @@
"description": "The operation status"
},
"id": {
"$ref": "#/definitions/Azure.Core.uuid",
"type": "string",
"description": "The unique identifier for the operationStatus resource"
},
"name": {
Original file line number Diff line number Diff line change
@@ -19,14 +19,17 @@ interface DocumentTranslationClient {
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops"
startTranslation is DocumentTranslation.DocumentTranslationOperations.startTranslation;
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
getTranslationsStatus is DocumentTranslation.DocumentTranslationOperations.getTranslationsStatus;
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops"
getDocumentStatus is DocumentTranslation.DocumentTranslationOperations.getDocumentStatus;
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops"
getTranslationStatus is DocumentTranslation.DocumentTranslationOperations.getTranslationStatus;
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
cancelTranslation is DocumentTranslation.DocumentTranslationOperations.cancelTranslation;
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
getDocumentsStatus is DocumentTranslation.DocumentTranslationOperations.getDocumentsStatus;
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops"
getSupportedFormats is DocumentTranslation.DocumentTranslationOperations.getSupportedFormats;
Original file line number Diff line number Diff line change
@@ -304,7 +304,7 @@ model TranslationsStatus {
value: TranslationStatus[];

@doc("Url for the next page. Null if no more pages available")
@nextLink
@Azure.Core.nextLink
nextLink?: string;
}

@@ -405,7 +405,7 @@ model DocumentsStatus {
value: DocumentStatus[];

@doc("Url for the next page. Null if no more pages available")
@nextLink
@Azure.Core.nextLink
nextLink?: string;
}

Original file line number Diff line number Diff line change
@@ -71,6 +71,7 @@ interface DocumentTranslationOperations {
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@summary("Returns a list of batch requests submitted and the status for each request")
@doc("""
Returns a list of batch requests submitted and the status for each
@@ -249,6 +250,7 @@ interface DocumentTranslationOperations {
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@summary("Cancel a currently processing or queued translation")
@doc("""
Cancel a currently processing or queued translation.
@@ -273,6 +275,7 @@ interface DocumentTranslationOperations {
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
@summary("Returns the status for all documents in a batch document translation request")
@doc("""
Returns the status for all documents in a batch document translation request.
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ using TypeSpec.Http;
using Azure.Core;
using TypeSpec.Versioning;

#suppress "@azure-tools/typespec-azure-core/auth-required" "!!FIXME!!"
@service({
title: "Text Translation",
})

0 comments on commit 0410d40

Please sign in to comment.