diff --git a/specification/botservice/BotService.Management/Bot.tsp b/specification/botservice/BotService.Management/Bot.tsp index 204ccc7c3aaa..4f32ec480371 100644 --- a/specification/botservice/BotService.Management/Bot.tsp +++ b/specification/botservice/BotService.Management/Bot.tsp @@ -13,7 +13,7 @@ namespace Microsoft.BotService; /** * Bot resource definition */ -model Bot is Azure.ResourceManager.TrackedResource { +model Bot is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = Bot, KeyName = "resourceName", @@ -21,6 +21,19 @@ model Bot is Azure.ResourceManager.TrackedResource { NamePattern = "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$" >; + /** + * Specifies the location of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + location?: string; + + /** + * Contains resource tags defined as key/value pairs. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + tags?: Record; + /** * Gets or sets the SKU of the resource. */ diff --git a/specification/botservice/BotService.Management/BotChannel.tsp b/specification/botservice/BotService.Management/BotChannel.tsp index 3d5751096f5e..88d552d54c7a 100644 --- a/specification/botservice/BotService.Management/BotChannel.tsp +++ b/specification/botservice/BotService.Management/BotChannel.tsp @@ -15,7 +15,7 @@ namespace Microsoft.BotService; * Bot channel resource definition */ @parentResource(Bot) -model BotChannel is Azure.ResourceManager.TrackedResource { +model BotChannel is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = BotChannel, KeyName = "channelName", @@ -23,6 +23,19 @@ model BotChannel is Azure.ResourceManager.TrackedResource { NamePattern = "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$" >; + /** + * Specifies the location of the resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + location?: string; + + /** + * Contains resource tags defined as key/value pairs. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + tags?: Record; + /** * Gets or sets the SKU of the resource. */ diff --git a/specification/botservice/BotService.Management/tspconfig.yaml b/specification/botservice/BotService.Management/tspconfig.yaml index 3c9fa161fd15..dbe4c0f600ff 100644 --- a/specification/botservice/BotService.Management/tspconfig.yaml +++ b/specification/botservice/BotService.Management/tspconfig.yaml @@ -29,7 +29,8 @@ options: flavor: azure "@azure-tools/typespec-ts": package-dir: "arm-botservice" - is-modular-library: true + typespec-title-map: + BotServiceClient: "AzureBotService" flavor: "azure" experimental-extensible-enums: true package-details: diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2023-09-15-preview/botservice.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2023-09-15-preview/botservice.json index 1287102bacc6..f67a90a7133c 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2023-09-15-preview/botservice.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2023-09-15-preview/botservice.json @@ -2112,6 +2112,17 @@ "$ref": "#/definitions/BotProperties", "description": "The set of properties specific to bot resource" }, + "location": { + "type": "string", + "description": "Specifies the location of the resource." + }, + "tags": { + "type": "object", + "description": "Contains resource tags defined as key/value pairs.", + "additionalProperties": { + "type": "string" + } + }, "sku": { "$ref": "#/definitions/Sku", "description": "Gets or sets the SKU of the resource." @@ -2135,7 +2146,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ] }, @@ -2147,6 +2158,17 @@ "$ref": "#/definitions/Channel", "description": "The set of properties specific to bot channel resource" }, + "location": { + "type": "string", + "description": "Specifies the location of the resource." + }, + "tags": { + "type": "object", + "description": "Contains resource tags defined as key/value pairs.", + "additionalProperties": { + "type": "string" + } + }, "sku": { "$ref": "#/definitions/Sku", "description": "Gets or sets the SKU of the resource." @@ -2170,7 +2192,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ] },