Skip to content
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
15 changes: 14 additions & 1 deletion specification/botservice/BotService.Management/Bot.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,27 @@ namespace Microsoft.BotService;
/**
* Bot resource definition
*/
model Bot is Azure.ResourceManager.TrackedResource<BotProperties> {
model Bot is Azure.ResourceManager.ProxyResource<BotProperties> {
...ResourceNameParameter<
Resource = Bot,
KeyName = "resourceName",
SegmentName = "botServices",
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<string>;

/**
* Gets or sets the SKU of the resource.
*/
Expand Down
15 changes: 14 additions & 1 deletion specification/botservice/BotService.Management/BotChannel.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,27 @@ namespace Microsoft.BotService;
* Bot channel resource definition
*/
@parentResource(Bot)
model BotChannel is Azure.ResourceManager.TrackedResource<Channel> {
model BotChannel is Azure.ResourceManager.ProxyResource<Channel> {
...ResourceNameParameter<
Resource = BotChannel,
KeyName = "channelName",
SegmentName = "channels",
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<string>;

/**
* Gets or sets the SKU of the resource.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand All @@ -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"
}
]
},
Expand All @@ -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."
Expand All @@ -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"
}
]
},
Expand Down
Loading