From 1e9f28ca6b6c5d7b42b9994c365e07105c2f0fe6 Mon Sep 17 00:00:00 2001 From: Eli Arbel Date: Tue, 23 Feb 2021 01:14:07 +0200 Subject: [PATCH 1/9] ADP version 2021-02-01-preview (initial commit) --- .../preview/2021-02-01-preview/adp.json | 1049 +++++++++++++++++ .../examples/AdpAccountDelete.json | 13 + .../examples/AdpAccountGet.json | 22 + .../examples/AdpAccountPatch.json | 33 + .../examples/AdpAccountPut.json | 34 + .../examples/AdpAccountsList.json | 26 + .../AdpAccountsListByResourceGroup.json | 26 + .../examples/AdpDataPoolDelete.json | 14 + .../examples/AdpDataPoolGet.json | 26 + .../examples/AdpDataPoolPatch.json | 48 + .../examples/AdpDataPoolPut.json | 48 + .../examples/AdpDataPoolsList.json | 30 + .../examples/AdpOperationsList.json | 40 + 13 files changed, 1409 insertions(+) create mode 100644 specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/adp.json create mode 100644 specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountDelete.json create mode 100644 specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountGet.json create mode 100644 specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountPatch.json create mode 100644 specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountPut.json create mode 100644 specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountsList.json create mode 100644 specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountsListByResourceGroup.json create mode 100644 specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolDelete.json create mode 100644 specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolGet.json create mode 100644 specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPatch.json create mode 100644 specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPut.json create mode 100644 specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolsList.json create mode 100644 specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpOperationsList.json diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/adp.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/adp.json new file mode 100644 index 000000000000..ca8a6b363c96 --- /dev/null +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/adp.json @@ -0,0 +1,1049 @@ +{ + "swagger": "2.0", + "info": { + "version": "2020-07-01-preview", + "title": "adp", + "description": "Microsoft Autonomous Development Platform" + }, + "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": { + "/providers/Microsoft.AutonomousDevelopmentPlatform/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available Autonomous Development Platform provider operations.", + "operationId": "Operations_List", + "x-ms-examples": { + "List operations": { + "$ref": "./examples/AdpOperationsList.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AutonomousDevelopmentPlatform/accounts": { + "get": { + "tags": [ + "Accounts" + ], + "operationId": "Accounts_List", + "description": "List all ADP accounts available under the subscription", + "x-ms-examples": { + "List accounts": { + "$ref": "./examples/AdpAccountsList.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AccountList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/accounts": { + "get": { + "tags": [ + "Accounts" + ], + "operationId": "Accounts_ListByResourceGroup", + "description": "List all ADP accounts available under the resource group", + "x-ms-examples": { + "List accounts by resource group": { + "$ref": "./examples/AdpAccountsListByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AccountList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/{accountName}": { + "get": { + "tags": [ + "Accounts" + ], + "operationId": "Accounts_Get", + "description": "Gets the properties of an ADP account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The ADP account properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/Account" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get account": { + "$ref": "./examples/AdpAccountGet.json" + } + } + }, + "patch": { + "tags": [ + "Accounts" + ], + "operationId": "Accounts_Update", + "x-ms-long-running-operation": true, + "description": "Updates the properties of an existing ADP account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "The parameters to provide for the current ADP account.", + "schema": { + "$ref": "#/definitions/AccountPatch" + } + } + ], + "responses": { + "200": { + "description": "The resource was updated successfully.", + "schema": { + "$ref": "#/definitions/Account" + } + }, + "201": { + "description": "The resource will be updated asynchronously.", + "schema": { + "$ref": "#/definitions/Account" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Patch account": { + "$ref": "./examples/AdpAccountPatch.json" + } + } + }, + "put": { + "tags": [ + "Accounts" + ], + "operationId": "Accounts_CreateOrUpdate", + "description": "Creates or updates an ADP account.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "The parameters to provide for the ADP account.", + "schema": { + "$ref": "#/definitions/Account" + } + } + ], + "responses": { + "200": { + "description": "The ADP account was successfully updated.", + "schema": { + "$ref": "#/definitions/Account" + } + }, + "201": { + "description": "The resource will be updated asynchronously.", + "schema": { + "$ref": "#/definitions/Account" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Put account": { + "$ref": "./examples/AdpAccountPut.json" + } + } + }, + "delete": { + "tags": [ + "Accounts" + ], + "operationId": "Accounts_Delete", + "description": "Deletes an ADP account.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The ADP account was successfully deleted." + }, + "202": { + "description": "The ADP account will be deleted asynchronously." + }, + "204": { + "description": "The ADP account does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete account": { + "$ref": "./examples/AdpAccountDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/{accountName}/dataPools": { + "get": { + "tags": [ + "DataPools" + ], + "operationId": "DataPools_List", + "description": "Lists the data pools under the ADP account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The list of data pools that was successfully retrieved.", + "schema": { + "$ref": "#/definitions/DataPoolList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Data Pools": { + "$ref": "./examples/AdpDataPoolsList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/{accountName}/dataPools/{dataPoolName}": { + "get": { + "tags": [ + "DataPools" + ], + "operationId": "DataPools_Get", + "description": "Gets the properties of a Data Pool.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "#/parameters/DataPoolNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Data Pool that was successfully retrieved.", + "schema": { + "$ref": "#/definitions/DataPool" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Data Pool": { + "$ref": "./examples/AdpDataPoolGet.json" + } + } + }, + "patch": { + "tags": [ + "DataPools" + ], + "operationId": "DataPools_Update", + "description": "Updates the properties of an existing Data Pool.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "#/parameters/DataPoolNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "The parameters to provide for the Data Pool.", + "schema": { + "$ref": "#/definitions/DataPoolPatch" + } + } + ], + "responses": { + "200": { + "description": "The Data Pool was updated successfully.", + "schema": { + "$ref": "#/definitions/DataPool" + } + }, + "201": { + "description": "The Data Pool will be updated asynchronously.", + "schema": { + "$ref": "#/definitions/DataPool" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Patch Data Pool": { + "$ref": "./examples/AdpDataPoolPatch.json" + } + } + }, + "put": { + "tags": [ + "DataPools" + ], + "operationId": "DataPools_CreateOrUpdate", + "description": "Creates or updates a Data Pool.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "#/parameters/DataPoolNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "The parameters to provide for the Data Pool.", + "schema": { + "$ref": "#/definitions/DataPool" + } + } + ], + "responses": { + "200": { + "description": "The Data Pool was successfully updated.", + "schema": { + "$ref": "#/definitions/DataPool" + } + }, + "201": { + "description": "The Data Pool will be updated asynchronously.", + "schema": { + "$ref": "#/definitions/DataPool" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Put Data Pool": { + "$ref": "./examples/AdpDataPoolPut.json" + } + } + }, + "delete": { + "tags": [ + "DataPools" + ], + "operationId": "DataPools_Delete", + "description": "Deletes a Data Pool.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "#/parameters/DataPoolNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Data Pool was successfully deleted." + }, + "202": { + "description": "The Data Pool will be deleted asynchronously." + }, + "204": { + "description": "The Data Pool does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Data Pool": { + "$ref": "./examples/AdpDataPoolDelete.json" + } + } + } + } + }, + "definitions": { + "Tags": { + "description": "Resource tags", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags." + } + } + }, + "Account": { + "description": "An ADP account.", + "type": "object", + "properties": { + "properties": { + "description": "List of account properties", + "type": "object", + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccountProperties" + }, + "systemData": { + "readOnly": true, + "description": "The system meta data relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ] + }, + "AccountPatch": { + "description": "An ADP account.", + "type": "object", + "properties": { + "properties": { + "description": "List of account properties", + "type": "object", + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccountProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Tags" + } + ] + }, + "AccountProperties": { + "description": "ADP account properties", + "properties": { + "accountId": { + "description": "The account's data-plane ID", + "type": "string", + "readOnly": true + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "Gets the status of the account at the time the operation was called.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Accepted", + "Provisioning", + "Deleting" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + } + } + }, + "AccountList": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/Account" + }, + "description": "List of accounts and their properties." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + }, + "description": "The list operation response, that contains the data pools and their properties." + }, + "DataPool": { + "description": "An ADP Data Pool.", + "properties": { + "properties": { + "description": "List of data pool properties", + "type": "object", + "x-ms-client-flatten": true, + "$ref": "#/definitions/DataPoolProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ] + }, + "DataPoolPatch": { + "description": "An ADP Data Pool.", + "properties": { + "properties": { + "description": "List of data pool properties", + "type": "object", + "x-ms-client-flatten": true, + "$ref": "#/definitions/DataPoolBaseProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ] + }, + "DataPoolBaseProperties": { + "description": "Data Pool properties", + "properties": { + "dataPoolId": { + "description": "The Data Pool's data-plane ID", + "type": "string", + "readOnly": true + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "Gets the status of the data pool at the time the operation was called.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Accepted", + "Provisioning", + "Deleting" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "locations": { + "type": "array", + "items": { + "$ref": "#/definitions/DataPoolLocation" + }, + "minItems": 1, + "description": "Gets or sets the collection of locations where Data Pool resources should be created." + }, + "systemData": { + "readOnly": true, + "description": "The system meta data relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData" + } + } + }, + "DataPoolProperties": { + "description": "Data Pool properties", + "allOf": [ + { + "$ref": "#/definitions/DataPoolBaseProperties" + } + ], + "required": [ + "locations" + ] + }, + "DataPoolLocation": { + "description": "Location of a Data Pool", + "properties": { + "name": { + "description": "The location name", + "type": "string" + } + }, + "required": [ + "name" + ] + }, + "DataPoolList": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/DataPool" + }, + "description": "List of data pools and their properties." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + }, + "description": "The list operation response, that contains the data pools and their properties." + }, + "Operation": { + "description": "Operation detail payload", + "type": "object", + "properties": { + "name": { + "description": "Name of the operation", + "type": "string" + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean" + }, + "actionType": { + "description": "Indicates the action type.", + "type": "string" + }, + "display": { + "$ref": "#/definitions/OperationDisplay", + "description": "Display of the operation" + }, + "origin": { + "description": "Origin of the operation", + "type": "string" + }, + "properties": { + "$ref": "#/definitions/OperationProperties", + "description": "Properties of the operation", + "x-ms-client-flatten": true + } + } + }, + "OperationDisplay": { + "description": "Operation display payload", + "type": "object", + "properties": { + "provider": { + "description": "Resource provider of the operation", + "type": "string" + }, + "resource": { + "description": "Resource of the operation", + "type": "string" + }, + "operation": { + "description": "Localized friendly name for the operation", + "type": "string" + }, + "description": { + "description": "Localized friendly description for the operation", + "type": "string" + } + } + }, + "OperationProperties": { + "description": "Additional details about an operation.", + "type": "object", + "x-ms-client-flatten": true, + "properties": { + "serviceSpecification": { + "description": "Details about a service operation.", + "$ref": "#/definitions/OperationServiceSpecification" + } + } + }, + "OperationServiceSpecification": { + "description": "Details about a service operation.", + "type": "object", + "properties": { + "logSpecifications": { + "description": "Details about operations related to logs.", + "type": "array", + "items": { + "$ref": "#/definitions/OperationLogSpecification" + } + }, + "metricSpecifications": { + "description": "Details about operations related to metrics.", + "type": "array", + "items": { + "$ref": "#/definitions/OperationMetricSpecification" + } + } + } + }, + "OperationLogSpecification": { + "description": "Details about an operation related to logs.", + "type": "object", + "properties": { + "name": { + "description": "The name of the log category.", + "type": "string" + }, + "displayName": { + "description": "Localized display name.", + "type": "string" + }, + "blobDuration": { + "description": "Blobs created in the customer storage account, per hour.", + "type": "string" + } + } + }, + "OperationMetricSpecification": { + "description": "Details about an operation related to metrics.", + "type": "object", + "properties": { + "name": { + "description": "The name of the metric.", + "type": "string" + }, + "displayName": { + "description": "Localized display name of the metric.", + "type": "string" + }, + "displayDescription": { + "description": "The description of the metric.", + "type": "string" + }, + "unit": { + "description": "The unit that the metric is measured in.", + "type": "string" + }, + "aggregationType": { + "description": "The type of metric aggregation.", + "type": "string" + }, + "enableRegionalMdmAccount": { + "description": "Whether or not the service is using regional MDM accounts.", + "type": "string" + }, + "sourceMdmAccount": { + "description": "The name of the MDM account.", + "type": "string" + }, + "sourceMdmNamespace": { + "description": "The name of the MDM namespace.", + "type": "string" + }, + "availabilities": { + "description": "Defines how often data for metrics becomes available.", + "type": "array", + "items": { + "$ref": "#/definitions/OperationMetricAvailability" + } + } + } + }, + "OperationMetricAvailability": { + "description": "Defines how often data for a metric becomes available.", + "type": "object", + "properties": { + "timeGrain": { + "description": "The granularity for the metric.", + "type": "string" + }, + "blobDuration": { + "description": "Blob created in the customer storage account, per hour.", + "type": "string" + } + } + }, + "OperationListResult": { + "description": "Available operations of the service.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "List of operations supported by the Resource Provider." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "ErrorResponse": { + "description": "Error response.", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDefinition", + "description": "The error details." + } + } + }, + "ErrorDefinition": { + "description": "Error definition.", + "properties": { + "code": { + "description": "Service specific error code which serves as the substatus for the HTTP error code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Description of the error.", + "type": "string", + "readOnly": true + }, + "details": { + "description": "Internal error details.", + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDefinition" + }, + "readOnly": true + } + } + } + }, + "parameters": { + "AccountNameParameter": { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ADP account.", + "pattern": "^[a-z0-9]+(-[a-z0-9]+)*", + "maxLength": 50, + "x-ms-parameter-location": "method" + }, + "DataPoolNameParameter": { + "name": "dataPoolName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Data Pool.", + "pattern": "^[a-z0-9]+(-[a-z0-9]+)*", + "maxLength": 50, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountDelete.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountDelete.json new file mode 100644 index 000000000000..f56df2a354f3 --- /dev/null +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "accountName": "sampleacct", + "resourceGroupName": "adpClient", + "api-version": "2020-07-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountGet.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountGet.json new file mode 100644 index 000000000000..b26fb2fd4abb --- /dev/null +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "accountName": "sampleacct", + "resourceGroupName": "adpClient", + "api-version": "2020-07-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1", + "name": "adp1", + "location": "Global", + "type": "Microsoft.AutonomousDevelopmentPlatform/accounts", + "tags": {}, + "properties": { + "accountId": "id" + } + } + } + } +} diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountPatch.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountPatch.json new file mode 100644 index 000000000000..52f5a7518d75 --- /dev/null +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountPatch.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "accountName": "sampleacct", + "resourceGroupName": "adpClient", + "api-version": "2020-07-01-preview", + "subscriptionId": "subid", + "parameters": { + "properties": {} + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1", + "name": "adp1", + "location": "Global", + "type": "Microsoft.AutonomousDevelopmentPlatform/accounts", + "tags": {}, + "properties": {} + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1", + "name": "adp1", + "location": "Global", + "type": "Microsoft.AutonomousDevelopmentPlatform/accounts", + "tags": {}, + "properties": {} + } + } + } +} diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountPut.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountPut.json new file mode 100644 index 000000000000..2eb9a55173d3 --- /dev/null +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountPut.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "accountName": "sampleacct", + "resourceGroupName": "adpClient", + "api-version": "2020-07-01-preview", + "subscriptionId": "subid", + "parameters": { + "location": "Global", + "properties": {} + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1", + "name": "adp1", + "location": "Global", + "type": "Microsoft.AutonomousDevelopmentPlatform/accounts", + "tags": {}, + "properties": {} + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1", + "name": "adp1", + "location": "Global", + "type": "Microsoft.AutonomousDevelopmentPlatform/accounts", + "tags": {}, + "properties": {} + } + } + } +} diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountsList.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountsList.json new file mode 100644 index 000000000000..ec1224c955e4 --- /dev/null +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountsList.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "resourceGroupName": "adpClient", + "api-version": "2020-07-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1", + "name": "adp1", + "type": "Microsoft.AutonomousDevelopmentPlatform/accounts", + "location": "Global", + "tags": {}, + "properties": { + "accountId": "id" + } + } + ], + "nextLink": "link" + } + } + } +} diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountsListByResourceGroup.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountsListByResourceGroup.json new file mode 100644 index 000000000000..d3a341af516f --- /dev/null +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountsListByResourceGroup.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2020-07-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "adpClient" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1", + "name": "adp1", + "type": "Microsoft.AutonomousDevelopmentPlatform/accounts", + "location": "Global", + "tags": {}, + "properties": { + "accountId": "id" + } + } + ], + "nextLink": "link" + } + } + } +} diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolDelete.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolDelete.json new file mode 100644 index 000000000000..ea2ac77d762c --- /dev/null +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "accountName": "sampleacct", + "dataPoolName": "sampledp", + "resourceGroupName": "adpClient", + "api-version": "2020-07-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolGet.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolGet.json new file mode 100644 index 000000000000..6be7714e47a0 --- /dev/null +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolGet.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "accountName": "sampleacct", + "dataPoolName": "sampledp", + "resourceGroupName": "adpClient", + "api-version": "2020-07-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1/dataPools/dp1", + "name": "dp1", + "type": "Microsoft.AutonomousDevelopmentPlatform/accounts/dataPools", + "properties": { + "dataPoolId": "id", + "locations": [ + { + "name": "westus" + } + ] + } + } + } + } +} diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPatch.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPatch.json new file mode 100644 index 000000000000..3e1343f70936 --- /dev/null +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPatch.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "accountName": "sampleacct", + "dataPoolName": "sampledp", + "resourceGroupName": "adpClient", + "api-version": "2020-07-01-preview", + "subscriptionId": "subid", + "parameters": { + "properties": { + "locations": [ + { + "name": "westus" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1/dataPools/dp1", + "name": "dp1", + "type": "Microsoft.AutonomousDevelopmentPlatform/accounts/dataPools", + "properties": { + "locations": [ + { + "name": "westus" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1/dataPools/dp1", + "name": "dp1", + "type": "Microsoft.AutonomousDevelopmentPlatform/accounts/dataPools", + "properties": { + "locations": [ + { + "name": "westus" + } + ] + } + } + } + } +} diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPut.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPut.json new file mode 100644 index 000000000000..3e1343f70936 --- /dev/null +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPut.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "accountName": "sampleacct", + "dataPoolName": "sampledp", + "resourceGroupName": "adpClient", + "api-version": "2020-07-01-preview", + "subscriptionId": "subid", + "parameters": { + "properties": { + "locations": [ + { + "name": "westus" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1/dataPools/dp1", + "name": "dp1", + "type": "Microsoft.AutonomousDevelopmentPlatform/accounts/dataPools", + "properties": { + "locations": [ + { + "name": "westus" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1/dataPools/dp1", + "name": "dp1", + "type": "Microsoft.AutonomousDevelopmentPlatform/accounts/dataPools", + "properties": { + "locations": [ + { + "name": "westus" + } + ] + } + } + } + } +} diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolsList.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolsList.json new file mode 100644 index 000000000000..61c1d13a4930 --- /dev/null +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolsList.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "accountName": "sampleacct", + "resourceGroupName": "adpClient", + "api-version": "2020-07-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1/dataPools/dp1", + "name": "dp1", + "type": "Microsoft.AutonomousDevelopmentPlatform/accounts/dataPools", + "properties": { + "dataPoolId": "id", + "locations": [ + { + "name": "westus" + } + ] + } + } + ], + "nextLink": "link" + } + } + } +} diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpOperationsList.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpOperationsList.json new file mode 100644 index 000000000000..e2f05ce8376f --- /dev/null +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpOperationsList.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2020-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.AutonomousDevelopmentPlatform/accounts/read", + "display": { + "provider": "Microsoft Autonomous Development Platform", + "resource": "Account", + "operation": "Read accounts", + "description": "Read accounts" + } + }, + { + "name": "Microsoft.AutonomousDevelopmentPlatform/accounts/write", + "display": { + "provider": "Microsoft Autonomous Development Platform", + "resource": "Account", + "operation": "Update accounts", + "description": "Update accounts" + } + }, + { + "name": "Microsoft.AutonomousDevelopmentPlatform/accounts/delete", + "display": { + "provider": "Microsoft Autonomous Development Platform", + "resource": "Account", + "operation": "Delete accounts", + "description": "Delete accounts" + } + } + ] + } + } + } +} From 4ac0b8f56650c3ded7c14784c150c9b40c440dc1 Mon Sep 17 00:00:00 2001 From: Eli Arbel Date: Mon, 22 Feb 2021 10:51:13 +0200 Subject: [PATCH 2/9] ADP 2021-02-01-preview --- .../preview/2021-02-01-preview/adp.json | 314 ++++++++++++------ .../AdpAccountCheckNameAvailability.json | 17 + .../examples/AdpAccountDelete.json | 2 +- .../examples/AdpAccountGet.json | 2 +- .../examples/AdpAccountPatch.json | 2 +- .../examples/AdpAccountPut.json | 2 +- .../examples/AdpAccountsList.json | 2 +- .../AdpAccountsListByResourceGroup.json | 2 +- .../examples/AdpDataPoolDelete.json | 2 +- .../examples/AdpDataPoolGet.json | 2 +- .../examples/AdpDataPoolPatch.json | 2 +- .../examples/AdpDataPoolPut.json | 2 +- .../examples/AdpDataPoolsList.json | 2 +- .../examples/AdpOperationsList.json | 2 +- 14 files changed, 247 insertions(+), 108 deletions(-) create mode 100644 specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountCheckNameAvailability.json diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/adp.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/adp.json index ca8a6b363c96..1b457b84256f 100644 --- a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/adp.json +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/adp.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2020-07-01-preview", + "version": "2021-02-01-preview", "title": "adp", "description": "Microsoft Autonomous Development Platform" }, @@ -39,7 +39,7 @@ "tags": [ "Operations" ], - "description": "Lists all of the available Autonomous Development Platform provider operations.", + "description": "Lists all of the available Autonomous Development Platform provider operations", "operationId": "Operations_List", "x-ms-examples": { "List operations": { @@ -59,7 +59,7 @@ } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error response describing why the operation failed", "schema": { "$ref": "#/definitions/ErrorResponse" } @@ -70,6 +70,45 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AutonomousDevelopmentPlatform/checkNameAvailability": { + "post": { + "tags": [ + "Accounts" + ], + "operationId": "Accounts_CheckNameAvailability", + "description": "Checks that the account name is valid and is not already in use", + "x-ms-examples": { + "AccountCheckNameAvailability": { + "$ref": "./examples/AdpAccountCheckNameAvailability.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AccountCheckNameAvailabilityParameters" + }, + "description": "The checkNameAvailability parameters." + } + ], + "responses": { + "200": { + "description": "OK -- Operation to check the account name availability was successful", + "schema": { + "$ref": "#/definitions/CheckNameAvailabilityResult" + } + } + } + } + }, "/subscriptions/{subscriptionId}/providers/Microsoft.AutonomousDevelopmentPlatform/accounts": { "get": { "tags": [ @@ -98,7 +137,7 @@ } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error response describing why the operation failed", "schema": { "$ref": "#/definitions/ErrorResponse" } @@ -140,7 +179,7 @@ } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error response describing why the operation failed", "schema": { "$ref": "#/definitions/ErrorResponse" } @@ -157,7 +196,7 @@ "Accounts" ], "operationId": "Accounts_Get", - "description": "Gets the properties of an ADP account.", + "description": "Gets the properties of an ADP account", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" @@ -174,13 +213,13 @@ ], "responses": { "200": { - "description": "The ADP account properties were retrieved successfully.", + "description": "The ADP account properties were retrieved successfully", "schema": { "$ref": "#/definitions/Account" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error response describing why the operation failed", "schema": { "$ref": "#/definitions/ErrorResponse" } @@ -198,7 +237,7 @@ ], "operationId": "Accounts_Update", "x-ms-long-running-operation": true, - "description": "Updates the properties of an existing ADP account.", + "description": "Updates the properties of an existing ADP account", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" @@ -215,7 +254,7 @@ { "in": "body", "name": "parameters", - "description": "The parameters to provide for the current ADP account.", + "description": "The parameters to provide for the current ADP account", "schema": { "$ref": "#/definitions/AccountPatch" } @@ -223,19 +262,19 @@ ], "responses": { "200": { - "description": "The resource was updated successfully.", + "description": "The resource was updated successfully", "schema": { "$ref": "#/definitions/Account" } }, "201": { - "description": "The resource will be updated asynchronously.", + "description": "The resource will be updated asynchronously", "schema": { "$ref": "#/definitions/Account" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error response describing why the operation failed", "schema": { "$ref": "#/definitions/ErrorResponse" } @@ -252,7 +291,7 @@ "Accounts" ], "operationId": "Accounts_CreateOrUpdate", - "description": "Creates or updates an ADP account.", + "description": "Creates or updates an ADP account", "x-ms-long-running-operation": true, "parameters": [ { @@ -270,7 +309,7 @@ { "in": "body", "name": "parameters", - "description": "The parameters to provide for the ADP account.", + "description": "The parameters to provide for the ADP account", "schema": { "$ref": "#/definitions/Account" } @@ -278,19 +317,19 @@ ], "responses": { "200": { - "description": "The ADP account was successfully updated.", + "description": "The ADP account was successfully updated", "schema": { "$ref": "#/definitions/Account" } }, "201": { - "description": "The resource will be updated asynchronously.", + "description": "The resource will be updated asynchronously", "schema": { "$ref": "#/definitions/Account" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error response describing why the operation failed", "schema": { "$ref": "#/definitions/ErrorResponse" } @@ -307,7 +346,7 @@ "Accounts" ], "operationId": "Accounts_Delete", - "description": "Deletes an ADP account.", + "description": "Deletes an ADP account", "x-ms-long-running-operation": true, "parameters": [ { @@ -325,16 +364,16 @@ ], "responses": { "200": { - "description": "The ADP account was successfully deleted." + "description": "The ADP account was successfully deleted" }, "202": { - "description": "The ADP account will be deleted asynchronously." + "description": "The ADP account will be deleted asynchronously" }, "204": { - "description": "The ADP account does not exist." + "description": "The ADP account does not exist" }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error response describing why the operation failed", "schema": { "$ref": "#/definitions/ErrorResponse" } @@ -353,7 +392,7 @@ "DataPools" ], "operationId": "DataPools_List", - "description": "Lists the data pools under the ADP account.", + "description": "Lists the data pools under the ADP account", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" @@ -370,13 +409,13 @@ ], "responses": { "200": { - "description": "The list of data pools that was successfully retrieved.", + "description": "The list of data pools that was successfully retrieved", "schema": { "$ref": "#/definitions/DataPoolList" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error response describing why the operation failed", "schema": { "$ref": "#/definitions/ErrorResponse" } @@ -398,7 +437,7 @@ "DataPools" ], "operationId": "DataPools_Get", - "description": "Gets the properties of a Data Pool.", + "description": "Gets the properties of a Data Pool", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" @@ -418,13 +457,13 @@ ], "responses": { "200": { - "description": "The Data Pool that was successfully retrieved.", + "description": "The Data Pool that was successfully retrieved", "schema": { "$ref": "#/definitions/DataPool" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error response describing why the operation failed", "schema": { "$ref": "#/definitions/ErrorResponse" } @@ -441,7 +480,7 @@ "DataPools" ], "operationId": "DataPools_Update", - "description": "Updates the properties of an existing Data Pool.", + "description": "Updates the properties of an existing Data Pool", "x-ms-long-running-operation": true, "parameters": [ { @@ -462,7 +501,7 @@ { "in": "body", "name": "parameters", - "description": "The parameters to provide for the Data Pool.", + "description": "The parameters to provide for the Data Pool", "schema": { "$ref": "#/definitions/DataPoolPatch" } @@ -470,19 +509,19 @@ ], "responses": { "200": { - "description": "The Data Pool was updated successfully.", + "description": "The Data Pool was updated successfully", "schema": { "$ref": "#/definitions/DataPool" } }, "201": { - "description": "The Data Pool will be updated asynchronously.", + "description": "The Data Pool will be updated asynchronously", "schema": { "$ref": "#/definitions/DataPool" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error response describing why the operation failed", "schema": { "$ref": "#/definitions/ErrorResponse" } @@ -499,7 +538,7 @@ "DataPools" ], "operationId": "DataPools_CreateOrUpdate", - "description": "Creates or updates a Data Pool.", + "description": "Creates or updates a Data Pool", "x-ms-long-running-operation": true, "parameters": [ { @@ -520,7 +559,7 @@ { "in": "body", "name": "parameters", - "description": "The parameters to provide for the Data Pool.", + "description": "The parameters to provide for the Data Pool", "schema": { "$ref": "#/definitions/DataPool" } @@ -528,19 +567,19 @@ ], "responses": { "200": { - "description": "The Data Pool was successfully updated.", + "description": "The Data Pool was successfully updated", "schema": { "$ref": "#/definitions/DataPool" } }, "201": { - "description": "The Data Pool will be updated asynchronously.", + "description": "The Data Pool will be updated asynchronously", "schema": { "$ref": "#/definitions/DataPool" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error response describing why the operation failed", "schema": { "$ref": "#/definitions/ErrorResponse" } @@ -557,7 +596,7 @@ "DataPools" ], "operationId": "DataPools_Delete", - "description": "Deletes a Data Pool.", + "description": "Deletes a Data Pool", "x-ms-long-running-operation": true, "parameters": [ { @@ -578,16 +617,16 @@ ], "responses": { "200": { - "description": "The Data Pool was successfully deleted." + "description": "The Data Pool was successfully deleted" }, "202": { - "description": "The Data Pool will be deleted asynchronously." + "description": "The Data Pool will be deleted asynchronously" }, "204": { - "description": "The Data Pool does not exist." + "description": "The Data Pool does not exist" }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error response describing why the operation failed", "schema": { "$ref": "#/definitions/ErrorResponse" } @@ -602,6 +641,59 @@ } }, "definitions": { + "AccountCheckNameAvailabilityParameters": { + "properties": { + "name": { + "type": "string", + "description": "The account name", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AutonomousDevelopmentPlatform/accounts" + ], + "x-ms-enum": { + "name": "Type", + "modelAsString": true + }, + "description": "The type of resource, Microsoft.AutonomousDevelopmentPlatform/accounts" + } + }, + "required": [ + "name", + "type" + ], + "description": "The parameters used to check the availability of the account name" + }, + "CheckNameAvailabilityResult": { + "description": "The checkNameAvailability operation response", + "properties": { + "nameAvailable": { + "readOnly": true, + "type": "boolean", + "description": "Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used" + }, + "reason": { + "readOnly": true, + "type": "string", + "description": "Gets the reason that an account name could not be used. The reason element is only returned if nameAvailable is false", + "enum": [ + "Invalid", + "AlreadyExists" + ], + "x-ms-enum": { + "name": "CheckNameAvailabilityReason", + "modelAsString": true + } + }, + "message": { + "readOnly": true, + "type": "string", + "description": "Gets an error message explaining the reason value in more detail" + } + } + }, "Tags": { "description": "Resource tags", "properties": { @@ -615,12 +707,12 @@ "create", "update" ], - "description": "Resource tags." + "description": "Resource tags" } } }, "Account": { - "description": "An ADP account.", + "description": "ADP account", "type": "object", "properties": { "properties": { @@ -631,7 +723,7 @@ }, "systemData": { "readOnly": true, - "description": "The system meta data relating to this resource.", + "description": "The system meta data relating to this resource", "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData" } }, @@ -642,7 +734,7 @@ ] }, "AccountPatch": { - "description": "An ADP account.", + "description": "ADP account", "type": "object", "properties": { "properties": { @@ -669,7 +761,7 @@ "provisioningState": { "readOnly": true, "type": "string", - "description": "Gets the status of the account at the time the operation was called.", + "description": "Gets the status of the account at the time the operation was called", "enum": [ "Succeeded", "Failed", @@ -693,17 +785,17 @@ "items": { "$ref": "#/definitions/Account" }, - "description": "List of accounts and their properties." + "description": "List of accounts and their properties" }, "nextLink": { "type": "string", - "description": "URL to get the next set of operation list results if there are any." + "description": "URL to get the next set of operation list results if there are any" } }, - "description": "The list operation response, that contains the data pools and their properties." + "description": "The list operation response, that contains the data pools and their properties" }, "DataPool": { - "description": "An ADP Data Pool.", + "description": "ADP Data Pool", "properties": { "properties": { "description": "List of data pool properties", @@ -719,7 +811,7 @@ ] }, "DataPoolPatch": { - "description": "An ADP Data Pool.", + "description": "ADP Data Pool", "properties": { "properties": { "description": "List of data pool properties", @@ -745,7 +837,7 @@ "provisioningState": { "readOnly": true, "type": "string", - "description": "Gets the status of the data pool at the time the operation was called.", + "description": "Gets the status of the data pool at the time the operation was called", "enum": [ "Succeeded", "Failed", @@ -765,11 +857,11 @@ "$ref": "#/definitions/DataPoolLocation" }, "minItems": 1, - "description": "Gets or sets the collection of locations where Data Pool resources should be created." + "description": "Gets or sets the collection of locations where Data Pool resources should be created" }, "systemData": { "readOnly": true, - "description": "The system meta data relating to this resource.", + "description": "The system meta data relating to this resource", "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData" } } @@ -791,12 +883,42 @@ "name": { "description": "The location name", "type": "string" + }, + "encryption": { + "description": "Encryption properties of a Data Pool location", + "$ref": "#/definitions/DataPoolEncryption" } }, "required": [ "name" ] }, + "DataPoolEncryption": { + "description": "Encryption properties of a Data Pool", + "properties": { + "keyVaultUri": { + "type": "string", + "description": "The URI of a soft delete-enabled Key Vault that is in the same location as the Data Pool location" + }, + "keyName": { + "type": "string", + "description": "The name of Key Vault key" + }, + "keyVersion": { + "type": "string", + "description": "The version of Key Vault key" + }, + "userAssignedIdentity": { + "type": "string", + "description": "The resource ID of a user-assigned Managed Identity used to access the encryption key in the Key Vault. Requires access to the key operations get, wrap, unwrap, and recover" + } + }, + "required": [ + "keyVaultUri", + "keyName", + "userAssignedIdentity" + ] + }, "DataPoolList": { "properties": { "value": { @@ -805,14 +927,14 @@ "items": { "$ref": "#/definitions/DataPool" }, - "description": "List of data pools and their properties." + "description": "List of data pools and their properties" }, "nextLink": { "type": "string", - "description": "URL to get the next set of operation list results if there are any." + "description": "URL to get the next set of operation list results if there are any" } }, - "description": "The list operation response, that contains the data pools and their properties." + "description": "The list operation response, that contains the data pools and their properties" }, "Operation": { "description": "Operation detail payload", @@ -827,7 +949,7 @@ "type": "boolean" }, "actionType": { - "description": "Indicates the action type.", + "description": "Indicates the action type", "type": "string" }, "display": { @@ -868,29 +990,29 @@ } }, "OperationProperties": { - "description": "Additional details about an operation.", + "description": "Additional details about an operation", "type": "object", "x-ms-client-flatten": true, "properties": { "serviceSpecification": { - "description": "Details about a service operation.", + "description": "Details about a service operation", "$ref": "#/definitions/OperationServiceSpecification" } } }, "OperationServiceSpecification": { - "description": "Details about a service operation.", + "description": "Details about a service operation", "type": "object", "properties": { "logSpecifications": { - "description": "Details about operations related to logs.", + "description": "Details about operations related to logs", "type": "array", "items": { "$ref": "#/definitions/OperationLogSpecification" } }, "metricSpecifications": { - "description": "Details about operations related to metrics.", + "description": "Details about operations related to metrics", "type": "array", "items": { "$ref": "#/definitions/OperationMetricSpecification" @@ -899,61 +1021,61 @@ } }, "OperationLogSpecification": { - "description": "Details about an operation related to logs.", + "description": "Details about an operation related to logs", "type": "object", "properties": { "name": { - "description": "The name of the log category.", + "description": "The name of the log category", "type": "string" }, "displayName": { - "description": "Localized display name.", + "description": "Localized display name", "type": "string" }, "blobDuration": { - "description": "Blobs created in the customer storage account, per hour.", + "description": "Blobs created in the customer storage account, per hour", "type": "string" } } }, "OperationMetricSpecification": { - "description": "Details about an operation related to metrics.", + "description": "Details about an operation related to metrics", "type": "object", "properties": { "name": { - "description": "The name of the metric.", + "description": "The name of the metric", "type": "string" }, "displayName": { - "description": "Localized display name of the metric.", + "description": "Localized display name of the metric", "type": "string" }, "displayDescription": { - "description": "The description of the metric.", + "description": "The description of the metric", "type": "string" }, "unit": { - "description": "The unit that the metric is measured in.", + "description": "The unit that the metric is measured in", "type": "string" }, "aggregationType": { - "description": "The type of metric aggregation.", + "description": "The type of metric aggregation", "type": "string" }, "enableRegionalMdmAccount": { - "description": "Whether or not the service is using regional MDM accounts.", + "description": "Whether or not the service is using regional MDM accounts", "type": "string" }, "sourceMdmAccount": { - "description": "The name of the MDM account.", + "description": "The name of the MDM account", "type": "string" }, "sourceMdmNamespace": { - "description": "The name of the MDM namespace.", + "description": "The name of the MDM namespace", "type": "string" }, "availabilities": { - "description": "Defines how often data for metrics becomes available.", + "description": "Defines how often data for metrics becomes available", "type": "array", "items": { "$ref": "#/definitions/OperationMetricAvailability" @@ -962,59 +1084,59 @@ } }, "OperationMetricAvailability": { - "description": "Defines how often data for a metric becomes available.", + "description": "Defines how often data for a metric becomes available", "type": "object", "properties": { "timeGrain": { - "description": "The granularity for the metric.", + "description": "The granularity for the metric", "type": "string" }, "blobDuration": { - "description": "Blob created in the customer storage account, per hour.", + "description": "Blob created in the customer storage account, per hour", "type": "string" } } }, "OperationListResult": { - "description": "Available operations of the service.", + "description": "Available operations of the service", "properties": { "value": { "type": "array", "items": { "$ref": "#/definitions/Operation" }, - "description": "List of operations supported by the Resource Provider." + "description": "List of operations supported by the Resource Provider" }, "nextLink": { "type": "string", - "description": "URL to get the next set of operation list results if there are any." + "description": "URL to get the next set of operation list results if there are any" } } }, "ErrorResponse": { - "description": "Error response.", + "description": "Error response", "properties": { "error": { "$ref": "#/definitions/ErrorDefinition", - "description": "The error details." + "description": "The error details" } } }, "ErrorDefinition": { - "description": "Error definition.", + "description": "Error definition", "properties": { "code": { - "description": "Service specific error code which serves as the substatus for the HTTP error code.", + "description": "Service specific error code which serves as the substatus for the HTTP error code", "type": "string", "readOnly": true }, "message": { - "description": "Description of the error.", + "description": "Description of the error", "type": "string", "readOnly": true }, "details": { - "description": "Internal error details.", + "description": "Internal error details", "type": "array", "items": { "$ref": "#/definitions/ErrorDefinition" @@ -1030,8 +1152,8 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the ADP account.", - "pattern": "^[a-z0-9]+(-[a-z0-9]+)*", + "description": "The name of the ADP account", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", "maxLength": 50, "x-ms-parameter-location": "method" }, @@ -1040,8 +1162,8 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the Data Pool.", - "pattern": "^[a-z0-9]+(-[a-z0-9]+)*", + "description": "The name of the Data Pool", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", "maxLength": 50, "x-ms-parameter-location": "method" } diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountCheckNameAvailability.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountCheckNameAvailability.json new file mode 100644 index 000000000000..9c2851286f51 --- /dev/null +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountCheckNameAvailability.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2021-02-01-preview", + "subscriptionId": "subid", + "properties": { + "name": "adp1", + "type": "Microsoft.AutonomousDevelopmentPlatform/accounts" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true + } + } + } +} diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountDelete.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountDelete.json index f56df2a354f3..4f762116823a 100644 --- a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountDelete.json +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "sampleacct", "resourceGroupName": "adpClient", - "api-version": "2020-07-01-preview", + "api-version": "2021-02-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountGet.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountGet.json index b26fb2fd4abb..11c41ab4a953 100644 --- a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountGet.json +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "sampleacct", "resourceGroupName": "adpClient", - "api-version": "2020-07-01-preview", + "api-version": "2021-02-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountPatch.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountPatch.json index 52f5a7518d75..e820b2510a8d 100644 --- a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountPatch.json +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountPatch.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "sampleacct", "resourceGroupName": "adpClient", - "api-version": "2020-07-01-preview", + "api-version": "2021-02-01-preview", "subscriptionId": "subid", "parameters": { "properties": {} diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountPut.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountPut.json index 2eb9a55173d3..8ae37fb6ff1f 100644 --- a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountPut.json +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountPut.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "sampleacct", "resourceGroupName": "adpClient", - "api-version": "2020-07-01-preview", + "api-version": "2021-02-01-preview", "subscriptionId": "subid", "parameters": { "location": "Global", diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountsList.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountsList.json index ec1224c955e4..8c017a5d432d 100644 --- a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountsList.json +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountsList.json @@ -1,7 +1,7 @@ { "parameters": { "resourceGroupName": "adpClient", - "api-version": "2020-07-01-preview", + "api-version": "2021-02-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountsListByResourceGroup.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountsListByResourceGroup.json index d3a341af516f..2678be281d25 100644 --- a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountsListByResourceGroup.json +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountsListByResourceGroup.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-07-01-preview", + "api-version": "2021-02-01-preview", "subscriptionId": "subid", "resourceGroupName": "adpClient" }, diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolDelete.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolDelete.json index ea2ac77d762c..233b9bf29b7d 100644 --- a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolDelete.json +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolDelete.json @@ -3,7 +3,7 @@ "accountName": "sampleacct", "dataPoolName": "sampledp", "resourceGroupName": "adpClient", - "api-version": "2020-07-01-preview", + "api-version": "2021-02-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolGet.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolGet.json index 6be7714e47a0..4e575ef35d2b 100644 --- a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolGet.json +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolGet.json @@ -3,7 +3,7 @@ "accountName": "sampleacct", "dataPoolName": "sampledp", "resourceGroupName": "adpClient", - "api-version": "2020-07-01-preview", + "api-version": "2021-02-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPatch.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPatch.json index 3e1343f70936..f2b99f7a08b9 100644 --- a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPatch.json +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPatch.json @@ -3,7 +3,7 @@ "accountName": "sampleacct", "dataPoolName": "sampledp", "resourceGroupName": "adpClient", - "api-version": "2020-07-01-preview", + "api-version": "2021-02-01-preview", "subscriptionId": "subid", "parameters": { "properties": { diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPut.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPut.json index 3e1343f70936..f2b99f7a08b9 100644 --- a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPut.json +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPut.json @@ -3,7 +3,7 @@ "accountName": "sampleacct", "dataPoolName": "sampledp", "resourceGroupName": "adpClient", - "api-version": "2020-07-01-preview", + "api-version": "2021-02-01-preview", "subscriptionId": "subid", "parameters": { "properties": { diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolsList.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolsList.json index 61c1d13a4930..554a3e5870ec 100644 --- a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolsList.json +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolsList.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "sampleacct", "resourceGroupName": "adpClient", - "api-version": "2020-07-01-preview", + "api-version": "2021-02-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpOperationsList.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpOperationsList.json index e2f05ce8376f..c009f4bd294b 100644 --- a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpOperationsList.json +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpOperationsList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-07-01-preview" + "api-version": "2021-02-01-preview" }, "responses": { "200": { From 0a0d5a277f20ecaae9f995dd449b1409cec10662 Mon Sep 17 00:00:00 2001 From: Eli Arbel Date: Mon, 22 Feb 2021 12:54:30 +0200 Subject: [PATCH 3/9] Update readmes --- .../readme.azureresourceschema.md | 12 +++--------- specification/adp/resource-manager/readme.go.md | 10 ++++------ specification/adp/resource-manager/readme.md | 13 +++++++------ .../adp/resource-manager/readme.python.md | 13 +++++++------ .../adp/resource-manager/readme.ruby.md | 17 +++++++++++------ 5 files changed, 32 insertions(+), 33 deletions(-) diff --git a/specification/adp/resource-manager/readme.azureresourceschema.md b/specification/adp/resource-manager/readme.azureresourceschema.md index 3918663139d7..bc793d07a6d3 100644 --- a/specification/adp/resource-manager/readme.azureresourceschema.md +++ b/specification/adp/resource-manager/readme.azureresourceschema.md @@ -6,19 +6,13 @@ These settings apply only when `--azureresourceschema` is specified on the comma ``` yaml $(azureresourceschema) && $(multiapi) batch: - - tag: schema-autonomousdevelopmentplatform-2020-07-01-preview + - tag: 2020-07-01-preview + - tag: 2021-02-01-preview ``` Please also specify `--azureresourceschema-folder=`. -### Tag: schema-autonomousdevelopmentplatform-2020-07-01-preview and azureresourceschema - -``` yaml $(tag) == 'schema-autonomousdevelopmentplatform-2020-07-01-preview' && $(azureresourceschema) +``` yaml $(azureresourceschema) output-folder: $(azureresourceschema-folder)/schemas - -# all the input files in this apiVersion -input-file: - - Microsoft.AutonomousDevelopmentPlatform/preview/2020-07-01-preview/adp.json - ``` diff --git a/specification/adp/resource-manager/readme.go.md b/specification/adp/resource-manager/readme.go.md index 0dfd22daae00..6291ea59e990 100644 --- a/specification/adp/resource-manager/readme.go.md +++ b/specification/adp/resource-manager/readme.go.md @@ -13,14 +13,12 @@ go: ``` yaml $(go) && $(multiapi) batch: - - tag: package-2020-07-01-preview + - tag: 2020-07-01-preview + - tag: 2021-02-01-preview ``` -### Tag: package-2020-07-01-preview and go - -These settings apply only when `--tag=package-2020-07-01-preview --go` is specified on the command line. Please also specify `--go-sdks-folder=`. -```yaml $(tag) == 'package-2020-07-01-preview' && $(go) -output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-07-01-preview/$(namespace) +```yaml $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/$(tag)/$(namespace) ``` diff --git a/specification/adp/resource-manager/readme.md b/specification/adp/resource-manager/readme.md index 64fa366eb591..cd586eea29f8 100644 --- a/specification/adp/resource-manager/readme.md +++ b/specification/adp/resource-manager/readme.md @@ -28,18 +28,19 @@ These are the global settings for the adp. title: AdpManagementClient openapi-type: arm openapi-subtype: rpaas -tag: package-2020-07-01-preview +tag: 2021-02-01-preview ``` -### Tag: package-2020-07-01-preview - -These settings apply only when `--tag=package-2020-07-01-preview` is specified on the command line. - -```yaml $(tag) == 'package-2020-07-01-preview' +```yaml $(tag) == '2020-07-01-preview' input-file: - Microsoft.AutonomousDevelopmentPlatform/preview/2020-07-01-preview/adp.json ``` +```yaml $(tag) == '2021-02-01-preview' +input-file: + - Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/adp.json +``` + --- # Code Generation diff --git a/specification/adp/resource-manager/readme.python.md b/specification/adp/resource-manager/readme.python.md index 07758b81e1ea..3990860c584f 100644 --- a/specification/adp/resource-manager/readme.python.md +++ b/specification/adp/resource-manager/readme.python.md @@ -16,7 +16,8 @@ modelerfour: ```yaml $(multiapi) clear-output-folder: true batch: - - tag: package-2020-07-01-preview + - tag: 2020-07-01-preview + - tag: 2021-02-01-preview - multiapiscript: true ``` @@ -26,10 +27,10 @@ clear-output-folder: false perform-load: false ``` -``` yaml $(tag) == 'package-2020-07-01-preview' -namespace: azure.mgmt.adp.v2020_07_01_preview -output-folder: $(python-sdks-folder)/adp/azure-mgmt-adp/azure/mgmt/adp/v2020_07_01_preview +``` yaml +namespace: azure.mgmt.adp.v$(tag) +output-folder: $(python-sdks-folder)/adp/azure-mgmt-adp/azure/mgmt/adp/v$(tag) python: - namespace: azure.mgmt.adp.v2020_07_01_preview - output-folder: $(python-sdks-folder)/adp/azure-mgmt-adp/azure/mgmt/adp/v2020_07_01_preview + namespace: azure.mgmt.adp.v$(tag) + output-folder: $(python-sdks-folder)/adp/azure-mgmt-adp/azure/mgmt/adp/v$(tag) ``` diff --git a/specification/adp/resource-manager/readme.ruby.md b/specification/adp/resource-manager/readme.ruby.md index cedab1ae4f5d..704740df4623 100644 --- a/specification/adp/resource-manager/readme.ruby.md +++ b/specification/adp/resource-manager/readme.ruby.md @@ -4,22 +4,27 @@ These settings apply only when `--ruby` is specified on the command line. ```yaml package-name: azure_mgmt_adp -package-version: 2020-07-01-preview +package-version: 2021-02-01-preview azure-arm: true ``` ``` yaml $(ruby) && $(multiapi) batch: - - tag: package-2020-07-01-preview + - tag: 2020-07-01-preview + - tag: 2021-02-01-preview ``` +```yaml $(tag) == '2020-07-01-preview' +rubytag: 2020_07_01_preview +``` -### Tag: package-2020-07-01-preview and ruby +```yaml $(tag) == '2021-02-01-preview' +rubytag: 2021_02_01_preview +``` -These settings apply only when `--tag=package-2020-07-01-preview --ruby` is specified on the command line. Please also specify `--ruby-sdks-folder=`. -```yaml $(tag) == 'package-2020-07-01-preview' && $(ruby) -namespace: Azure::AutonomousDevelopmentPlatform::Mgmt::V2020_07_01_preview +```yaml $(ruby) +namespace: Azure::AutonomousDevelopmentPlatform::Mgmt::V$(rubytag) output-folder: $(ruby-sdks-folder)/management/azure_mgmt_adp/lib ``` From b2c8ddbf09d494a2f25f77ef8156579c5601d1c0 Mon Sep 17 00:00:00 2001 From: Eli Arbel Date: Mon, 22 Feb 2021 13:16:18 +0200 Subject: [PATCH 4/9] Update codeowners --- CODEOWNERS | 1 + 1 file changed, 1 insertion(+) diff --git a/CODEOWNERS b/CODEOWNERS index b0089fd73d65..d628987f36ee 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,3 +1,4 @@ +/specification/adp/ @Azure/adp /specification/analysisservices/ @taiwu /specification/alertsmanagement/ @ofirmanor @olalavi @erangon @orieldar @ilaizi @shakednai1 @khaboasb @orenhor /specification/apimanagement/ @promoisha @solankisamir From e6925056f611dbeb9ccccf62e9d8ad4b1907974f Mon Sep 17 00:00:00 2001 From: Eli Arbel Date: Mon, 22 Feb 2021 13:23:57 +0200 Subject: [PATCH 5/9] Fix validation errors --- .../preview/2021-02-01-preview/adp.json | 6 ++++++ .../examples/AdpAccountCheckNameAvailability.json | 2 +- specification/adp/resource-manager/readme.md | 2 ++ specification/adp/resource-manager/readme.python.md | 8 ++++---- specification/adp/resource-manager/readme.ruby.md | 10 +--------- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/adp.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/adp.json index 1b457b84256f..41dbcd18286b 100644 --- a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/adp.json +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/adp.json @@ -105,6 +105,12 @@ "schema": { "$ref": "#/definitions/CheckNameAvailabilityResult" } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } } } diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountCheckNameAvailability.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountCheckNameAvailability.json index 9c2851286f51..ef24aa847e34 100644 --- a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountCheckNameAvailability.json +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpAccountCheckNameAvailability.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2021-02-01-preview", "subscriptionId": "subid", - "properties": { + "parameters": { "name": "adp1", "type": "Microsoft.AutonomousDevelopmentPlatform/accounts" } diff --git a/specification/adp/resource-manager/readme.md b/specification/adp/resource-manager/readme.md index cd586eea29f8..54a2a41f033f 100644 --- a/specification/adp/resource-manager/readme.md +++ b/specification/adp/resource-manager/readme.md @@ -32,11 +32,13 @@ tag: 2021-02-01-preview ``` ```yaml $(tag) == '2020-07-01-preview' +nstag: 2020_07_01_preview input-file: - Microsoft.AutonomousDevelopmentPlatform/preview/2020-07-01-preview/adp.json ``` ```yaml $(tag) == '2021-02-01-preview' +nstag: 2021_02_01_preview input-file: - Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/adp.json ``` diff --git a/specification/adp/resource-manager/readme.python.md b/specification/adp/resource-manager/readme.python.md index 3990860c584f..5695a842f992 100644 --- a/specification/adp/resource-manager/readme.python.md +++ b/specification/adp/resource-manager/readme.python.md @@ -28,9 +28,9 @@ perform-load: false ``` ``` yaml -namespace: azure.mgmt.adp.v$(tag) -output-folder: $(python-sdks-folder)/adp/azure-mgmt-adp/azure/mgmt/adp/v$(tag) +namespace: azure.mgmt.adp.v$(nstag) +output-folder: $(python-sdks-folder)/adp/azure-mgmt-adp/azure/mgmt/adp/v$(nstag) python: - namespace: azure.mgmt.adp.v$(tag) - output-folder: $(python-sdks-folder)/adp/azure-mgmt-adp/azure/mgmt/adp/v$(tag) + namespace: azure.mgmt.adp.v$(nstag) + output-folder: $(python-sdks-folder)/adp/azure-mgmt-adp/azure/mgmt/adp/v$(nstag) ``` diff --git a/specification/adp/resource-manager/readme.ruby.md b/specification/adp/resource-manager/readme.ruby.md index 704740df4623..d0b869c3cc64 100644 --- a/specification/adp/resource-manager/readme.ruby.md +++ b/specification/adp/resource-manager/readme.ruby.md @@ -14,17 +14,9 @@ batch: - tag: 2021-02-01-preview ``` -```yaml $(tag) == '2020-07-01-preview' -rubytag: 2020_07_01_preview -``` - -```yaml $(tag) == '2021-02-01-preview' -rubytag: 2021_02_01_preview -``` - Please also specify `--ruby-sdks-folder=`. ```yaml $(ruby) -namespace: Azure::AutonomousDevelopmentPlatform::Mgmt::V$(rubytag) +namespace: Azure::AutonomousDevelopmentPlatform::Mgmt::V$(nstag) output-folder: $(ruby-sdks-folder)/management/azure_mgmt_adp/lib ``` From c8e687a7653212b5b391dd292862a5d630047d03 Mon Sep 17 00:00:00 2001 From: Eli Arbel Date: Mon, 22 Feb 2021 13:46:30 +0200 Subject: [PATCH 6/9] Add type:object --- .../preview/2021-02-01-preview/adp.json | 35 +++++++++++++------ 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/adp.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/adp.json index 41dbcd18286b..1710f6ff852f 100644 --- a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/adp.json +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/adp.json @@ -701,6 +701,7 @@ } }, "Tags": { + "type": "object", "description": "Resource tags", "properties": { "tags": { @@ -718,8 +719,8 @@ } }, "Account": { - "description": "ADP account", "type": "object", + "description": "ADP account", "properties": { "properties": { "description": "List of account properties", @@ -740,8 +741,8 @@ ] }, "AccountPatch": { - "description": "ADP account", "type": "object", + "description": "ADP account", "properties": { "properties": { "description": "List of account properties", @@ -757,6 +758,7 @@ ] }, "AccountProperties": { + "type": "object", "description": "ADP account properties", "properties": { "accountId": { @@ -784,6 +786,8 @@ } }, "AccountList": { + "type": "object", + "description": "The list operation response, that contains the data pools and their properties", "properties": { "value": { "readOnly": true, @@ -797,10 +801,10 @@ "type": "string", "description": "URL to get the next set of operation list results if there are any" } - }, - "description": "The list operation response, that contains the data pools and their properties" + } }, "DataPool": { + "type": "object", "description": "ADP Data Pool", "properties": { "properties": { @@ -817,6 +821,7 @@ ] }, "DataPoolPatch": { + "type": "object", "description": "ADP Data Pool", "properties": { "properties": { @@ -833,6 +838,7 @@ ] }, "DataPoolBaseProperties": { + "type": "object", "description": "Data Pool properties", "properties": { "dataPoolId": { @@ -873,6 +879,7 @@ } }, "DataPoolProperties": { + "type": "object", "description": "Data Pool properties", "allOf": [ { @@ -884,6 +891,7 @@ ] }, "DataPoolLocation": { + "type": "object", "description": "Location of a Data Pool", "properties": { "name": { @@ -900,6 +908,7 @@ ] }, "DataPoolEncryption": { + "type": "object", "description": "Encryption properties of a Data Pool", "properties": { "keyVaultUri": { @@ -926,6 +935,7 @@ ] }, "DataPoolList": { + "type": "object", "properties": { "value": { "readOnly": true, @@ -943,8 +953,8 @@ "description": "The list operation response, that contains the data pools and their properties" }, "Operation": { - "description": "Operation detail payload", "type": "object", + "description": "Operation detail payload", "properties": { "name": { "description": "Name of the operation", @@ -974,8 +984,8 @@ } }, "OperationDisplay": { - "description": "Operation display payload", "type": "object", + "description": "Operation display payload", "properties": { "provider": { "description": "Resource provider of the operation", @@ -996,8 +1006,8 @@ } }, "OperationProperties": { - "description": "Additional details about an operation", "type": "object", + "description": "Additional details about an operation", "x-ms-client-flatten": true, "properties": { "serviceSpecification": { @@ -1007,8 +1017,8 @@ } }, "OperationServiceSpecification": { - "description": "Details about a service operation", "type": "object", + "description": "Details about a service operation", "properties": { "logSpecifications": { "description": "Details about operations related to logs", @@ -1027,8 +1037,8 @@ } }, "OperationLogSpecification": { - "description": "Details about an operation related to logs", "type": "object", + "description": "Details about an operation related to logs", "properties": { "name": { "description": "The name of the log category", @@ -1045,8 +1055,8 @@ } }, "OperationMetricSpecification": { - "description": "Details about an operation related to metrics", "type": "object", + "description": "Details about an operation related to metrics", "properties": { "name": { "description": "The name of the metric", @@ -1090,8 +1100,8 @@ } }, "OperationMetricAvailability": { - "description": "Defines how often data for a metric becomes available", "type": "object", + "description": "Defines how often data for a metric becomes available", "properties": { "timeGrain": { "description": "The granularity for the metric", @@ -1104,6 +1114,7 @@ } }, "OperationListResult": { + "type": "object", "description": "Available operations of the service", "properties": { "value": { @@ -1120,6 +1131,7 @@ } }, "ErrorResponse": { + "type": "object", "description": "Error response", "properties": { "error": { @@ -1129,6 +1141,7 @@ } }, "ErrorDefinition": { + "type": "object", "description": "Error definition", "properties": { "code": { From 36eb44036043b80b7b60c4737ade6512f300ddbb Mon Sep 17 00:00:00 2001 From: Eli Arbel Date: Tue, 23 Feb 2021 02:54:36 +0200 Subject: [PATCH 7/9] Add encryption example --- .../2021-02-01-preview/examples/AdpDataPoolPut.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPut.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPut.json index f2b99f7a08b9..4473efcd2423 100644 --- a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPut.json +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPut.json @@ -9,7 +9,13 @@ "properties": { "locations": [ { - "name": "westus" + "name": "westus", + "encryption": { + "keyVaultUri": "https://vaulturi", + "keyName": "key1", + "keyVersion": "123", + "userAssignedIdentity": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1" + } } ] } @@ -45,4 +51,4 @@ } } } -} +} \ No newline at end of file From 9f942002bc8cda6a24c2b6aaa52de14d014b6b27 Mon Sep 17 00:00:00 2001 From: Eli Arbel Date: Wed, 24 Feb 2021 11:52:24 +0200 Subject: [PATCH 8/9] Restore package- convention --- .../resource-manager/readme.azureresourceschema.md | 4 ++-- specification/adp/resource-manager/readme.go.md | 6 +++--- specification/adp/resource-manager/readme.md | 12 +++++++----- specification/adp/resource-manager/readme.python.md | 12 ++++++------ specification/adp/resource-manager/readme.ruby.md | 6 +++--- 5 files changed, 21 insertions(+), 19 deletions(-) diff --git a/specification/adp/resource-manager/readme.azureresourceschema.md b/specification/adp/resource-manager/readme.azureresourceschema.md index bc793d07a6d3..870c1a9ea328 100644 --- a/specification/adp/resource-manager/readme.azureresourceschema.md +++ b/specification/adp/resource-manager/readme.azureresourceschema.md @@ -6,8 +6,8 @@ These settings apply only when `--azureresourceschema` is specified on the comma ``` yaml $(azureresourceschema) && $(multiapi) batch: - - tag: 2020-07-01-preview - - tag: 2021-02-01-preview + - tag: package-2020-07-01-preview + - tag: package-2021-02-01-preview ``` diff --git a/specification/adp/resource-manager/readme.go.md b/specification/adp/resource-manager/readme.go.md index 6291ea59e990..826064aa1b8b 100644 --- a/specification/adp/resource-manager/readme.go.md +++ b/specification/adp/resource-manager/readme.go.md @@ -13,12 +13,12 @@ go: ``` yaml $(go) && $(multiapi) batch: - - tag: 2020-07-01-preview - - tag: 2021-02-01-preview + - tag: package-2020-07-01-preview + - tag: package-2021-02-01-preview ``` Please also specify `--go-sdks-folder=`. ```yaml $(go) -output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/$(tag)/$(namespace) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/$(version)/$(namespace) ``` diff --git a/specification/adp/resource-manager/readme.md b/specification/adp/resource-manager/readme.md index 54a2a41f033f..54adcfff3aae 100644 --- a/specification/adp/resource-manager/readme.md +++ b/specification/adp/resource-manager/readme.md @@ -28,17 +28,19 @@ These are the global settings for the adp. title: AdpManagementClient openapi-type: arm openapi-subtype: rpaas -tag: 2021-02-01-preview +tag: package-2021-02-01-preview ``` -```yaml $(tag) == '2020-07-01-preview' -nstag: 2020_07_01_preview +```yaml $(tag) == 'package-2020-07-01-preview' +version: 2020-07-01-preview +version-with-underscores: 2020_07_01_preview input-file: - Microsoft.AutonomousDevelopmentPlatform/preview/2020-07-01-preview/adp.json ``` -```yaml $(tag) == '2021-02-01-preview' -nstag: 2021_02_01_preview +```yaml $(tag) == 'package-2021-02-01-preview' +version: 2021-02-01-preview +version-with-underscores: 2021_02_01_preview input-file: - Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/adp.json ``` diff --git a/specification/adp/resource-manager/readme.python.md b/specification/adp/resource-manager/readme.python.md index 5695a842f992..9b8f84a4ce14 100644 --- a/specification/adp/resource-manager/readme.python.md +++ b/specification/adp/resource-manager/readme.python.md @@ -16,8 +16,8 @@ modelerfour: ```yaml $(multiapi) clear-output-folder: true batch: - - tag: 2020-07-01-preview - - tag: 2021-02-01-preview + - tag: package-2020-07-01-preview + - tag: package-2021-02-01-preview - multiapiscript: true ``` @@ -28,9 +28,9 @@ perform-load: false ``` ``` yaml -namespace: azure.mgmt.adp.v$(nstag) -output-folder: $(python-sdks-folder)/adp/azure-mgmt-adp/azure/mgmt/adp/v$(nstag) +namespace: azure.mgmt.adp.v$(version-with-underscores) +output-folder: $(python-sdks-folder)/adp/azure-mgmt-adp/azure/mgmt/adp/v$(version-with-underscores) python: - namespace: azure.mgmt.adp.v$(nstag) - output-folder: $(python-sdks-folder)/adp/azure-mgmt-adp/azure/mgmt/adp/v$(nstag) + namespace: azure.mgmt.adp.v$(version-with-underscores) + output-folder: $(python-sdks-folder)/adp/azure-mgmt-adp/azure/mgmt/adp/v$(version-with-underscores) ``` diff --git a/specification/adp/resource-manager/readme.ruby.md b/specification/adp/resource-manager/readme.ruby.md index d0b869c3cc64..e4fa1128d1cb 100644 --- a/specification/adp/resource-manager/readme.ruby.md +++ b/specification/adp/resource-manager/readme.ruby.md @@ -10,13 +10,13 @@ azure-arm: true ``` yaml $(ruby) && $(multiapi) batch: - - tag: 2020-07-01-preview - - tag: 2021-02-01-preview + - tag: package-2020-07-01-preview + - tag: package-2021-02-01-preview ``` Please also specify `--ruby-sdks-folder=`. ```yaml $(ruby) -namespace: Azure::AutonomousDevelopmentPlatform::Mgmt::V$(nstag) +namespace: Azure::AutonomousDevelopmentPlatform::Mgmt::V$(version-with-underscores) output-folder: $(ruby-sdks-folder)/management/azure_mgmt_adp/lib ``` From 4f969eddbe989fb29e1762958ac8a75ae144dfe8 Mon Sep 17 00:00:00 2001 From: Eli Arbel Date: Wed, 24 Feb 2021 14:37:57 +0200 Subject: [PATCH 9/9] Prettier --- .../preview/2021-02-01-preview/examples/AdpDataPoolPut.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPut.json b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPut.json index 4473efcd2423..82f970d60d19 100644 --- a/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPut.json +++ b/specification/adp/resource-manager/Microsoft.AutonomousDevelopmentPlatform/preview/2021-02-01-preview/examples/AdpDataPoolPut.json @@ -51,4 +51,4 @@ } } } -} \ No newline at end of file +}