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

Migrate specs @service and @info to use value object #32916

Merged
merged 2 commits into from
Mar 1, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ using Azure.Core;
using Azure.ResourceManager;

@armProviderNamespace("Microsoft.AgriculturePlatform")
@service({
title: "Microsoft.AgriculturePlatform",
})
@service(#{ title: "Microsoft.AgriculturePlatform" })
@versioned(Microsoft.AgriculturePlatform.Versions)
namespace Microsoft.AgriculturePlatform;

Expand Down
4 changes: 1 addition & 3 deletions specification/ai/DocumentIntelligence/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ using TypeSpec.Http;
}
]>
)
@service({
title: "Document Intelligence (formerly Form Recognizer)",
})
@service(#{ title: "Document Intelligence (formerly Form Recognizer)" })
@server(
"{endpoint}/documentintelligence",
"Extracts content, layout, and structured data from documents.",
Expand Down
4 changes: 1 addition & 3 deletions specification/ai/Face/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ using TypeSpec.Rest;
using TypeSpec.Versioning;

@useAuth(KeyAuth | AADToken)
@service({
title: "Azure AI Face API",
})
@service(#{ title: "Azure AI Face API" })
@versioned(Versions)
@server(
"{endpoint}/face/{apiVersion}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ using TypeSpec.Rest;
using TypeSpec.Http;
using TypeSpec.Versioning;

@service({
title: "Azure AI Health Insights",
})
@service(#{ title: "Azure AI Health Insights" })
@versioned(ApiVersion)
@doc("Azure AI Health Insights provides an API that serves insight models, specific for Health & Life Sciences, that perform analysis and provide inferences to be used by a human.")
@server(
Expand Down
4 changes: 1 addition & 3 deletions specification/ai/ImageAnalysis/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ using TypeSpec.Rest;
using TypeSpec.Versioning;
using Azure.Core;

@service({
title: "Image Analysis",
})
@service(#{ title: "Image Analysis" })
@versioned(ImageAnalysis.Versions)
@useAuth(
ApiKeyAuth<
Expand Down
4 changes: 1 addition & 3 deletions specification/ai/ModelInference/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ using Azure.Core;
}
]>
)
@service({
title: "AI Model Inference",
})
@service(#{ title: "AI Model Inference" })
@versioned(ModelInference.Versions)
namespace ModelInference;

Expand Down
4 changes: 1 addition & 3 deletions specification/ai/OpenAI.Assistants/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ namespace Azure.AI.OpenAI {
}
]>
)
@service({
title: "Azure OpenAI",
})
@service(#{ title: "Azure OpenAI" })
@server(
"{endpoint}",
"Azure OpenAI APIs for Assistants.",
Expand Down
4 changes: 1 addition & 3 deletions specification/apicenter/ApiCenter.DataApi/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ using TypeSpec.Versioning;
using Azure.Core;

@useAuth(AadOauth2Auth<["https://azure-apicenter.net/user_impersonation"]>)
@service({
title: "Azure API Center Data API",
})
@service(#{ title: "Azure API Center Data API" })
@server(
"https://{serviceName}.data.{region}.azure-apicenter.ms",
"Data API service endpoint",
Expand Down
4 changes: 1 addition & 3 deletions specification/apicenter/ApiCenter.Management/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ using Azure.ResourceManager;
using TypeSpec.Versioning;
using Azure.ClientGenerator.Core;
@armProviderNamespace
@service({
title: "Azure API Center",
})
@service(#{ title: "Azure API Center" })
@versioned(Versions)
@doc("Azure API Center Resource Provider.")
@Azure.ResourceManager.armCommonTypesVersion("v5")
Expand Down
4 changes: 1 addition & 3 deletions specification/app/Microsoft.App.DynamicSessions/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ using TypeSpec.Versioning;
using Azure.Core;

@useAuth(AadOauth2Auth<["https://dynamicsessions.io/.default"]>)
@service({
title: "Microsoft.App Dynamic Sessions service",
})
@service(#{ title: "Microsoft.App Dynamic Sessions service" })
@server(
"{endpoint}",
"Session pool management endpoint.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using TypeSpec.Versioning;
* App Compliance Automation Tool for Microsoft 365 API spec
*/
@armProviderNamespace
@service({
title: "App Compliance Automation Tool for Microsoft 365",
})
@service(#{ title: "App Compliance Automation Tool for Microsoft 365" })
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v3)
namespace Microsoft.AppComplianceAutomation;
Expand Down
4 changes: 1 addition & 3 deletions specification/appconfiguration/AppConfiguration/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ using TypeSpec.Rest;
using TypeSpec.Http;
using TypeSpec.Versioning;

@service({
title: "Azure App Configuration",
})
@service(#{ title: "Azure App Configuration" })
@versioned(Versions)
@useAuth(
ApiKeyAuth<ApiKeyLocation.header, "Connection String"> | OAuth2Auth<[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ using Azure.Core.Traits;
}
]>
)
@service({
title: "Live Metrics REST APIs for client SDKs.",
})
@service(#{ title: "Live Metrics REST APIs for client SDKs." })
@server(
"{endpoint}",
"Existing Live Metrics global endpoint.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using Azure.Portal;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Supress missing operations endpoint as the same is defined ../operations/main.tsp."
@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using Azure.Portal;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Supress missing operations endpoint as the same is defined ../operations/main.tsp."
@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using Azure.Portal;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Supress missing operations endpoint as the same is defined ../operations/main.tsp."
@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using Azure.Portal;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Supress missing operations endpoint as the same is defined ../operations/main.tsp."
@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using Azure.Portal;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Supress missing operations endpoint as the same is defined ../operations/main.tsp."
@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using Azure.Portal;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Supress missing operations endpoint as the same is defined ../operations/main.tsp."
@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
4 changes: 1 addition & 3 deletions specification/awsconnector/Awsconnector.Management/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ using Azure.ClientGenerator.Core;
using Azure.ResourceManager;

@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using Azure.Portal;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Supress missing operations endpoint as the same is defined ../operations/main.tsp."
@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using Azure.Portal;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Supress missing operations endpoint as the same is defined ../operations/main.tsp."
@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using Azure.Portal;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Supress missing operations endpoint as the same is defined ../operations/main.tsp."
@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using Azure.Portal;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Supress missing operations endpoint as the same is defined ../operations/main.tsp."
@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using Azure.Portal;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Supress missing operations endpoint as the same is defined ../operations/main.tsp."
@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using Azure.Portal;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Supress missing operations endpoint as the same is defined ../operations/main.tsp."
@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using Azure.Portal;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Supress missing operations endpoint as the same is defined ../operations/main.tsp."
@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using Azure.Portal;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Supress missing operations endpoint as the same is defined ../operations/main.tsp."
@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using Azure.Portal;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Supress missing operations endpoint as the same is defined ../operations/main.tsp."
@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using Azure.Portal;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Supress missing operations endpoint as the same is defined ../operations/main.tsp."
@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using Azure.Portal;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Supress missing operations endpoint as the same is defined ../operations/main.tsp."
@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
4 changes: 1 addition & 3 deletions specification/awsconnector/DaxCluster.Management/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using Azure.Portal;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Supress missing operations endpoint as the same is defined ../operations/main.tsp."
@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using Azure.Portal;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Supress missing operations endpoint as the same is defined ../operations/main.tsp."
@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
4 changes: 1 addition & 3 deletions specification/awsconnector/DynamoDBTable.Management/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using Azure.Portal;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Supress missing operations endpoint as the same is defined ../operations/main.tsp."
@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using Azure.Portal;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Supress missing operations endpoint as the same is defined ../operations/main.tsp."
@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
4 changes: 1 addition & 3 deletions specification/awsconnector/Ec2Address.Management/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ using Azure.Portal;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Supress missing operations endpoint as the same is defined ../operations/main.tsp."
@armProviderNamespace
@service({
title: "Microsoft.AwsConnector",
})
@service(#{ title: "Microsoft.AwsConnector" })
@doc("Microsoft.AwsConnector Resource Provider management API.")
@versioned(Versions)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
Expand Down
Loading
Loading