diff --git a/eng/pipelines/typespec-ci.yml b/eng/pipelines/typespec-ci.yml index a8615a3ad466..a92b52958d73 100644 --- a/eng/pipelines/typespec-ci.yml +++ b/eng/pipelines/typespec-ci.yml @@ -54,6 +54,11 @@ jobs: Folder: specification/containerservice/Fleet.Management DisplayName: Fleet.Management + - template: templates/steps/typespec-ci.yml + parameters: + Folder: specification/servicenetworking/ServiceNetworking.Management + DisplayName: Microsoft.ServiceNetworking + - template: templates/steps/typespec-ci.yml parameters: Folder: specification/translation/Azure.AI.TextTranslation diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationDelete.json b/specification/servicenetworking/ServiceNetworking.Management/examples/AssociationDelete.json similarity index 81% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationDelete.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/AssociationDelete.json index 1828d1f1aa4f..9aa802867a3f 100644 --- a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationDelete.json +++ b/specification/servicenetworking/ServiceNetworking.Management/examples/AssociationDelete.json @@ -1,4 +1,6 @@ { + "title": "Delete Association", + "operationId": "AssociationsInterface_Delete", "parameters": { "api-version": "2023-05-01-preview", "subscriptionId": "subid", diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationGet.json b/specification/servicenetworking/ServiceNetworking.Management/examples/AssociationGet.json similarity index 91% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationGet.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/AssociationGet.json index 7a61eb85fc28..bec08807231b 100644 --- a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationGet.json +++ b/specification/servicenetworking/ServiceNetworking.Management/examples/AssociationGet.json @@ -1,4 +1,6 @@ { + "title": "Get Association", + "operationId": "AssociationsInterface_Get", "parameters": { "api-version": "2023-05-01-preview", "subscriptionId": "subid", diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationPatch.json b/specification/servicenetworking/ServiceNetworking.Management/examples/AssociationPatch.json similarity index 92% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationPatch.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/AssociationPatch.json index e3c4c25bb2f4..4279813b0c5d 100644 --- a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationPatch.json +++ b/specification/servicenetworking/ServiceNetworking.Management/examples/AssociationPatch.json @@ -1,4 +1,6 @@ { + "title": "Update Association", + "operationId": "AssociationsInterface_Update", "parameters": { "api-version": "2023-05-01-preview", "subscriptionId": "subid", diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationPut.json b/specification/servicenetworking/ServiceNetworking.Management/examples/AssociationPut.json similarity index 95% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationPut.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/AssociationPut.json index 7cae6c94c2dc..0b6879d2dcc8 100644 --- a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationPut.json +++ b/specification/servicenetworking/ServiceNetworking.Management/examples/AssociationPut.json @@ -1,4 +1,6 @@ { + "title": "Put Association", + "operationId": "AssociationsInterface_CreateOrUpdate", "parameters": { "api-version": "2023-05-01-preview", "subscriptionId": "subid", diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationsGet.json b/specification/servicenetworking/ServiceNetworking.Management/examples/AssociationsGet.json similarity index 90% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationsGet.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/AssociationsGet.json index be8f02adb581..34216f1bdd28 100644 --- a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationsGet.json +++ b/specification/servicenetworking/ServiceNetworking.Management/examples/AssociationsGet.json @@ -1,4 +1,6 @@ { + "title": "Get Associations", + "operationId": "AssociationsInterface_ListByTrafficController", "parameters": { "api-version": "2023-05-01-preview", "subscriptionId": "subid", diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendDelete.json b/specification/servicenetworking/ServiceNetworking.Management/examples/FrontendDelete.json similarity index 82% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendDelete.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/FrontendDelete.json index 7e53a06ae0a7..213bc478ac1b 100644 --- a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendDelete.json +++ b/specification/servicenetworking/ServiceNetworking.Management/examples/FrontendDelete.json @@ -1,4 +1,6 @@ { + "title": "Delete Frontend", + "operationId": "FrontendsInterface_Delete", "parameters": { "api-version": "2023-05-01-preview", "subscriptionId": "subid", diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendGet.json b/specification/servicenetworking/ServiceNetworking.Management/examples/FrontendGet.json similarity index 90% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendGet.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/FrontendGet.json index edb1a876bc81..24851d868291 100644 --- a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendGet.json +++ b/specification/servicenetworking/ServiceNetworking.Management/examples/FrontendGet.json @@ -1,4 +1,6 @@ { + "title": "Get Frontend", + "operationId": "FrontendsInterface_Get", "parameters": { "api-version": "2023-05-01-preview", "subscriptionId": "subid", diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendPatch.json b/specification/servicenetworking/ServiceNetworking.Management/examples/FrontendPatch.json similarity index 89% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendPatch.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/FrontendPatch.json index 300b96911152..60653be79c5a 100644 --- a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendPatch.json +++ b/specification/servicenetworking/ServiceNetworking.Management/examples/FrontendPatch.json @@ -1,4 +1,6 @@ { + "title": "Update Frontend", + "operationId": "FrontendsInterface_Update", "parameters": { "api-version": "2023-05-01-preview", "subscriptionId": "subid", diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendPut.json b/specification/servicenetworking/ServiceNetworking.Management/examples/FrontendPut.json similarity index 93% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendPut.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/FrontendPut.json index 5a4463d12cdb..92fb63c73884 100644 --- a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendPut.json +++ b/specification/servicenetworking/ServiceNetworking.Management/examples/FrontendPut.json @@ -1,4 +1,6 @@ { + "title": "Put Frontend", + "operationId": "FrontendsInterface_CreateOrUpdate", "parameters": { "api-version": "2023-05-01-preview", "subscriptionId": "subid", diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendsGet.json b/specification/servicenetworking/ServiceNetworking.Management/examples/FrontendsGet.json similarity index 88% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendsGet.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/FrontendsGet.json index 153b8a097fef..2fcdb0f7f166 100644 --- a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendsGet.json +++ b/specification/servicenetworking/ServiceNetworking.Management/examples/FrontendsGet.json @@ -1,4 +1,6 @@ { + "title": "Get Frontends", + "operationId": "FrontendsInterface_ListByTrafficController", "parameters": { "api-version": "2023-05-01-preview", "subscriptionId": "subid", diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/OperationsList.json b/specification/servicenetworking/ServiceNetworking.Management/examples/OperationsList.json similarity index 90% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/OperationsList.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/OperationsList.json index 77b5a1c07a24..ae78237331ab 100644 --- a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/OperationsList.json +++ b/specification/servicenetworking/ServiceNetworking.Management/examples/OperationsList.json @@ -1,4 +1,6 @@ { + "title": "Get Operations List", + "operationId": "Operations_List", "parameters": { "api-version": "2023-05-01-preview" }, diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerDelete.json b/specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllerDelete.json similarity index 78% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerDelete.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllerDelete.json index dc92539ef6fe..93471e93c64d 100644 --- a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerDelete.json +++ b/specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllerDelete.json @@ -1,4 +1,6 @@ { + "title": "Delete Traffic Controller", + "operationId": "TrafficControllerInterface_Delete", "parameters": { "api-version": "2023-05-01-preview", "subscriptionId": "subid", diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerGet.json b/specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllerGet.json similarity index 92% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerGet.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllerGet.json index 4a9d11c934a7..e0aa98194210 100644 --- a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerGet.json +++ b/specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllerGet.json @@ -1,4 +1,6 @@ { + "operationId": "TrafficControllerInterface_Get", + "title": "Get Traffic Controller", "parameters": { "api-version": "2023-05-01-preview", "subscriptionId": "subid", diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerPatch.json b/specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllerPatch.json similarity index 92% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerPatch.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllerPatch.json index 60c6248f2954..f6687c01f6af 100644 --- a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerPatch.json +++ b/specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllerPatch.json @@ -1,4 +1,6 @@ { + "operationId": "TrafficControllerInterface_Update", + "title": "Patch Traffic Controller", "parameters": { "api-version": "2023-05-01-preview", "subscriptionId": "subid", diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerPut.json b/specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllerPut.json similarity index 95% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerPut.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllerPut.json index 9e693a534023..e22b7a096d44 100644 --- a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerPut.json +++ b/specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllerPut.json @@ -1,4 +1,6 @@ { + "operationId": "TrafficControllerInterface_CreateOrUpdate", + "title": "Put Traffic Controller", "parameters": { "api-version": "2023-05-01-preview", "subscriptionId": "subid", diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllersGet.json b/specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllersGet.json similarity index 92% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllersGet.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllersGet.json index 541e1091dc71..cb92b349fe9f 100644 --- a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllersGet.json +++ b/specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllersGet.json @@ -1,4 +1,6 @@ { + "operationId": "TrafficControllerInterface_ListByResourceGroup", + "title": "Get Traffic Controllers", "parameters": { "api-version": "2023-05-01-preview", "subscriptionId": "subid", diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllersGetList.json b/specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllersGetList.json similarity index 91% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllersGetList.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllersGetList.json index 4c59585a5e65..bb9b767ed59d 100644 --- a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllersGetList.json +++ b/specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllersGetList.json @@ -1,4 +1,6 @@ { + "operationId": "TrafficControllerInterface_ListBySubscription", + "title": "Get Traffic Controllers List", "parameters": { "api-version": "2023-05-01-preview", "subscriptionId": "subid" diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/TrafficController.tsp b/specification/servicenetworking/ServiceNetworking.Management/main.tsp similarity index 94% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/TrafficController.tsp rename to specification/servicenetworking/ServiceNetworking.Management/main.tsp index bea3fc5dd5bc..4c599c07e25c 100644 --- a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/TrafficController.tsp +++ b/specification/servicenetworking/ServiceNetworking.Management/main.tsp @@ -31,6 +31,7 @@ model Frontend is TrackedResource{ @visibility("read") @path @segment("frontends") + @pattern("[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+") name : string; } @@ -38,7 +39,7 @@ model Frontend is TrackedResource{ model FrontendProperties { @visibility("read") @doc("The Fully Qualified Domain Name of the DNS record associated to a Traffic Controller frontend.") - fqdn : string; + fqdn? : string; @visibility("read") @doc("Provisioning State of Traffic Controller Frontend Resource") @@ -54,6 +55,7 @@ model Association is TrackedResource { @doc("Name of Association") @path @segment("associations") + @pattern("[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+") name: string; } @@ -86,6 +88,7 @@ model TrafficController is TrackedResource { @path @segment("trafficControllers") @doc("traffic controller name for path") + @pattern("[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+") name: string; } diff --git a/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml b/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml new file mode 100644 index 000000000000..5785d3d1c879 --- /dev/null +++ b/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml @@ -0,0 +1,8 @@ +emit: + - "@azure-tools/typespec-autorest" +options: + "@azure-tools/typespec-autorest": + azure-resource-provider-folder: "./resource-manager" + emitter-output-dir: "{project-root}/.." + examples-directory: "./examples" + output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/TrafficController.json" diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/package.json b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/package.json deleted file mode 100644 index a0290e00b68a..000000000000 --- a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "trafficcontrollerspec", - "dependencies": { - "@azure-tools/cadl-autorest": "latest", - "@azure-tools/cadl-azure-core": "^0.6.0", - "@azure-tools/cadl-azure-resource-manager": "~0.9.0", - "@azure-tools/cadl-providerhub": "latest", - "@cadl-lang/compiler": "~0.34.0", - "@cadl-lang/openapi3": "^0.14.0", - "@cadl-lang/rest": "^0.16.0", - "@cadl-lang/versioning": "latest" - }, - "private": true -} diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/TrafficController.json b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/TrafficController.json index 7f4174b29403..1fa422151ff7 100644 --- a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/TrafficController.json +++ b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/TrafficController.json @@ -60,11 +60,6 @@ ], "operationId": "Operations_List", "description": "List the operations for the provider", - "x-ms-examples": { - "Get Operations List": { - "$ref": "../../cadl/examples/OperationsList.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -86,6 +81,11 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get Operations List": { + "$ref": "./examples/OperationsList.json" + } } } }, @@ -96,11 +96,6 @@ ], "operationId": "TrafficControllerInterface_ListBySubscription", "description": "List TrafficController resources by subscription ID", - "x-ms-examples": { - "Get Traffic Controllers List": { - "$ref": "../../cadl/examples/TrafficControllersGetList.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -125,6 +120,11 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get Traffic Controllers List": { + "$ref": "./examples/TrafficControllersGetList.json" + } } } }, @@ -135,11 +135,6 @@ ], "operationId": "TrafficControllerInterface_ListByResourceGroup", "description": "List TrafficController resources by resource group", - "x-ms-examples": { - "Get Traffic Controllers": { - "$ref": "../../cadl/examples/TrafficControllersGet.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -167,6 +162,11 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get Traffic Controllers": { + "$ref": "./examples/TrafficControllersGet.json" + } } } }, @@ -177,11 +177,6 @@ ], "operationId": "TrafficControllerInterface_Get", "description": "Get a TrafficController", - "x-ms-examples": { - "Get Traffic Controller": { - "$ref": "../../cadl/examples/TrafficControllerGet.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -197,8 +192,8 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+" + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", + "type": "string" } ], "responses": { @@ -214,6 +209,11 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Get Traffic Controller": { + "$ref": "./examples/TrafficControllerGet.json" + } } }, "put": { @@ -222,11 +222,6 @@ ], "operationId": "TrafficControllerInterface_CreateOrUpdate", "description": "Create a TrafficController", - "x-ms-examples": { - "Put Traffic Controller": { - "$ref": "../../cadl/examples/TrafficControllerPut.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -242,8 +237,8 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+" + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", + "type": "string" }, { "name": "resource", @@ -282,6 +277,11 @@ } } }, + "x-ms-examples": { + "Put Traffic Controller": { + "$ref": "./examples/TrafficControllerPut.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, @@ -293,11 +293,6 @@ ], "operationId": "TrafficControllerInterface_Update", "description": "Update a TrafficController", - "x-ms-examples": { - "Patch Traffic Controller": { - "$ref": "../../cadl/examples/TrafficControllerPatch.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -313,8 +308,8 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+" + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", + "type": "string" }, { "name": "properties", @@ -339,6 +334,11 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Patch Traffic Controller": { + "$ref": "./examples/TrafficControllerPatch.json" + } } }, "delete": { @@ -347,11 +347,6 @@ ], "operationId": "TrafficControllerInterface_Delete", "description": "Delete a TrafficController", - "x-ms-examples": { - "Delete Traffic Controller": { - "$ref": "../../cadl/examples/TrafficControllerDelete.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -367,8 +362,8 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+" + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", + "type": "string" } ], "responses": { @@ -378,14 +373,14 @@ "202": { "description": "Resource deletion accepted.", "headers": { - "Location": { - "description": "The Location header contains the URL where the status of the long running operation can be checked.", - "type": "string" - }, "Retry-After": { "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": "integer", "format": "int32" + }, + "Location": { + "description": "The Location header contains the URL where the status of the long running operation can be checked.", + "type": "string" } } }, @@ -399,6 +394,11 @@ } } }, + "x-ms-examples": { + "Delete Traffic Controller": { + "$ref": "./examples/TrafficControllerDelete.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, @@ -412,11 +412,6 @@ ], "operationId": "AssociationsInterface_ListByTrafficController", "description": "List Association resources by TrafficController", - "x-ms-examples": { - "Get Associations": { - "$ref": "../../cadl/examples/AssociationsGet.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -432,8 +427,8 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+" + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", + "type": "string" } ], "responses": { @@ -452,6 +447,11 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get Associations": { + "$ref": "./examples/AssociationsGet.json" + } } } }, @@ -462,11 +462,6 @@ ], "operationId": "AssociationsInterface_Get", "description": "Get a Association", - "x-ms-examples": { - "Get Association": { - "$ref": "../../cadl/examples/AssociationGet.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -482,16 +477,16 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+" + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", + "type": "string" }, { "name": "associationName", "in": "path", "required": true, "description": "Name of Association", - "type": "string", - "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+" + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", + "type": "string" } ], "responses": { @@ -507,6 +502,11 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Get Association": { + "$ref": "./examples/AssociationGet.json" + } } }, "put": { @@ -515,11 +515,6 @@ ], "operationId": "AssociationsInterface_CreateOrUpdate", "description": "Create a Association", - "x-ms-examples": { - "Put Association": { - "$ref": "../../cadl/examples/AssociationPut.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -535,16 +530,16 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+" + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", + "type": "string" }, { "name": "associationName", "in": "path", "required": true, "description": "Name of Association", - "type": "string", - "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+" + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", + "type": "string" }, { "name": "resource", @@ -583,6 +578,11 @@ } } }, + "x-ms-examples": { + "Put Association": { + "$ref": "./examples/AssociationPut.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, @@ -594,11 +594,6 @@ ], "operationId": "AssociationsInterface_Update", "description": "Update a Association", - "x-ms-examples": { - "Update Association": { - "$ref": "../../cadl/examples/AssociationPatch.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -614,16 +609,16 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+" + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", + "type": "string" }, { "name": "associationName", "in": "path", "required": true, "description": "Name of Association", - "type": "string", - "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+" + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", + "type": "string" }, { "name": "properties", @@ -648,6 +643,11 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Update Association": { + "$ref": "./examples/AssociationPatch.json" + } } }, "delete": { @@ -656,11 +656,6 @@ ], "operationId": "AssociationsInterface_Delete", "description": "Delete a Association", - "x-ms-examples": { - "Delete Association": { - "$ref": "../../cadl/examples/AssociationDelete.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -676,16 +671,16 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+" + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", + "type": "string" }, { "name": "associationName", "in": "path", "required": true, "description": "Name of Association", - "type": "string", - "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+" + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", + "type": "string" } ], "responses": { @@ -716,6 +711,11 @@ } } }, + "x-ms-examples": { + "Delete Association": { + "$ref": "./examples/AssociationDelete.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, @@ -729,11 +729,6 @@ ], "operationId": "FrontendsInterface_ListByTrafficController", "description": "List Frontend resources by TrafficController", - "x-ms-examples": { - "Get Frontends": { - "$ref": "../../cadl/examples/FrontendsGet.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -749,8 +744,8 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+" + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", + "type": "string" } ], "responses": { @@ -769,6 +764,11 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get Frontends": { + "$ref": "./examples/FrontendsGet.json" + } } } }, @@ -779,11 +779,6 @@ ], "operationId": "FrontendsInterface_Get", "description": "Get a Frontend", - "x-ms-examples": { - "Get Frontend": { - "$ref": "../../cadl/examples/FrontendGet.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -799,16 +794,16 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+" + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", + "type": "string" }, { "name": "frontendName", "in": "path", "required": true, "description": "Frontends", - "type": "string", - "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+" + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", + "type": "string" } ], "responses": { @@ -824,6 +819,11 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Get Frontend": { + "$ref": "./examples/FrontendGet.json" + } } }, "put": { @@ -832,11 +832,6 @@ ], "operationId": "FrontendsInterface_CreateOrUpdate", "description": "Create a Frontend", - "x-ms-examples": { - "Put Frontend": { - "$ref": "../../cadl/examples/FrontendPut.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -852,16 +847,16 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+" + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", + "type": "string" }, { "name": "frontendName", "in": "path", "required": true, "description": "Frontends", - "type": "string", - "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+" + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", + "type": "string" }, { "name": "resource", @@ -900,6 +895,11 @@ } } }, + "x-ms-examples": { + "Put Frontend": { + "$ref": "./examples/FrontendPut.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, @@ -911,11 +911,6 @@ ], "operationId": "FrontendsInterface_Update", "description": "Update a Frontend", - "x-ms-examples": { - "Update Frontend": { - "$ref": "../../cadl/examples/FrontendPatch.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -931,16 +926,16 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+" + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", + "type": "string" }, { "name": "frontendName", "in": "path", "required": true, "description": "Frontends", - "type": "string", - "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+" + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", + "type": "string" }, { "name": "properties", @@ -965,6 +960,11 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Update Frontend": { + "$ref": "./examples/FrontendPatch.json" + } } }, "delete": { @@ -973,11 +973,6 @@ ], "operationId": "FrontendsInterface_Delete", "description": "Delete a Frontend", - "x-ms-examples": { - "Delete Frontend": { - "$ref": "../../cadl/examples/FrontendDelete.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -993,16 +988,16 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+" + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", + "type": "string" }, { "name": "frontendName", "in": "path", "required": true, "description": "Frontends", - "type": "string", - "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+" + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", + "type": "string" } ], "responses": { @@ -1033,6 +1028,11 @@ } } }, + "x-ms-examples": { + "Delete Frontend": { + "$ref": "./examples/FrontendDelete.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/AssociationDelete.json b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/AssociationDelete.json new file mode 100644 index 000000000000..9aa802867a3f --- /dev/null +++ b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/AssociationDelete.json @@ -0,0 +1,21 @@ +{ + "title": "Delete Association", + "operationId": "AssociationsInterface_Delete", + "parameters": { + "api-version": "2023-05-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "trafficControllerName": "tc1", + "associationName": "as1" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Retry-After": 3, + "location": "https://blobLocation.com" + } + }, + "204": {} + } +} diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/AssociationGet.json b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/AssociationGet.json new file mode 100644 index 000000000000..bec08807231b --- /dev/null +++ b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/AssociationGet.json @@ -0,0 +1,28 @@ +{ + "title": "Get Association", + "operationId": "AssociationsInterface_Get", + "parameters": { + "api-version": "2023-05-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "trafficControllerName": "tc1", + "associationName": "as1" + }, + "responses": { + "200": { + "body": { + "name": "as1", + "type": "Microsoft.ServiceNetworking/trafficControllers/associations", + "id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1", + "location": "NorthCentralUS", + "properties": { + "associationType": "subnets", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet" + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/AssociationPatch.json b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/AssociationPatch.json new file mode 100644 index 000000000000..4279813b0c5d --- /dev/null +++ b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/AssociationPatch.json @@ -0,0 +1,35 @@ +{ + "title": "Update Association", + "operationId": "AssociationsInterface_Update", + "parameters": { + "api-version": "2023-05-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "trafficControllerName": "tc1", + "associationName": "as1", + "properties": { + "properties": { + "associationType": "subnets", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet" + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "as1", + "type": "Microsoft.ServiceNetworking/trafficControllers/associations", + "id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1", + "location": "NorthCentralUS", + "properties": { + "associationType": "subnets", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet" + } + } + } + } + } +} diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/AssociationPut.json b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/AssociationPut.json new file mode 100644 index 000000000000..0b6879d2dcc8 --- /dev/null +++ b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/AssociationPut.json @@ -0,0 +1,51 @@ +{ + "title": "Put Association", + "operationId": "AssociationsInterface_CreateOrUpdate", + "parameters": { + "api-version": "2023-05-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "trafficControllerName": "tc1", + "associationName": "as1", + "resource": { + "location": "NorthCentralUS", + "properties": { + "associationType": "subnets", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet" + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "associatedvnet-1", + "type": "Microsoft.ServiceNetworking/trafficControllers/associations", + "id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1", + "location": "NorthCentralUS", + "properties": { + "associationType": "subnets", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet" + }, + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "name": "associatedvnet-1", + "type": "Microsoft.ServiceNetworking/trafficControllers/associations", + "id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1", + "location": "NorthCentralUS", + "properties": { + "associationType": "subnets", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet" + } + } + } + } + } +} diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/AssociationsGet.json b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/AssociationsGet.json new file mode 100644 index 000000000000..34216f1bdd28 --- /dev/null +++ b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/AssociationsGet.json @@ -0,0 +1,31 @@ +{ + "title": "Get Associations", + "operationId": "AssociationsInterface_ListByTrafficController", + "parameters": { + "api-version": "2023-05-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "trafficControllerName": "tc1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "as1", + "type": "Microsoft.ServiceNetworking/trafficControllers/associations", + "id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1", + "location": "NorthCentralUS", + "properties": { + "associationType": "subnets", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet" + }, + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/FrontendDelete.json b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/FrontendDelete.json new file mode 100644 index 000000000000..213bc478ac1b --- /dev/null +++ b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/FrontendDelete.json @@ -0,0 +1,21 @@ +{ + "title": "Delete Frontend", + "operationId": "FrontendsInterface_Delete", + "parameters": { + "api-version": "2023-05-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "trafficControllerName": "tc1", + "frontendName": "fe1" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Retry-After": 3, + "location": "https://blobLocation.com" + } + }, + "204": {} + } +} diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/FrontendGet.json b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/FrontendGet.json new file mode 100644 index 000000000000..24851d868291 --- /dev/null +++ b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/FrontendGet.json @@ -0,0 +1,25 @@ +{ + "title": "Get Frontend", + "operationId": "FrontendsInterface_Get", + "parameters": { + "api-version": "2023-05-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "trafficControllerName": "tc1", + "frontendName": "fe1" + }, + "responses": { + "200": { + "body": { + "name": "fe1", + "location": "NorthCentralUS", + "type": "Microsoft.ServiceNetworking/trafficControllers/frontends", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1", + "properties": { + "fqdn": "test.net", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/FrontendPatch.json b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/FrontendPatch.json new file mode 100644 index 000000000000..60653be79c5a --- /dev/null +++ b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/FrontendPatch.json @@ -0,0 +1,26 @@ +{ + "title": "Update Frontend", + "operationId": "FrontendsInterface_Update", + "parameters": { + "api-version": "2023-05-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "trafficControllerName": "tc1", + "frontendName": "fe1", + "properties": {} + }, + "responses": { + "200": { + "body": { + "name": "fe1", + "location": "NorthCentralUS", + "type": "Microsoft.ServiceNetworking/trafficControllers/frontends", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1", + "properties": { + "fqdn": "test.net", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/FrontendPut.json b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/FrontendPut.json new file mode 100644 index 000000000000..92fb63c73884 --- /dev/null +++ b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/FrontendPut.json @@ -0,0 +1,41 @@ +{ + "title": "Put Frontend", + "operationId": "FrontendsInterface_CreateOrUpdate", + "parameters": { + "api-version": "2023-05-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "trafficControllerName": "tc1", + "frontendName": "fe1", + "resource": { + "location": "NorthCentralUS", + "properties": {} + } + }, + "responses": { + "200": { + "body": { + "name": "fe1", + "location": "NorthCentralUS", + "type": "Microsoft.ServiceNetworking/trafficControllers/frontends", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1", + "properties": { + "fqdn": "test.net", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "name": "fe1", + "location": "NorthCentralUS", + "type": "Microsoft.ServiceNetworking/trafficControllers/frontends", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1", + "properties": { + "fqdn": "test.net", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/FrontendsGet.json b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/FrontendsGet.json new file mode 100644 index 000000000000..2fcdb0f7f166 --- /dev/null +++ b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/FrontendsGet.json @@ -0,0 +1,28 @@ +{ + "title": "Get Frontends", + "operationId": "FrontendsInterface_ListByTrafficController", + "parameters": { + "api-version": "2023-05-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "trafficControllerName": "tc1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "fe1", + "location": "NorthCentralUS", + "type": "Microsoft.ServiceNetworking/trafficControllers/frontends", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1", + "properties": { + "fqdn": "test.net", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/OperationsList.json b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/OperationsList.json new file mode 100644 index 000000000000..ae78237331ab --- /dev/null +++ b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/OperationsList.json @@ -0,0 +1,26 @@ +{ + "title": "Get Operations List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2023-05-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.ServiceNetworking/trafficControllers/read", + "isDataAction": false, + "display": { + "provider": "Microsoft Service Networking", + "resource": "Traffic Controller", + "operation": "Get Traffic Controller configuration", + "description": "Traffic Controller is a L7 Load Balancing solution for a Multi Cluster setup" + }, + "origin": "user,system" + } + ] + } + } + } +} diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllerDelete.json b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllerDelete.json new file mode 100644 index 000000000000..93471e93c64d --- /dev/null +++ b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllerDelete.json @@ -0,0 +1,20 @@ +{ + "title": "Delete Traffic Controller", + "operationId": "TrafficControllerInterface_Delete", + "parameters": { + "api-version": "2023-05-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "trafficControllerName": "tc1" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Retry-After": 3, + "location": "https://blobLocation.com" + } + }, + "204": {} + } +} diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllerGet.json b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllerGet.json new file mode 100644 index 000000000000..e0aa98194210 --- /dev/null +++ b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllerGet.json @@ -0,0 +1,39 @@ +{ + "operationId": "TrafficControllerInterface_Get", + "title": "Get Traffic Controller", + "parameters": { + "api-version": "2023-05-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "trafficControllerName": "tc1" + }, + "responses": { + "200": { + "body": { + "name": "tc1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1", + "type": "Microsoft.ServiceNetworking/trafficControllers", + "location": "NorthCentralUS", + "tags": { + "key1": "value1" + }, + "properties": { + "configurationEndpoints": [ + "abc.trafficcontroller.azure.net" + ], + "frontends": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1" + } + ], + "associations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/association/as1" + } + ], + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllerPatch.json b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllerPatch.json new file mode 100644 index 000000000000..f6687c01f6af --- /dev/null +++ b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllerPatch.json @@ -0,0 +1,44 @@ +{ + "operationId": "TrafficControllerInterface_Update", + "title": "Patch Traffic Controller", + "parameters": { + "api-version": "2023-05-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "trafficControllerName": "tc1", + "properties": { + "tags": { + "key1": "value1" + } + } + }, + "responses": { + "200": { + "body": { + "name": "tc1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1", + "type": "Microsoft.ServiceNetworking/trafficControllers", + "location": "NorthCentralUS", + "tags": { + "key1": "value1" + }, + "properties": { + "configurationEndpoints": [ + "abc.trafficcontroller.azure.net" + ], + "frontends": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1" + } + ], + "associations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/association/as1" + } + ], + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllerPut.json b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllerPut.json new file mode 100644 index 000000000000..e22b7a096d44 --- /dev/null +++ b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllerPut.json @@ -0,0 +1,72 @@ +{ + "operationId": "TrafficControllerInterface_CreateOrUpdate", + "title": "Put Traffic Controller", + "parameters": { + "api-version": "2023-05-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "trafficControllerName": "tc1", + "resource": { + "location": "NorthCentralUS", + "tags": { + "key1": "value1" + } + } + }, + "responses": { + "200": { + "body": { + "name": "tc1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1", + "type": "Microsoft.ServiceNetworking/trafficControllers", + "location": "NorthCentralUS", + "tags": { + "key1": "value1" + }, + "properties": { + "configurationEndpoints": [ + "abc.trafficcontroller.azure.net" + ], + "frontends": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1" + } + ], + "associations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/association/as1" + } + ], + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "name": "tc1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1", + "type": "Microsoft.ServiceNetworking/trafficControllers", + "location": "NorthCentralUS", + "tags": { + "key1": "value1" + }, + "properties": { + "configurationEndpoints": [ + "abc.trafficcontroller.azure.net" + ], + "frontends": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1" + } + ], + "associations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/association/as1" + } + ], + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllersGet.json b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllersGet.json new file mode 100644 index 000000000000..cb92b349fe9f --- /dev/null +++ b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllersGet.json @@ -0,0 +1,42 @@ +{ + "operationId": "TrafficControllerInterface_ListByResourceGroup", + "title": "Get Traffic Controllers", + "parameters": { + "api-version": "2023-05-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "tc1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1", + "type": "Microsoft.ServiceNetworking/trafficControllers", + "location": "NorthCentralUS", + "tags": { + "key1": "value1" + }, + "properties": { + "configurationEndpoints": [ + "abc.trafficcontroller.azure.net" + ], + "frontends": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1" + } + ], + "associations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/association/as1" + } + ], + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllersGetList.json b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllersGetList.json new file mode 100644 index 000000000000..bb9b767ed59d --- /dev/null +++ b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllersGetList.json @@ -0,0 +1,41 @@ +{ + "operationId": "TrafficControllerInterface_ListBySubscription", + "title": "Get Traffic Controllers List", + "parameters": { + "api-version": "2023-05-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "tc1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1", + "type": "Microsoft.ServiceNetworking/trafficControllers", + "location": "NorthCentralUS", + "tags": { + "key1": "value1" + }, + "properties": { + "configurationEndpoints": [ + "abc.trafficcontroller.azure.net" + ], + "frontends": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1" + } + ], + "associations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/association/as1" + } + ], + "provisioningState": "Succeeded" + } + } + ] + } + } + } +}