From d6f56d90e00d6f04de1c72528a2955bcb7e8fd04 Mon Sep 17 00:00:00 2001 From: Stuart Konen Date: Wed, 19 Jan 2022 19:43:49 -0800 Subject: [PATCH 1/7] Copy previous version to 2022-02-01 directory --- .../examples/TemplateSpecVersionsCreate.json | 73 ++ .../examples/TemplateSpecVersionsDelete.json | 13 + .../examples/TemplateSpecVersionsGet.json | 36 + .../examples/TemplateSpecVersionsList.json | 50 + .../examples/TemplateSpecVersionsPatch.json | 44 + .../examples/TemplateSpecsCreate.json | 54 ++ .../examples/TemplateSpecsDelete.json | 12 + .../2022-02-01/examples/TemplateSpecsGet.json | 29 + .../TemplateSpecsListByResourceGroup.json | 49 + .../TemplateSpecsListBySubscription.json | 48 + .../examples/TemplateSpecsPatch.json | 37 + .../stable/2022-02-01/templateSpecs.json | 903 ++++++++++++++++++ 12 files changed, 1348 insertions(+) create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsCreate.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsDelete.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsGet.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsList.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsPatch.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsCreate.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsDelete.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsGet.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListByResourceGroup.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListBySubscription.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsPatch.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/templateSpecs.json diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsCreate.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsCreate.json new file mode 100644 index 000000000000..85ae8bf2bdf7 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsCreate.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "api-version": "2021-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "templateSpecRG", + "templateSpecName": "simpleTemplateSpec", + "templateSpecVersion": "v1.0", + "templateSpecVersionModel": { + "location": "eastus", + "properties": { + "description": "This is version v1.0 of our template content", + "mainTemplate": { + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "resources": [] + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec/versions/v1.0", + "type": "Microsoft.Resources/templateSpecs/versions", + "name": "v1.0", + "location": "eastus", + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "description": "This is version v1.0 of our template content", + "mainTemplate": { + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "resources": [] + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec/versions/v1.0", + "type": "Microsoft.Resources/templateSpecs/versions", + "name": "v1.0", + "location": "eastus", + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-01T01:01:01.1075056Z" + }, + "properties": { + "description": "This is version v1.0 of our template content", + "mainTemplate": { + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "resources": [] + } + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsDelete.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsDelete.json new file mode 100644 index 000000000000..66f1dd1918e6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "templateSpecRG", + "templateSpecName": "simpleTemplateSpec", + "templateSpecVersion": "v1.0" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsGet.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsGet.json new file mode 100644 index 000000000000..238d2511997c --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsGet.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2021-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "templateSpecRG", + "templateSpecName": "simpleTemplateSpec", + "templateSpecVersion": "v1.0" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec/versions/v1.0", + "type": "Microsoft.Resources/templateSpecs/versions", + "name": "v1.0", + "location": "eastus", + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "description": "This is version v1.0 of our template content", + "mainTemplate": { + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "resources": [] + } + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsList.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsList.json new file mode 100644 index 000000000000..1bb178b5c335 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsList.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2021-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "templateSpecRG", + "templateSpecName": "simpleTemplateSpec" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec/versions/v1.0", + "type": "Microsoft.Resources/templateSpecs/versions", + "name": "v1.0", + "location": "eastus", + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "description": "This is version v1.0" + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec/versions/v2.0", + "type": "Microsoft.Resources/templateSpecs/versions", + "name": "v2.0", + "location": "eastus", + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + }, + "properties": { + "description": "This is another version (v2.0)" + } + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsPatch.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsPatch.json new file mode 100644 index 000000000000..c6e753d725c0 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsPatch.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2021-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "templateSpecRG", + "templateSpecName": "simpleTemplateSpec", + "templateSpecVersion": "v1.0", + "templateSpecVersionUpdateModel": { + "tags": { + "myTag": "My Value" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec/versions/v1.0", + "type": "Microsoft.Resources/templateSpecs/versions", + "name": "v1.0", + "location": "eastus", + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "description": "This is version v1.0 of our template content", + "mainTemplate": { + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "resources": [] + } + }, + "tags": { + "myTag": "My Value" + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsCreate.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsCreate.json new file mode 100644 index 000000000000..28aa0acd72ef --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsCreate.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2021-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "templateSpecRG", + "templateSpecName": "simpleTemplateSpec", + "templateSpec": { + "location": "eastus", + "properties": { + "description": "A very simple Template Spec" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec", + "type": "Microsoft.Resources/templateSpecs", + "name": "simpleTemplateSpec", + "location": "eastus", + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-01T01:01:01.1075056Z" + }, + "properties": { + "description": "A very simple Template Spec" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec", + "type": "Microsoft.Resources/templateSpecs", + "name": "simpleTemplateSpec", + "location": "eastus", + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "description": "A very simple Template Spec" + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsDelete.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsDelete.json new file mode 100644 index 000000000000..a55c5525c2ac --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2021-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "templateSpecRG", + "templateSpecName": "simpleTemplateSpec" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsGet.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsGet.json new file mode 100644 index 000000000000..bd0cd78888b4 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsGet.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2021-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "templateSpecRG", + "templateSpecName": "simpleTemplateSpec" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec", + "type": "Microsoft.Resources/templateSpecs", + "name": "simpleTemplateSpec", + "location": "eastus", + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "description": "A very simple Template Spec" + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListByResourceGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListByResourceGroup.json new file mode 100644 index 000000000000..7f63bd9df159 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListByResourceGroup.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2021-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "templateSpecRG" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec", + "type": "Microsoft.Resources/templateSpecs", + "name": "simpleTemplateSpec", + "location": "eastus", + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "description": "A very simple Template Spec" + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/anotherSimpleTemplateSpec", + "type": "Microsoft.Resources/templateSpecs", + "name": "anotherSimpleTemplateSpec", + "location": "westus", + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-02T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-03T02:03:01.1974346Z" + }, + "properties": { + "description": "Another very simple Template Spec" + } + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListBySubscription.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListBySubscription.json new file mode 100644 index 000000000000..f05913d9f36a --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListBySubscription.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2021-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec", + "type": "Microsoft.Resources/templateSpecs", + "name": "simpleTemplateSpec", + "location": "eastus", + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "description": "A very simple Template Spec" + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG2/providers/Microsoft.Resources/templateSpecs/anotherSimpleTemplateSpec", + "type": "Microsoft.Resources/templateSpecs", + "name": "anotherSimpleTemplateSpec", + "location": "westus", + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-02T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-03T02:03:01.1974346Z" + }, + "properties": { + "description": "Another very simple Template Spec" + } + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsPatch.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsPatch.json new file mode 100644 index 000000000000..7b03e393c08b --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsPatch.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2021-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "templateSpecRG", + "templateSpecName": "simpleTemplateSpec", + "templateSpec": { + "tags": { + "myTag": "My Value" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec", + "type": "Microsoft.Resources/templateSpecs", + "name": "simpleTemplateSpec", + "location": "eastus", + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "description": "A very simple Template Spec" + }, + "tags": { + "myTag": "My Value" + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/templateSpecs.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/templateSpecs.json new file mode 100644 index 000000000000..e6a6b1c38e21 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/templateSpecs.json @@ -0,0 +1,903 @@ +{ + "swagger": "2.0", + "info": { + "title": "TemplateSpecsClient", + "description": "The APIs listed in this specification can be used to manage Template Spec resources through the Azure Resource Manager.", + "version": "2021-05-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}": { + "put": { + "tags": [ + "TemplateSpecs" + ], + "operationId": "TemplateSpecs_CreateOrUpdate", + "description": "Creates or updates a Template Spec.", + "x-ms-examples": { + "TemplateSpecsCreateUpdate": { + "$ref": "./examples/TemplateSpecsCreate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/TemplateSpecNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "templateSpec", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TemplateSpec" + }, + "description": "Template Spec supplied to the operation." + } + ], + "responses": { + "200": { + "description": "OK - The Template Spec update request has succeeded.", + "schema": { + "$ref": "#/definitions/TemplateSpec" + } + }, + "201": { + "description": "Template Spec created.", + "schema": { + "$ref": "#/definitions/TemplateSpec" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/TemplateSpecsError" + } + } + } + }, + "patch": { + "tags": [ + "TemplateSpecs" + ], + "operationId": "TemplateSpecs_Update", + "description": "Updates Template Spec tags with specified values.", + "x-ms-examples": { + "TemplateSpecsPatch": { + "$ref": "./examples/TemplateSpecsPatch.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/TemplateSpecNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "templateSpec", + "in": "body", + "schema": { + "$ref": "#/definitions/TemplateSpecUpdateModel" + }, + "description": "Template Spec resource with the tags to be updated." + } + ], + "responses": { + "200": { + "description": "OK -- Template Spec tags are updated.", + "schema": { + "$ref": "#/definitions/TemplateSpec" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/TemplateSpecsError" + } + } + } + }, + "get": { + "tags": [ + "TemplateSpecs" + ], + "operationId": "TemplateSpecs_Get", + "description": "Gets a Template Spec with a given name.", + "x-ms-examples": { + "TemplateSpecsGet": { + "$ref": "./examples/TemplateSpecsGet.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/TemplateSpecNameParameter" + }, + { + "$ref": "#/parameters/TemplateSpecExpandParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the Template Spec.", + "schema": { + "$ref": "#/definitions/TemplateSpec" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/TemplateSpecsError" + } + } + } + }, + "delete": { + "tags": [ + "TemplateSpecs" + ], + "operationId": "TemplateSpecs_Delete", + "description": "Deletes a Template Spec by name. When operation completes, status code 200 returned without content.", + "x-ms-examples": { + "TemplateSpecsDelete": { + "$ref": "./examples/TemplateSpecsDelete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/TemplateSpecNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Template Spec deleted." + }, + "204": { + "description": "Template Spec does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/TemplateSpecsError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/templateSpecs/": { + "get": { + "tags": [ + "TemplateSpecs" + ], + "operationId": "TemplateSpecs_ListBySubscription", + "description": "Lists all the Template Specs within the specified subscriptions.", + "x-ms-examples": { + "TemplatesSpecsListBySubscription": { + "$ref": "./examples/TemplateSpecsListBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/TemplateSpecExpandParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of Template Specs.", + "schema": { + "$ref": "#/definitions/TemplateSpecsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/TemplateSpecsError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/": { + "get": { + "tags": [ + "TemplateSpecs" + ], + "operationId": "TemplateSpecs_ListByResourceGroup", + "description": "Lists all the Template Specs within the specified resource group.", + "x-ms-examples": { + "TemplateSpecsListByResourceGroup": { + "$ref": "./examples/TemplateSpecsListByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/TemplateSpecExpandParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of Template Specs.", + "schema": { + "$ref": "#/definitions/TemplateSpecsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/TemplateSpecsError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}": { + "put": { + "tags": [ + "TemplateSpecVersions" + ], + "operationId": "TemplateSpecVersions_CreateOrUpdate", + "description": "Creates or updates a Template Spec version.", + "x-ms-examples": { + "TemplateSpecVersionsCreateUpdate": { + "$ref": "./examples/TemplateSpecVersionsCreate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/TemplateSpecNameParameter" + }, + { + "$ref": "#/parameters/TemplateSpecVersionParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "templateSpecVersionModel", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TemplateSpecVersion" + }, + "description": "Template Spec Version supplied to the operation." + } + ], + "responses": { + "200": { + "description": "OK - The Template Spec Version has been successfully updated.", + "schema": { + "$ref": "#/definitions/TemplateSpecVersion" + } + }, + "201": { + "description": "Template Spec Version created.", + "schema": { + "$ref": "#/definitions/TemplateSpecVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/TemplateSpecsError" + } + } + } + }, + "patch": { + "tags": [ + "TemplateSpecVersions" + ], + "operationId": "TemplateSpecVersions_Update", + "description": "Updates Template Spec Version tags with specified values.", + "x-ms-examples": { + "TemplateSpecsPatch": { + "$ref": "./examples/TemplateSpecVersionsPatch.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/TemplateSpecNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TemplateSpecVersionParameter" + }, + { + "name": "templateSpecVersionUpdateModel", + "in": "body", + "schema": { + "$ref": "#/definitions/TemplateSpecVersionUpdateModel" + }, + "description": "Template Spec Version resource with the tags to be updated." + } + ], + "responses": { + "200": { + "description": "OK -- Template Spec Version tags are updated.", + "schema": { + "$ref": "#/definitions/TemplateSpecVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/TemplateSpecsError" + } + } + } + }, + "get": { + "tags": [ + "TemplateSpecVersions" + ], + "operationId": "TemplateSpecVersions_Get", + "description": "Gets a Template Spec version from a specific Template Spec.", + "x-ms-examples": { + "TemplateSpecVersionsGet": { + "$ref": "./examples/TemplateSpecVersionsGet.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/TemplateSpecNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TemplateSpecVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the Template Spec version.", + "schema": { + "$ref": "#/definitions/TemplateSpecVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/TemplateSpecsError" + } + } + } + }, + "delete": { + "tags": [ + "TemplateSpecVersions" + ], + "operationId": "TemplateSpecVersions_Delete", + "description": "Deletes a specific version from a Template Spec. When operation completes, status code 200 returned without content.", + "x-ms-examples": { + "TemplateSpecVersionsDelete": { + "$ref": "./examples/TemplateSpecVersionsDelete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/TemplateSpecNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TemplateSpecVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Template Spec Version deleted." + }, + "204": { + "description": "Template Spec Version does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/TemplateSpecsError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions": { + "get": { + "tags": [ + "TemplateSpecVersions" + ], + "operationId": "TemplateSpecVersions_List", + "description": "Lists all the Template Spec versions in the specified Template Spec.", + "x-ms-examples": { + "TemplateSpecVersions_List": { + "$ref": "./examples/TemplateSpecVersionsList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/TemplateSpecNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of Template Spec versions.", + "schema": { + "$ref": "#/definitions/TemplateSpecVersionsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/TemplateSpecsError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "TemplateSpec": { + "required": [ + "location" + ], + "type": "object", + "description": "Template Spec object.", + "allOf": [ + { + "$ref": "#/definitions/AzureResourceBase" + } + ], + "properties": { + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported Azure locations." + }, + "properties": { + "description": "Template Spec properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/TemplateSpecProperties" + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "TemplateSpecProperties": { + "type": "object", + "description": "Template Spec properties.", + "properties": { + "description": { + "type": "string", + "maxLength": 4096, + "description": "Template Spec description." + }, + "displayName": { + "type": "string", + "maxLength": 64, + "description": "Template Spec display name." + }, + "metadata": { + "type": "object", + "description": "The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs." + }, + "versions": { + "type": "object", + "readOnly": true, + "description": "High-level information about the versions within this Template Spec. The keys are the version names. Only populated if the $expand query parameter is set to 'versions'.", + "additionalProperties": { + "$ref": "#/definitions/TemplateSpecVersionInfo" + } + } + } + }, + "TemplateSpecsListResult": { + "description": "List of Template Specs.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/TemplateSpec" + }, + "description": "An array of Template Specs." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to use for getting the next set of results." + } + } + }, + "TemplateSpecUpdateModel": { + "type": "object", + "description": "Template Spec properties to be updated (only tags are currently supported).", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/AzureResourceBase" + } + ] + }, + "TemplateSpecVersionUpdateModel": { + "type": "object", + "description": "Template Spec Version properties to be updated (only tags are currently supported).", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/AzureResourceBase" + } + ] + }, + "AzureResourceBase": { + "x-ms-azure-resource": true, + "type": "object", + "description": "Common properties for all Azure resources.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "String Id used to locate any resource on Azure." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Name of this resource." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Type of this resource." + }, + "systemData": { + "readOnly": true, + "type": "object", + "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData" + } + } + }, + "TemplateSpecVersion": { + "required": [ + "properties", + "location" + ], + "type": "object", + "description": "Template Spec Version object.", + "allOf": [ + { + "$ref": "#/definitions/AzureResourceBase" + } + ], + "properties": { + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The location of the Template Spec Version. It must match the location of the parent Template Spec." + }, + "properties": { + "description": "Template Spec Version properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/TemplateSpecVersionProperties" + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "TemplateSpecVersionProperties": { + "type": "object", + "description": "Template Spec Version properties.", + "properties": { + "description": { + "type": "string", + "maxLength": 4096, + "description": "Template Spec version description." + }, + "linkedTemplates": { + "type": "array", + "items": { + "$ref": "#/definitions/LinkedTemplateArtifact" + }, + "description": "An array of linked template artifacts." + }, + "metadata": { + "type": "object", + "description": "The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs." + }, + "mainTemplate": { + "type": "object", + "description": "The main Azure Resource Manager template content." + }, + "uiFormDefinition": { + "type": "object", + "description": "The Azure Resource Manager template UI definition content." + } + } + }, + "TemplateSpecVersionsListResult": { + "description": "List of Template Specs versions", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/TemplateSpecVersion" + }, + "description": "An array of Template Spec versions." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to use for getting the next set of results." + } + } + }, + "LinkedTemplateArtifact": { + "type": "object", + "description": "Represents a Template Spec artifact containing an embedded Azure Resource Manager template for use as a linked template.", + "properties": { + "path": { + "type": "string", + "description": "A filesystem safe relative path of the artifact." + }, + "template": { + "type": "object", + "description": "The Azure Resource Manager template." + } + }, + "required": [ + "template", + "path" + ] + }, + "TemplateSpecVersionInfo": { + "type": "object", + "description": "High-level information about a Template Spec version.", + "properties": { + "description": { + "type": "string", + "readOnly": true, + "description": "Template Spec version description." + }, + "timeCreated": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The timestamp of when the version was created." + }, + "timeModified": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The timestamp of when the version was last modified." + } + } + }, + "TemplateSpecsError": { + "properties": { + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + }, + "description": "Template Specs error response." + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "client", + "description": "Subscription Id which forms part of the URI for every service call." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method" + }, + "TemplateSpecNameParameter": { + "name": "templateSpecName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "description": "Name of the Template Spec.", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method" + }, + "TemplateSpecVersionParameter": { + "name": "templateSpecVersion", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "description": "The version of the Template Spec.", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method" + }, + "TemplateSpecExpandParameter": { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Allows for expansion of additional Template Spec details in the response. Optional.", + "x-ms-parameter-location": "method", + "enum": [ + "versions" + ], + "x-ms-enum": { + "name": "TemplateSpecExpandKind", + "modelAsString": true, + "values": [ + { + "value": "versions", + "description": "Includes version information with the Template Spec." + } + ] + } + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "x-ms-parameter-location": "client", + "description": "Client Api version." + } + } +} From ac4567854b8f45b8697f95cac63bcfa4a4c14cb6 Mon Sep 17 00:00:00 2001 From: Stuart Konen Date: Wed, 19 Jan 2022 21:48:29 -0800 Subject: [PATCH 2/7] Adding changed spec files from PR 4200. Without api-version bump --- .../BuiltInTemplateSpecVersionsGet.json | 24 +++ .../BuiltInTemplateSpecVersionsList.json | 40 +++++ .../examples/BuiltInTemplateSpecsGet.json | 23 +++ .../examples/BuiltInTemplateSpecsList.json | 39 +++++ .../examples/TemplateSpecVersionsCreate.json | 2 +- .../examples/TemplateSpecVersionsDelete.json | 2 +- .../examples/TemplateSpecVersionsGet.json | 2 +- .../examples/TemplateSpecVersionsList.json | 2 +- .../examples/TemplateSpecVersionsPatch.json | 2 +- .../examples/TemplateSpecsCreate.json | 2 +- .../examples/TemplateSpecsDelete.json | 2 +- .../2022-02-01/examples/TemplateSpecsGet.json | 2 +- .../TemplateSpecsListByResourceGroup.json | 2 +- .../TemplateSpecsListBySubscription.json | 2 +- .../examples/TemplateSpecsPatch.json | 2 +- .../stable/2022-02-01/templateSpecs.json | 158 +++++++++++++++++- 16 files changed, 294 insertions(+), 12 deletions(-) create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecVersionsGet.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecVersionsList.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecsGet.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecsList.json diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecVersionsGet.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecVersionsGet.json new file mode 100644 index 000000000000..7f4074acdc9b --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecVersionsGet.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2021-06-01", + "templateSpecName": "nameOfTheBuiltIn", + "templateSpecVersion": "v1.0" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Resources/builtInTemplateSpecs/nameOfTheBuiltIn/versions/v1.0", + "type": "Microsoft.Resources/builtInTemplateSpecs/versions", + "name": "v1.0", + "location": "eastus", + "systemData": { + "createdAt": "2021-06-01T01:01:01.1075056Z", + "lastModifiedAt": "2021-06-01T01:01:01.1075056Z" + }, + "properties": { + "description": "This is version v1.0" + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecVersionsList.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecVersionsList.json new file mode 100644 index 000000000000..37e978d8d6d7 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecVersionsList.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2021-06-01", + "templateSpecName": "nameOfTheBuiltIn" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Resources/builtInTemplateSpecs/nameOfTheBuiltIn/versions/v1.0", + "type": "Microsoft.Resources/builtInTemplateSpecs/versions", + "name": "v1.0", + "location": "eastus", + "systemData": { + "createdAt": "2021-06-01T01:01:01.1075056Z", + "lastModifiedAt": "2021-06-01T01:01:01.1075056Z" + }, + "properties": { + "description": "This is version v1.0" + } + }, + { + "id": "/providers/Microsoft.Resources/builtInTemplateSpecs/nameOfTheBuiltIn/versions/v2.0", + "type": "Microsoft.Resources/builtInTemplateSpecs/versions", + "name": "v2.0", + "location": "eastus", + "systemData": { + "createdAt": "2021-06-02T02:03:01.1974346Z", + "lastModifiedAt": "2021-06-02T02:03:01.1974346Z" + }, + "properties": { + "description": "This is another version (v2.0)" + } + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecsGet.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecsGet.json new file mode 100644 index 000000000000..0be7b0fe717a --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecsGet.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2021-06-01", + "templateSpecName": "nameOfTheBuiltIn" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Resources/builtInTemplateSpecs/nameOfTheBuiltIn", + "type": "Microsoft.Resources/builtInTemplateSpecs", + "name": "nameOfTheBuiltIn", + "location": "eastus", + "systemData": { + "createdAt": "2021-06-01T01:01:01.1075056Z", + "lastModifiedAt": "2021-06-02T02:03:01.1974346Z" + }, + "properties": { + "description": "The description of the built-in template spec" + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecsList.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecsList.json new file mode 100644 index 000000000000..7e8d460518d4 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecsList.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2021-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Resources/builtInTemplateSpecs/nameOfBuiltIn", + "type": "Microsoft.Resources/builtInTemplateSpecs", + "name": "nameOfBuiltIn", + "location": "eastus", + "systemData": { + "createdAt": "2021-06-01T01:01:01.1075056Z", + "lastModifiedAt": "2021-06-02T02:03:01.1974346Z" + }, + "properties": { + "description": "The description of the built-in template spec" + } + }, + { + "id": "/providers/Microsoft.Resources/builtInTemplateSpecs/nameOfAnotherBuiltIn", + "type": "Microsoft.Resources/builtInTemplateSpecs", + "name": "nameOfAnotherBuiltIn", + "location": "eastus", + "systemData": { + "createdAt": "2021-06-03T03:01:01.1282121Z", + "lastModifiedAt": "2021-06-03T05:22:06.1974346Z" + }, + "properties": { + "description": "The description of another built-in template spec" + } + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsCreate.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsCreate.json index 85ae8bf2bdf7..e606134116ed 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsCreate.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsCreate.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-05-01", + "api-version": "2021-06-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "templateSpecRG", "templateSpecName": "simpleTemplateSpec", diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsDelete.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsDelete.json index 66f1dd1918e6..1a503105f33c 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsDelete.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsDelete.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-05-01", + "api-version": "2021-06-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "templateSpecRG", "templateSpecName": "simpleTemplateSpec", diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsGet.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsGet.json index 238d2511997c..dc33411c9f58 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsGet.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-05-01", + "api-version": "2021-06-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "templateSpecRG", "templateSpecName": "simpleTemplateSpec", diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsList.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsList.json index 1bb178b5c335..ecf221612e0b 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsList.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-05-01", + "api-version": "2021-06-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "templateSpecRG", "templateSpecName": "simpleTemplateSpec" diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsPatch.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsPatch.json index c6e753d725c0..e6b398002130 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsPatch.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsPatch.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-05-01", + "api-version": "2021-06-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "templateSpecRG", "templateSpecName": "simpleTemplateSpec", diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsCreate.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsCreate.json index 28aa0acd72ef..01cadcc5412c 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsCreate.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsCreate.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-05-01", + "api-version": "2021-06-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "templateSpecRG", "templateSpecName": "simpleTemplateSpec", diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsDelete.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsDelete.json index a55c5525c2ac..fe243aaff428 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsDelete.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsDelete.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-05-01", + "api-version": "2021-06-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "templateSpecRG", "templateSpecName": "simpleTemplateSpec" diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsGet.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsGet.json index bd0cd78888b4..76e5595913a6 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsGet.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-05-01", + "api-version": "2021-06-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "templateSpecRG", "templateSpecName": "simpleTemplateSpec" diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListByResourceGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListByResourceGroup.json index 7f63bd9df159..78cf31b6bf82 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListByResourceGroup.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListByResourceGroup.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-05-01", + "api-version": "2021-06-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "templateSpecRG" }, diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListBySubscription.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListBySubscription.json index f05913d9f36a..d6c53c8e08ba 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListBySubscription.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListBySubscription.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-05-01", + "api-version": "2021-06-01", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsPatch.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsPatch.json index 7b03e393c08b..f5552978e711 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsPatch.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsPatch.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-05-01", + "api-version": "2021-06-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "templateSpecRG", "templateSpecName": "simpleTemplateSpec", diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/templateSpecs.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/templateSpecs.json index e6a6b1c38e21..a1199c7252df 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/templateSpecs.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/templateSpecs.json @@ -3,7 +3,7 @@ "info": { "title": "TemplateSpecsClient", "description": "The APIs listed in this specification can be used to manage Template Spec resources through the Azure Resource Manager.", - "version": "2021-05-01" + "version": "2021-06-01" }, "host": "management.azure.com", "schemes": [ @@ -550,6 +550,162 @@ "nextLinkName": "nextLink" } } + }, + "/providers/Microsoft.Resources/builtInTemplateSpecs/{templateSpecName}": { + "get": { + "tags": [ + "TemplateSpecs" + ], + "operationId": "TemplateSpecs_GetBuiltIn", + "description": "Gets a built-in Template Spec with a given name.", + "x-ms-examples": { + "TemplateSpecs_GetBuiltIn": { + "$ref": "./examples/BuiltInTemplateSpecsGet.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/TemplateSpecNameParameter" + }, + { + "$ref": "#/parameters/TemplateSpecExpandParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the built-in Template Spec.", + "schema": { + "$ref": "#/definitions/TemplateSpec" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/TemplateSpecsError" + } + } + } + } + }, + "/providers/Microsoft.Resources/builtInTemplateSpecs/": { + "get": { + "tags": [ + "TemplateSpecs" + ], + "operationId": "TemplateSpecs_ListBuiltIns", + "description": "Lists built-in Template Specs.", + "x-ms-examples": { + "TemplateSpecs_ListBuiltIns": { + "$ref": "./examples/BuiltInTemplateSpecsList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/TemplateSpecExpandParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of built-in Template Specs.", + "schema": { + "$ref": "#/definitions/TemplateSpecsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/TemplateSpecsError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Resources/builtInTemplateSpecs/{templateSpecName}/versions": { + "get": { + "tags": [ + "TemplateSpecVersions" + ], + "operationId": "TemplateSpecVersions_ListBuiltIns", + "description": "Lists all the Template Spec versions in the specified built-in Template Spec.", + "x-ms-examples": { + "TemplateSpecVersions_ListBuiltIns": { + "$ref": "./examples/BuiltInTemplateSpecVersionsList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/TemplateSpecNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of built-in Template Spec versions.", + "schema": { + "$ref": "#/definitions/TemplateSpecVersionsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/TemplateSpecsError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Resources/builtInTemplateSpecs/{templateSpecName}/versions/{templateSpecVersion}": { + "get": { + "tags": [ + "TemplateSpecVersions" + ], + "operationId": "TemplateSpecVersions_GetBuiltIn", + "description": "Gets a Template Spec version from a specific built-in Template Spec.", + "x-ms-examples": { + "TemplateSpecVersions_GetBuiltIn": { + "$ref": "./examples/BuiltInTemplateSpecVersionsGet.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/TemplateSpecNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TemplateSpecVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the built-in Template Spec version.", + "schema": { + "$ref": "#/definitions/TemplateSpecVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/TemplateSpecsError" + } + } + } + } } }, "definitions": { From 991662c76f4a138d6115c06b179197f066be6889 Mon Sep 17 00:00:00 2001 From: Stuart Konen Date: Wed, 19 Jan 2022 22:09:31 -0800 Subject: [PATCH 3/7] Changing version string 2021-06-01 to 2022-02-01 in specs --- .../examples/BuiltInTemplateSpecVersionsGet.json | 6 +++--- .../examples/BuiltInTemplateSpecVersionsList.json | 10 +++++----- .../2022-02-01/examples/BuiltInTemplateSpecsGet.json | 6 +++--- .../2022-02-01/examples/BuiltInTemplateSpecsList.json | 10 +++++----- .../examples/TemplateSpecVersionsCreate.json | 2 +- .../examples/TemplateSpecVersionsDelete.json | 2 +- .../2022-02-01/examples/TemplateSpecVersionsGet.json | 2 +- .../2022-02-01/examples/TemplateSpecVersionsList.json | 2 +- .../2022-02-01/examples/TemplateSpecVersionsPatch.json | 2 +- .../2022-02-01/examples/TemplateSpecsCreate.json | 2 +- .../2022-02-01/examples/TemplateSpecsDelete.json | 2 +- .../stable/2022-02-01/examples/TemplateSpecsGet.json | 2 +- .../examples/TemplateSpecsListByResourceGroup.json | 2 +- .../examples/TemplateSpecsListBySubscription.json | 2 +- .../stable/2022-02-01/examples/TemplateSpecsPatch.json | 2 +- .../stable/2022-02-01/templateSpecs.json | 2 +- 16 files changed, 28 insertions(+), 28 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecVersionsGet.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecVersionsGet.json index 7f4074acdc9b..5642318242ee 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecVersionsGet.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecVersionsGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-01", + "api-version": "2022-02-01", "templateSpecName": "nameOfTheBuiltIn", "templateSpecVersion": "v1.0" }, @@ -12,8 +12,8 @@ "name": "v1.0", "location": "eastus", "systemData": { - "createdAt": "2021-06-01T01:01:01.1075056Z", - "lastModifiedAt": "2021-06-01T01:01:01.1075056Z" + "createdAt": "2022-02-01T01:01:01.1075056Z", + "lastModifiedAt": "2022-02-01T01:01:01.1075056Z" }, "properties": { "description": "This is version v1.0" diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecVersionsList.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecVersionsList.json index 37e978d8d6d7..2bfc0207357b 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecVersionsList.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecVersionsList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-01", + "api-version": "2022-02-01", "templateSpecName": "nameOfTheBuiltIn" }, "responses": { @@ -13,8 +13,8 @@ "name": "v1.0", "location": "eastus", "systemData": { - "createdAt": "2021-06-01T01:01:01.1075056Z", - "lastModifiedAt": "2021-06-01T01:01:01.1075056Z" + "createdAt": "2022-02-01T01:01:01.1075056Z", + "lastModifiedAt": "2022-02-01T01:01:01.1075056Z" }, "properties": { "description": "This is version v1.0" @@ -26,8 +26,8 @@ "name": "v2.0", "location": "eastus", "systemData": { - "createdAt": "2021-06-02T02:03:01.1974346Z", - "lastModifiedAt": "2021-06-02T02:03:01.1974346Z" + "createdAt": "2022-02-02T02:03:01.1974346Z", + "lastModifiedAt": "2022-02-02T02:03:01.1974346Z" }, "properties": { "description": "This is another version (v2.0)" diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecsGet.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecsGet.json index 0be7b0fe717a..d3e47cd7104a 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecsGet.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecsGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-01", + "api-version": "2022-02-01", "templateSpecName": "nameOfTheBuiltIn" }, "responses": { @@ -11,8 +11,8 @@ "name": "nameOfTheBuiltIn", "location": "eastus", "systemData": { - "createdAt": "2021-06-01T01:01:01.1075056Z", - "lastModifiedAt": "2021-06-02T02:03:01.1974346Z" + "createdAt": "2022-02-01T01:01:01.1075056Z", + "lastModifiedAt": "2022-02-02T02:03:01.1974346Z" }, "properties": { "description": "The description of the built-in template spec" diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecsList.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecsList.json index 7e8d460518d4..603eb853051e 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecsList.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/BuiltInTemplateSpecsList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-01" + "api-version": "2022-02-01" }, "responses": { "200": { @@ -12,8 +12,8 @@ "name": "nameOfBuiltIn", "location": "eastus", "systemData": { - "createdAt": "2021-06-01T01:01:01.1075056Z", - "lastModifiedAt": "2021-06-02T02:03:01.1974346Z" + "createdAt": "2022-02-01T01:01:01.1075056Z", + "lastModifiedAt": "2022-02-02T02:03:01.1974346Z" }, "properties": { "description": "The description of the built-in template spec" @@ -25,8 +25,8 @@ "name": "nameOfAnotherBuiltIn", "location": "eastus", "systemData": { - "createdAt": "2021-06-03T03:01:01.1282121Z", - "lastModifiedAt": "2021-06-03T05:22:06.1974346Z" + "createdAt": "2022-02-03T03:01:01.1282121Z", + "lastModifiedAt": "2022-02-03T05:22:06.1974346Z" }, "properties": { "description": "The description of another built-in template spec" diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsCreate.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsCreate.json index e606134116ed..31fbfe9a4312 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsCreate.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsCreate.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-01", + "api-version": "2022-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "templateSpecRG", "templateSpecName": "simpleTemplateSpec", diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsDelete.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsDelete.json index 1a503105f33c..3698cfb07b88 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsDelete.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsDelete.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-01", + "api-version": "2022-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "templateSpecRG", "templateSpecName": "simpleTemplateSpec", diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsGet.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsGet.json index dc33411c9f58..5d08469580f3 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsGet.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-01", + "api-version": "2022-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "templateSpecRG", "templateSpecName": "simpleTemplateSpec", diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsList.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsList.json index ecf221612e0b..22426244eae4 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsList.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-01", + "api-version": "2022-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "templateSpecRG", "templateSpecName": "simpleTemplateSpec" diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsPatch.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsPatch.json index e6b398002130..f88e5131e933 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsPatch.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecVersionsPatch.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-01", + "api-version": "2022-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "templateSpecRG", "templateSpecName": "simpleTemplateSpec", diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsCreate.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsCreate.json index 01cadcc5412c..9410aa46c8b6 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsCreate.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsCreate.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-01", + "api-version": "2022-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "templateSpecRG", "templateSpecName": "simpleTemplateSpec", diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsDelete.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsDelete.json index fe243aaff428..3075eb114a8e 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsDelete.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsDelete.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-01", + "api-version": "2022-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "templateSpecRG", "templateSpecName": "simpleTemplateSpec" diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsGet.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsGet.json index 76e5595913a6..ca3970aea918 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsGet.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-01", + "api-version": "2022-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "templateSpecRG", "templateSpecName": "simpleTemplateSpec" diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListByResourceGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListByResourceGroup.json index 78cf31b6bf82..25d0616e0fc5 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListByResourceGroup.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListByResourceGroup.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-01", + "api-version": "2022-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "templateSpecRG" }, diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListBySubscription.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListBySubscription.json index d6c53c8e08ba..ce0c580a79ff 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListBySubscription.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsListBySubscription.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-01", + "api-version": "2022-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsPatch.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsPatch.json index f5552978e711..2f62403cc76d 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsPatch.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/examples/TemplateSpecsPatch.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-01", + "api-version": "2022-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "templateSpecRG", "templateSpecName": "simpleTemplateSpec", diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/templateSpecs.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/templateSpecs.json index a1199c7252df..3f1d92ea8ae0 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/templateSpecs.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/templateSpecs.json @@ -3,7 +3,7 @@ "info": { "title": "TemplateSpecsClient", "description": "The APIs listed in this specification can be used to manage Template Spec resources through the Azure Resource Manager.", - "version": "2021-06-01" + "version": "2022-02-01" }, "host": "management.azure.com", "schemes": [ From c45668028874b9f7f7d38483fb6cb3b7f679e28e Mon Sep 17 00:00:00 2001 From: Stuart Konen Date: Wed, 19 Jan 2022 22:41:23 -0800 Subject: [PATCH 4/7] Updating SDK generation tags/settings to use 2022-02 --- specification/resources/resource-manager/readme.md | 11 ++++++++++- .../resources/resource-manager/readme.python.md | 11 +++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/specification/resources/resource-manager/readme.md b/specification/resources/resource-manager/readme.md index dc31314e2441..c1939cd9e89f 100644 --- a/specification/resources/resource-manager/readme.md +++ b/specification/resources/resource-manager/readme.md @@ -61,7 +61,7 @@ tag: package-deploymentscripts-2020-10 ``` ``` yaml $(package-templatespecs) -tag: package-templatespecs-2021-05 +tag: package-templatespecs-2022-02 ``` ### Tag: package-policy-2021-06 @@ -335,6 +335,15 @@ override-info: title: PolicyClient ``` +### Tag: package-templatespecs-2022-02 + +These settings apply only when `--tag=package-templatespecs-2022-02` is specified on the command line. + +``` yaml $(tag) == 'package-templatespecs-2022-02' +input-file: +- Microsoft.Resources/stable/2022-02-01/templateSpecs.json +``` + ### Tag: package-templatespecs-2021-05 These settings apply only when `--tag=package-templatespecs-2021-05` is specified on the command line. diff --git a/specification/resources/resource-manager/readme.python.md b/specification/resources/resource-manager/readme.python.md index d77f2eeeccf3..ada10ffa1009 100644 --- a/specification/resources/resource-manager/readme.python.md +++ b/specification/resources/resource-manager/readme.python.md @@ -64,6 +64,7 @@ batch: - tag: package-deploymentscripts-2020-10 - tag: package-deploymentscripts-2019-10-preview - multiapiscript-deploymentscripts: true + - tag: package-templatespecs-2022-02 - tag: package-templatespecs-2021-05 - tag: package-templatespecs-2021-03-preview - tag: package-templatespecs-2019-06-preview @@ -559,6 +560,16 @@ namespace: azure.mgmt.resource.templatespecs.v2021_05_01 output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01 ``` +### Tag: package-templatespecs-2022-02 and python + +These settings apply only when `--tag=package-templatespecs-2022-02` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-templatespecs-2022-02' +namespace: azure.mgmt.resource.templatespecs.v2022_02_01 +output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2022_02_01 +``` + ``` yaml $(python) && $(track2) modelerfour: lenient-model-deduplication: true From c374d6618876eee0d1421d43e45bad2ba84471e9 Mon Sep 17 00:00:00 2001 From: Stuart Konen Date: Wed, 26 Jan 2022 19:12:38 -0800 Subject: [PATCH 5/7] Fixing some LintDiff issues (new rules) --- .../stable/2022-02-01/templateSpecs.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/templateSpecs.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/templateSpecs.json index 3f1d92ea8ae0..802a4765fcd9 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/templateSpecs.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/templateSpecs.json @@ -772,6 +772,7 @@ } }, "TemplateSpecsListResult": { + "type": "object", "description": "List of Template Specs.", "properties": { "value": { @@ -901,7 +902,8 @@ "items": { "$ref": "#/definitions/LinkedTemplateArtifact" }, - "description": "An array of linked template artifacts." + "description": "An array of linked template artifacts.", + "x-ms-identifiers": [ "path" ] }, "metadata": { "type": "object", @@ -918,6 +920,7 @@ } }, "TemplateSpecVersionsListResult": { + "type": "object", "description": "List of Template Specs versions", "properties": { "value": { @@ -976,6 +979,7 @@ } }, "TemplateSpecsError": { + "type": "object", "properties": { "error": { "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" From 053bfa593291a699398f28a2923b1d1e150035f5 Mon Sep 17 00:00:00 2001 From: Stuart Konen Date: Wed, 26 Jan 2022 19:46:02 -0800 Subject: [PATCH 6/7] Fixing "prettier" issue --- .../Microsoft.Resources/stable/2022-02-01/templateSpecs.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/templateSpecs.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/templateSpecs.json index 802a4765fcd9..5821a677b1d1 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/templateSpecs.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-02-01/templateSpecs.json @@ -903,7 +903,9 @@ "$ref": "#/definitions/LinkedTemplateArtifact" }, "description": "An array of linked template artifacts.", - "x-ms-identifiers": [ "path" ] + "x-ms-identifiers": [ + "path" + ] }, "metadata": { "type": "object", From df5458da75343dd1f040cfaba4616c6385731ad3 Mon Sep 17 00:00:00 2001 From: stuartko <47676853+stuartko@users.noreply.github.com> Date: Fri, 8 Apr 2022 20:05:20 -0700 Subject: [PATCH 7/7] Fixing bad conflict resolution --- specification/resources/resource-manager/readme.python.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/specification/resources/resource-manager/readme.python.md b/specification/resources/resource-manager/readme.python.md index 4230938d8847..41076a77962b 100644 --- a/specification/resources/resource-manager/readme.python.md +++ b/specification/resources/resource-manager/readme.python.md @@ -574,7 +574,6 @@ namespace: azure.mgmt.resource.templatespecs.v2021_05_01 output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01 ``` -<<<<<<< stuartko/Jan22_TSBuiltInsWithApiVersionBump ### Tag: package-templatespecs-2022-02 and python These settings apply only when `--tag=package-templatespecs-2022-02` is specified on the command line. @@ -585,10 +584,7 @@ namespace: azure.mgmt.resource.templatespecs.v2022_02_01 output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2022_02_01 ``` -``` yaml $(python) && $(track2) -======= ``` yaml $(python) ->>>>>>> main modelerfour: lenient-model-deduplication: true ```