From 52d0822d8fb2cf9519505d349ee89ab1548e5515 Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Fri, 19 May 2023 01:21:06 +0000 Subject: [PATCH 01/12] [TypeSpec CI] Add Microsoft.ServiceNetworking --- eng/pipelines/typespec-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eng/pipelines/typespec-ci.yml b/eng/pipelines/typespec-ci.yml index f895daf53682..9d9ca6a609e6 100644 --- a/eng/pipelines/typespec-ci.yml +++ b/eng/pipelines/typespec-ci.yml @@ -49,6 +49,11 @@ jobs: Folder: specification/cognitiveservices/OpenAI.Inference DisplayName: OpenAI.Inference + - template: templates/steps/typespec-ci.yml + parameters: + Folder: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl + DisplayName: Microsoft.ServiceNetworking + - template: templates/steps/typespec-ci.yml parameters: Folder: specification/translation/Azure.AI.TextTranslation From 3e11c1bce8bb098d4a878f28cd873bc43754dd4a Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Fri, 19 May 2023 21:43:18 +0000 Subject: [PATCH 02/12] Move files to align with repo conventions --- eng/pipelines/typespec-ci.yml | 2 +- .../examples/AssociationDelete.json | 0 .../examples/AssociationGet.json | 0 .../examples/AssociationPatch.json | 0 .../examples/AssociationPut.json | 0 .../examples/AssociationsGet.json | 0 .../examples/FrontendDelete.json | 0 .../examples/FrontendGet.json | 0 .../examples/FrontendPatch.json | 0 .../examples/FrontendPut.json | 0 .../examples/FrontendsGet.json | 0 .../examples/OperationsList.json | 0 .../examples/TrafficControllerDelete.json | 0 .../examples/TrafficControllerGet.json | 0 .../examples/TrafficControllerPatch.json | 0 .../examples/TrafficControllerPut.json | 0 .../examples/TrafficControllersGet.json | 0 .../examples/TrafficControllersGetList.json | 0 .../main.tsp} | 0 .../tspconfig.yaml | 8 + .../cadl/package.json | 14 - .../2023-05-01-preview/TrafficController.json | 404 +++++++----------- .../resource-manager/readme.go.md | 11 - .../resource-manager/readme.md | 72 ---- .../resource-manager/readme.python.md | 19 - .../resource-manager/readme.typescript.md | 13 - 26 files changed, 161 insertions(+), 382 deletions(-) rename specification/servicenetworking/{resource-manager/Microsoft.ServiceNetworking/cadl => Microsoft.ServiceNetworking}/examples/AssociationDelete.json (100%) rename specification/servicenetworking/{resource-manager/Microsoft.ServiceNetworking/cadl => Microsoft.ServiceNetworking}/examples/AssociationGet.json (100%) rename specification/servicenetworking/{resource-manager/Microsoft.ServiceNetworking/cadl => Microsoft.ServiceNetworking}/examples/AssociationPatch.json (100%) rename specification/servicenetworking/{resource-manager/Microsoft.ServiceNetworking/cadl => Microsoft.ServiceNetworking}/examples/AssociationPut.json (100%) rename specification/servicenetworking/{resource-manager/Microsoft.ServiceNetworking/cadl => Microsoft.ServiceNetworking}/examples/AssociationsGet.json (100%) rename specification/servicenetworking/{resource-manager/Microsoft.ServiceNetworking/cadl => Microsoft.ServiceNetworking}/examples/FrontendDelete.json (100%) rename specification/servicenetworking/{resource-manager/Microsoft.ServiceNetworking/cadl => Microsoft.ServiceNetworking}/examples/FrontendGet.json (100%) rename specification/servicenetworking/{resource-manager/Microsoft.ServiceNetworking/cadl => Microsoft.ServiceNetworking}/examples/FrontendPatch.json (100%) rename specification/servicenetworking/{resource-manager/Microsoft.ServiceNetworking/cadl => Microsoft.ServiceNetworking}/examples/FrontendPut.json (100%) rename specification/servicenetworking/{resource-manager/Microsoft.ServiceNetworking/cadl => Microsoft.ServiceNetworking}/examples/FrontendsGet.json (100%) rename specification/servicenetworking/{resource-manager/Microsoft.ServiceNetworking/cadl => Microsoft.ServiceNetworking}/examples/OperationsList.json (100%) rename specification/servicenetworking/{resource-manager/Microsoft.ServiceNetworking/cadl => Microsoft.ServiceNetworking}/examples/TrafficControllerDelete.json (100%) rename specification/servicenetworking/{resource-manager/Microsoft.ServiceNetworking/cadl => Microsoft.ServiceNetworking}/examples/TrafficControllerGet.json (100%) rename specification/servicenetworking/{resource-manager/Microsoft.ServiceNetworking/cadl => Microsoft.ServiceNetworking}/examples/TrafficControllerPatch.json (100%) rename specification/servicenetworking/{resource-manager/Microsoft.ServiceNetworking/cadl => Microsoft.ServiceNetworking}/examples/TrafficControllerPut.json (100%) rename specification/servicenetworking/{resource-manager/Microsoft.ServiceNetworking/cadl => Microsoft.ServiceNetworking}/examples/TrafficControllersGet.json (100%) rename specification/servicenetworking/{resource-manager/Microsoft.ServiceNetworking/cadl => Microsoft.ServiceNetworking}/examples/TrafficControllersGetList.json (100%) rename specification/servicenetworking/{resource-manager/Microsoft.ServiceNetworking/cadl/TrafficController.tsp => Microsoft.ServiceNetworking/main.tsp} (100%) create mode 100644 specification/servicenetworking/Microsoft.ServiceNetworking/tspconfig.yaml delete mode 100644 specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/package.json delete mode 100644 specification/servicenetworking/resource-manager/readme.go.md delete mode 100644 specification/servicenetworking/resource-manager/readme.md delete mode 100644 specification/servicenetworking/resource-manager/readme.python.md delete mode 100644 specification/servicenetworking/resource-manager/readme.typescript.md diff --git a/eng/pipelines/typespec-ci.yml b/eng/pipelines/typespec-ci.yml index 9d9ca6a609e6..d52f4cfbf9b5 100644 --- a/eng/pipelines/typespec-ci.yml +++ b/eng/pipelines/typespec-ci.yml @@ -51,7 +51,7 @@ jobs: - template: templates/steps/typespec-ci.yml parameters: - Folder: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl + Folder: specification/servicenetworking/Microsoft.ServiceNetworking DisplayName: Microsoft.ServiceNetworking - template: templates/steps/typespec-ci.yml diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationDelete.json b/specification/servicenetworking/Microsoft.ServiceNetworking/examples/AssociationDelete.json similarity index 100% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationDelete.json rename to specification/servicenetworking/Microsoft.ServiceNetworking/examples/AssociationDelete.json diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationGet.json b/specification/servicenetworking/Microsoft.ServiceNetworking/examples/AssociationGet.json similarity index 100% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationGet.json rename to specification/servicenetworking/Microsoft.ServiceNetworking/examples/AssociationGet.json diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationPatch.json b/specification/servicenetworking/Microsoft.ServiceNetworking/examples/AssociationPatch.json similarity index 100% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationPatch.json rename to specification/servicenetworking/Microsoft.ServiceNetworking/examples/AssociationPatch.json diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationPut.json b/specification/servicenetworking/Microsoft.ServiceNetworking/examples/AssociationPut.json similarity index 100% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationPut.json rename to specification/servicenetworking/Microsoft.ServiceNetworking/examples/AssociationPut.json diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationsGet.json b/specification/servicenetworking/Microsoft.ServiceNetworking/examples/AssociationsGet.json similarity index 100% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationsGet.json rename to specification/servicenetworking/Microsoft.ServiceNetworking/examples/AssociationsGet.json diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendDelete.json b/specification/servicenetworking/Microsoft.ServiceNetworking/examples/FrontendDelete.json similarity index 100% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendDelete.json rename to specification/servicenetworking/Microsoft.ServiceNetworking/examples/FrontendDelete.json diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendGet.json b/specification/servicenetworking/Microsoft.ServiceNetworking/examples/FrontendGet.json similarity index 100% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendGet.json rename to specification/servicenetworking/Microsoft.ServiceNetworking/examples/FrontendGet.json diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendPatch.json b/specification/servicenetworking/Microsoft.ServiceNetworking/examples/FrontendPatch.json similarity index 100% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendPatch.json rename to specification/servicenetworking/Microsoft.ServiceNetworking/examples/FrontendPatch.json diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendPut.json b/specification/servicenetworking/Microsoft.ServiceNetworking/examples/FrontendPut.json similarity index 100% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendPut.json rename to specification/servicenetworking/Microsoft.ServiceNetworking/examples/FrontendPut.json diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendsGet.json b/specification/servicenetworking/Microsoft.ServiceNetworking/examples/FrontendsGet.json similarity index 100% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendsGet.json rename to specification/servicenetworking/Microsoft.ServiceNetworking/examples/FrontendsGet.json diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/OperationsList.json b/specification/servicenetworking/Microsoft.ServiceNetworking/examples/OperationsList.json similarity index 100% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/OperationsList.json rename to specification/servicenetworking/Microsoft.ServiceNetworking/examples/OperationsList.json diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerDelete.json b/specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllerDelete.json similarity index 100% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerDelete.json rename to specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllerDelete.json diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerGet.json b/specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllerGet.json similarity index 100% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerGet.json rename to specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllerGet.json diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerPatch.json b/specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllerPatch.json similarity index 100% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerPatch.json rename to specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllerPatch.json diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerPut.json b/specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllerPut.json similarity index 100% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerPut.json rename to specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllerPut.json diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllersGet.json b/specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllersGet.json similarity index 100% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllersGet.json rename to specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllersGet.json diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllersGetList.json b/specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllersGetList.json similarity index 100% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllersGetList.json rename to specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllersGetList.json diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/TrafficController.tsp b/specification/servicenetworking/Microsoft.ServiceNetworking/main.tsp similarity index 100% rename from specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/TrafficController.tsp rename to specification/servicenetworking/Microsoft.ServiceNetworking/main.tsp diff --git a/specification/servicenetworking/Microsoft.ServiceNetworking/tspconfig.yaml b/specification/servicenetworking/Microsoft.ServiceNetworking/tspconfig.yaml new file mode 100644 index 000000000000..5785d3d1c879 --- /dev/null +++ b/specification/servicenetworking/Microsoft.ServiceNetworking/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..b9798225f1b8 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,27 +60,22 @@ ], "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" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "ARM operation completed successfully.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" + "$ref": "../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" } }, "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -96,17 +91,12 @@ ], "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" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -119,7 +109,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -135,20 +125,15 @@ ], "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" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" } ], "responses": { @@ -161,7 +146,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -177,28 +162,22 @@ ], "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" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", "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_]+" + "description": "A sequence of textual characters.", + "type": "string" } ], "responses": { @@ -211,7 +190,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -222,28 +201,22 @@ ], "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" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", "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_]+" + "description": "A sequence of textual characters.", + "type": "string" }, { "name": "resource", @@ -266,7 +239,7 @@ "description": "ARM create operation completed successfully.", "headers": { "Retry-After": { - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "description": "A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`)", "type": "integer", "format": "int32" } @@ -278,7 +251,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -293,28 +266,22 @@ ], "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" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", "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_]+" + "description": "A sequence of textual characters.", + "type": "string" }, { "name": "properties", @@ -336,7 +303,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -347,28 +314,22 @@ ], "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" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", "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_]+" + "description": "A sequence of textual characters.", + "type": "string" } ], "responses": { @@ -378,14 +339,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.", + "description": "A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`)", "type": "integer", "format": "int32" + }, + "Location": { + "description": "A sequence of textual characters.", + "type": "string" } } }, @@ -395,7 +356,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -412,28 +373,22 @@ ], "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" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", "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_]+" + "description": "A sequence of textual characters.", + "type": "string" } ], "responses": { @@ -446,7 +401,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -462,36 +417,29 @@ ], "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" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", "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_]+" + "description": "A sequence of textual characters.", + "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_]+" + "description": "A sequence of textual characters.", + "type": "string" } ], "responses": { @@ -504,7 +452,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -515,36 +463,29 @@ ], "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" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", "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_]+" + "description": "A sequence of textual characters.", + "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_]+" + "description": "A sequence of textual characters.", + "type": "string" }, { "name": "resource", @@ -567,7 +508,7 @@ "description": "ARM create operation completed successfully.", "headers": { "Retry-After": { - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "description": "A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`)", "type": "integer", "format": "int32" } @@ -579,7 +520,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -594,36 +535,29 @@ ], "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" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", "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_]+" + "description": "A sequence of textual characters.", + "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_]+" + "description": "A sequence of textual characters.", + "type": "string" }, { "name": "properties", @@ -645,7 +579,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -656,36 +590,29 @@ ], "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" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", "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_]+" + "description": "A sequence of textual characters.", + "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_]+" + "description": "A sequence of textual characters.", + "type": "string" } ], "responses": { @@ -696,12 +623,12 @@ "description": "Resource deletion accepted.", "headers": { "Retry-After": { - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "description": "A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`)", "type": "integer", "format": "int32" }, "Location": { - "description": "The Location header contains the URL where the status of the long running operation can be checked.", + "description": "A sequence of textual characters.", "type": "string" } } @@ -712,7 +639,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -729,28 +656,22 @@ ], "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" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", "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_]+" + "description": "A sequence of textual characters.", + "type": "string" } ], "responses": { @@ -763,7 +684,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -779,36 +700,29 @@ ], "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" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", "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_]+" + "description": "A sequence of textual characters.", + "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_]+" + "description": "A sequence of textual characters.", + "type": "string" } ], "responses": { @@ -821,7 +735,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -832,36 +746,29 @@ ], "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" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", "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_]+" + "description": "A sequence of textual characters.", + "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_]+" + "description": "A sequence of textual characters.", + "type": "string" }, { "name": "resource", @@ -884,7 +791,7 @@ "description": "ARM create operation completed successfully.", "headers": { "Retry-After": { - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "description": "A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`)", "type": "integer", "format": "int32" } @@ -896,7 +803,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -911,36 +818,29 @@ ], "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" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", "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_]+" + "description": "A sequence of textual characters.", + "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_]+" + "description": "A sequence of textual characters.", + "type": "string" }, { "name": "properties", @@ -962,7 +862,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -973,36 +873,29 @@ ], "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" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", "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_]+" + "description": "A sequence of textual characters.", + "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_]+" + "description": "A sequence of textual characters.", + "type": "string" } ], "responses": { @@ -1013,12 +906,12 @@ "description": "Resource deletion accepted.", "headers": { "Retry-After": { - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "description": "A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`)", "type": "integer", "format": "int32" }, "Location": { - "description": "The Location header contains the URL where the status of the long running operation can be checked.", + "description": "A sequence of textual characters.", "type": "string" } } @@ -1029,7 +922,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -1057,7 +950,7 @@ "description": "Association Subresource of Traffic Controller", "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } ] }, @@ -1069,8 +962,8 @@ "items": { "$ref": "#/definitions/Association" }, - "x-typespec-name": "Association[]", - "description": "The Association items on this page" + "description": "The Association items on this page", + "x-typespec-name": "Association[]" }, "nextLink": { "type": "string", @@ -1145,10 +1038,11 @@ "tags": { "type": "object", "additionalProperties": { - "type": "string" + "type": "string", + "description": "A sequence of textual characters." }, - "x-typespec-name": "Record", - "description": "Resource tags." + "description": "Resource tags.", + "x-typespec-name": "Record" }, "properties": { "$ref": "#/definitions/AssociationUpdateProperties", @@ -1187,7 +1081,7 @@ "description": "Frontend Subresource of Traffic Controller.", "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } ] }, @@ -1199,8 +1093,8 @@ "items": { "$ref": "#/definitions/Frontend" }, - "x-typespec-name": "Frontend[]", - "description": "The Frontend items on this page" + "description": "The Frontend items on this page", + "x-typespec-name": "Frontend[]" }, "nextLink": { "type": "string", @@ -1228,7 +1122,10 @@ "readOnly": true } }, - "description": "Frontend Properties." + "description": "Frontend Properties.", + "required": [ + "fqdn" + ] }, "FrontendUpdate": { "type": "object", @@ -1236,10 +1133,11 @@ "tags": { "type": "object", "additionalProperties": { - "type": "string" + "type": "string", + "description": "A sequence of textual characters." }, - "x-typespec-name": "Record", - "description": "Resource tags." + "description": "Resource tags.", + "x-typespec-name": "Record" } }, "description": "The type used for update operations of the Frontend." @@ -1289,7 +1187,7 @@ "description": "Concrete tracked resource types can be created by aliasing this type using a specific property type.", "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } ] }, @@ -1301,8 +1199,8 @@ "items": { "$ref": "#/definitions/TrafficController" }, - "x-typespec-name": "TrafficController[]", - "description": "The TrafficController items on this page" + "description": "The TrafficController items on this page", + "x-typespec-name": "TrafficController[]" }, "nextLink": { "type": "string", @@ -1322,10 +1220,11 @@ "configurationEndpoints": { "type": "array", "items": { - "type": "string" + "type": "string", + "description": "A sequence of textual characters." }, - "x-typespec-name": "string[]", "description": "Configuration Endpoints.", + "x-typespec-name": "string[]", "readOnly": true }, "frontends": { @@ -1333,8 +1232,8 @@ "items": { "$ref": "#/definitions/ResourceId" }, - "x-typespec-name": "ResourceId[]", "description": "Frontends References List", + "x-typespec-name": "ResourceId[]", "readOnly": true }, "associations": { @@ -1342,8 +1241,8 @@ "items": { "$ref": "#/definitions/ResourceId" }, - "x-typespec-name": "ResourceId[]", "description": "Associations References List", + "x-typespec-name": "ResourceId[]", "readOnly": true }, "provisioningState": { @@ -1360,10 +1259,11 @@ "tags": { "type": "object", "additionalProperties": { - "type": "string" + "type": "string", + "description": "A sequence of textual characters." }, - "x-typespec-name": "Record", - "description": "Resource tags." + "description": "Resource tags.", + "x-typespec-name": "Record" } }, "description": "The type used for update operations of the TrafficController." diff --git a/specification/servicenetworking/resource-manager/readme.go.md b/specification/servicenetworking/resource-manager/readme.go.md deleted file mode 100644 index 67c77490c4e8..000000000000 --- a/specification/servicenetworking/resource-manager/readme.go.md +++ /dev/null @@ -1,11 +0,0 @@ -## Go - -These settings apply only when `--go` is specified on the command line. - -``` yaml $(go) && $(track2) -license-header: MICROSOFT_MIT_NO_VERSION -module-name: sdk/resourcemanager/servicenetworking/armservicenetworking -module: github.com/Azure/azure-sdk-for-go/$(module-name) -output-folder: $(go-sdk-folder)/$(module-name) -azure-arm: true -``` diff --git a/specification/servicenetworking/resource-manager/readme.md b/specification/servicenetworking/resource-manager/readme.md deleted file mode 100644 index 1ef67b2f3ffe..000000000000 --- a/specification/servicenetworking/resource-manager/readme.md +++ /dev/null @@ -1,72 +0,0 @@ -# servicenetworking - -> see https://aka.ms/autorest - -This is the AutoRest configuration file for servicenetworking. - -## Getting Started - -To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: - -> `autorest readme.md` - -To see additional help and options, run: - -> `autorest --help` - -For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. - ---- - -## Configuration - -### Basic Information - -These are the global settings for the servicenetworking. - - -```yaml -openapi-type: arm -tag: package-2023-05-01-preview -``` - -### Tag: package-2023-05-01-preview - -These settings apply only when `--tag=package-2023-05-01-preview` is specified on the command line. - -```yaml $(tag) == 'package-2023-05-01-preview' -input-file: - - Microsoft.ServiceNetworking/preview/2023-05-01-preview/TrafficController.json -openapi-type: arm -tag: package-2023-05-01-preview -``` - -### Tag: package-2022-10-01-preview - -These settings apply only when `--tag=package-2022-10-01-preview` is specified on the command line. - -```yaml $(tag) == 'package-2022-10-01-preview' -input-file: - - Microsoft.ServiceNetworking/preview/2022-10-01-preview/TrafficController.json -``` - -# Code Generation - -## Swagger to SDK - -This section describes what SDK should be generated by the automatic system. -This is not used by Autorest itself. - -```yaml $(swagger-to-sdk) -swagger-to-sdk: - - repo: azure-sdk-for-python-track2 - - repo: azure-sdk-for-go -``` - -## Python - -See configuration in [readme.python.md](./readme.python.md) - -## Go - -See configuration in [readme.go.md](./readme.go.md) \ No newline at end of file diff --git a/specification/servicenetworking/resource-manager/readme.python.md b/specification/servicenetworking/resource-manager/readme.python.md deleted file mode 100644 index 74d23f91f8cb..000000000000 --- a/specification/servicenetworking/resource-manager/readme.python.md +++ /dev/null @@ -1,19 +0,0 @@ -## Python - -These settings apply only when `--python` is specified on the command line. -Please also specify `--python-sdks-folder=`. - -``` yaml $(python) -title: ServiceNetworkingMgmtClient -azure-arm: true -license-header: MICROSOFT_MIT_NO_VERSION -package-name: azure-mgmt-servicenetworking -namespace: azure.mgmt.servicenetworking -package-version: 1.0.0b1 -clear-output-folder: true -``` - -``` yaml $(python) -no-namespace-folders: true -output-folder: $(python-sdks-folder)/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking -``` diff --git a/specification/servicenetworking/resource-manager/readme.typescript.md b/specification/servicenetworking/resource-manager/readme.typescript.md deleted file mode 100644 index 400b06bbc0aa..000000000000 --- a/specification/servicenetworking/resource-manager/readme.typescript.md +++ /dev/null @@ -1,13 +0,0 @@ -## TypeScript - -These settings apply only when `--typescript` is specified on the command line. -Please also specify `--typescript-sdks-folder=`. - -``` yaml $(typescript) -typescript: - azure-arm: true - package-name: "@azure/arm-servicenetworking" - output-folder: "$(typescript-sdks-folder)/sdk/servicenetworking/arm-servicenetworking" - generate-metadata: true -title: ServiceNetworkingManagementClient -``` From 42eeafbb8fb84da481558be338a0e7a8487e1297 Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Fri, 19 May 2023 22:50:35 +0000 Subject: [PATCH 03/12] Restore README files --- .../resource-manager/readme.go.md | 11 +++ .../resource-manager/readme.md | 72 +++++++++++++++++++ .../resource-manager/readme.python.md | 19 +++++ .../resource-manager/readme.typescript.md | 13 ++++ 4 files changed, 115 insertions(+) create mode 100644 specification/servicenetworking/resource-manager/readme.go.md create mode 100644 specification/servicenetworking/resource-manager/readme.md create mode 100644 specification/servicenetworking/resource-manager/readme.python.md create mode 100644 specification/servicenetworking/resource-manager/readme.typescript.md diff --git a/specification/servicenetworking/resource-manager/readme.go.md b/specification/servicenetworking/resource-manager/readme.go.md new file mode 100644 index 000000000000..67c77490c4e8 --- /dev/null +++ b/specification/servicenetworking/resource-manager/readme.go.md @@ -0,0 +1,11 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +``` yaml $(go) && $(track2) +license-header: MICROSOFT_MIT_NO_VERSION +module-name: sdk/resourcemanager/servicenetworking/armservicenetworking +module: github.com/Azure/azure-sdk-for-go/$(module-name) +output-folder: $(go-sdk-folder)/$(module-name) +azure-arm: true +``` diff --git a/specification/servicenetworking/resource-manager/readme.md b/specification/servicenetworking/resource-manager/readme.md new file mode 100644 index 000000000000..1ef67b2f3ffe --- /dev/null +++ b/specification/servicenetworking/resource-manager/readme.md @@ -0,0 +1,72 @@ +# servicenetworking + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for servicenetworking. + +## Getting Started + +To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: + +> `autorest readme.md` + +To see additional help and options, run: + +> `autorest --help` + +For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. + +--- + +## Configuration + +### Basic Information + +These are the global settings for the servicenetworking. + + +```yaml +openapi-type: arm +tag: package-2023-05-01-preview +``` + +### Tag: package-2023-05-01-preview + +These settings apply only when `--tag=package-2023-05-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2023-05-01-preview' +input-file: + - Microsoft.ServiceNetworking/preview/2023-05-01-preview/TrafficController.json +openapi-type: arm +tag: package-2023-05-01-preview +``` + +### Tag: package-2022-10-01-preview + +These settings apply only when `--tag=package-2022-10-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2022-10-01-preview' +input-file: + - Microsoft.ServiceNetworking/preview/2022-10-01-preview/TrafficController.json +``` + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +```yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python-track2 + - repo: azure-sdk-for-go +``` + +## Python + +See configuration in [readme.python.md](./readme.python.md) + +## Go + +See configuration in [readme.go.md](./readme.go.md) \ No newline at end of file diff --git a/specification/servicenetworking/resource-manager/readme.python.md b/specification/servicenetworking/resource-manager/readme.python.md new file mode 100644 index 000000000000..74d23f91f8cb --- /dev/null +++ b/specification/servicenetworking/resource-manager/readme.python.md @@ -0,0 +1,19 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(python) +title: ServiceNetworkingMgmtClient +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-servicenetworking +namespace: azure.mgmt.servicenetworking +package-version: 1.0.0b1 +clear-output-folder: true +``` + +``` yaml $(python) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking +``` diff --git a/specification/servicenetworking/resource-manager/readme.typescript.md b/specification/servicenetworking/resource-manager/readme.typescript.md new file mode 100644 index 000000000000..400b06bbc0aa --- /dev/null +++ b/specification/servicenetworking/resource-manager/readme.typescript.md @@ -0,0 +1,13 @@ +## TypeScript + +These settings apply only when `--typescript` is specified on the command line. +Please also specify `--typescript-sdks-folder=`. + +``` yaml $(typescript) +typescript: + azure-arm: true + package-name: "@azure/arm-servicenetworking" + output-folder: "$(typescript-sdks-folder)/sdk/servicenetworking/arm-servicenetworking" + generate-metadata: true +title: ServiceNetworkingManagementClient +``` From 56caac1e0a88661e0b7b03576a053bbd2755ad61 Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Fri, 19 May 2023 23:19:03 +0000 Subject: [PATCH 04/12] Add arm-types-dir --- .../servicenetworking/Microsoft.ServiceNetworking/tspconfig.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/servicenetworking/Microsoft.ServiceNetworking/tspconfig.yaml b/specification/servicenetworking/Microsoft.ServiceNetworking/tspconfig.yaml index 5785d3d1c879..a1f5974475ea 100644 --- a/specification/servicenetworking/Microsoft.ServiceNetworking/tspconfig.yaml +++ b/specification/servicenetworking/Microsoft.ServiceNetworking/tspconfig.yaml @@ -2,6 +2,7 @@ emit: - "@azure-tools/typespec-autorest" options: "@azure-tools/typespec-autorest": + arm-types-dir: ../../../../../common-types/resource-management azure-resource-provider-folder: "./resource-manager" emitter-output-dir: "{project-root}/.." examples-directory: "./examples" From de72737cf246be64842de3f083aa35618c95a7d4 Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Fri, 19 May 2023 23:23:43 +0000 Subject: [PATCH 05/12] Update $ref paths --- .../2023-05-01-preview/TrafficController.json | 138 +++++++++--------- 1 file changed, 69 insertions(+), 69 deletions(-) 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 b9798225f1b8..3d60c8215ceb 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 @@ -62,20 +62,20 @@ "description": "List the operations for the provider", "parameters": [ { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "ARM operation completed successfully.", "schema": { - "$ref": "../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" } }, "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -93,10 +93,10 @@ "description": "List TrafficController resources by subscription ID", "parameters": [ { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -109,7 +109,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -127,13 +127,13 @@ "description": "List TrafficController resources by resource group", "parameters": [ { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" } ], "responses": { @@ -146,7 +146,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -164,13 +164,13 @@ "description": "Get a TrafficController", "parameters": [ { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", @@ -190,7 +190,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -203,13 +203,13 @@ "description": "Create a TrafficController", "parameters": [ { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", @@ -251,7 +251,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -268,13 +268,13 @@ "description": "Update a TrafficController", "parameters": [ { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", @@ -303,7 +303,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -316,13 +316,13 @@ "description": "Delete a TrafficController", "parameters": [ { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", @@ -356,7 +356,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -375,13 +375,13 @@ "description": "List Association resources by TrafficController", "parameters": [ { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", @@ -401,7 +401,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -419,13 +419,13 @@ "description": "Get a Association", "parameters": [ { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", @@ -452,7 +452,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -465,13 +465,13 @@ "description": "Create a Association", "parameters": [ { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", @@ -520,7 +520,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -537,13 +537,13 @@ "description": "Update a Association", "parameters": [ { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", @@ -579,7 +579,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -592,13 +592,13 @@ "description": "Delete a Association", "parameters": [ { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", @@ -639,7 +639,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -658,13 +658,13 @@ "description": "List Frontend resources by TrafficController", "parameters": [ { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", @@ -684,7 +684,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -702,13 +702,13 @@ "description": "Get a Frontend", "parameters": [ { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", @@ -735,7 +735,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -748,13 +748,13 @@ "description": "Create a Frontend", "parameters": [ { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", @@ -803,7 +803,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -820,13 +820,13 @@ "description": "Update a Frontend", "parameters": [ { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", @@ -862,7 +862,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } @@ -875,13 +875,13 @@ "description": "Delete a Frontend", "parameters": [ { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "trafficControllerName", @@ -922,7 +922,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -950,7 +950,7 @@ "description": "Association Subresource of Traffic Controller", "allOf": [ { - "$ref": "../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } ] }, @@ -1081,7 +1081,7 @@ "description": "Frontend Subresource of Traffic Controller.", "allOf": [ { - "$ref": "../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } ] }, @@ -1187,7 +1187,7 @@ "description": "Concrete tracked resource types can be created by aliasing this type using a specific property type.", "allOf": [ { - "$ref": "../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } ] }, From f4d6e2e545eb30f8a0c353d3b07f513e12237346 Mon Sep 17 00:00:00 2001 From: Mark Cowlishaw Date: Fri, 19 May 2023 17:18:53 -0700 Subject: [PATCH 06/12] Updating ServiceNetworking --- .../examples/AssociationDelete.json | 2 + .../examples/AssociationGet.json | 2 + .../examples/AssociationPatch.json | 2 + .../examples/AssociationPut.json | 2 + .../examples/AssociationsGet.json | 2 + .../examples/FrontendDelete.json | 2 + .../examples/FrontendGet.json | 2 + .../examples/FrontendPatch.json | 2 + .../examples/FrontendPut.json | 2 + .../examples/FrontendsGet.json | 2 + .../examples/OperationsList.json | 2 + .../examples/TrafficControllerDelete.json | 2 + .../examples/TrafficControllerGet.json | 2 + .../examples/TrafficControllerPatch.json | 2 + .../examples/TrafficControllerPut.json | 2 + .../examples/TrafficControllersGet.json | 2 + .../examples/TrafficControllersGetList.json | 2 + .../main.tsp | 0 .../tspconfig.yaml | 0 .../2023-05-01-preview/TrafficController.json | 189 +++++++++++++----- .../examples/AssociationDelete.json | 21 ++ .../examples/AssociationGet.json | 28 +++ .../examples/AssociationPatch.json | 35 ++++ .../examples/AssociationPut.json | 51 +++++ .../examples/AssociationsGet.json | 31 +++ .../examples/FrontendDelete.json | 21 ++ .../examples/FrontendGet.json | 25 +++ .../examples/FrontendPatch.json | 26 +++ .../examples/FrontendPut.json | 41 ++++ .../examples/FrontendsGet.json | 28 +++ .../examples/OperationsList.json | 26 +++ .../examples/TrafficControllerDelete.json | 20 ++ .../examples/TrafficControllerGet.json | 39 ++++ .../examples/TrafficControllerPatch.json | 44 ++++ .../examples/TrafficControllerPut.json | 72 +++++++ .../examples/TrafficControllersGet.json | 42 ++++ .../examples/TrafficControllersGetList.json | 41 ++++ 37 files changed, 760 insertions(+), 54 deletions(-) rename specification/servicenetworking/{Microsoft.ServiceNetworking => Management.ServiceNetworking}/examples/AssociationDelete.json (81%) rename specification/servicenetworking/{Microsoft.ServiceNetworking => Management.ServiceNetworking}/examples/AssociationGet.json (91%) rename specification/servicenetworking/{Microsoft.ServiceNetworking => Management.ServiceNetworking}/examples/AssociationPatch.json (92%) rename specification/servicenetworking/{Microsoft.ServiceNetworking => Management.ServiceNetworking}/examples/AssociationPut.json (95%) rename specification/servicenetworking/{Microsoft.ServiceNetworking => Management.ServiceNetworking}/examples/AssociationsGet.json (90%) rename specification/servicenetworking/{Microsoft.ServiceNetworking => Management.ServiceNetworking}/examples/FrontendDelete.json (82%) rename specification/servicenetworking/{Microsoft.ServiceNetworking => Management.ServiceNetworking}/examples/FrontendGet.json (90%) rename specification/servicenetworking/{Microsoft.ServiceNetworking => Management.ServiceNetworking}/examples/FrontendPatch.json (89%) rename specification/servicenetworking/{Microsoft.ServiceNetworking => Management.ServiceNetworking}/examples/FrontendPut.json (93%) rename specification/servicenetworking/{Microsoft.ServiceNetworking => Management.ServiceNetworking}/examples/FrontendsGet.json (88%) rename specification/servicenetworking/{Microsoft.ServiceNetworking => Management.ServiceNetworking}/examples/OperationsList.json (90%) rename specification/servicenetworking/{Microsoft.ServiceNetworking => Management.ServiceNetworking}/examples/TrafficControllerDelete.json (78%) rename specification/servicenetworking/{Microsoft.ServiceNetworking => Management.ServiceNetworking}/examples/TrafficControllerGet.json (92%) rename specification/servicenetworking/{Microsoft.ServiceNetworking => Management.ServiceNetworking}/examples/TrafficControllerPatch.json (92%) rename specification/servicenetworking/{Microsoft.ServiceNetworking => Management.ServiceNetworking}/examples/TrafficControllerPut.json (95%) rename specification/servicenetworking/{Microsoft.ServiceNetworking => Management.ServiceNetworking}/examples/TrafficControllersGet.json (92%) rename specification/servicenetworking/{Microsoft.ServiceNetworking => Management.ServiceNetworking}/examples/TrafficControllersGetList.json (91%) rename specification/servicenetworking/{Microsoft.ServiceNetworking => Management.ServiceNetworking}/main.tsp (100%) rename specification/servicenetworking/{Microsoft.ServiceNetworking => Management.ServiceNetworking}/tspconfig.yaml (100%) create mode 100644 specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/AssociationDelete.json create mode 100644 specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/AssociationGet.json create mode 100644 specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/AssociationPatch.json create mode 100644 specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/AssociationPut.json create mode 100644 specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/AssociationsGet.json create mode 100644 specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/FrontendDelete.json create mode 100644 specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/FrontendGet.json create mode 100644 specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/FrontendPatch.json create mode 100644 specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/FrontendPut.json create mode 100644 specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/FrontendsGet.json create mode 100644 specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/OperationsList.json create mode 100644 specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllerDelete.json create mode 100644 specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllerGet.json create mode 100644 specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllerPatch.json create mode 100644 specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllerPut.json create mode 100644 specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllersGet.json create mode 100644 specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/examples/TrafficControllersGetList.json diff --git a/specification/servicenetworking/Microsoft.ServiceNetworking/examples/AssociationDelete.json b/specification/servicenetworking/Management.ServiceNetworking/examples/AssociationDelete.json similarity index 81% rename from specification/servicenetworking/Microsoft.ServiceNetworking/examples/AssociationDelete.json rename to specification/servicenetworking/Management.ServiceNetworking/examples/AssociationDelete.json index 1828d1f1aa4f..9aa802867a3f 100644 --- a/specification/servicenetworking/Microsoft.ServiceNetworking/examples/AssociationDelete.json +++ b/specification/servicenetworking/Management.ServiceNetworking/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/Microsoft.ServiceNetworking/examples/AssociationGet.json b/specification/servicenetworking/Management.ServiceNetworking/examples/AssociationGet.json similarity index 91% rename from specification/servicenetworking/Microsoft.ServiceNetworking/examples/AssociationGet.json rename to specification/servicenetworking/Management.ServiceNetworking/examples/AssociationGet.json index 7a61eb85fc28..bec08807231b 100644 --- a/specification/servicenetworking/Microsoft.ServiceNetworking/examples/AssociationGet.json +++ b/specification/servicenetworking/Management.ServiceNetworking/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/Microsoft.ServiceNetworking/examples/AssociationPatch.json b/specification/servicenetworking/Management.ServiceNetworking/examples/AssociationPatch.json similarity index 92% rename from specification/servicenetworking/Microsoft.ServiceNetworking/examples/AssociationPatch.json rename to specification/servicenetworking/Management.ServiceNetworking/examples/AssociationPatch.json index e3c4c25bb2f4..4279813b0c5d 100644 --- a/specification/servicenetworking/Microsoft.ServiceNetworking/examples/AssociationPatch.json +++ b/specification/servicenetworking/Management.ServiceNetworking/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/Microsoft.ServiceNetworking/examples/AssociationPut.json b/specification/servicenetworking/Management.ServiceNetworking/examples/AssociationPut.json similarity index 95% rename from specification/servicenetworking/Microsoft.ServiceNetworking/examples/AssociationPut.json rename to specification/servicenetworking/Management.ServiceNetworking/examples/AssociationPut.json index 7cae6c94c2dc..0b6879d2dcc8 100644 --- a/specification/servicenetworking/Microsoft.ServiceNetworking/examples/AssociationPut.json +++ b/specification/servicenetworking/Management.ServiceNetworking/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/Microsoft.ServiceNetworking/examples/AssociationsGet.json b/specification/servicenetworking/Management.ServiceNetworking/examples/AssociationsGet.json similarity index 90% rename from specification/servicenetworking/Microsoft.ServiceNetworking/examples/AssociationsGet.json rename to specification/servicenetworking/Management.ServiceNetworking/examples/AssociationsGet.json index be8f02adb581..34216f1bdd28 100644 --- a/specification/servicenetworking/Microsoft.ServiceNetworking/examples/AssociationsGet.json +++ b/specification/servicenetworking/Management.ServiceNetworking/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/Microsoft.ServiceNetworking/examples/FrontendDelete.json b/specification/servicenetworking/Management.ServiceNetworking/examples/FrontendDelete.json similarity index 82% rename from specification/servicenetworking/Microsoft.ServiceNetworking/examples/FrontendDelete.json rename to specification/servicenetworking/Management.ServiceNetworking/examples/FrontendDelete.json index 7e53a06ae0a7..213bc478ac1b 100644 --- a/specification/servicenetworking/Microsoft.ServiceNetworking/examples/FrontendDelete.json +++ b/specification/servicenetworking/Management.ServiceNetworking/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/Microsoft.ServiceNetworking/examples/FrontendGet.json b/specification/servicenetworking/Management.ServiceNetworking/examples/FrontendGet.json similarity index 90% rename from specification/servicenetworking/Microsoft.ServiceNetworking/examples/FrontendGet.json rename to specification/servicenetworking/Management.ServiceNetworking/examples/FrontendGet.json index edb1a876bc81..24851d868291 100644 --- a/specification/servicenetworking/Microsoft.ServiceNetworking/examples/FrontendGet.json +++ b/specification/servicenetworking/Management.ServiceNetworking/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/Microsoft.ServiceNetworking/examples/FrontendPatch.json b/specification/servicenetworking/Management.ServiceNetworking/examples/FrontendPatch.json similarity index 89% rename from specification/servicenetworking/Microsoft.ServiceNetworking/examples/FrontendPatch.json rename to specification/servicenetworking/Management.ServiceNetworking/examples/FrontendPatch.json index 300b96911152..60653be79c5a 100644 --- a/specification/servicenetworking/Microsoft.ServiceNetworking/examples/FrontendPatch.json +++ b/specification/servicenetworking/Management.ServiceNetworking/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/Microsoft.ServiceNetworking/examples/FrontendPut.json b/specification/servicenetworking/Management.ServiceNetworking/examples/FrontendPut.json similarity index 93% rename from specification/servicenetworking/Microsoft.ServiceNetworking/examples/FrontendPut.json rename to specification/servicenetworking/Management.ServiceNetworking/examples/FrontendPut.json index 5a4463d12cdb..92fb63c73884 100644 --- a/specification/servicenetworking/Microsoft.ServiceNetworking/examples/FrontendPut.json +++ b/specification/servicenetworking/Management.ServiceNetworking/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/Microsoft.ServiceNetworking/examples/FrontendsGet.json b/specification/servicenetworking/Management.ServiceNetworking/examples/FrontendsGet.json similarity index 88% rename from specification/servicenetworking/Microsoft.ServiceNetworking/examples/FrontendsGet.json rename to specification/servicenetworking/Management.ServiceNetworking/examples/FrontendsGet.json index 153b8a097fef..2fcdb0f7f166 100644 --- a/specification/servicenetworking/Microsoft.ServiceNetworking/examples/FrontendsGet.json +++ b/specification/servicenetworking/Management.ServiceNetworking/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/Microsoft.ServiceNetworking/examples/OperationsList.json b/specification/servicenetworking/Management.ServiceNetworking/examples/OperationsList.json similarity index 90% rename from specification/servicenetworking/Microsoft.ServiceNetworking/examples/OperationsList.json rename to specification/servicenetworking/Management.ServiceNetworking/examples/OperationsList.json index 77b5a1c07a24..ae78237331ab 100644 --- a/specification/servicenetworking/Microsoft.ServiceNetworking/examples/OperationsList.json +++ b/specification/servicenetworking/Management.ServiceNetworking/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/Microsoft.ServiceNetworking/examples/TrafficControllerDelete.json b/specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllerDelete.json similarity index 78% rename from specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllerDelete.json rename to specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllerDelete.json index dc92539ef6fe..93471e93c64d 100644 --- a/specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllerDelete.json +++ b/specification/servicenetworking/Management.ServiceNetworking/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/Microsoft.ServiceNetworking/examples/TrafficControllerGet.json b/specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllerGet.json similarity index 92% rename from specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllerGet.json rename to specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllerGet.json index 4a9d11c934a7..e0aa98194210 100644 --- a/specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllerGet.json +++ b/specification/servicenetworking/Management.ServiceNetworking/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/Microsoft.ServiceNetworking/examples/TrafficControllerPatch.json b/specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllerPatch.json similarity index 92% rename from specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllerPatch.json rename to specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllerPatch.json index 60c6248f2954..f6687c01f6af 100644 --- a/specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllerPatch.json +++ b/specification/servicenetworking/Management.ServiceNetworking/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/Microsoft.ServiceNetworking/examples/TrafficControllerPut.json b/specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllerPut.json similarity index 95% rename from specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllerPut.json rename to specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllerPut.json index 9e693a534023..e22b7a096d44 100644 --- a/specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllerPut.json +++ b/specification/servicenetworking/Management.ServiceNetworking/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/Microsoft.ServiceNetworking/examples/TrafficControllersGet.json b/specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllersGet.json similarity index 92% rename from specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllersGet.json rename to specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllersGet.json index 541e1091dc71..cb92b349fe9f 100644 --- a/specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllersGet.json +++ b/specification/servicenetworking/Management.ServiceNetworking/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/Microsoft.ServiceNetworking/examples/TrafficControllersGetList.json b/specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllersGetList.json similarity index 91% rename from specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllersGetList.json rename to specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllersGetList.json index 4c59585a5e65..bb9b767ed59d 100644 --- a/specification/servicenetworking/Microsoft.ServiceNetworking/examples/TrafficControllersGetList.json +++ b/specification/servicenetworking/Management.ServiceNetworking/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/Microsoft.ServiceNetworking/main.tsp b/specification/servicenetworking/Management.ServiceNetworking/main.tsp similarity index 100% rename from specification/servicenetworking/Microsoft.ServiceNetworking/main.tsp rename to specification/servicenetworking/Management.ServiceNetworking/main.tsp diff --git a/specification/servicenetworking/Microsoft.ServiceNetworking/tspconfig.yaml b/specification/servicenetworking/Management.ServiceNetworking/tspconfig.yaml similarity index 100% rename from specification/servicenetworking/Microsoft.ServiceNetworking/tspconfig.yaml rename to specification/servicenetworking/Management.ServiceNetworking/tspconfig.yaml 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 3d60c8215ceb..79541ada796a 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 @@ -81,6 +81,11 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get Operations List": { + "$ref": "./examples/OperationsList.json" + } } } }, @@ -115,6 +120,11 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get Traffic Controllers List": { + "$ref": "./examples/TrafficControllersGetList.json" + } } } }, @@ -152,6 +162,11 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get Traffic Controllers": { + "$ref": "./examples/TrafficControllersGet.json" + } } } }, @@ -176,7 +191,7 @@ "name": "trafficControllerName", "in": "path", "required": true, - "description": "A sequence of textual characters.", + "description": "traffic controller name for path", "type": "string" } ], @@ -193,6 +208,11 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Get Traffic Controller": { + "$ref": "./examples/TrafficControllerGet.json" + } } }, "put": { @@ -215,7 +235,7 @@ "name": "trafficControllerName", "in": "path", "required": true, - "description": "A sequence of textual characters.", + "description": "traffic controller name for path", "type": "string" }, { @@ -239,7 +259,7 @@ "description": "ARM create operation completed successfully.", "headers": { "Retry-After": { - "description": "A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`)", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": "integer", "format": "int32" } @@ -255,6 +275,11 @@ } } }, + "x-ms-examples": { + "Put Traffic Controller": { + "$ref": "./examples/TrafficControllerPut.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, @@ -280,7 +305,7 @@ "name": "trafficControllerName", "in": "path", "required": true, - "description": "A sequence of textual characters.", + "description": "traffic controller name for path", "type": "string" }, { @@ -306,6 +331,11 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Patch Traffic Controller": { + "$ref": "./examples/TrafficControllerPatch.json" + } } }, "delete": { @@ -328,7 +358,7 @@ "name": "trafficControllerName", "in": "path", "required": true, - "description": "A sequence of textual characters.", + "description": "traffic controller name for path", "type": "string" } ], @@ -340,12 +370,12 @@ "description": "Resource deletion accepted.", "headers": { "Retry-After": { - "description": "A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`)", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": "integer", "format": "int32" }, "Location": { - "description": "A sequence of textual characters.", + "description": "The Location header contains the URL where the status of the long running operation can be checked.", "type": "string" } } @@ -360,6 +390,11 @@ } } }, + "x-ms-examples": { + "Delete Traffic Controller": { + "$ref": "./examples/TrafficControllerDelete.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, @@ -387,7 +422,7 @@ "name": "trafficControllerName", "in": "path", "required": true, - "description": "A sequence of textual characters.", + "description": "traffic controller name for path", "type": "string" } ], @@ -407,6 +442,11 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get Associations": { + "$ref": "./examples/AssociationsGet.json" + } } } }, @@ -431,14 +471,14 @@ "name": "trafficControllerName", "in": "path", "required": true, - "description": "A sequence of textual characters.", + "description": "traffic controller name for path", "type": "string" }, { "name": "associationName", "in": "path", "required": true, - "description": "A sequence of textual characters.", + "description": "Name of Association", "type": "string" } ], @@ -455,6 +495,11 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Get Association": { + "$ref": "./examples/AssociationGet.json" + } } }, "put": { @@ -477,14 +522,14 @@ "name": "trafficControllerName", "in": "path", "required": true, - "description": "A sequence of textual characters.", + "description": "traffic controller name for path", "type": "string" }, { "name": "associationName", "in": "path", "required": true, - "description": "A sequence of textual characters.", + "description": "Name of Association", "type": "string" }, { @@ -508,7 +553,7 @@ "description": "ARM create operation completed successfully.", "headers": { "Retry-After": { - "description": "A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`)", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": "integer", "format": "int32" } @@ -524,6 +569,11 @@ } } }, + "x-ms-examples": { + "Put Association": { + "$ref": "./examples/AssociationPut.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, @@ -549,14 +599,14 @@ "name": "trafficControllerName", "in": "path", "required": true, - "description": "A sequence of textual characters.", + "description": "traffic controller name for path", "type": "string" }, { "name": "associationName", "in": "path", "required": true, - "description": "A sequence of textual characters.", + "description": "Name of Association", "type": "string" }, { @@ -582,6 +632,11 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Update Association": { + "$ref": "./examples/AssociationPatch.json" + } } }, "delete": { @@ -604,14 +659,14 @@ "name": "trafficControllerName", "in": "path", "required": true, - "description": "A sequence of textual characters.", + "description": "traffic controller name for path", "type": "string" }, { "name": "associationName", "in": "path", "required": true, - "description": "A sequence of textual characters.", + "description": "Name of Association", "type": "string" } ], @@ -623,12 +678,12 @@ "description": "Resource deletion accepted.", "headers": { "Retry-After": { - "description": "A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`)", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": "integer", "format": "int32" }, "Location": { - "description": "A sequence of textual characters.", + "description": "The Location header contains the URL where the status of the long running operation can be checked.", "type": "string" } } @@ -643,6 +698,11 @@ } } }, + "x-ms-examples": { + "Delete Association": { + "$ref": "./examples/AssociationDelete.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, @@ -670,7 +730,7 @@ "name": "trafficControllerName", "in": "path", "required": true, - "description": "A sequence of textual characters.", + "description": "traffic controller name for path", "type": "string" } ], @@ -690,6 +750,11 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get Frontends": { + "$ref": "./examples/FrontendsGet.json" + } } } }, @@ -714,14 +779,14 @@ "name": "trafficControllerName", "in": "path", "required": true, - "description": "A sequence of textual characters.", + "description": "traffic controller name for path", "type": "string" }, { "name": "frontendName", "in": "path", "required": true, - "description": "A sequence of textual characters.", + "description": "Frontends", "type": "string" } ], @@ -738,6 +803,11 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Get Frontend": { + "$ref": "./examples/FrontendGet.json" + } } }, "put": { @@ -760,14 +830,14 @@ "name": "trafficControllerName", "in": "path", "required": true, - "description": "A sequence of textual characters.", + "description": "traffic controller name for path", "type": "string" }, { "name": "frontendName", "in": "path", "required": true, - "description": "A sequence of textual characters.", + "description": "Frontends", "type": "string" }, { @@ -791,7 +861,7 @@ "description": "ARM create operation completed successfully.", "headers": { "Retry-After": { - "description": "A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`)", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": "integer", "format": "int32" } @@ -807,6 +877,11 @@ } } }, + "x-ms-examples": { + "Put Frontend": { + "$ref": "./examples/FrontendPut.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, @@ -832,14 +907,14 @@ "name": "trafficControllerName", "in": "path", "required": true, - "description": "A sequence of textual characters.", + "description": "traffic controller name for path", "type": "string" }, { "name": "frontendName", "in": "path", "required": true, - "description": "A sequence of textual characters.", + "description": "Frontends", "type": "string" }, { @@ -865,6 +940,11 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Update Frontend": { + "$ref": "./examples/FrontendPatch.json" + } } }, "delete": { @@ -887,14 +967,14 @@ "name": "trafficControllerName", "in": "path", "required": true, - "description": "A sequence of textual characters.", + "description": "traffic controller name for path", "type": "string" }, { "name": "frontendName", "in": "path", "required": true, - "description": "A sequence of textual characters.", + "description": "Frontends", "type": "string" } ], @@ -906,12 +986,12 @@ "description": "Resource deletion accepted.", "headers": { "Retry-After": { - "description": "A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`)", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": "integer", "format": "int32" }, "Location": { - "description": "A sequence of textual characters.", + "description": "The Location header contains the URL where the status of the long running operation can be checked.", "type": "string" } } @@ -926,6 +1006,11 @@ } } }, + "x-ms-examples": { + "Delete Frontend": { + "$ref": "./examples/FrontendDelete.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, @@ -962,8 +1047,8 @@ "items": { "$ref": "#/definitions/Association" }, - "description": "The Association items on this page", - "x-typespec-name": "Association[]" + "x-typespec-name": "Association[]", + "description": "The Association items on this page" }, "nextLink": { "type": "string", @@ -1038,11 +1123,10 @@ "tags": { "type": "object", "additionalProperties": { - "type": "string", - "description": "A sequence of textual characters." + "type": "string" }, - "description": "Resource tags.", - "x-typespec-name": "Record" + "x-typespec-name": "Record", + "description": "Resource tags." }, "properties": { "$ref": "#/definitions/AssociationUpdateProperties", @@ -1093,8 +1177,8 @@ "items": { "$ref": "#/definitions/Frontend" }, - "description": "The Frontend items on this page", - "x-typespec-name": "Frontend[]" + "x-typespec-name": "Frontend[]", + "description": "The Frontend items on this page" }, "nextLink": { "type": "string", @@ -1133,11 +1217,10 @@ "tags": { "type": "object", "additionalProperties": { - "type": "string", - "description": "A sequence of textual characters." + "type": "string" }, - "description": "Resource tags.", - "x-typespec-name": "Record" + "x-typespec-name": "Record", + "description": "Resource tags." } }, "description": "The type used for update operations of the Frontend." @@ -1199,8 +1282,8 @@ "items": { "$ref": "#/definitions/TrafficController" }, - "description": "The TrafficController items on this page", - "x-typespec-name": "TrafficController[]" + "x-typespec-name": "TrafficController[]", + "description": "The TrafficController items on this page" }, "nextLink": { "type": "string", @@ -1220,11 +1303,10 @@ "configurationEndpoints": { "type": "array", "items": { - "type": "string", - "description": "A sequence of textual characters." + "type": "string" }, - "description": "Configuration Endpoints.", "x-typespec-name": "string[]", + "description": "Configuration Endpoints.", "readOnly": true }, "frontends": { @@ -1232,8 +1314,8 @@ "items": { "$ref": "#/definitions/ResourceId" }, - "description": "Frontends References List", "x-typespec-name": "ResourceId[]", + "description": "Frontends References List", "readOnly": true }, "associations": { @@ -1241,8 +1323,8 @@ "items": { "$ref": "#/definitions/ResourceId" }, - "description": "Associations References List", "x-typespec-name": "ResourceId[]", + "description": "Associations References List", "readOnly": true }, "provisioningState": { @@ -1259,11 +1341,10 @@ "tags": { "type": "object", "additionalProperties": { - "type": "string", - "description": "A sequence of textual characters." + "type": "string" }, - "description": "Resource tags.", - "x-typespec-name": "Record" + "x-typespec-name": "Record", + "description": "Resource tags." } }, "description": "The type used for update operations of the TrafficController." 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" + } + } + ] + } + } + } +} From cae63b48e9f99ce6f876e3d7a567126255cec94f Mon Sep 17 00:00:00 2001 From: Mark Cowlishaw Date: Fri, 19 May 2023 17:26:00 -0700 Subject: [PATCH 07/12] Updating for pattern and optionality --- .../Management.ServiceNetworking/main.tsp | 5 +++- .../2023-05-01-preview/TrafficController.json | 27 ++++++++++++++++--- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/specification/servicenetworking/Management.ServiceNetworking/main.tsp b/specification/servicenetworking/Management.ServiceNetworking/main.tsp index bea3fc5dd5bc..4c599c07e25c 100644 --- a/specification/servicenetworking/Management.ServiceNetworking/main.tsp +++ b/specification/servicenetworking/Management.ServiceNetworking/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/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 79541ada796a..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 @@ -192,6 +192,7 @@ "in": "path", "required": true, "description": "traffic controller name for path", + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", "type": "string" } ], @@ -236,6 +237,7 @@ "in": "path", "required": true, "description": "traffic controller name for path", + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", "type": "string" }, { @@ -306,6 +308,7 @@ "in": "path", "required": true, "description": "traffic controller name for path", + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", "type": "string" }, { @@ -359,6 +362,7 @@ "in": "path", "required": true, "description": "traffic controller name for path", + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", "type": "string" } ], @@ -423,6 +427,7 @@ "in": "path", "required": true, "description": "traffic controller name for path", + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", "type": "string" } ], @@ -472,6 +477,7 @@ "in": "path", "required": true, "description": "traffic controller name for path", + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", "type": "string" }, { @@ -479,6 +485,7 @@ "in": "path", "required": true, "description": "Name of Association", + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", "type": "string" } ], @@ -523,6 +530,7 @@ "in": "path", "required": true, "description": "traffic controller name for path", + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", "type": "string" }, { @@ -530,6 +538,7 @@ "in": "path", "required": true, "description": "Name of Association", + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", "type": "string" }, { @@ -600,6 +609,7 @@ "in": "path", "required": true, "description": "traffic controller name for path", + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", "type": "string" }, { @@ -607,6 +617,7 @@ "in": "path", "required": true, "description": "Name of Association", + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", "type": "string" }, { @@ -660,6 +671,7 @@ "in": "path", "required": true, "description": "traffic controller name for path", + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", "type": "string" }, { @@ -667,6 +679,7 @@ "in": "path", "required": true, "description": "Name of Association", + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", "type": "string" } ], @@ -731,6 +744,7 @@ "in": "path", "required": true, "description": "traffic controller name for path", + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", "type": "string" } ], @@ -780,6 +794,7 @@ "in": "path", "required": true, "description": "traffic controller name for path", + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", "type": "string" }, { @@ -787,6 +802,7 @@ "in": "path", "required": true, "description": "Frontends", + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", "type": "string" } ], @@ -831,6 +847,7 @@ "in": "path", "required": true, "description": "traffic controller name for path", + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", "type": "string" }, { @@ -838,6 +855,7 @@ "in": "path", "required": true, "description": "Frontends", + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", "type": "string" }, { @@ -908,6 +926,7 @@ "in": "path", "required": true, "description": "traffic controller name for path", + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", "type": "string" }, { @@ -915,6 +934,7 @@ "in": "path", "required": true, "description": "Frontends", + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", "type": "string" }, { @@ -968,6 +988,7 @@ "in": "path", "required": true, "description": "traffic controller name for path", + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", "type": "string" }, { @@ -975,6 +996,7 @@ "in": "path", "required": true, "description": "Frontends", + "pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+", "type": "string" } ], @@ -1206,10 +1228,7 @@ "readOnly": true } }, - "description": "Frontend Properties.", - "required": [ - "fqdn" - ] + "description": "Frontend Properties." }, "FrontendUpdate": { "type": "object", From 707a59c5e53c572ddcc769f80e814acdb0955fb3 Mon Sep 17 00:00:00 2001 From: Mark Cowlishaw Date: Fri, 19 May 2023 17:31:20 -0700 Subject: [PATCH 08/12] Renaming directory properly this time --- .../examples/AssociationDelete.json | 0 .../examples/AssociationGet.json | 0 .../examples/AssociationPatch.json | 0 .../examples/AssociationPut.json | 0 .../examples/AssociationsGet.json | 0 .../examples/FrontendDelete.json | 0 .../examples/FrontendGet.json | 0 .../examples/FrontendPatch.json | 0 .../examples/FrontendPut.json | 0 .../examples/FrontendsGet.json | 0 .../examples/OperationsList.json | 0 .../examples/TrafficControllerDelete.json | 0 .../examples/TrafficControllerGet.json | 0 .../examples/TrafficControllerPatch.json | 0 .../examples/TrafficControllerPut.json | 0 .../examples/TrafficControllersGet.json | 0 .../examples/TrafficControllersGetList.json | 0 .../main.tsp | 0 .../tspconfig.yaml | 0 19 files changed, 0 insertions(+), 0 deletions(-) rename specification/servicenetworking/{Management.ServiceNetworking => serviceNetworking.Management}/examples/AssociationDelete.json (100%) rename specification/servicenetworking/{Management.ServiceNetworking => serviceNetworking.Management}/examples/AssociationGet.json (100%) rename specification/servicenetworking/{Management.ServiceNetworking => serviceNetworking.Management}/examples/AssociationPatch.json (100%) rename specification/servicenetworking/{Management.ServiceNetworking => serviceNetworking.Management}/examples/AssociationPut.json (100%) rename specification/servicenetworking/{Management.ServiceNetworking => serviceNetworking.Management}/examples/AssociationsGet.json (100%) rename specification/servicenetworking/{Management.ServiceNetworking => serviceNetworking.Management}/examples/FrontendDelete.json (100%) rename specification/servicenetworking/{Management.ServiceNetworking => serviceNetworking.Management}/examples/FrontendGet.json (100%) rename specification/servicenetworking/{Management.ServiceNetworking => serviceNetworking.Management}/examples/FrontendPatch.json (100%) rename specification/servicenetworking/{Management.ServiceNetworking => serviceNetworking.Management}/examples/FrontendPut.json (100%) rename specification/servicenetworking/{Management.ServiceNetworking => serviceNetworking.Management}/examples/FrontendsGet.json (100%) rename specification/servicenetworking/{Management.ServiceNetworking => serviceNetworking.Management}/examples/OperationsList.json (100%) rename specification/servicenetworking/{Management.ServiceNetworking => serviceNetworking.Management}/examples/TrafficControllerDelete.json (100%) rename specification/servicenetworking/{Management.ServiceNetworking => serviceNetworking.Management}/examples/TrafficControllerGet.json (100%) rename specification/servicenetworking/{Management.ServiceNetworking => serviceNetworking.Management}/examples/TrafficControllerPatch.json (100%) rename specification/servicenetworking/{Management.ServiceNetworking => serviceNetworking.Management}/examples/TrafficControllerPut.json (100%) rename specification/servicenetworking/{Management.ServiceNetworking => serviceNetworking.Management}/examples/TrafficControllersGet.json (100%) rename specification/servicenetworking/{Management.ServiceNetworking => serviceNetworking.Management}/examples/TrafficControllersGetList.json (100%) rename specification/servicenetworking/{Management.ServiceNetworking => serviceNetworking.Management}/main.tsp (100%) rename specification/servicenetworking/{Management.ServiceNetworking => serviceNetworking.Management}/tspconfig.yaml (100%) diff --git a/specification/servicenetworking/Management.ServiceNetworking/examples/AssociationDelete.json b/specification/servicenetworking/serviceNetworking.Management/examples/AssociationDelete.json similarity index 100% rename from specification/servicenetworking/Management.ServiceNetworking/examples/AssociationDelete.json rename to specification/servicenetworking/serviceNetworking.Management/examples/AssociationDelete.json diff --git a/specification/servicenetworking/Management.ServiceNetworking/examples/AssociationGet.json b/specification/servicenetworking/serviceNetworking.Management/examples/AssociationGet.json similarity index 100% rename from specification/servicenetworking/Management.ServiceNetworking/examples/AssociationGet.json rename to specification/servicenetworking/serviceNetworking.Management/examples/AssociationGet.json diff --git a/specification/servicenetworking/Management.ServiceNetworking/examples/AssociationPatch.json b/specification/servicenetworking/serviceNetworking.Management/examples/AssociationPatch.json similarity index 100% rename from specification/servicenetworking/Management.ServiceNetworking/examples/AssociationPatch.json rename to specification/servicenetworking/serviceNetworking.Management/examples/AssociationPatch.json diff --git a/specification/servicenetworking/Management.ServiceNetworking/examples/AssociationPut.json b/specification/servicenetworking/serviceNetworking.Management/examples/AssociationPut.json similarity index 100% rename from specification/servicenetworking/Management.ServiceNetworking/examples/AssociationPut.json rename to specification/servicenetworking/serviceNetworking.Management/examples/AssociationPut.json diff --git a/specification/servicenetworking/Management.ServiceNetworking/examples/AssociationsGet.json b/specification/servicenetworking/serviceNetworking.Management/examples/AssociationsGet.json similarity index 100% rename from specification/servicenetworking/Management.ServiceNetworking/examples/AssociationsGet.json rename to specification/servicenetworking/serviceNetworking.Management/examples/AssociationsGet.json diff --git a/specification/servicenetworking/Management.ServiceNetworking/examples/FrontendDelete.json b/specification/servicenetworking/serviceNetworking.Management/examples/FrontendDelete.json similarity index 100% rename from specification/servicenetworking/Management.ServiceNetworking/examples/FrontendDelete.json rename to specification/servicenetworking/serviceNetworking.Management/examples/FrontendDelete.json diff --git a/specification/servicenetworking/Management.ServiceNetworking/examples/FrontendGet.json b/specification/servicenetworking/serviceNetworking.Management/examples/FrontendGet.json similarity index 100% rename from specification/servicenetworking/Management.ServiceNetworking/examples/FrontendGet.json rename to specification/servicenetworking/serviceNetworking.Management/examples/FrontendGet.json diff --git a/specification/servicenetworking/Management.ServiceNetworking/examples/FrontendPatch.json b/specification/servicenetworking/serviceNetworking.Management/examples/FrontendPatch.json similarity index 100% rename from specification/servicenetworking/Management.ServiceNetworking/examples/FrontendPatch.json rename to specification/servicenetworking/serviceNetworking.Management/examples/FrontendPatch.json diff --git a/specification/servicenetworking/Management.ServiceNetworking/examples/FrontendPut.json b/specification/servicenetworking/serviceNetworking.Management/examples/FrontendPut.json similarity index 100% rename from specification/servicenetworking/Management.ServiceNetworking/examples/FrontendPut.json rename to specification/servicenetworking/serviceNetworking.Management/examples/FrontendPut.json diff --git a/specification/servicenetworking/Management.ServiceNetworking/examples/FrontendsGet.json b/specification/servicenetworking/serviceNetworking.Management/examples/FrontendsGet.json similarity index 100% rename from specification/servicenetworking/Management.ServiceNetworking/examples/FrontendsGet.json rename to specification/servicenetworking/serviceNetworking.Management/examples/FrontendsGet.json diff --git a/specification/servicenetworking/Management.ServiceNetworking/examples/OperationsList.json b/specification/servicenetworking/serviceNetworking.Management/examples/OperationsList.json similarity index 100% rename from specification/servicenetworking/Management.ServiceNetworking/examples/OperationsList.json rename to specification/servicenetworking/serviceNetworking.Management/examples/OperationsList.json diff --git a/specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllerDelete.json b/specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllerDelete.json similarity index 100% rename from specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllerDelete.json rename to specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllerDelete.json diff --git a/specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllerGet.json b/specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllerGet.json similarity index 100% rename from specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllerGet.json rename to specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllerGet.json diff --git a/specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllerPatch.json b/specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllerPatch.json similarity index 100% rename from specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllerPatch.json rename to specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllerPatch.json diff --git a/specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllerPut.json b/specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllerPut.json similarity index 100% rename from specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllerPut.json rename to specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllerPut.json diff --git a/specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllersGet.json b/specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllersGet.json similarity index 100% rename from specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllersGet.json rename to specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllersGet.json diff --git a/specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllersGetList.json b/specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllersGetList.json similarity index 100% rename from specification/servicenetworking/Management.ServiceNetworking/examples/TrafficControllersGetList.json rename to specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllersGetList.json diff --git a/specification/servicenetworking/Management.ServiceNetworking/main.tsp b/specification/servicenetworking/serviceNetworking.Management/main.tsp similarity index 100% rename from specification/servicenetworking/Management.ServiceNetworking/main.tsp rename to specification/servicenetworking/serviceNetworking.Management/main.tsp diff --git a/specification/servicenetworking/Management.ServiceNetworking/tspconfig.yaml b/specification/servicenetworking/serviceNetworking.Management/tspconfig.yaml similarity index 100% rename from specification/servicenetworking/Management.ServiceNetworking/tspconfig.yaml rename to specification/servicenetworking/serviceNetworking.Management/tspconfig.yaml From 3cb56e82bbad7978e26e8409824fde6d15bb1e0c Mon Sep 17 00:00:00 2001 From: Mark Cowlishaw Date: Fri, 19 May 2023 17:40:57 -0700 Subject: [PATCH 09/12] Fix pipeline directory --- eng/pipelines/typespec-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/typespec-ci.yml b/eng/pipelines/typespec-ci.yml index d52f4cfbf9b5..cfd2d115e4f2 100644 --- a/eng/pipelines/typespec-ci.yml +++ b/eng/pipelines/typespec-ci.yml @@ -51,7 +51,7 @@ jobs: - template: templates/steps/typespec-ci.yml parameters: - Folder: specification/servicenetworking/Microsoft.ServiceNetworking + Folder: specification/servicenetworking/ServiceNetworking.Management DisplayName: Microsoft.ServiceNetworking - template: templates/steps/typespec-ci.yml From 73e488d5dc2e13d78ab35a9f25134b61f5df9b34 Mon Sep 17 00:00:00 2001 From: Mark Cowlishaw Date: Fri, 19 May 2023 17:45:51 -0700 Subject: [PATCH 10/12] renaming --- .../examples/AssociationDelete.json | 0 .../examples/AssociationGet.json | 0 .../examples/AssociationPatch.json | 0 .../examples/AssociationPut.json | 0 .../examples/AssociationsGet.json | 0 .../examples/FrontendDelete.json | 0 .../examples/FrontendGet.json | 0 .../examples/FrontendPatch.json | 0 .../examples/FrontendPut.json | 0 .../examples/FrontendsGet.json | 0 .../examples/OperationsList.json | 0 .../examples/TrafficControllerDelete.json | 0 .../examples/TrafficControllerGet.json | 0 .../examples/TrafficControllerPatch.json | 0 .../examples/TrafficControllerPut.json | 0 .../examples/TrafficControllersGet.json | 0 .../examples/TrafficControllersGetList.json | 0 .../{serviceNetworking.Management => foo}/main.tsp | 0 .../{serviceNetworking.Management => foo}/tspconfig.yaml | 0 19 files changed, 0 insertions(+), 0 deletions(-) rename specification/servicenetworking/{serviceNetworking.Management => foo}/examples/AssociationDelete.json (100%) rename specification/servicenetworking/{serviceNetworking.Management => foo}/examples/AssociationGet.json (100%) rename specification/servicenetworking/{serviceNetworking.Management => foo}/examples/AssociationPatch.json (100%) rename specification/servicenetworking/{serviceNetworking.Management => foo}/examples/AssociationPut.json (100%) rename specification/servicenetworking/{serviceNetworking.Management => foo}/examples/AssociationsGet.json (100%) rename specification/servicenetworking/{serviceNetworking.Management => foo}/examples/FrontendDelete.json (100%) rename specification/servicenetworking/{serviceNetworking.Management => foo}/examples/FrontendGet.json (100%) rename specification/servicenetworking/{serviceNetworking.Management => foo}/examples/FrontendPatch.json (100%) rename specification/servicenetworking/{serviceNetworking.Management => foo}/examples/FrontendPut.json (100%) rename specification/servicenetworking/{serviceNetworking.Management => foo}/examples/FrontendsGet.json (100%) rename specification/servicenetworking/{serviceNetworking.Management => foo}/examples/OperationsList.json (100%) rename specification/servicenetworking/{serviceNetworking.Management => foo}/examples/TrafficControllerDelete.json (100%) rename specification/servicenetworking/{serviceNetworking.Management => foo}/examples/TrafficControllerGet.json (100%) rename specification/servicenetworking/{serviceNetworking.Management => foo}/examples/TrafficControllerPatch.json (100%) rename specification/servicenetworking/{serviceNetworking.Management => foo}/examples/TrafficControllerPut.json (100%) rename specification/servicenetworking/{serviceNetworking.Management => foo}/examples/TrafficControllersGet.json (100%) rename specification/servicenetworking/{serviceNetworking.Management => foo}/examples/TrafficControllersGetList.json (100%) rename specification/servicenetworking/{serviceNetworking.Management => foo}/main.tsp (100%) rename specification/servicenetworking/{serviceNetworking.Management => foo}/tspconfig.yaml (100%) diff --git a/specification/servicenetworking/serviceNetworking.Management/examples/AssociationDelete.json b/specification/servicenetworking/foo/examples/AssociationDelete.json similarity index 100% rename from specification/servicenetworking/serviceNetworking.Management/examples/AssociationDelete.json rename to specification/servicenetworking/foo/examples/AssociationDelete.json diff --git a/specification/servicenetworking/serviceNetworking.Management/examples/AssociationGet.json b/specification/servicenetworking/foo/examples/AssociationGet.json similarity index 100% rename from specification/servicenetworking/serviceNetworking.Management/examples/AssociationGet.json rename to specification/servicenetworking/foo/examples/AssociationGet.json diff --git a/specification/servicenetworking/serviceNetworking.Management/examples/AssociationPatch.json b/specification/servicenetworking/foo/examples/AssociationPatch.json similarity index 100% rename from specification/servicenetworking/serviceNetworking.Management/examples/AssociationPatch.json rename to specification/servicenetworking/foo/examples/AssociationPatch.json diff --git a/specification/servicenetworking/serviceNetworking.Management/examples/AssociationPut.json b/specification/servicenetworking/foo/examples/AssociationPut.json similarity index 100% rename from specification/servicenetworking/serviceNetworking.Management/examples/AssociationPut.json rename to specification/servicenetworking/foo/examples/AssociationPut.json diff --git a/specification/servicenetworking/serviceNetworking.Management/examples/AssociationsGet.json b/specification/servicenetworking/foo/examples/AssociationsGet.json similarity index 100% rename from specification/servicenetworking/serviceNetworking.Management/examples/AssociationsGet.json rename to specification/servicenetworking/foo/examples/AssociationsGet.json diff --git a/specification/servicenetworking/serviceNetworking.Management/examples/FrontendDelete.json b/specification/servicenetworking/foo/examples/FrontendDelete.json similarity index 100% rename from specification/servicenetworking/serviceNetworking.Management/examples/FrontendDelete.json rename to specification/servicenetworking/foo/examples/FrontendDelete.json diff --git a/specification/servicenetworking/serviceNetworking.Management/examples/FrontendGet.json b/specification/servicenetworking/foo/examples/FrontendGet.json similarity index 100% rename from specification/servicenetworking/serviceNetworking.Management/examples/FrontendGet.json rename to specification/servicenetworking/foo/examples/FrontendGet.json diff --git a/specification/servicenetworking/serviceNetworking.Management/examples/FrontendPatch.json b/specification/servicenetworking/foo/examples/FrontendPatch.json similarity index 100% rename from specification/servicenetworking/serviceNetworking.Management/examples/FrontendPatch.json rename to specification/servicenetworking/foo/examples/FrontendPatch.json diff --git a/specification/servicenetworking/serviceNetworking.Management/examples/FrontendPut.json b/specification/servicenetworking/foo/examples/FrontendPut.json similarity index 100% rename from specification/servicenetworking/serviceNetworking.Management/examples/FrontendPut.json rename to specification/servicenetworking/foo/examples/FrontendPut.json diff --git a/specification/servicenetworking/serviceNetworking.Management/examples/FrontendsGet.json b/specification/servicenetworking/foo/examples/FrontendsGet.json similarity index 100% rename from specification/servicenetworking/serviceNetworking.Management/examples/FrontendsGet.json rename to specification/servicenetworking/foo/examples/FrontendsGet.json diff --git a/specification/servicenetworking/serviceNetworking.Management/examples/OperationsList.json b/specification/servicenetworking/foo/examples/OperationsList.json similarity index 100% rename from specification/servicenetworking/serviceNetworking.Management/examples/OperationsList.json rename to specification/servicenetworking/foo/examples/OperationsList.json diff --git a/specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllerDelete.json b/specification/servicenetworking/foo/examples/TrafficControllerDelete.json similarity index 100% rename from specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllerDelete.json rename to specification/servicenetworking/foo/examples/TrafficControllerDelete.json diff --git a/specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllerGet.json b/specification/servicenetworking/foo/examples/TrafficControllerGet.json similarity index 100% rename from specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllerGet.json rename to specification/servicenetworking/foo/examples/TrafficControllerGet.json diff --git a/specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllerPatch.json b/specification/servicenetworking/foo/examples/TrafficControllerPatch.json similarity index 100% rename from specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllerPatch.json rename to specification/servicenetworking/foo/examples/TrafficControllerPatch.json diff --git a/specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllerPut.json b/specification/servicenetworking/foo/examples/TrafficControllerPut.json similarity index 100% rename from specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllerPut.json rename to specification/servicenetworking/foo/examples/TrafficControllerPut.json diff --git a/specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllersGet.json b/specification/servicenetworking/foo/examples/TrafficControllersGet.json similarity index 100% rename from specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllersGet.json rename to specification/servicenetworking/foo/examples/TrafficControllersGet.json diff --git a/specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllersGetList.json b/specification/servicenetworking/foo/examples/TrafficControllersGetList.json similarity index 100% rename from specification/servicenetworking/serviceNetworking.Management/examples/TrafficControllersGetList.json rename to specification/servicenetworking/foo/examples/TrafficControllersGetList.json diff --git a/specification/servicenetworking/serviceNetworking.Management/main.tsp b/specification/servicenetworking/foo/main.tsp similarity index 100% rename from specification/servicenetworking/serviceNetworking.Management/main.tsp rename to specification/servicenetworking/foo/main.tsp diff --git a/specification/servicenetworking/serviceNetworking.Management/tspconfig.yaml b/specification/servicenetworking/foo/tspconfig.yaml similarity index 100% rename from specification/servicenetworking/serviceNetworking.Management/tspconfig.yaml rename to specification/servicenetworking/foo/tspconfig.yaml From 431154d66abcac7a7b1c5a1feb3d10a0edaee4c1 Mon Sep 17 00:00:00 2001 From: Mark Cowlishaw Date: Fri, 19 May 2023 17:46:34 -0700 Subject: [PATCH 11/12] And renaming --- .../examples/AssociationDelete.json | 0 .../examples/AssociationGet.json | 0 .../examples/AssociationPatch.json | 0 .../examples/AssociationPut.json | 0 .../examples/AssociationsGet.json | 0 .../examples/FrontendDelete.json | 0 .../examples/FrontendGet.json | 0 .../examples/FrontendPatch.json | 0 .../examples/FrontendPut.json | 0 .../examples/FrontendsGet.json | 0 .../examples/OperationsList.json | 0 .../examples/TrafficControllerDelete.json | 0 .../examples/TrafficControllerGet.json | 0 .../examples/TrafficControllerPatch.json | 0 .../examples/TrafficControllerPut.json | 0 .../examples/TrafficControllersGet.json | 0 .../examples/TrafficControllersGetList.json | 0 .../{foo => ServiceNetworking.Management}/main.tsp | 0 .../{foo => ServiceNetworking.Management}/tspconfig.yaml | 0 19 files changed, 0 insertions(+), 0 deletions(-) rename specification/servicenetworking/{foo => ServiceNetworking.Management}/examples/AssociationDelete.json (100%) rename specification/servicenetworking/{foo => ServiceNetworking.Management}/examples/AssociationGet.json (100%) rename specification/servicenetworking/{foo => ServiceNetworking.Management}/examples/AssociationPatch.json (100%) rename specification/servicenetworking/{foo => ServiceNetworking.Management}/examples/AssociationPut.json (100%) rename specification/servicenetworking/{foo => ServiceNetworking.Management}/examples/AssociationsGet.json (100%) rename specification/servicenetworking/{foo => ServiceNetworking.Management}/examples/FrontendDelete.json (100%) rename specification/servicenetworking/{foo => ServiceNetworking.Management}/examples/FrontendGet.json (100%) rename specification/servicenetworking/{foo => ServiceNetworking.Management}/examples/FrontendPatch.json (100%) rename specification/servicenetworking/{foo => ServiceNetworking.Management}/examples/FrontendPut.json (100%) rename specification/servicenetworking/{foo => ServiceNetworking.Management}/examples/FrontendsGet.json (100%) rename specification/servicenetworking/{foo => ServiceNetworking.Management}/examples/OperationsList.json (100%) rename specification/servicenetworking/{foo => ServiceNetworking.Management}/examples/TrafficControllerDelete.json (100%) rename specification/servicenetworking/{foo => ServiceNetworking.Management}/examples/TrafficControllerGet.json (100%) rename specification/servicenetworking/{foo => ServiceNetworking.Management}/examples/TrafficControllerPatch.json (100%) rename specification/servicenetworking/{foo => ServiceNetworking.Management}/examples/TrafficControllerPut.json (100%) rename specification/servicenetworking/{foo => ServiceNetworking.Management}/examples/TrafficControllersGet.json (100%) rename specification/servicenetworking/{foo => ServiceNetworking.Management}/examples/TrafficControllersGetList.json (100%) rename specification/servicenetworking/{foo => ServiceNetworking.Management}/main.tsp (100%) rename specification/servicenetworking/{foo => ServiceNetworking.Management}/tspconfig.yaml (100%) diff --git a/specification/servicenetworking/foo/examples/AssociationDelete.json b/specification/servicenetworking/ServiceNetworking.Management/examples/AssociationDelete.json similarity index 100% rename from specification/servicenetworking/foo/examples/AssociationDelete.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/AssociationDelete.json diff --git a/specification/servicenetworking/foo/examples/AssociationGet.json b/specification/servicenetworking/ServiceNetworking.Management/examples/AssociationGet.json similarity index 100% rename from specification/servicenetworking/foo/examples/AssociationGet.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/AssociationGet.json diff --git a/specification/servicenetworking/foo/examples/AssociationPatch.json b/specification/servicenetworking/ServiceNetworking.Management/examples/AssociationPatch.json similarity index 100% rename from specification/servicenetworking/foo/examples/AssociationPatch.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/AssociationPatch.json diff --git a/specification/servicenetworking/foo/examples/AssociationPut.json b/specification/servicenetworking/ServiceNetworking.Management/examples/AssociationPut.json similarity index 100% rename from specification/servicenetworking/foo/examples/AssociationPut.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/AssociationPut.json diff --git a/specification/servicenetworking/foo/examples/AssociationsGet.json b/specification/servicenetworking/ServiceNetworking.Management/examples/AssociationsGet.json similarity index 100% rename from specification/servicenetworking/foo/examples/AssociationsGet.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/AssociationsGet.json diff --git a/specification/servicenetworking/foo/examples/FrontendDelete.json b/specification/servicenetworking/ServiceNetworking.Management/examples/FrontendDelete.json similarity index 100% rename from specification/servicenetworking/foo/examples/FrontendDelete.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/FrontendDelete.json diff --git a/specification/servicenetworking/foo/examples/FrontendGet.json b/specification/servicenetworking/ServiceNetworking.Management/examples/FrontendGet.json similarity index 100% rename from specification/servicenetworking/foo/examples/FrontendGet.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/FrontendGet.json diff --git a/specification/servicenetworking/foo/examples/FrontendPatch.json b/specification/servicenetworking/ServiceNetworking.Management/examples/FrontendPatch.json similarity index 100% rename from specification/servicenetworking/foo/examples/FrontendPatch.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/FrontendPatch.json diff --git a/specification/servicenetworking/foo/examples/FrontendPut.json b/specification/servicenetworking/ServiceNetworking.Management/examples/FrontendPut.json similarity index 100% rename from specification/servicenetworking/foo/examples/FrontendPut.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/FrontendPut.json diff --git a/specification/servicenetworking/foo/examples/FrontendsGet.json b/specification/servicenetworking/ServiceNetworking.Management/examples/FrontendsGet.json similarity index 100% rename from specification/servicenetworking/foo/examples/FrontendsGet.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/FrontendsGet.json diff --git a/specification/servicenetworking/foo/examples/OperationsList.json b/specification/servicenetworking/ServiceNetworking.Management/examples/OperationsList.json similarity index 100% rename from specification/servicenetworking/foo/examples/OperationsList.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/OperationsList.json diff --git a/specification/servicenetworking/foo/examples/TrafficControllerDelete.json b/specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllerDelete.json similarity index 100% rename from specification/servicenetworking/foo/examples/TrafficControllerDelete.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllerDelete.json diff --git a/specification/servicenetworking/foo/examples/TrafficControllerGet.json b/specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllerGet.json similarity index 100% rename from specification/servicenetworking/foo/examples/TrafficControllerGet.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllerGet.json diff --git a/specification/servicenetworking/foo/examples/TrafficControllerPatch.json b/specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllerPatch.json similarity index 100% rename from specification/servicenetworking/foo/examples/TrafficControllerPatch.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllerPatch.json diff --git a/specification/servicenetworking/foo/examples/TrafficControllerPut.json b/specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllerPut.json similarity index 100% rename from specification/servicenetworking/foo/examples/TrafficControllerPut.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllerPut.json diff --git a/specification/servicenetworking/foo/examples/TrafficControllersGet.json b/specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllersGet.json similarity index 100% rename from specification/servicenetworking/foo/examples/TrafficControllersGet.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllersGet.json diff --git a/specification/servicenetworking/foo/examples/TrafficControllersGetList.json b/specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllersGetList.json similarity index 100% rename from specification/servicenetworking/foo/examples/TrafficControllersGetList.json rename to specification/servicenetworking/ServiceNetworking.Management/examples/TrafficControllersGetList.json diff --git a/specification/servicenetworking/foo/main.tsp b/specification/servicenetworking/ServiceNetworking.Management/main.tsp similarity index 100% rename from specification/servicenetworking/foo/main.tsp rename to specification/servicenetworking/ServiceNetworking.Management/main.tsp diff --git a/specification/servicenetworking/foo/tspconfig.yaml b/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml similarity index 100% rename from specification/servicenetworking/foo/tspconfig.yaml rename to specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml From f483c87370386acdb931a9792ca4432406dadbfc Mon Sep 17 00:00:00 2001 From: Mark Cowlishaw Date: Wed, 24 May 2023 13:10:42 -0700 Subject: [PATCH 12/12] Remove unneeded settings --- .../ServiceNetworking.Management/tspconfig.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml b/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml index a1f5974475ea..5785d3d1c879 100644 --- a/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml +++ b/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml @@ -2,7 +2,6 @@ emit: - "@azure-tools/typespec-autorest" options: "@azure-tools/typespec-autorest": - arm-types-dir: ../../../../../common-types/resource-management azure-resource-provider-folder: "./resource-manager" emitter-output-dir: "{project-root}/.." examples-directory: "./examples"