From 99cda02e02738ecd39bf9b4fbe0b0addf0ca4149 Mon Sep 17 00:00:00 2001 From: David Han Date: Mon, 28 Dec 2020 17:47:56 -0800 Subject: [PATCH 01/10] Copy existing version to new directory --- .../examples/checkNameAvailability.json | 19 + .../2020-12-28/examples/createCapacity.json | 78 ++ .../2020-12-28/examples/deleteCapacity.json | 21 + .../2020-12-28/examples/getCapacity.json | 32 + .../listCapacitiesInResourceGroup.json | 58 ++ .../listCapacitiesInSubscription.json | 57 + .../examples/listSKUsForExisting.json | 47 + .../2020-12-28/examples/listSKUsForNew.json | 33 + .../2020-12-28/examples/resumeCapacity.json | 18 + .../2020-12-28/examples/suspendCapacity.json | 18 + .../2020-12-28/examples/updateCapacity.json | 77 ++ .../stable/2020-12-28/powerbidedicated.json | 982 ++++++++++++++++++ 12 files changed, 1440 insertions(+) create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/checkNameAvailability.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/createCapacity.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/deleteCapacity.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/getCapacity.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInResourceGroup.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInSubscription.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForExisting.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForNew.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/resumeCapacity.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/suspendCapacity.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/updateCapacity.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/checkNameAvailability.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/checkNameAvailability.json new file mode 100644 index 000000000000..2b3b36b98e16 --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/checkNameAvailability.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "location": "West US", + "capacityParameters": { + "name": "azsdktest", + "type": "Microsoft.PowerBIDedicated/capacities" + }, + "api-version": "2017-10-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "nameAvailable": true + } + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/createCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/createCapacity.json new file mode 100644 index 000000000000..c6c521aab520 --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/createCapacity.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "resourceGroupName": "TestRG", + "dedicatedCapacityName": "azsdktest", + "api-version": "2017-10-01", + "capacityParameters": { + "sku": { + "name": "A1", + "tier": "PBIE_Azure" + }, + "tags": { + "testKey": "testValue" + }, + "location": "West US", + "properties": { + "administration": { + "members": [ + "azsdktest@microsoft.com", + "azsdktest2@microsoft.com" + ] + } + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", + "location": "West US", + "name": "azsdktest", + "properties": { + "administration": { + "members": [ + "azsdktest@microsoft.com", + "azsdktest2@microsoft.com" + ] + }, + "provisioningState": "Provisioning", + "state": "Provisioning" + }, + "sku": { + "name": "A1", + "tier": "PBIE_Azure" + }, + "tags": { + "testKey": "testValue" + } + } + }, + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/servers/azsdktest", + "location": "West US", + "name": "azsdktest", + "properties": { + "administration": { + "members": [ + "azsdktest@microsoft.com", + "azsdktest2@microsoft.com" + ] + }, + "provisioningState": "Provisioning", + "state": "Provisioning" + }, + "sku": { + "name": "A1", + "tier": "PBIE_Azure" + }, + "tags": { + "testKey": "testValue" + } + } + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/deleteCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/deleteCapacity.json new file mode 100644 index 000000000000..11f4271b7e19 --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/deleteCapacity.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "resourceGroupName": "TestRG", + "dedicatedCapacityName": "azsdktest", + "api-version": "2017-10-01" + }, + "responses": { + "200": { + "headers": {}, + "description": "OK." + }, + "202": { + "headers": {}, + "description": "Accepted." + }, + "204": { + "headers": {} + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/getCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/getCapacity.json new file mode 100644 index 000000000000..dd3a3963161d --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/getCapacity.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "resourceGroupName": "TestRG", + "dedicatedCapacityName": "azsdktest", + "api-version": "2017-10-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", + "location": "West US", + "name": "azsdktest", + "properties": { + "administration": { + "members": [ + "azsdktest@microsoft.com" + ] + }, + "provisioningState": "Provisioning", + "state": "Provisioning" + }, + "sku": { + "name": "A1", + "tier": "PBIE_Azure" + }, + "tags": {} + } + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInResourceGroup.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInResourceGroup.json new file mode 100644 index 000000000000..169167e66102 --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInResourceGroup.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "resourceGroupName": "TestRG", + "api-version": "2017-10-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", + "location": "West US", + "name": "azsdktest", + "properties": { + "administration": { + "members": [ + "azsdktest@microsoft.com" + ] + }, + "provisioningState": "Provisioning", + "state": "Provisioning" + }, + "sku": { + "name": "A1", + "tier": "PBIE_Azure" + }, + "tags": { + "testKey": "testValue" + } + }, + { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", + "location": "West US", + "name": "azsdktest2", + "properties": { + "administration": { + "members": [ + "azsdktest@microsoft.com" + ] + }, + "provisioningState": "Provisioning", + "state": "Provisioning" + }, + "sku": { + "name": "A2", + "tier": "PBIE_Azure" + }, + "tags": { + "testKey": "testValue" + } + } + ] + } + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInSubscription.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInSubscription.json new file mode 100644 index 000000000000..50eaa1d0c9a0 --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInSubscription.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "api-version": "2017-10-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", + "location": "West US", + "name": "azsdktest", + "properties": { + "administration": { + "members": [ + "azsdktest@microsoft.com" + ] + }, + "provisioningState": "Provisioning", + "state": "Provisioning" + }, + "sku": { + "name": "A1", + "tier": "PBIE_Azure" + }, + "tags": { + "testKey": "testValue" + } + }, + { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", + "location": "West US", + "name": "azsdktest2", + "properties": { + "administration": { + "members": [ + "azsdktest@microsoft.com" + ] + }, + "provisioningState": "Provisioning", + "state": "Provisioning" + }, + "sku": { + "name": "A2", + "tier": "PBIE_Azure" + }, + "tags": { + "testKey": "testValue" + } + } + ] + } + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForExisting.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForExisting.json new file mode 100644 index 000000000000..6b6c95a16fc9 --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForExisting.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "resourceGroupName": "TestRG", + "dedicatedCapacityName": "azsdktest", + "api-version": "2017-10-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "sku": { + "name": "A2", + "tier": "PBIE_Azure" + } + }, + { + "sku": { + "name": "A3", + "tier": "PBIE_Azure" + } + }, + { + "sku": { + "name": "A4", + "tier": "PBIE_Azure" + } + }, + { + "sku": { + "name": "A5", + "tier": "PBIE_Azure" + } + }, + { + "sku": { + "name": "A6", + "tier": "PBIE_Azure" + } + } + ] + } + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForNew.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForNew.json new file mode 100644 index 000000000000..0f25c07147bd --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForNew.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "api-version": "2017-10-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "A1" + }, + { + "name": "A2" + }, + { + "name": "A3" + }, + { + "name": "A4" + }, + { + "name": "A5" + }, + { + "name": "A6" + } + ] + } + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/resumeCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/resumeCapacity.json new file mode 100644 index 000000000000..fbd0e9facfa8 --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/resumeCapacity.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "resourceGroupName": "TestRG", + "dedicatedCapacityName": "azsdktest", + "api-version": "2017-10-01" + }, + "responses": { + "200": { + "headers": {}, + "description": "OK." + }, + "202": { + "headers": {}, + "description": "Accepted." + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/suspendCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/suspendCapacity.json new file mode 100644 index 000000000000..fbd0e9facfa8 --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/suspendCapacity.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "resourceGroupName": "TestRG", + "dedicatedCapacityName": "azsdktest", + "api-version": "2017-10-01" + }, + "responses": { + "200": { + "headers": {}, + "description": "OK." + }, + "202": { + "headers": {}, + "description": "Accepted." + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/updateCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/updateCapacity.json new file mode 100644 index 000000000000..a93064185eb5 --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/updateCapacity.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "resourceGroupName": "TestRG", + "dedicatedCapacityName": "azsdktest", + "api-version": "2017-10-01", + "capacityUpdateParameters": { + "sku": { + "name": "A1", + "tier": "PBIE_Azure" + }, + "tags": { + "testKey": "testValue" + }, + "properties": { + "administration": { + "members": [ + "azsdktest@microsoft.com", + "azsdktest2@microsoft.com" + ] + } + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", + "location": "West US", + "name": "azsdktest", + "properties": { + "administration": { + "members": [ + "azsdktest@microsoft.com", + "azsdktest2@microsoft.com" + ] + }, + "provisioningState": "Provisioning", + "state": "Provisioning" + }, + "sku": { + "name": "A1", + "tier": "PBIE_Azure" + }, + "tags": { + "testKey": "testValue" + } + } + }, + "202": { + "headers": {}, + "body": { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", + "location": "West US", + "name": "azsdktest", + "properties": { + "administration": { + "members": [ + "azsdktest@microsoft.com", + "azsdktest2@microsoft.com" + ] + }, + "provisioningState": "Provisioning", + "state": "Provisioning" + }, + "sku": { + "name": "A1", + "tier": "PBIE_Azure" + }, + "tags": { + "testKey": "testValue" + } + } + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json new file mode 100644 index 000000000000..818cdf106900 --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json @@ -0,0 +1,982 @@ +{ + "swagger": "2.0", + "info": { + "version": "2017-10-01", + "title": "PowerBIDedicated", + "description": "PowerBI Dedicated Web API provides a RESTful set of web services that enables users to create, retrieve, update, and delete Power BI dedicated capacities", + "x-ms-code-generation-settings": { + "name": "PowerBIDedicatedManagementClient" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}": { + "get": { + "description": "Gets details about the specified dedicated capacity.", + "x-ms-examples": { + "Get details of a capacity": { + "$ref": "./examples/getCapacity.json" + } + }, + "tags": [ + "Capacities" + ], + "operationId": "Capacities_GetDetails", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "dedicatedCapacityName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-z][a-z0-9]*$", + "minLength": 3, + "maxLength": 63, + "description": "The name of the dedicated capacity. It must be a minimum of 3 characters, and a maximum of 63." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The operation was successful.", + "schema": { + "$ref": "#/definitions/DedicatedCapacity" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "description": "Provisions the specified Dedicated capacity based on the configuration specified in the request.", + "x-ms-examples": { + "Create capacity": { + "$ref": "./examples/createCapacity.json" + } + }, + "tags": [ + "Capacities" + ], + "operationId": "Capacities_Create", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "dedicatedCapacityName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-z][a-z0-9]*$", + "minLength": 3, + "maxLength": 63, + "description": "The name of the Dedicated capacity. It must be a minimum of 3 characters, and a maximum of 63." + }, + { + "name": "capacityParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DedicatedCapacity" + }, + "description": "Contains the information used to provision the Dedicated capacity." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The operation completed successfully.", + "schema": { + "$ref": "#/definitions/DedicatedCapacity" + } + }, + "201": { + "description": "InProgress. The operation is still in progress.", + "schema": { + "$ref": "#/definitions/DedicatedCapacity" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "description": "Deletes the specified Dedicated capacity.", + "x-ms-examples": { + "Get details of a capacity": { + "$ref": "./examples/deleteCapacity.json" + } + }, + "tags": [ + "Capacities" + ], + "operationId": "Capacities_Delete", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "dedicatedCapacityName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-z][a-z0-9]*$", + "minLength": 3, + "maxLength": 63, + "description": "The name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK." + }, + "204": { + "description": "No Content." + }, + "202": { + "description": "Accepted." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "description": "Updates the current state of the specified Dedicated capacity.", + "x-ms-examples": { + "Update capacity parameters": { + "$ref": "./examples/updateCapacity.json" + } + }, + "tags": [ + "Capacities" + ], + "operationId": "Capacities_Update", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "dedicatedCapacityName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-z][a-z0-9]*$", + "minLength": 3, + "maxLength": 63, + "description": "The name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63." + }, + { + "name": "capacityUpdateParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DedicatedCapacityUpdateParameters" + }, + "description": "Request object that contains the updated information for the capacity." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DedicatedCapacity" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/DedicatedCapacity" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}/suspend": { + "post": { + "description": "Suspends operation of the specified dedicated capacity instance.", + "x-ms-examples": { + "Suspend capacity": { + "$ref": "./examples/suspendCapacity.json" + } + }, + "tags": [ + "Capacities" + ], + "operationId": "Capacities_Suspend", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "dedicatedCapacityName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-z][a-z0-9]*$", + "minLength": 3, + "maxLength": 63, + "description": "The name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK." + }, + "202": { + "description": "Accepted." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}/resume": { + "post": { + "description": "Resumes operation of the specified Dedicated capacity instance.", + "x-ms-examples": { + "Get details of a capacity": { + "$ref": "./examples/resumeCapacity.json" + } + }, + "tags": [ + "Capacities" + ], + "operationId": "Capacities_Resume", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "dedicatedCapacityName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-z][a-z0-9]*$", + "minLength": 3, + "maxLength": 63, + "description": "The name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities": { + "get": { + "description": "Gets all the Dedicated capacities for the given resource group.", + "x-ms-examples": { + "List capacities in resource group": { + "$ref": "./examples/listCapacitiesInResourceGroup.json" + } + }, + "tags": [ + "Capacities" + ], + "operationId": "Capacities_ListByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DedicatedCapacities" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.PowerBIDedicated/capacities": { + "get": { + "description": "Lists all the Dedicated capacities for the given subscription.", + "x-ms-examples": { + "Get details of a capacity": { + "$ref": "./examples/listCapacitiesInSubscription.json" + } + }, + "tags": [ + "Capacities" + ], + "operationId": "Capacities_List", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DedicatedCapacities" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.PowerBIDedicated/skus": { + "get": { + "description": "Lists eligible SKUs for PowerBI Dedicated resource provider.", + "x-ms-examples": { + "List eligible SKUs for a new capacity": { + "$ref": "./examples/listSKUsForNew.json" + } + }, + "operationId": "Capacities_ListSkus", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SkuEnumerationForNewResourceResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}/skus": { + "get": { + "description": "Lists eligible SKUs for a PowerBI Dedicated resource.", + "x-ms-examples": { + "List eligible SKUs for an existing capacity": { + "$ref": "./examples/listSKUsForExisting.json" + } + }, + "tags": [ + "Capacities" + ], + "operationId": "Capacities_ListSkusForCapacity", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "dedicatedCapacityName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-z][a-z0-9]*$", + "minLength": 3, + "maxLength": 63, + "description": "The name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SkuEnumerationForExistingResourceResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.PowerBIDedicated/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists all of the available PowerBIDedicated REST API operations.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "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.PowerBIDedicated/locations/{location}/checkNameAvailability": { + "post": { + "x-ms-examples": { + "Check name availability of a capacity": { + "$ref": "./examples/checkNameAvailability.json" + } + }, + "tags": [ + "Capacities" + ], + "operationId": "Capacities_CheckNameAvailability", + "description": "Check the name availability in the target location.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The region name which the operation will lookup into." + }, + { + "name": "capacityParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckCapacityNameAvailabilityParameters" + }, + "description": "The name of the capacity." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/CheckCapacityNameAvailabilityResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "OperationListResult": { + "description": "Result listing capacities. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "description": "List of capacities supported by the Microsoft.PowerBIDedicated resource provider.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Operation" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "Operation": { + "description": "Capacities REST API operation.", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}.", + "type": "string", + "readOnly": true + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.PowerBIDedicated.", + "type": "string", + "readOnly": true + }, + "resource": { + "description": "Resource on which the operation is performed: capacity, etc.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "Operation type: create, update, delete, etc.", + "type": "string", + "readOnly": true + } + } + } + } + }, + "Resource": { + "description": "Represents an instance of an PowerBI Dedicated resource.", + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "An identifier that represents the PowerBI Dedicated resource." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the PowerBI Dedicated resource." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The type of the PowerBI Dedicated resource." + }, + "location": { + "type": "string", + "description": "Location of the PowerBI Dedicated resource." + }, + "sku": { + "$ref": "#/definitions/ResourceSku", + "description": "The SKU of the PowerBI Dedicated resource." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value pairs of additional resource provisioning properties." + } + }, + "required": [ + "location", + "sku" + ], + "x-ms-azure-resource": true + }, + "DedicatedCapacity": { + "description": "Represents an instance of a Dedicated Capacity resource.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DedicatedCapacityProperties", + "description": "Properties of the provision operation request." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "DedicatedCapacities": { + "description": "An array of Dedicated capacities resources.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DedicatedCapacity" + }, + "description": "An array of Dedicated capacities resources." + } + }, + "required": [ + "value" + ] + }, + "DedicatedCapacityUpdateParameters": { + "description": "Provision request specification", + "type": "object", + "properties": { + "sku": { + "$ref": "#/definitions/ResourceSku", + "description": "The SKU of the Dedicated capacity resource." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value pairs of additional provisioning properties." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DedicatedCapacityMutableProperties", + "description": "Properties of the provision operation request." + } + } + }, + "DedicatedCapacityProperties": { + "description": "Properties of Dedicated Capacity resource.", + "type": "object", + "properties": { + "state": { + "type": "string", + "enum": [ + "Deleting", + "Succeeded", + "Failed", + "Paused", + "Suspended", + "Provisioning", + "Updating", + "Suspending", + "Pausing", + "Resuming", + "Preparing", + "Scaling" + ], + "x-ms-enum": { + "name": "State", + "modelAsString": true + }, + "readOnly": true, + "description": "The current state of PowerBI Dedicated resource. The state is to indicate more states outside of resource provisioning." + }, + "provisioningState": { + "type": "string", + "enum": [ + "Deleting", + "Succeeded", + "Failed", + "Paused", + "Suspended", + "Provisioning", + "Updating", + "Suspending", + "Pausing", + "Resuming", + "Preparing", + "Scaling" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + }, + "readOnly": true, + "description": "The current deployment state of PowerBI Dedicated resource. The provisioningState is to indicate states for resource provisioning." + } + }, + "allOf": [ + { + "$ref": "#/definitions/DedicatedCapacityMutableProperties" + } + ] + }, + "ResourceSku": { + "description": "Represents the SKU name and Azure pricing tier for PowerBI Dedicated resource.", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the SKU level." + }, + "tier": { + "type": "string", + "enum": [ + "PBIE_Azure" + ], + "x-ms-enum": { + "name": "SkuTier", + "modelAsString": true + }, + "description": "The name of the Azure pricing tier to which the SKU applies." + } + }, + "required": [ + "name" + ] + }, + "DedicatedCapacityMutableProperties": { + "description": "An object that represents a set of mutable Dedicated capacity resource properties.", + "type": "object", + "properties": { + "administration": { + "$ref": "#/definitions/DedicatedCapacityAdministrators", + "description": "A collection of Dedicated capacity administrators" + } + } + }, + "DedicatedCapacityAdministrators": { + "description": "An array of administrator user identities", + "type": "object", + "properties": { + "members": { + "type": "array", + "items": { + "type": "string", + "description": "The UPN of the user. For example: johnsmith@contoso.com." + }, + "description": "An array of administrator user identities." + } + } + }, + "SkuEnumerationForNewResourceResult": { + "description": "An object that represents enumerating SKUs for new resources", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceSku" + }, + "description": "The collection of available SKUs for new resources" + } + } + }, + "SkuEnumerationForExistingResourceResult": { + "description": "An object that represents enumerating SKUs for existing resources", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SkuDetailsForExistingResource" + }, + "description": "The collection of available SKUs for existing resources" + } + } + }, + "SkuDetailsForExistingResource": { + "description": "An object that represents SKU details for existing resources", + "type": "object", + "properties": { + "sku": { + "$ref": "#/definitions/ResourceSku", + "description": "The SKU in SKU details for existing resources." + } + } + }, + "ErrorResponse": { + "type": "object", + "description": "Describes the format of Error response.", + "properties": { + "error": { + "description": "The error object", + "properties": { + "code": { + "type": "string", + "description": "Error code" + }, + "message": { + "type": "string", + "description": "Error message indicating why the operation failed." + } + } + } + } + }, + "CheckCapacityNameAvailabilityParameters": { + "description": "Details of capacity name request body.", + "type": "object", + "properties": { + "name": { + "type": "string", + "pattern": "^[a-z][a-z0-9]*$", + "minLength": 3, + "maxLength": 63, + "description": "Name for checking availability." + }, + "type": { + "type": "string", + "default": "Microsoft.PowerBIDedicated/capacities", + "description": "The resource type of PowerBI dedicated." + } + } + }, + "CheckCapacityNameAvailabilityResult": { + "description": "The checking result of capacity name availability.", + "type": "object", + "properties": { + "nameAvailable": { + "type": "boolean", + "description": "Indicator of availability of the capacity name." + }, + "reason": { + "type": "string", + "description": "The reason of unavailability." + }, + "message": { + "type": "string", + "description": "The detailed message of the request unavailability." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "A unique identifier for a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The client API version." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method", + "description": "The name of the Azure Resource group of which a given PowerBIDedicated capacity is part. This name must be at least 1 character in length, and no more than 90." + } + } +} From 60654b34c68d7d60fe96dcb934088c83c972dae2 Mon Sep 17 00:00:00 2001 From: David Han Date: Mon, 28 Dec 2020 17:50:31 -0800 Subject: [PATCH 02/10] Update API Version --- .../stable/2020-12-28/examples/checkNameAvailability.json | 2 +- .../stable/2020-12-28/examples/createCapacity.json | 2 +- .../stable/2020-12-28/examples/deleteCapacity.json | 2 +- .../stable/2020-12-28/examples/getCapacity.json | 2 +- .../2020-12-28/examples/listCapacitiesInResourceGroup.json | 2 +- .../2020-12-28/examples/listCapacitiesInSubscription.json | 2 +- .../stable/2020-12-28/examples/listSKUsForExisting.json | 2 +- .../stable/2020-12-28/examples/listSKUsForNew.json | 2 +- .../stable/2020-12-28/examples/resumeCapacity.json | 2 +- .../stable/2020-12-28/examples/suspendCapacity.json | 2 +- .../stable/2020-12-28/examples/updateCapacity.json | 2 +- .../stable/2020-12-28/powerbidedicated.json | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/checkNameAvailability.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/checkNameAvailability.json index 2b3b36b98e16..a85488031d0f 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/checkNameAvailability.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/checkNameAvailability.json @@ -6,7 +6,7 @@ "name": "azsdktest", "type": "Microsoft.PowerBIDedicated/capacities" }, - "api-version": "2017-10-01" + "api-version": "2020-12-28" }, "responses": { "200": { diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/createCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/createCapacity.json index c6c521aab520..9f8c90fa2dc5 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/createCapacity.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/createCapacity.json @@ -3,7 +3,7 @@ "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", "resourceGroupName": "TestRG", "dedicatedCapacityName": "azsdktest", - "api-version": "2017-10-01", + "api-version": "2020-12-28", "capacityParameters": { "sku": { "name": "A1", diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/deleteCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/deleteCapacity.json index 11f4271b7e19..0d4b143bd077 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/deleteCapacity.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/deleteCapacity.json @@ -3,7 +3,7 @@ "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", "resourceGroupName": "TestRG", "dedicatedCapacityName": "azsdktest", - "api-version": "2017-10-01" + "api-version": "2020-12-28" }, "responses": { "200": { diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/getCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/getCapacity.json index dd3a3963161d..66f15bf329d3 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/getCapacity.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/getCapacity.json @@ -3,7 +3,7 @@ "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", "resourceGroupName": "TestRG", "dedicatedCapacityName": "azsdktest", - "api-version": "2017-10-01" + "api-version": "2020-12-28" }, "responses": { "200": { diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInResourceGroup.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInResourceGroup.json index 169167e66102..5b7d746bfe9a 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInResourceGroup.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", "resourceGroupName": "TestRG", - "api-version": "2017-10-01" + "api-version": "2020-12-28" }, "responses": { "200": { diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInSubscription.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInSubscription.json index 50eaa1d0c9a0..27c3fb1845f8 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInSubscription.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInSubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", - "api-version": "2017-10-01" + "api-version": "2020-12-28" }, "responses": { "200": { diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForExisting.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForExisting.json index 6b6c95a16fc9..fed84089e97b 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForExisting.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForExisting.json @@ -3,7 +3,7 @@ "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", "resourceGroupName": "TestRG", "dedicatedCapacityName": "azsdktest", - "api-version": "2017-10-01" + "api-version": "2020-12-28" }, "responses": { "200": { diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForNew.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForNew.json index 0f25c07147bd..4823ef833c0d 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForNew.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForNew.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", - "api-version": "2017-10-01" + "api-version": "2020-12-28" }, "responses": { "200": { diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/resumeCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/resumeCapacity.json index fbd0e9facfa8..6e4f6efcca66 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/resumeCapacity.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/resumeCapacity.json @@ -3,7 +3,7 @@ "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", "resourceGroupName": "TestRG", "dedicatedCapacityName": "azsdktest", - "api-version": "2017-10-01" + "api-version": "2020-12-28" }, "responses": { "200": { diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/suspendCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/suspendCapacity.json index fbd0e9facfa8..6e4f6efcca66 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/suspendCapacity.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/suspendCapacity.json @@ -3,7 +3,7 @@ "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", "resourceGroupName": "TestRG", "dedicatedCapacityName": "azsdktest", - "api-version": "2017-10-01" + "api-version": "2020-12-28" }, "responses": { "200": { diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/updateCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/updateCapacity.json index a93064185eb5..ad6f3ffb5c63 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/updateCapacity.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/updateCapacity.json @@ -3,7 +3,7 @@ "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", "resourceGroupName": "TestRG", "dedicatedCapacityName": "azsdktest", - "api-version": "2017-10-01", + "api-version": "2020-12-28", "capacityUpdateParameters": { "sku": { "name": "A1", diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json index 818cdf106900..c78f5e76f8d3 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2017-10-01", + "version": "2020-12-28", "title": "PowerBIDedicated", "description": "PowerBI Dedicated Web API provides a RESTful set of web services that enables users to create, retrieve, update, and delete Power BI dedicated capacities", "x-ms-code-generation-settings": { From adf476d4cf28ae3d654053fa0aaead854fbf4c8e Mon Sep 17 00:00:00 2001 From: David Han Date: Mon, 28 Dec 2020 17:51:15 -0800 Subject: [PATCH 03/10] Introduce new SKU tier enum values --- .../stable/2020-12-28/powerbidedicated.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json index c78f5e76f8d3..b820b480a1a4 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json @@ -823,7 +823,9 @@ "tier": { "type": "string", "enum": [ - "PBIE_Azure" + "PBIE_Azure", + "Premium", + "AutoPremiumHost" ], "x-ms-enum": { "name": "SkuTier", From f933f9324ced85bd776882b888830e3a7a2fc3e7 Mon Sep 17 00:00:00 2001 From: David Han Date: Mon, 28 Dec 2020 17:52:58 -0800 Subject: [PATCH 04/10] Fix linting issue - introduce required new default property SystemData --- .../2020-12-28/examples/createCapacity.json | 16 ++++++ .../2020-12-28/examples/getCapacity.json | 10 +++- .../2020-12-28/examples/updateCapacity.json | 16 ++++++ .../stable/2020-12-28/powerbidedicated.json | 50 +++++++++++++++++++ 4 files changed, 91 insertions(+), 1 deletion(-) diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/createCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/createCapacity.json index 9f8c90fa2dc5..2289b2175518 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/createCapacity.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/createCapacity.json @@ -46,6 +46,14 @@ }, "tags": { "testKey": "testValue" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-12-28T00:00:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-12-28T00:00:19.1234567Z" } } }, @@ -71,6 +79,14 @@ }, "tags": { "testKey": "testValue" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-12-28T00:00:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-12-28T00:00:19.1234567Z" } } } diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/getCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/getCapacity.json index 66f15bf329d3..759f8c50da45 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/getCapacity.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/getCapacity.json @@ -25,7 +25,15 @@ "name": "A1", "tier": "PBIE_Azure" }, - "tags": {} + "tags": {}, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-12-28T00:00:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-12-28T00:00:19.1234567Z" + } } } } diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/updateCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/updateCapacity.json index ad6f3ffb5c63..4b0bbae611a4 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/updateCapacity.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/updateCapacity.json @@ -45,6 +45,14 @@ }, "tags": { "testKey": "testValue" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-12-28T00:00:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-12-28T00:00:19.1234567Z" } } }, @@ -70,6 +78,14 @@ }, "tags": { "testKey": "testValue" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-12-28T00:00:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-12-28T00:00:19.1234567Z" } } } diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json index b820b480a1a4..46a1e3f3acef 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json @@ -693,6 +693,10 @@ "type": "string" }, "description": "Key-value pairs of additional resource provisioning properties." + }, + "systemData": { + "$ref": "#/definitions/SystemData", + "description": "Metadata pertaining to creation and last modification of the resource." } }, "required": [ @@ -952,6 +956,52 @@ "description": "The detailed message of the request unavailability." } } + }, + "SystemData": { + "description": "Metadata pertaining to creation and last modification of the resource.", + "type": "object", + "properties": { + "createdBy": { + "type": "string", + "description": "An identifier for the identity that created the resource" + }, + "createdByType": { + "$ref": "#/definitions/IdentityType", + "description": "The type of identity that created the resource" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource creation (UTC)" + }, + "lastModifiedBy": { + "type": "string", + "description": "An identifier for the identity that last modified the resource" + }, + "lastModifiedByType": { + "$ref": "#/definitions/IdentityType", + "description": "The type of identity that last modified the resource" + }, + "lastModifiedAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource last modification (UTC)" + } + } + }, + "IdentityType": { + "description": "The type of identity that created/modified the resource.", + "type": "string", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "IdentityType", + "modelAsString": true + } } }, "parameters": { From 370cf7308d38bd9343ebf44135550d926d9aaa8c Mon Sep 17 00:00:00 2001 From: David Han Date: Wed, 23 Dec 2020 16:44:48 -0800 Subject: [PATCH 05/10] Update Readme.md (cherry picked from commit c434161aa41626536aa09fee3af3af25db6bdc1c) --- .../readme.azureresourceschema.md | 13 +++++++++- .../resource-manager/readme.go.md | 10 ++++++++ .../resource-manager/readme.md | 25 ++++++++++++++++++- 3 files changed, 46 insertions(+), 2 deletions(-) diff --git a/specification/powerbidedicated/resource-manager/readme.azureresourceschema.md b/specification/powerbidedicated/resource-manager/readme.azureresourceschema.md index 0a9fe7a5e2bf..d00a3a6d3300 100644 --- a/specification/powerbidedicated/resource-manager/readme.azureresourceschema.md +++ b/specification/powerbidedicated/resource-manager/readme.azureresourceschema.md @@ -7,7 +7,7 @@ These settings apply only when `--azureresourceschema` is specified on the comma ``` yaml $(azureresourceschema) && $(multiapi) batch: - tag: schema-powerbidedicated-2017-10-01 - + - tag: schema-powerbidedicated-2020-12-28 ``` Please also specify `--azureresourceschema-folder=`. @@ -22,3 +22,14 @@ input-file: - Microsoft.PowerBIdedicated/stable/2017-10-01/powerbidedicated.json ``` + +### Tag: schema-powerbidedicated-2020-12-28 and azureresourceschema + +``` yaml $(tag) == 'schema-powerbidedicated-2020-12-28' && $(azureresourceschema) +output-folder: $(azureresourceschema-folder)/schemas + +# all the input files in this apiVersion +input-file: + - Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json + +``` diff --git a/specification/powerbidedicated/resource-manager/readme.go.md b/specification/powerbidedicated/resource-manager/readme.go.md index 84b614cf8a5d..7fbdb06d143e 100644 --- a/specification/powerbidedicated/resource-manager/readme.go.md +++ b/specification/powerbidedicated/resource-manager/readme.go.md @@ -14,6 +14,7 @@ go: ``` yaml $(go) && $(multiapi) batch: - tag: package-2017-10-01 + - tag: package-2020-12-28 ``` ### Tag: package-2017-10-01 and go @@ -23,4 +24,13 @@ Please also specify `--go-sdk-folder=`. + +``` yaml $(tag)=='package-2020-12-28' && $(go) +output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2020-12-28/$(namespace) ``` \ No newline at end of file diff --git a/specification/powerbidedicated/resource-manager/readme.md b/specification/powerbidedicated/resource-manager/readme.md index 84b2d74562ab..6a66943ba713 100644 --- a/specification/powerbidedicated/resource-manager/readme.md +++ b/specification/powerbidedicated/resource-manager/readme.md @@ -26,10 +26,19 @@ These are the global settings for the PowerBIDedicated API. ``` yaml openapi-type: arm -tag: package-2017-10-01 +tag: package-2020-12-28 ``` +### Tag: package-2020-12-28 + +These settings apply only when `--tag=package-2020-12-28` is specified on the command line. + +``` yaml $(tag) == 'package-2020-12-28' +input-file: +- Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json +``` + ### Tag: package-2017-10-01 These settings apply only when `--tag=package-2017-10-01` is specified on the command line. @@ -97,6 +106,7 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-powerbidedicated ``` yaml $(java) && $(multiapi) batch: - tag: package-2017-10-01 + - tag: package-2020-12-28 ``` ### Tag: package-2017-10-01 and java @@ -112,6 +122,19 @@ regenerate-manager: true generate-interface: true ``` +### Tag: package-2020-12-28 and java + +These settings apply only when `--tag=package-2020-12-28 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2020-12-28' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.powerbidedicated.v2020_12_28 + output-folder: $(azure-libraries-for-java-folder)/sdk/powerbidedicated/mgmt-v2020_12_28 +regenerate-manager: true +generate-interface: true +``` + ## Python See configuration in [readme.python.md](./readme.python.md) From 2506fb475b903d6603dba22d8d000ac4c67fc254 Mon Sep 17 00:00:00 2001 From: David Han Date: Wed, 30 Dec 2020 09:31:57 -0800 Subject: [PATCH 06/10] update api version to right format --- .../examples/checkNameAvailability.json | 2 +- .../2020-12-28/examples/createCapacity.json | 10 +- .../2020-12-28/examples/deleteCapacity.json | 2 +- .../2020-12-28/examples/getCapacity.json | 6 +- .../listCapacitiesInResourceGroup.json | 2 +- .../listCapacitiesInSubscription.json | 2 +- .../examples/listSKUsForExisting.json | 2 +- .../2020-12-28/examples/listSKUsForNew.json | 2 +- .../2020-12-28/examples/resumeCapacity.json | 2 +- .../2020-12-28/examples/suspendCapacity.json | 2 +- .../2020-12-28/examples/updateCapacity.json | 10 +- .../stable/2020-12-28/powerbidedicated.json | 2 +- .../examples/checkNameAvailability.json | 19 + .../2021-01-01/examples/createCapacity.json | 94 ++ .../2021-01-01/examples/deleteCapacity.json | 21 + .../2021-01-01/examples/getCapacity.json | 40 + .../listCapacitiesInResourceGroup.json | 58 + .../listCapacitiesInSubscription.json | 57 + .../examples/listSKUsForExisting.json | 47 + .../2021-01-01/examples/listSKUsForNew.json | 33 + .../2021-01-01/examples/resumeCapacity.json | 18 + .../2021-01-01/examples/suspendCapacity.json | 18 + .../2021-01-01/examples/updateCapacity.json | 93 ++ .../stable/2021-01-01/powerbidedicated.json | 1034 +++++++++++++++++ .../readme.azureresourceschema.md | 8 +- .../resource-manager/readme.go.md | 10 +- .../resource-manager/readme.md | 18 +- 27 files changed, 1572 insertions(+), 40 deletions(-) create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/checkNameAvailability.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/createCapacity.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/deleteCapacity.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/getCapacity.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listCapacitiesInResourceGroup.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listCapacitiesInSubscription.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listSKUsForExisting.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listSKUsForNew.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/resumeCapacity.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/suspendCapacity.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/updateCapacity.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/checkNameAvailability.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/checkNameAvailability.json index a85488031d0f..a5635e654dcb 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/checkNameAvailability.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/checkNameAvailability.json @@ -6,7 +6,7 @@ "name": "azsdktest", "type": "Microsoft.PowerBIDedicated/capacities" }, - "api-version": "2020-12-28" + "api-version": "2021-01-01" }, "responses": { "200": { diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/createCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/createCapacity.json index 2289b2175518..253e4a6c0f9a 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/createCapacity.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/createCapacity.json @@ -3,7 +3,7 @@ "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", "resourceGroupName": "TestRG", "dedicatedCapacityName": "azsdktest", - "api-version": "2020-12-28", + "api-version": "2021-01-01", "capacityParameters": { "sku": { "name": "A1", @@ -50,10 +50,10 @@ "systemData": { "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-12-28T00:00:19.1234567Z", + "createdAt": "2021-01-01T00:00:19.1234567Z", "lastModifiedBy": "user2", "lastModifiedByType": "User", - "lastModifiedAt": "2020-12-28T00:00:19.1234567Z" + "lastModifiedAt": "2021-01-01T00:00:19.1234567Z" } } }, @@ -83,10 +83,10 @@ "systemData": { "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-12-28T00:00:19.1234567Z", + "createdAt": "2021-01-01T00:00:19.1234567Z", "lastModifiedBy": "user2", "lastModifiedByType": "User", - "lastModifiedAt": "2020-12-28T00:00:19.1234567Z" + "lastModifiedAt": "2021-01-01T00:00:19.1234567Z" } } } diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/deleteCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/deleteCapacity.json index 0d4b143bd077..68f552c7855f 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/deleteCapacity.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/deleteCapacity.json @@ -3,7 +3,7 @@ "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", "resourceGroupName": "TestRG", "dedicatedCapacityName": "azsdktest", - "api-version": "2020-12-28" + "api-version": "2021-01-01" }, "responses": { "200": { diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/getCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/getCapacity.json index 759f8c50da45..be211adec502 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/getCapacity.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/getCapacity.json @@ -3,7 +3,7 @@ "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", "resourceGroupName": "TestRG", "dedicatedCapacityName": "azsdktest", - "api-version": "2020-12-28" + "api-version": "2021-01-01" }, "responses": { "200": { @@ -29,10 +29,10 @@ "systemData": { "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-12-28T00:00:19.1234567Z", + "createdAt": "2021-01-01T00:00:19.1234567Z", "lastModifiedBy": "user2", "lastModifiedByType": "User", - "lastModifiedAt": "2020-12-28T00:00:19.1234567Z" + "lastModifiedAt": "2021-01-01T00:00:19.1234567Z" } } } diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInResourceGroup.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInResourceGroup.json index 5b7d746bfe9a..fddbc75bc7f3 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInResourceGroup.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", "resourceGroupName": "TestRG", - "api-version": "2020-12-28" + "api-version": "2021-01-01" }, "responses": { "200": { diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInSubscription.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInSubscription.json index 27c3fb1845f8..5c4ac67f86a4 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInSubscription.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInSubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", - "api-version": "2020-12-28" + "api-version": "2021-01-01" }, "responses": { "200": { diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForExisting.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForExisting.json index fed84089e97b..c40dc6899078 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForExisting.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForExisting.json @@ -3,7 +3,7 @@ "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", "resourceGroupName": "TestRG", "dedicatedCapacityName": "azsdktest", - "api-version": "2020-12-28" + "api-version": "2021-01-01" }, "responses": { "200": { diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForNew.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForNew.json index 4823ef833c0d..4bac1c3922cb 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForNew.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForNew.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", - "api-version": "2020-12-28" + "api-version": "2021-01-01" }, "responses": { "200": { diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/resumeCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/resumeCapacity.json index 6e4f6efcca66..fd47da29bea3 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/resumeCapacity.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/resumeCapacity.json @@ -3,7 +3,7 @@ "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", "resourceGroupName": "TestRG", "dedicatedCapacityName": "azsdktest", - "api-version": "2020-12-28" + "api-version": "2021-01-01" }, "responses": { "200": { diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/suspendCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/suspendCapacity.json index 6e4f6efcca66..fd47da29bea3 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/suspendCapacity.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/suspendCapacity.json @@ -3,7 +3,7 @@ "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", "resourceGroupName": "TestRG", "dedicatedCapacityName": "azsdktest", - "api-version": "2020-12-28" + "api-version": "2021-01-01" }, "responses": { "200": { diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/updateCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/updateCapacity.json index 4b0bbae611a4..daaf221c3a8d 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/updateCapacity.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/updateCapacity.json @@ -3,7 +3,7 @@ "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", "resourceGroupName": "TestRG", "dedicatedCapacityName": "azsdktest", - "api-version": "2020-12-28", + "api-version": "2021-01-01", "capacityUpdateParameters": { "sku": { "name": "A1", @@ -49,10 +49,10 @@ "systemData": { "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-12-28T00:00:19.1234567Z", + "createdAt": "2021-01-01T00:00:19.1234567Z", "lastModifiedBy": "user2", "lastModifiedByType": "User", - "lastModifiedAt": "2020-12-28T00:00:19.1234567Z" + "lastModifiedAt": "2021-01-01T00:00:19.1234567Z" } } }, @@ -82,10 +82,10 @@ "systemData": { "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-12-28T00:00:19.1234567Z", + "createdAt": "2021-01-01T00:00:19.1234567Z", "lastModifiedBy": "user2", "lastModifiedByType": "User", - "lastModifiedAt": "2020-12-28T00:00:19.1234567Z" + "lastModifiedAt": "2021-01-01T00:00:19.1234567Z" } } } diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json index 46a1e3f3acef..6908dffd625d 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2020-12-28", + "version": "2021-01-01", "title": "PowerBIDedicated", "description": "PowerBI Dedicated Web API provides a RESTful set of web services that enables users to create, retrieve, update, and delete Power BI dedicated capacities", "x-ms-code-generation-settings": { diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/checkNameAvailability.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/checkNameAvailability.json new file mode 100644 index 000000000000..a5635e654dcb --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/checkNameAvailability.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "location": "West US", + "capacityParameters": { + "name": "azsdktest", + "type": "Microsoft.PowerBIDedicated/capacities" + }, + "api-version": "2021-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "nameAvailable": true + } + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/createCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/createCapacity.json new file mode 100644 index 000000000000..253e4a6c0f9a --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/createCapacity.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "resourceGroupName": "TestRG", + "dedicatedCapacityName": "azsdktest", + "api-version": "2021-01-01", + "capacityParameters": { + "sku": { + "name": "A1", + "tier": "PBIE_Azure" + }, + "tags": { + "testKey": "testValue" + }, + "location": "West US", + "properties": { + "administration": { + "members": [ + "azsdktest@microsoft.com", + "azsdktest2@microsoft.com" + ] + } + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", + "location": "West US", + "name": "azsdktest", + "properties": { + "administration": { + "members": [ + "azsdktest@microsoft.com", + "azsdktest2@microsoft.com" + ] + }, + "provisioningState": "Provisioning", + "state": "Provisioning" + }, + "sku": { + "name": "A1", + "tier": "PBIE_Azure" + }, + "tags": { + "testKey": "testValue" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-01-01T00:00:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-01T00:00:19.1234567Z" + } + } + }, + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/servers/azsdktest", + "location": "West US", + "name": "azsdktest", + "properties": { + "administration": { + "members": [ + "azsdktest@microsoft.com", + "azsdktest2@microsoft.com" + ] + }, + "provisioningState": "Provisioning", + "state": "Provisioning" + }, + "sku": { + "name": "A1", + "tier": "PBIE_Azure" + }, + "tags": { + "testKey": "testValue" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-01-01T00:00:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-01T00:00:19.1234567Z" + } + } + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/deleteCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/deleteCapacity.json new file mode 100644 index 000000000000..68f552c7855f --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/deleteCapacity.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "resourceGroupName": "TestRG", + "dedicatedCapacityName": "azsdktest", + "api-version": "2021-01-01" + }, + "responses": { + "200": { + "headers": {}, + "description": "OK." + }, + "202": { + "headers": {}, + "description": "Accepted." + }, + "204": { + "headers": {} + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/getCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/getCapacity.json new file mode 100644 index 000000000000..be211adec502 --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/getCapacity.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "resourceGroupName": "TestRG", + "dedicatedCapacityName": "azsdktest", + "api-version": "2021-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", + "location": "West US", + "name": "azsdktest", + "properties": { + "administration": { + "members": [ + "azsdktest@microsoft.com" + ] + }, + "provisioningState": "Provisioning", + "state": "Provisioning" + }, + "sku": { + "name": "A1", + "tier": "PBIE_Azure" + }, + "tags": {}, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-01-01T00:00:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-01T00:00:19.1234567Z" + } + } + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listCapacitiesInResourceGroup.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listCapacitiesInResourceGroup.json new file mode 100644 index 000000000000..fddbc75bc7f3 --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listCapacitiesInResourceGroup.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "resourceGroupName": "TestRG", + "api-version": "2021-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", + "location": "West US", + "name": "azsdktest", + "properties": { + "administration": { + "members": [ + "azsdktest@microsoft.com" + ] + }, + "provisioningState": "Provisioning", + "state": "Provisioning" + }, + "sku": { + "name": "A1", + "tier": "PBIE_Azure" + }, + "tags": { + "testKey": "testValue" + } + }, + { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", + "location": "West US", + "name": "azsdktest2", + "properties": { + "administration": { + "members": [ + "azsdktest@microsoft.com" + ] + }, + "provisioningState": "Provisioning", + "state": "Provisioning" + }, + "sku": { + "name": "A2", + "tier": "PBIE_Azure" + }, + "tags": { + "testKey": "testValue" + } + } + ] + } + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listCapacitiesInSubscription.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listCapacitiesInSubscription.json new file mode 100644 index 000000000000..5c4ac67f86a4 --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listCapacitiesInSubscription.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "api-version": "2021-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", + "location": "West US", + "name": "azsdktest", + "properties": { + "administration": { + "members": [ + "azsdktest@microsoft.com" + ] + }, + "provisioningState": "Provisioning", + "state": "Provisioning" + }, + "sku": { + "name": "A1", + "tier": "PBIE_Azure" + }, + "tags": { + "testKey": "testValue" + } + }, + { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", + "location": "West US", + "name": "azsdktest2", + "properties": { + "administration": { + "members": [ + "azsdktest@microsoft.com" + ] + }, + "provisioningState": "Provisioning", + "state": "Provisioning" + }, + "sku": { + "name": "A2", + "tier": "PBIE_Azure" + }, + "tags": { + "testKey": "testValue" + } + } + ] + } + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listSKUsForExisting.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listSKUsForExisting.json new file mode 100644 index 000000000000..c40dc6899078 --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listSKUsForExisting.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "resourceGroupName": "TestRG", + "dedicatedCapacityName": "azsdktest", + "api-version": "2021-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "sku": { + "name": "A2", + "tier": "PBIE_Azure" + } + }, + { + "sku": { + "name": "A3", + "tier": "PBIE_Azure" + } + }, + { + "sku": { + "name": "A4", + "tier": "PBIE_Azure" + } + }, + { + "sku": { + "name": "A5", + "tier": "PBIE_Azure" + } + }, + { + "sku": { + "name": "A6", + "tier": "PBIE_Azure" + } + } + ] + } + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listSKUsForNew.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listSKUsForNew.json new file mode 100644 index 000000000000..4bac1c3922cb --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listSKUsForNew.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "api-version": "2021-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "A1" + }, + { + "name": "A2" + }, + { + "name": "A3" + }, + { + "name": "A4" + }, + { + "name": "A5" + }, + { + "name": "A6" + } + ] + } + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/resumeCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/resumeCapacity.json new file mode 100644 index 000000000000..fd47da29bea3 --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/resumeCapacity.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "resourceGroupName": "TestRG", + "dedicatedCapacityName": "azsdktest", + "api-version": "2021-01-01" + }, + "responses": { + "200": { + "headers": {}, + "description": "OK." + }, + "202": { + "headers": {}, + "description": "Accepted." + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/suspendCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/suspendCapacity.json new file mode 100644 index 000000000000..fd47da29bea3 --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/suspendCapacity.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "resourceGroupName": "TestRG", + "dedicatedCapacityName": "azsdktest", + "api-version": "2021-01-01" + }, + "responses": { + "200": { + "headers": {}, + "description": "OK." + }, + "202": { + "headers": {}, + "description": "Accepted." + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/updateCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/updateCapacity.json new file mode 100644 index 000000000000..daaf221c3a8d --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/updateCapacity.json @@ -0,0 +1,93 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "resourceGroupName": "TestRG", + "dedicatedCapacityName": "azsdktest", + "api-version": "2021-01-01", + "capacityUpdateParameters": { + "sku": { + "name": "A1", + "tier": "PBIE_Azure" + }, + "tags": { + "testKey": "testValue" + }, + "properties": { + "administration": { + "members": [ + "azsdktest@microsoft.com", + "azsdktest2@microsoft.com" + ] + } + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", + "location": "West US", + "name": "azsdktest", + "properties": { + "administration": { + "members": [ + "azsdktest@microsoft.com", + "azsdktest2@microsoft.com" + ] + }, + "provisioningState": "Provisioning", + "state": "Provisioning" + }, + "sku": { + "name": "A1", + "tier": "PBIE_Azure" + }, + "tags": { + "testKey": "testValue" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-01-01T00:00:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-01T00:00:19.1234567Z" + } + } + }, + "202": { + "headers": {}, + "body": { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", + "location": "West US", + "name": "azsdktest", + "properties": { + "administration": { + "members": [ + "azsdktest@microsoft.com", + "azsdktest2@microsoft.com" + ] + }, + "provisioningState": "Provisioning", + "state": "Provisioning" + }, + "sku": { + "name": "A1", + "tier": "PBIE_Azure" + }, + "tags": { + "testKey": "testValue" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-01-01T00:00:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-01T00:00:19.1234567Z" + } + } + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json new file mode 100644 index 000000000000..6908dffd625d --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json @@ -0,0 +1,1034 @@ +{ + "swagger": "2.0", + "info": { + "version": "2021-01-01", + "title": "PowerBIDedicated", + "description": "PowerBI Dedicated Web API provides a RESTful set of web services that enables users to create, retrieve, update, and delete Power BI dedicated capacities", + "x-ms-code-generation-settings": { + "name": "PowerBIDedicatedManagementClient" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}": { + "get": { + "description": "Gets details about the specified dedicated capacity.", + "x-ms-examples": { + "Get details of a capacity": { + "$ref": "./examples/getCapacity.json" + } + }, + "tags": [ + "Capacities" + ], + "operationId": "Capacities_GetDetails", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "dedicatedCapacityName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-z][a-z0-9]*$", + "minLength": 3, + "maxLength": 63, + "description": "The name of the dedicated capacity. It must be a minimum of 3 characters, and a maximum of 63." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The operation was successful.", + "schema": { + "$ref": "#/definitions/DedicatedCapacity" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "description": "Provisions the specified Dedicated capacity based on the configuration specified in the request.", + "x-ms-examples": { + "Create capacity": { + "$ref": "./examples/createCapacity.json" + } + }, + "tags": [ + "Capacities" + ], + "operationId": "Capacities_Create", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "dedicatedCapacityName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-z][a-z0-9]*$", + "minLength": 3, + "maxLength": 63, + "description": "The name of the Dedicated capacity. It must be a minimum of 3 characters, and a maximum of 63." + }, + { + "name": "capacityParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DedicatedCapacity" + }, + "description": "Contains the information used to provision the Dedicated capacity." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The operation completed successfully.", + "schema": { + "$ref": "#/definitions/DedicatedCapacity" + } + }, + "201": { + "description": "InProgress. The operation is still in progress.", + "schema": { + "$ref": "#/definitions/DedicatedCapacity" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "description": "Deletes the specified Dedicated capacity.", + "x-ms-examples": { + "Get details of a capacity": { + "$ref": "./examples/deleteCapacity.json" + } + }, + "tags": [ + "Capacities" + ], + "operationId": "Capacities_Delete", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "dedicatedCapacityName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-z][a-z0-9]*$", + "minLength": 3, + "maxLength": 63, + "description": "The name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK." + }, + "204": { + "description": "No Content." + }, + "202": { + "description": "Accepted." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "description": "Updates the current state of the specified Dedicated capacity.", + "x-ms-examples": { + "Update capacity parameters": { + "$ref": "./examples/updateCapacity.json" + } + }, + "tags": [ + "Capacities" + ], + "operationId": "Capacities_Update", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "dedicatedCapacityName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-z][a-z0-9]*$", + "minLength": 3, + "maxLength": 63, + "description": "The name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63." + }, + { + "name": "capacityUpdateParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DedicatedCapacityUpdateParameters" + }, + "description": "Request object that contains the updated information for the capacity." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DedicatedCapacity" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/DedicatedCapacity" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}/suspend": { + "post": { + "description": "Suspends operation of the specified dedicated capacity instance.", + "x-ms-examples": { + "Suspend capacity": { + "$ref": "./examples/suspendCapacity.json" + } + }, + "tags": [ + "Capacities" + ], + "operationId": "Capacities_Suspend", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "dedicatedCapacityName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-z][a-z0-9]*$", + "minLength": 3, + "maxLength": 63, + "description": "The name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK." + }, + "202": { + "description": "Accepted." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}/resume": { + "post": { + "description": "Resumes operation of the specified Dedicated capacity instance.", + "x-ms-examples": { + "Get details of a capacity": { + "$ref": "./examples/resumeCapacity.json" + } + }, + "tags": [ + "Capacities" + ], + "operationId": "Capacities_Resume", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "dedicatedCapacityName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-z][a-z0-9]*$", + "minLength": 3, + "maxLength": 63, + "description": "The name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities": { + "get": { + "description": "Gets all the Dedicated capacities for the given resource group.", + "x-ms-examples": { + "List capacities in resource group": { + "$ref": "./examples/listCapacitiesInResourceGroup.json" + } + }, + "tags": [ + "Capacities" + ], + "operationId": "Capacities_ListByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DedicatedCapacities" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.PowerBIDedicated/capacities": { + "get": { + "description": "Lists all the Dedicated capacities for the given subscription.", + "x-ms-examples": { + "Get details of a capacity": { + "$ref": "./examples/listCapacitiesInSubscription.json" + } + }, + "tags": [ + "Capacities" + ], + "operationId": "Capacities_List", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DedicatedCapacities" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.PowerBIDedicated/skus": { + "get": { + "description": "Lists eligible SKUs for PowerBI Dedicated resource provider.", + "x-ms-examples": { + "List eligible SKUs for a new capacity": { + "$ref": "./examples/listSKUsForNew.json" + } + }, + "operationId": "Capacities_ListSkus", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SkuEnumerationForNewResourceResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}/skus": { + "get": { + "description": "Lists eligible SKUs for a PowerBI Dedicated resource.", + "x-ms-examples": { + "List eligible SKUs for an existing capacity": { + "$ref": "./examples/listSKUsForExisting.json" + } + }, + "tags": [ + "Capacities" + ], + "operationId": "Capacities_ListSkusForCapacity", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "dedicatedCapacityName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-z][a-z0-9]*$", + "minLength": 3, + "maxLength": 63, + "description": "The name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SkuEnumerationForExistingResourceResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.PowerBIDedicated/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists all of the available PowerBIDedicated REST API operations.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "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.PowerBIDedicated/locations/{location}/checkNameAvailability": { + "post": { + "x-ms-examples": { + "Check name availability of a capacity": { + "$ref": "./examples/checkNameAvailability.json" + } + }, + "tags": [ + "Capacities" + ], + "operationId": "Capacities_CheckNameAvailability", + "description": "Check the name availability in the target location.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The region name which the operation will lookup into." + }, + { + "name": "capacityParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckCapacityNameAvailabilityParameters" + }, + "description": "The name of the capacity." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/CheckCapacityNameAvailabilityResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "OperationListResult": { + "description": "Result listing capacities. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "description": "List of capacities supported by the Microsoft.PowerBIDedicated resource provider.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Operation" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "Operation": { + "description": "Capacities REST API operation.", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}.", + "type": "string", + "readOnly": true + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.PowerBIDedicated.", + "type": "string", + "readOnly": true + }, + "resource": { + "description": "Resource on which the operation is performed: capacity, etc.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "Operation type: create, update, delete, etc.", + "type": "string", + "readOnly": true + } + } + } + } + }, + "Resource": { + "description": "Represents an instance of an PowerBI Dedicated resource.", + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "An identifier that represents the PowerBI Dedicated resource." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the PowerBI Dedicated resource." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The type of the PowerBI Dedicated resource." + }, + "location": { + "type": "string", + "description": "Location of the PowerBI Dedicated resource." + }, + "sku": { + "$ref": "#/definitions/ResourceSku", + "description": "The SKU of the PowerBI Dedicated resource." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value pairs of additional resource provisioning properties." + }, + "systemData": { + "$ref": "#/definitions/SystemData", + "description": "Metadata pertaining to creation and last modification of the resource." + } + }, + "required": [ + "location", + "sku" + ], + "x-ms-azure-resource": true + }, + "DedicatedCapacity": { + "description": "Represents an instance of a Dedicated Capacity resource.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DedicatedCapacityProperties", + "description": "Properties of the provision operation request." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "DedicatedCapacities": { + "description": "An array of Dedicated capacities resources.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DedicatedCapacity" + }, + "description": "An array of Dedicated capacities resources." + } + }, + "required": [ + "value" + ] + }, + "DedicatedCapacityUpdateParameters": { + "description": "Provision request specification", + "type": "object", + "properties": { + "sku": { + "$ref": "#/definitions/ResourceSku", + "description": "The SKU of the Dedicated capacity resource." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value pairs of additional provisioning properties." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DedicatedCapacityMutableProperties", + "description": "Properties of the provision operation request." + } + } + }, + "DedicatedCapacityProperties": { + "description": "Properties of Dedicated Capacity resource.", + "type": "object", + "properties": { + "state": { + "type": "string", + "enum": [ + "Deleting", + "Succeeded", + "Failed", + "Paused", + "Suspended", + "Provisioning", + "Updating", + "Suspending", + "Pausing", + "Resuming", + "Preparing", + "Scaling" + ], + "x-ms-enum": { + "name": "State", + "modelAsString": true + }, + "readOnly": true, + "description": "The current state of PowerBI Dedicated resource. The state is to indicate more states outside of resource provisioning." + }, + "provisioningState": { + "type": "string", + "enum": [ + "Deleting", + "Succeeded", + "Failed", + "Paused", + "Suspended", + "Provisioning", + "Updating", + "Suspending", + "Pausing", + "Resuming", + "Preparing", + "Scaling" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + }, + "readOnly": true, + "description": "The current deployment state of PowerBI Dedicated resource. The provisioningState is to indicate states for resource provisioning." + } + }, + "allOf": [ + { + "$ref": "#/definitions/DedicatedCapacityMutableProperties" + } + ] + }, + "ResourceSku": { + "description": "Represents the SKU name and Azure pricing tier for PowerBI Dedicated resource.", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the SKU level." + }, + "tier": { + "type": "string", + "enum": [ + "PBIE_Azure", + "Premium", + "AutoPremiumHost" + ], + "x-ms-enum": { + "name": "SkuTier", + "modelAsString": true + }, + "description": "The name of the Azure pricing tier to which the SKU applies." + } + }, + "required": [ + "name" + ] + }, + "DedicatedCapacityMutableProperties": { + "description": "An object that represents a set of mutable Dedicated capacity resource properties.", + "type": "object", + "properties": { + "administration": { + "$ref": "#/definitions/DedicatedCapacityAdministrators", + "description": "A collection of Dedicated capacity administrators" + } + } + }, + "DedicatedCapacityAdministrators": { + "description": "An array of administrator user identities", + "type": "object", + "properties": { + "members": { + "type": "array", + "items": { + "type": "string", + "description": "The UPN of the user. For example: johnsmith@contoso.com." + }, + "description": "An array of administrator user identities." + } + } + }, + "SkuEnumerationForNewResourceResult": { + "description": "An object that represents enumerating SKUs for new resources", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceSku" + }, + "description": "The collection of available SKUs for new resources" + } + } + }, + "SkuEnumerationForExistingResourceResult": { + "description": "An object that represents enumerating SKUs for existing resources", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SkuDetailsForExistingResource" + }, + "description": "The collection of available SKUs for existing resources" + } + } + }, + "SkuDetailsForExistingResource": { + "description": "An object that represents SKU details for existing resources", + "type": "object", + "properties": { + "sku": { + "$ref": "#/definitions/ResourceSku", + "description": "The SKU in SKU details for existing resources." + } + } + }, + "ErrorResponse": { + "type": "object", + "description": "Describes the format of Error response.", + "properties": { + "error": { + "description": "The error object", + "properties": { + "code": { + "type": "string", + "description": "Error code" + }, + "message": { + "type": "string", + "description": "Error message indicating why the operation failed." + } + } + } + } + }, + "CheckCapacityNameAvailabilityParameters": { + "description": "Details of capacity name request body.", + "type": "object", + "properties": { + "name": { + "type": "string", + "pattern": "^[a-z][a-z0-9]*$", + "minLength": 3, + "maxLength": 63, + "description": "Name for checking availability." + }, + "type": { + "type": "string", + "default": "Microsoft.PowerBIDedicated/capacities", + "description": "The resource type of PowerBI dedicated." + } + } + }, + "CheckCapacityNameAvailabilityResult": { + "description": "The checking result of capacity name availability.", + "type": "object", + "properties": { + "nameAvailable": { + "type": "boolean", + "description": "Indicator of availability of the capacity name." + }, + "reason": { + "type": "string", + "description": "The reason of unavailability." + }, + "message": { + "type": "string", + "description": "The detailed message of the request unavailability." + } + } + }, + "SystemData": { + "description": "Metadata pertaining to creation and last modification of the resource.", + "type": "object", + "properties": { + "createdBy": { + "type": "string", + "description": "An identifier for the identity that created the resource" + }, + "createdByType": { + "$ref": "#/definitions/IdentityType", + "description": "The type of identity that created the resource" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource creation (UTC)" + }, + "lastModifiedBy": { + "type": "string", + "description": "An identifier for the identity that last modified the resource" + }, + "lastModifiedByType": { + "$ref": "#/definitions/IdentityType", + "description": "The type of identity that last modified the resource" + }, + "lastModifiedAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource last modification (UTC)" + } + } + }, + "IdentityType": { + "description": "The type of identity that created/modified the resource.", + "type": "string", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "IdentityType", + "modelAsString": true + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "A unique identifier for a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The client API version." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method", + "description": "The name of the Azure Resource group of which a given PowerBIDedicated capacity is part. This name must be at least 1 character in length, and no more than 90." + } + } +} diff --git a/specification/powerbidedicated/resource-manager/readme.azureresourceschema.md b/specification/powerbidedicated/resource-manager/readme.azureresourceschema.md index d00a3a6d3300..b366f69e18ed 100644 --- a/specification/powerbidedicated/resource-manager/readme.azureresourceschema.md +++ b/specification/powerbidedicated/resource-manager/readme.azureresourceschema.md @@ -7,7 +7,7 @@ These settings apply only when `--azureresourceschema` is specified on the comma ``` yaml $(azureresourceschema) && $(multiapi) batch: - tag: schema-powerbidedicated-2017-10-01 - - tag: schema-powerbidedicated-2020-12-28 + - tag: schema-powerbidedicated-2021-01-01 ``` Please also specify `--azureresourceschema-folder=`. @@ -23,13 +23,13 @@ input-file: ``` -### Tag: schema-powerbidedicated-2020-12-28 and azureresourceschema +### Tag: schema-powerbidedicated-2021-01-01 and azureresourceschema -``` yaml $(tag) == 'schema-powerbidedicated-2020-12-28' && $(azureresourceschema) +``` yaml $(tag) == 'schema-powerbidedicated-2021-01-01' && $(azureresourceschema) output-folder: $(azureresourceschema-folder)/schemas # all the input files in this apiVersion input-file: - - Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json + - Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json ``` diff --git a/specification/powerbidedicated/resource-manager/readme.go.md b/specification/powerbidedicated/resource-manager/readme.go.md index 7fbdb06d143e..d4c5dc4a848d 100644 --- a/specification/powerbidedicated/resource-manager/readme.go.md +++ b/specification/powerbidedicated/resource-manager/readme.go.md @@ -14,7 +14,7 @@ go: ``` yaml $(go) && $(multiapi) batch: - tag: package-2017-10-01 - - tag: package-2020-12-28 + - tag: package-2021-01-01 ``` ### Tag: package-2017-10-01 and go @@ -26,11 +26,11 @@ Please also specify `--go-sdk-folder=`. -``` yaml $(tag)=='package-2020-12-28' && $(go) -output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2020-12-28/$(namespace) +``` yaml $(tag)=='package-2021-01-01' && $(go) +output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2021-01-01/$(namespace) ``` \ No newline at end of file diff --git a/specification/powerbidedicated/resource-manager/readme.md b/specification/powerbidedicated/resource-manager/readme.md index 6a66943ba713..d3b0f3e003a5 100644 --- a/specification/powerbidedicated/resource-manager/readme.md +++ b/specification/powerbidedicated/resource-manager/readme.md @@ -26,17 +26,17 @@ These are the global settings for the PowerBIDedicated API. ``` yaml openapi-type: arm -tag: package-2020-12-28 +tag: package-2021-01-01 ``` -### Tag: package-2020-12-28 +### Tag: package-2021-01-01 -These settings apply only when `--tag=package-2020-12-28` is specified on the command line. +These settings apply only when `--tag=package-2021-01-01` is specified on the command line. -``` yaml $(tag) == 'package-2020-12-28' +``` yaml $(tag) == 'package-2021-01-01' input-file: -- Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json +- Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json ``` ### Tag: package-2017-10-01 @@ -106,7 +106,7 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-powerbidedicated ``` yaml $(java) && $(multiapi) batch: - tag: package-2017-10-01 - - tag: package-2020-12-28 + - tag: package-2021-01-01 ``` ### Tag: package-2017-10-01 and java @@ -122,12 +122,12 @@ regenerate-manager: true generate-interface: true ``` -### Tag: package-2020-12-28 and java +### Tag: package-2021-01-01 and java -These settings apply only when `--tag=package-2020-12-28 --java` is specified on the command line. +These settings apply only when `--tag=package-2021-01-01 --java` is specified on the command line. Please also specify `--azure-libraries-for-java=`. -``` yaml $(tag) == 'package-2020-12-28' && $(java) && $(multiapi) +``` yaml $(tag) == 'package-2021-01-01' && $(java) && $(multiapi) java: namespace: com.microsoft.azure.management.powerbidedicated.v2020_12_28 output-folder: $(azure-libraries-for-java-folder)/sdk/powerbidedicated/mgmt-v2020_12_28 From 427329f7f0b3b787ba7aa1a75e5603e6e85ad10d Mon Sep 17 00:00:00 2001 From: David Han Date: Wed, 30 Dec 2020 10:35:48 -0800 Subject: [PATCH 07/10] renamed folder --- .../examples/checkNameAvailability.json | 19 - .../2020-12-28/examples/createCapacity.json | 94 -- .../2020-12-28/examples/deleteCapacity.json | 21 - .../2020-12-28/examples/getCapacity.json | 40 - .../listCapacitiesInResourceGroup.json | 58 - .../listCapacitiesInSubscription.json | 57 - .../examples/listSKUsForExisting.json | 47 - .../2020-12-28/examples/listSKUsForNew.json | 33 - .../2020-12-28/examples/resumeCapacity.json | 18 - .../2020-12-28/examples/suspendCapacity.json | 18 - .../2020-12-28/examples/updateCapacity.json | 93 -- .../stable/2020-12-28/powerbidedicated.json | 1034 ----------------- 12 files changed, 1532 deletions(-) delete mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/checkNameAvailability.json delete mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/createCapacity.json delete mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/deleteCapacity.json delete mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/getCapacity.json delete mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInResourceGroup.json delete mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInSubscription.json delete mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForExisting.json delete mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForNew.json delete mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/resumeCapacity.json delete mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/suspendCapacity.json delete mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/updateCapacity.json delete mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/checkNameAvailability.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/checkNameAvailability.json deleted file mode 100644 index a5635e654dcb..000000000000 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/checkNameAvailability.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parameters": { - "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", - "location": "West US", - "capacityParameters": { - "name": "azsdktest", - "type": "Microsoft.PowerBIDedicated/capacities" - }, - "api-version": "2021-01-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "nameAvailable": true - } - } - } -} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/createCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/createCapacity.json deleted file mode 100644 index 253e4a6c0f9a..000000000000 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/createCapacity.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "parameters": { - "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", - "resourceGroupName": "TestRG", - "dedicatedCapacityName": "azsdktest", - "api-version": "2021-01-01", - "capacityParameters": { - "sku": { - "name": "A1", - "tier": "PBIE_Azure" - }, - "tags": { - "testKey": "testValue" - }, - "location": "West US", - "properties": { - "administration": { - "members": [ - "azsdktest@microsoft.com", - "azsdktest2@microsoft.com" - ] - } - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", - "location": "West US", - "name": "azsdktest", - "properties": { - "administration": { - "members": [ - "azsdktest@microsoft.com", - "azsdktest2@microsoft.com" - ] - }, - "provisioningState": "Provisioning", - "state": "Provisioning" - }, - "sku": { - "name": "A1", - "tier": "PBIE_Azure" - }, - "tags": { - "testKey": "testValue" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2021-01-01T00:00:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-01T00:00:19.1234567Z" - } - } - }, - "201": { - "headers": {}, - "body": { - "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/servers/azsdktest", - "location": "West US", - "name": "azsdktest", - "properties": { - "administration": { - "members": [ - "azsdktest@microsoft.com", - "azsdktest2@microsoft.com" - ] - }, - "provisioningState": "Provisioning", - "state": "Provisioning" - }, - "sku": { - "name": "A1", - "tier": "PBIE_Azure" - }, - "tags": { - "testKey": "testValue" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2021-01-01T00:00:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-01T00:00:19.1234567Z" - } - } - } - } -} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/deleteCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/deleteCapacity.json deleted file mode 100644 index 68f552c7855f..000000000000 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/deleteCapacity.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", - "resourceGroupName": "TestRG", - "dedicatedCapacityName": "azsdktest", - "api-version": "2021-01-01" - }, - "responses": { - "200": { - "headers": {}, - "description": "OK." - }, - "202": { - "headers": {}, - "description": "Accepted." - }, - "204": { - "headers": {} - } - } -} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/getCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/getCapacity.json deleted file mode 100644 index be211adec502..000000000000 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/getCapacity.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", - "resourceGroupName": "TestRG", - "dedicatedCapacityName": "azsdktest", - "api-version": "2021-01-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", - "location": "West US", - "name": "azsdktest", - "properties": { - "administration": { - "members": [ - "azsdktest@microsoft.com" - ] - }, - "provisioningState": "Provisioning", - "state": "Provisioning" - }, - "sku": { - "name": "A1", - "tier": "PBIE_Azure" - }, - "tags": {}, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2021-01-01T00:00:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-01T00:00:19.1234567Z" - } - } - } - } -} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInResourceGroup.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInResourceGroup.json deleted file mode 100644 index fddbc75bc7f3..000000000000 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInResourceGroup.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "parameters": { - "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", - "resourceGroupName": "TestRG", - "api-version": "2021-01-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", - "location": "West US", - "name": "azsdktest", - "properties": { - "administration": { - "members": [ - "azsdktest@microsoft.com" - ] - }, - "provisioningState": "Provisioning", - "state": "Provisioning" - }, - "sku": { - "name": "A1", - "tier": "PBIE_Azure" - }, - "tags": { - "testKey": "testValue" - } - }, - { - "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", - "location": "West US", - "name": "azsdktest2", - "properties": { - "administration": { - "members": [ - "azsdktest@microsoft.com" - ] - }, - "provisioningState": "Provisioning", - "state": "Provisioning" - }, - "sku": { - "name": "A2", - "tier": "PBIE_Azure" - }, - "tags": { - "testKey": "testValue" - } - } - ] - } - } - } -} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInSubscription.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInSubscription.json deleted file mode 100644 index 5c4ac67f86a4..000000000000 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listCapacitiesInSubscription.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "parameters": { - "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", - "api-version": "2021-01-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", - "location": "West US", - "name": "azsdktest", - "properties": { - "administration": { - "members": [ - "azsdktest@microsoft.com" - ] - }, - "provisioningState": "Provisioning", - "state": "Provisioning" - }, - "sku": { - "name": "A1", - "tier": "PBIE_Azure" - }, - "tags": { - "testKey": "testValue" - } - }, - { - "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", - "location": "West US", - "name": "azsdktest2", - "properties": { - "administration": { - "members": [ - "azsdktest@microsoft.com" - ] - }, - "provisioningState": "Provisioning", - "state": "Provisioning" - }, - "sku": { - "name": "A2", - "tier": "PBIE_Azure" - }, - "tags": { - "testKey": "testValue" - } - } - ] - } - } - } -} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForExisting.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForExisting.json deleted file mode 100644 index c40dc6899078..000000000000 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForExisting.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", - "resourceGroupName": "TestRG", - "dedicatedCapacityName": "azsdktest", - "api-version": "2021-01-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "sku": { - "name": "A2", - "tier": "PBIE_Azure" - } - }, - { - "sku": { - "name": "A3", - "tier": "PBIE_Azure" - } - }, - { - "sku": { - "name": "A4", - "tier": "PBIE_Azure" - } - }, - { - "sku": { - "name": "A5", - "tier": "PBIE_Azure" - } - }, - { - "sku": { - "name": "A6", - "tier": "PBIE_Azure" - } - } - ] - } - } - } -} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForNew.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForNew.json deleted file mode 100644 index 4bac1c3922cb..000000000000 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/listSKUsForNew.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", - "api-version": "2021-01-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "name": "A1" - }, - { - "name": "A2" - }, - { - "name": "A3" - }, - { - "name": "A4" - }, - { - "name": "A5" - }, - { - "name": "A6" - } - ] - } - } - } -} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/resumeCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/resumeCapacity.json deleted file mode 100644 index fd47da29bea3..000000000000 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/resumeCapacity.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", - "resourceGroupName": "TestRG", - "dedicatedCapacityName": "azsdktest", - "api-version": "2021-01-01" - }, - "responses": { - "200": { - "headers": {}, - "description": "OK." - }, - "202": { - "headers": {}, - "description": "Accepted." - } - } -} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/suspendCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/suspendCapacity.json deleted file mode 100644 index fd47da29bea3..000000000000 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/suspendCapacity.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", - "resourceGroupName": "TestRG", - "dedicatedCapacityName": "azsdktest", - "api-version": "2021-01-01" - }, - "responses": { - "200": { - "headers": {}, - "description": "OK." - }, - "202": { - "headers": {}, - "description": "Accepted." - } - } -} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/updateCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/updateCapacity.json deleted file mode 100644 index daaf221c3a8d..000000000000 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/examples/updateCapacity.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "parameters": { - "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", - "resourceGroupName": "TestRG", - "dedicatedCapacityName": "azsdktest", - "api-version": "2021-01-01", - "capacityUpdateParameters": { - "sku": { - "name": "A1", - "tier": "PBIE_Azure" - }, - "tags": { - "testKey": "testValue" - }, - "properties": { - "administration": { - "members": [ - "azsdktest@microsoft.com", - "azsdktest2@microsoft.com" - ] - } - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", - "location": "West US", - "name": "azsdktest", - "properties": { - "administration": { - "members": [ - "azsdktest@microsoft.com", - "azsdktest2@microsoft.com" - ] - }, - "provisioningState": "Provisioning", - "state": "Provisioning" - }, - "sku": { - "name": "A1", - "tier": "PBIE_Azure" - }, - "tags": { - "testKey": "testValue" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2021-01-01T00:00:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-01T00:00:19.1234567Z" - } - } - }, - "202": { - "headers": {}, - "body": { - "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", - "location": "West US", - "name": "azsdktest", - "properties": { - "administration": { - "members": [ - "azsdktest@microsoft.com", - "azsdktest2@microsoft.com" - ] - }, - "provisioningState": "Provisioning", - "state": "Provisioning" - }, - "sku": { - "name": "A1", - "tier": "PBIE_Azure" - }, - "tags": { - "testKey": "testValue" - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2021-01-01T00:00:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-01T00:00:19.1234567Z" - } - } - } - } -} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json deleted file mode 100644 index 6908dffd625d..000000000000 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2020-12-28/powerbidedicated.json +++ /dev/null @@ -1,1034 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2021-01-01", - "title": "PowerBIDedicated", - "description": "PowerBI Dedicated Web API provides a RESTful set of web services that enables users to create, retrieve, update, and delete Power BI dedicated capacities", - "x-ms-code-generation-settings": { - "name": "PowerBIDedicatedManagementClient" - } - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}": { - "get": { - "description": "Gets details about the specified dedicated capacity.", - "x-ms-examples": { - "Get details of a capacity": { - "$ref": "./examples/getCapacity.json" - } - }, - "tags": [ - "Capacities" - ], - "operationId": "Capacities_GetDetails", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "name": "dedicatedCapacityName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-z][a-z0-9]*$", - "minLength": 3, - "maxLength": 63, - "description": "The name of the dedicated capacity. It must be a minimum of 3 characters, and a maximum of 63." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK. The operation was successful.", - "schema": { - "$ref": "#/definitions/DedicatedCapacity" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "description": "Provisions the specified Dedicated capacity based on the configuration specified in the request.", - "x-ms-examples": { - "Create capacity": { - "$ref": "./examples/createCapacity.json" - } - }, - "tags": [ - "Capacities" - ], - "operationId": "Capacities_Create", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "name": "dedicatedCapacityName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-z][a-z0-9]*$", - "minLength": 3, - "maxLength": 63, - "description": "The name of the Dedicated capacity. It must be a minimum of 3 characters, and a maximum of 63." - }, - { - "name": "capacityParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/DedicatedCapacity" - }, - "description": "Contains the information used to provision the Dedicated capacity." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK. The operation completed successfully.", - "schema": { - "$ref": "#/definitions/DedicatedCapacity" - } - }, - "201": { - "description": "InProgress. The operation is still in progress.", - "schema": { - "$ref": "#/definitions/DedicatedCapacity" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "description": "Deletes the specified Dedicated capacity.", - "x-ms-examples": { - "Get details of a capacity": { - "$ref": "./examples/deleteCapacity.json" - } - }, - "tags": [ - "Capacities" - ], - "operationId": "Capacities_Delete", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "name": "dedicatedCapacityName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-z][a-z0-9]*$", - "minLength": 3, - "maxLength": 63, - "description": "The name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK." - }, - "204": { - "description": "No Content." - }, - "202": { - "description": "Accepted." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true - }, - "patch": { - "description": "Updates the current state of the specified Dedicated capacity.", - "x-ms-examples": { - "Update capacity parameters": { - "$ref": "./examples/updateCapacity.json" - } - }, - "tags": [ - "Capacities" - ], - "operationId": "Capacities_Update", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "name": "dedicatedCapacityName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-z][a-z0-9]*$", - "minLength": 3, - "maxLength": 63, - "description": "The name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63." - }, - { - "name": "capacityUpdateParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/DedicatedCapacityUpdateParameters" - }, - "description": "Request object that contains the updated information for the capacity." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DedicatedCapacity" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/DedicatedCapacity" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}/suspend": { - "post": { - "description": "Suspends operation of the specified dedicated capacity instance.", - "x-ms-examples": { - "Suspend capacity": { - "$ref": "./examples/suspendCapacity.json" - } - }, - "tags": [ - "Capacities" - ], - "operationId": "Capacities_Suspend", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "name": "dedicatedCapacityName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-z][a-z0-9]*$", - "minLength": 3, - "maxLength": 63, - "description": "The name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK." - }, - "202": { - "description": "Accepted." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}/resume": { - "post": { - "description": "Resumes operation of the specified Dedicated capacity instance.", - "x-ms-examples": { - "Get details of a capacity": { - "$ref": "./examples/resumeCapacity.json" - } - }, - "tags": [ - "Capacities" - ], - "operationId": "Capacities_Resume", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "name": "dedicatedCapacityName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-z][a-z0-9]*$", - "minLength": 3, - "maxLength": 63, - "description": "The name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities": { - "get": { - "description": "Gets all the Dedicated capacities for the given resource group.", - "x-ms-examples": { - "List capacities in resource group": { - "$ref": "./examples/listCapacitiesInResourceGroup.json" - } - }, - "tags": [ - "Capacities" - ], - "operationId": "Capacities_ListByResourceGroup", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DedicatedCapacities" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.PowerBIDedicated/capacities": { - "get": { - "description": "Lists all the Dedicated capacities for the given subscription.", - "x-ms-examples": { - "Get details of a capacity": { - "$ref": "./examples/listCapacitiesInSubscription.json" - } - }, - "tags": [ - "Capacities" - ], - "operationId": "Capacities_List", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DedicatedCapacities" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.PowerBIDedicated/skus": { - "get": { - "description": "Lists eligible SKUs for PowerBI Dedicated resource provider.", - "x-ms-examples": { - "List eligible SKUs for a new capacity": { - "$ref": "./examples/listSKUsForNew.json" - } - }, - "operationId": "Capacities_ListSkus", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SkuEnumerationForNewResourceResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}/skus": { - "get": { - "description": "Lists eligible SKUs for a PowerBI Dedicated resource.", - "x-ms-examples": { - "List eligible SKUs for an existing capacity": { - "$ref": "./examples/listSKUsForExisting.json" - } - }, - "tags": [ - "Capacities" - ], - "operationId": "Capacities_ListSkusForCapacity", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "name": "dedicatedCapacityName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-z][a-z0-9]*$", - "minLength": 3, - "maxLength": 63, - "description": "The name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SkuEnumerationForExistingResourceResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.PowerBIDedicated/operations": { - "get": { - "tags": [ - "Operations" - ], - "operationId": "Operations_List", - "description": "Lists all of the available PowerBIDedicated REST API operations.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "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.PowerBIDedicated/locations/{location}/checkNameAvailability": { - "post": { - "x-ms-examples": { - "Check name availability of a capacity": { - "$ref": "./examples/checkNameAvailability.json" - } - }, - "tags": [ - "Capacities" - ], - "operationId": "Capacities_CheckNameAvailability", - "description": "Check the name availability in the target location.", - "parameters": [ - { - "name": "location", - "in": "path", - "required": true, - "type": "string", - "description": "The region name which the operation will lookup into." - }, - { - "name": "capacityParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckCapacityNameAvailabilityParameters" - }, - "description": "The name of the capacity." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/CheckCapacityNameAvailabilityResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - } - }, - "definitions": { - "OperationListResult": { - "description": "Result listing capacities. It contains a list of operations and a URL link to get the next set of results.", - "properties": { - "value": { - "description": "List of capacities supported by the Microsoft.PowerBIDedicated resource provider.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/Operation" - } - }, - "nextLink": { - "description": "URL to get the next set of operation list results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "Operation": { - "description": "Capacities REST API operation.", - "type": "object", - "properties": { - "name": { - "description": "Operation name: {provider}/{resource}/{operation}.", - "type": "string", - "readOnly": true - }, - "display": { - "description": "The object that represents the operation.", - "properties": { - "provider": { - "description": "Service provider: Microsoft.PowerBIDedicated.", - "type": "string", - "readOnly": true - }, - "resource": { - "description": "Resource on which the operation is performed: capacity, etc.", - "type": "string", - "readOnly": true - }, - "operation": { - "description": "Operation type: create, update, delete, etc.", - "type": "string", - "readOnly": true - } - } - } - } - }, - "Resource": { - "description": "Represents an instance of an PowerBI Dedicated resource.", - "type": "object", - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "An identifier that represents the PowerBI Dedicated resource." - }, - "name": { - "type": "string", - "readOnly": true, - "description": "The name of the PowerBI Dedicated resource." - }, - "type": { - "type": "string", - "readOnly": true, - "description": "The type of the PowerBI Dedicated resource." - }, - "location": { - "type": "string", - "description": "Location of the PowerBI Dedicated resource." - }, - "sku": { - "$ref": "#/definitions/ResourceSku", - "description": "The SKU of the PowerBI Dedicated resource." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Key-value pairs of additional resource provisioning properties." - }, - "systemData": { - "$ref": "#/definitions/SystemData", - "description": "Metadata pertaining to creation and last modification of the resource." - } - }, - "required": [ - "location", - "sku" - ], - "x-ms-azure-resource": true - }, - "DedicatedCapacity": { - "description": "Represents an instance of a Dedicated Capacity resource.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DedicatedCapacityProperties", - "description": "Properties of the provision operation request." - } - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ] - }, - "DedicatedCapacities": { - "description": "An array of Dedicated capacities resources.", - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/DedicatedCapacity" - }, - "description": "An array of Dedicated capacities resources." - } - }, - "required": [ - "value" - ] - }, - "DedicatedCapacityUpdateParameters": { - "description": "Provision request specification", - "type": "object", - "properties": { - "sku": { - "$ref": "#/definitions/ResourceSku", - "description": "The SKU of the Dedicated capacity resource." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Key-value pairs of additional provisioning properties." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DedicatedCapacityMutableProperties", - "description": "Properties of the provision operation request." - } - } - }, - "DedicatedCapacityProperties": { - "description": "Properties of Dedicated Capacity resource.", - "type": "object", - "properties": { - "state": { - "type": "string", - "enum": [ - "Deleting", - "Succeeded", - "Failed", - "Paused", - "Suspended", - "Provisioning", - "Updating", - "Suspending", - "Pausing", - "Resuming", - "Preparing", - "Scaling" - ], - "x-ms-enum": { - "name": "State", - "modelAsString": true - }, - "readOnly": true, - "description": "The current state of PowerBI Dedicated resource. The state is to indicate more states outside of resource provisioning." - }, - "provisioningState": { - "type": "string", - "enum": [ - "Deleting", - "Succeeded", - "Failed", - "Paused", - "Suspended", - "Provisioning", - "Updating", - "Suspending", - "Pausing", - "Resuming", - "Preparing", - "Scaling" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": true - }, - "readOnly": true, - "description": "The current deployment state of PowerBI Dedicated resource. The provisioningState is to indicate states for resource provisioning." - } - }, - "allOf": [ - { - "$ref": "#/definitions/DedicatedCapacityMutableProperties" - } - ] - }, - "ResourceSku": { - "description": "Represents the SKU name and Azure pricing tier for PowerBI Dedicated resource.", - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Name of the SKU level." - }, - "tier": { - "type": "string", - "enum": [ - "PBIE_Azure", - "Premium", - "AutoPremiumHost" - ], - "x-ms-enum": { - "name": "SkuTier", - "modelAsString": true - }, - "description": "The name of the Azure pricing tier to which the SKU applies." - } - }, - "required": [ - "name" - ] - }, - "DedicatedCapacityMutableProperties": { - "description": "An object that represents a set of mutable Dedicated capacity resource properties.", - "type": "object", - "properties": { - "administration": { - "$ref": "#/definitions/DedicatedCapacityAdministrators", - "description": "A collection of Dedicated capacity administrators" - } - } - }, - "DedicatedCapacityAdministrators": { - "description": "An array of administrator user identities", - "type": "object", - "properties": { - "members": { - "type": "array", - "items": { - "type": "string", - "description": "The UPN of the user. For example: johnsmith@contoso.com." - }, - "description": "An array of administrator user identities." - } - } - }, - "SkuEnumerationForNewResourceResult": { - "description": "An object that represents enumerating SKUs for new resources", - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ResourceSku" - }, - "description": "The collection of available SKUs for new resources" - } - } - }, - "SkuEnumerationForExistingResourceResult": { - "description": "An object that represents enumerating SKUs for existing resources", - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/SkuDetailsForExistingResource" - }, - "description": "The collection of available SKUs for existing resources" - } - } - }, - "SkuDetailsForExistingResource": { - "description": "An object that represents SKU details for existing resources", - "type": "object", - "properties": { - "sku": { - "$ref": "#/definitions/ResourceSku", - "description": "The SKU in SKU details for existing resources." - } - } - }, - "ErrorResponse": { - "type": "object", - "description": "Describes the format of Error response.", - "properties": { - "error": { - "description": "The error object", - "properties": { - "code": { - "type": "string", - "description": "Error code" - }, - "message": { - "type": "string", - "description": "Error message indicating why the operation failed." - } - } - } - } - }, - "CheckCapacityNameAvailabilityParameters": { - "description": "Details of capacity name request body.", - "type": "object", - "properties": { - "name": { - "type": "string", - "pattern": "^[a-z][a-z0-9]*$", - "minLength": 3, - "maxLength": 63, - "description": "Name for checking availability." - }, - "type": { - "type": "string", - "default": "Microsoft.PowerBIDedicated/capacities", - "description": "The resource type of PowerBI dedicated." - } - } - }, - "CheckCapacityNameAvailabilityResult": { - "description": "The checking result of capacity name availability.", - "type": "object", - "properties": { - "nameAvailable": { - "type": "boolean", - "description": "Indicator of availability of the capacity name." - }, - "reason": { - "type": "string", - "description": "The reason of unavailability." - }, - "message": { - "type": "string", - "description": "The detailed message of the request unavailability." - } - } - }, - "SystemData": { - "description": "Metadata pertaining to creation and last modification of the resource.", - "type": "object", - "properties": { - "createdBy": { - "type": "string", - "description": "An identifier for the identity that created the resource" - }, - "createdByType": { - "$ref": "#/definitions/IdentityType", - "description": "The type of identity that created the resource" - }, - "createdAt": { - "type": "string", - "format": "date-time", - "description": "The timestamp of resource creation (UTC)" - }, - "lastModifiedBy": { - "type": "string", - "description": "An identifier for the identity that last modified the resource" - }, - "lastModifiedByType": { - "$ref": "#/definitions/IdentityType", - "description": "The type of identity that last modified the resource" - }, - "lastModifiedAt": { - "type": "string", - "format": "date-time", - "description": "The timestamp of resource last modification (UTC)" - } - } - }, - "IdentityType": { - "description": "The type of identity that created/modified the resource.", - "type": "string", - "enum": [ - "User", - "Application", - "ManagedIdentity", - "Key" - ], - "x-ms-enum": { - "name": "IdentityType", - "modelAsString": true - } - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "A unique identifier for a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The client API version." - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w\\._\\(\\)]+$", - "minLength": 1, - "maxLength": 90, - "x-ms-parameter-location": "method", - "description": "The name of the Azure Resource group of which a given PowerBIDedicated capacity is part. This name must be at least 1 character in length, and no more than 90." - } - } -} From a000d34f1a7e93e31b2b4dacf74f59e4c03ba2db Mon Sep 17 00:00:00 2001 From: Shane Zou Date: Tue, 26 Jan 2021 18:51:08 -0800 Subject: [PATCH 08/10] Add swagger file for new resource type Microsoft.PowerBIDedicated/autoScaleVCores --- .../stable/2021-01-01/autoScaleVCores.json | 460 ++++++++++++++++++ .../examples/createAutoScaleVCore.json | 55 +++ .../examples/deleteAutoScaleVCore.json | 18 + .../examples/getAutoScaleVCore.json | 38 ++ .../listAutoScaleVCoresInResourceGroup.json | 54 ++ .../listAutoScaleVCoresInSubscription.json | 53 ++ .../examples/updateAutoScaleVCore.json | 53 ++ .../stable/2021-01-01/powerbidedicated.json | 34 +- .../readme.azureresourceschema.md | 1 + .../resource-manager/readme.md | 1 + 10 files changed, 753 insertions(+), 14 deletions(-) create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/autoScaleVCores.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/createAutoScaleVCore.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/deleteAutoScaleVCore.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/getAutoScaleVCore.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listAutoScaleVCoresInResourceGroup.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listAutoScaleVCoresInSubscription.json create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/updateAutoScaleVCore.json diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/autoScaleVCores.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/autoScaleVCores.json new file mode 100644 index 000000000000..064363c38026 --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/autoScaleVCores.json @@ -0,0 +1,460 @@ +{ + "swagger": "2.0", + "info": { + "version": "2021-01-01", + "title": "PowerBIDedicated", + "description": "PowerBI Dedicated Web API provides a RESTful set of web services that enables users to create, retrieve, update, and delete Power BI dedicated capacities", + "x-ms-code-generation-settings": { + "name": "PowerBIDedicatedManagementClient" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/autoScaleVCores/{vcoreName}": { + "get": { + "description": "Gets details about the specified auto scale v-core.", + "x-ms-examples": { + "Get details of an auto scale v-core": { + "$ref": "./examples/getAutoScaleVCore.json" + } + }, + "tags": [ + "AutoScaleVCores" + ], + "operationId": "AutoScaleVCores_Get", + "parameters": [ + { + "$ref": "./powerbidedicated.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./powerbidedicated.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "vcoreName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[-a-zA-Z0-9_]+$", + "minLength": 3, + "maxLength": 63, + "description": "The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63." + }, + { + "$ref": "./powerbidedicated.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The operation was successful.", + "schema": { + "$ref": "#/definitions/AutoScaleVCore" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./powerbidedicated.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "description": "Provisions the specified auto scale v-core based on the configuration specified in the request.", + "x-ms-examples": { + "Create auto scale v-core": { + "$ref": "./examples/createAutoScaleVCore.json" + } + }, + "tags": [ + "AutoScaleVCores" + ], + "operationId": "AutoScaleVCores_Create", + "parameters": [ + { + "$ref": "./powerbidedicated.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./powerbidedicated.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "vcoreName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[-a-zA-Z0-9_]+$", + "minLength": 3, + "maxLength": 63, + "description": "The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63." + }, + { + "$ref": "./powerbidedicated.json#/parameters/ApiVersionParameter" + }, + { + "name": "vCoreParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AutoScaleVCore" + }, + "description": "Contains the information used to provision the auto scale v-core." + } + ], + "responses": { + "200": { + "description": "OK. The operation completed successfully.", + "schema": { + "$ref": "#/definitions/AutoScaleVCore" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./powerbidedicated.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "description": "Deletes the specified auto scale v-core.", + "x-ms-examples": { + "Delete an auto scale v-core": { + "$ref": "./examples/deleteAutoScaleVCore.json" + } + }, + "tags": [ + "AutoScaleVCores" + ], + "operationId": "AutoScaleVCores_Delete", + "parameters": [ + { + "$ref": "./powerbidedicated.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./powerbidedicated.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "vcoreName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[-a-zA-Z0-9_]+$", + "minLength": 3, + "maxLength": 63, + "description": "The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63." + }, + { + "$ref": "./powerbidedicated.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK." + }, + "204": { + "description": "No Content." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./powerbidedicated.json#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "description": "Updates the current state of the specified auto scale v-core.", + "x-ms-examples": { + "Update auto scale v-core parameters": { + "$ref": "./examples/updateAutoScaleVCore.json" + } + }, + "tags": [ + "AutoScaleVCores" + ], + "operationId": "AutoScaleVCores_Update", + "parameters": [ + { + "$ref": "./powerbidedicated.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./powerbidedicated.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "vcoreName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[-a-zA-Z0-9_]+$", + "minLength": 3, + "maxLength": 63, + "description": "The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63." + }, + { + "$ref": "./powerbidedicated.json#/parameters/ApiVersionParameter" + }, + { + "name": "vCoreUpdateParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AutoScaleVCoreUpdateParameters" + }, + "description": "Request object that contains the updated information for the auto scale v-core." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AutoScaleVCore" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./powerbidedicated.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/autoScaleVCores": { + "get": { + "description": "Gets all the auto scale v-cores for the given resource group.", + "x-ms-examples": { + "List auto scale v-cores in resource group": { + "$ref": "./examples/listAutoScaleVCoresInResourceGroup.json" + } + }, + "tags": [ + "AutoScaleVCores" + ], + "operationId": "AutoScaleVCores_ListByResourceGroup", + "parameters": [ + { + "$ref": "./powerbidedicated.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./powerbidedicated.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./powerbidedicated.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AutoScaleVCoreListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./powerbidedicated.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.PowerBIDedicated/autoScaleVCores": { + "get": { + "description": "Lists all the auto scale v-cores for the given subscription.", + "x-ms-examples": { + "List auto scale v-cores in subscription": { + "$ref": "./examples/listAutoScaleVCoresInSubscription.json" + } + }, + "tags": [ + "AutoScaleVCores" + ], + "operationId": "AutoScaleVCores_ListBySubscription", + "parameters": [ + { + "$ref": "./powerbidedicated.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./powerbidedicated.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AutoScaleVCoreListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./powerbidedicated.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + } + }, + "definitions": { + "AutoScaleVCore": { + "description": "Represents an instance of an auto scale v-core resource.", + "type": "object", + "properties": { + "sku": { + "$ref": "#/definitions/AutoScaleVCoreSku", + "description": "The SKU of the auto scale v-core resource." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AutoScaleVCoreProperties", + "description": "Properties of an auto scale v-core resource." + } + }, + "allOf": [ + { + "$ref": "./powerbidedicated.json#/definitions/Resource" + } + ], + "required": [ + "sku" + ] + }, + "AutoScaleVCoreListResult": { + "description": "An array of auto scale v-core resources.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AutoScaleVCore" + }, + "description": "An array of auto scale v-core resources." + } + }, + "required": [ + "value" + ] + }, + "AutoScaleVCoreUpdateParameters": { + "description": "Update request specification", + "type": "object", + "properties": { + "sku": { + "$ref": "#/definitions/AutoScaleVCoreSku", + "description": "The SKU of the auto scale v-core resource." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value pairs of additional provisioning properties." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AutoScaleVCoreMutableProperties", + "description": "Properties of the update operation request." + } + } + }, + "AutoScaleVCoreProperties": { + "description": "Properties of an auto scale v-core resource.", + "type": "object", + "properties": { + "capacityObjectId": { + "type": "string", + "description": "The object ID of the capacity resource associated with the auto scale v-core resource." + }, + "provisioningState": { + "type": "string", + "enum": [ + "Succeeded" + ], + "x-ms-enum": { + "name": "VCoreProvisioningState", + "modelAsString": true + }, + "readOnly": true, + "description": "The current deployment state of an auto scale v-core resource. The provisioningState is to indicate states for resource provisioning." + } + }, + "allOf": [ + { + "$ref": "#/definitions/AutoScaleVCoreMutableProperties" + } + ] + }, + "AutoScaleVCoreMutableProperties": { + "description": "An object that represents a set of mutable auto scale v-core resource properties.", + "type": "object", + "properties": { + "capacityLimit": { + "type": "integer", + "format": "int32", + "description": "The maximum capacity of an auto scale v-core resource." + } + } + }, + "AutoScaleVCoreSku": { + "description": "Represents the SKU name and Azure pricing tier for auto scale v-core resource.", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the SKU level." + }, + "tier": { + "type": "string", + "enum": [ + "AutoScale" + ], + "x-ms-enum": { + "name": "VCoreSkuTier", + "modelAsString": true + }, + "description": "The name of the Azure pricing tier to which the SKU applies." + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "The capacity of an auto scale v-core resource." + } + }, + "required": [ + "name" + ] + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/createAutoScaleVCore.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/createAutoScaleVCore.json new file mode 100644 index 000000000000..b335d7479acc --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/createAutoScaleVCore.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "resourceGroupName": "TestRG", + "vcoreName": "testvcore", + "api-version": "2021-01-01", + "vCoreParameters": { + "sku": { + "name": "AutoScale", + "tier": "AutoScale", + "capacity": 0 + }, + "tags": { + "testKey": "testValue" + }, + "location": "West US", + "properties": { + "capacityObjectId": "a28f00bd-5330-4572-88f1-fa883e074785", + "capacityLimit": 10 + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/autoScaleVCores/testvcore", + "name": "testvcore", + "location": "West US", + "type": "Microsoft.PowerBIDedicated/autoScaleVCores", + "sku": { + "name": "AutoScale", + "tier": "AutoScale", + "capacity": 0 + }, + "properties": { + "capacityObjectId": "a28f00bd-5330-4572-88f1-fa883e074785", + "capacityLimit": 10, + "provisioningState": "Succeeded" + }, + "tags": { + "testKey": "testValue" + }, + "systemData": { + "createdBy": "app1", + "createdByType": "Application", + "createdAt": "2021-01-01T00:00:19.1234567Z", + "lastModifiedBy": "app1", + "lastModifiedByType": "Application", + "lastModifiedAt": "2021-01-01T00:00:19.1234567Z" + } + } + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/deleteAutoScaleVCore.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/deleteAutoScaleVCore.json new file mode 100644 index 000000000000..513c1e77f0b3 --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/deleteAutoScaleVCore.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "resourceGroupName": "TestRG", + "vcoreName": "testvcore", + "api-version": "2021-01-01" + }, + "responses": { + "200": { + "headers": {}, + "description": "OK." + }, + "204": { + "headers": {}, + "description": "No content." + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/getAutoScaleVCore.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/getAutoScaleVCore.json new file mode 100644 index 000000000000..8fbf9f503aec --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/getAutoScaleVCore.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "resourceGroupName": "TestRG", + "vcoreName": "testvcore", + "api-version": "2021-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/autoScaleVCores/testvcore", + "name": "testvcore", + "location": "West US", + "type": "Microsoft.PowerBIDedicated/autoScaleVCores", + "sku": { + "name": "AutoScale", + "tier": "AutoScale", + "capacity": 0 + }, + "properties": { + "capacityObjectId": "a28f00bd-5330-4572-88f1-fa883e074785", + "capacityLimit": 10, + "provisioningState": "Succeeded" + }, + "tags": {}, + "systemData": { + "createdBy": "app1", + "createdByType": "Application", + "createdAt": "2021-01-01T00:00:19.1234567Z", + "lastModifiedBy": "app1", + "lastModifiedByType": "Application", + "lastModifiedAt": "2021-01-01T00:00:19.1234567Z" + } + } + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listAutoScaleVCoresInResourceGroup.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listAutoScaleVCoresInResourceGroup.json new file mode 100644 index 000000000000..74df16dd2ea9 --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listAutoScaleVCoresInResourceGroup.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "resourceGroupName": "TestRG", + "api-version": "2021-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/autoScaleVCores/testvcore1", + "name": "testvcore1", + "location": "West US", + "type": "Microsoft.PowerBIDedicated/autoScaleVCores", + "sku": { + "name": "AutoScale", + "tier": "AutoScale", + "capacity": 5 + }, + "properties": { + "capacityObjectId": "a28f00bd-5330-4572-88f1-fa883e074785", + "capacityLimit": 10, + "provisioningState": "Succeeded" + }, + "tags": { + "testKey": "testValue" + } + }, + { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/autoScaleVCores/testvcore2", + "name": "testvcore2", + "location": "West US", + "type": "Microsoft.PowerBIDedicated/autoScaleVCores", + "sku": { + "name": "AutoScale", + "tier": "AutoScale", + "capacity": 0 + }, + "properties": { + "capacityObjectId": "f59f226b-a313-4266-8768-a45961c2edbb", + "capacityLimit": 10, + "provisioningState": "Succeeded" + }, + "tags": { + "testKey": "testValue" + } + } + ] + } + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listAutoScaleVCoresInSubscription.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listAutoScaleVCoresInSubscription.json new file mode 100644 index 000000000000..7598e9998f98 --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/listAutoScaleVCoresInSubscription.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "api-version": "2021-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG1/providers/Microsoft.PowerBIDedicated/autoScaleVCores/testvcore1", + "name": "testvcore1", + "location": "West US", + "type": "Microsoft.PowerBIDedicated/autoScaleVCores", + "sku": { + "name": "AutoScale", + "tier": "AutoScale", + "capacity": 5 + }, + "properties": { + "capacityObjectId": "a28f00bd-5330-4572-88f1-fa883e074785", + "capacityLimit": 10, + "provisioningState": "Succeeded" + }, + "tags": { + "testKey": "testValue" + } + }, + { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG2/providers/Microsoft.PowerBIDedicated/autoScaleVCores/testvcore2", + "name": "testvcore2", + "location": "West US", + "type": "Microsoft.PowerBIDedicated/autoScaleVCores", + "sku": { + "name": "AutoScale", + "tier": "AutoScale", + "capacity": 0 + }, + "properties": { + "capacityObjectId": "f59f226b-a313-4266-8768-a45961c2edbb", + "capacityLimit": 10, + "provisioningState": "Succeeded" + }, + "tags": { + "testKey": "testValue" + } + } + ] + } + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/updateAutoScaleVCore.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/updateAutoScaleVCore.json new file mode 100644 index 000000000000..f0a4cfa23fb2 --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/updateAutoScaleVCore.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "resourceGroupName": "TestRG", + "vcoreName": "testvcore", + "api-version": "2021-01-01", + "vCoreUpdateParameters": { + "sku": { + "name": "AutoScale", + "tier": "AutoScale", + "capacity": 0 + }, + "tags": { + "testKey": "testValue" + }, + "properties": { + "capacityLimit": 20 + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/autoScaleVCores/testvcore", + "location": "West US", + "name": "testvcore", + "type": "Microsoft.PowerBIDedicated/autoScaleVCores", + "sku": { + "name": "AutoScale", + "tier": "AutoScale", + "capacity": 0 + }, + "properties": { + "capacityObjectId": "a28f00bd-5330-4572-88f1-fa883e074785", + "capacityLimit": 20, + "provisioningState": "Succeeded" + }, + "tags": { + "testKey": "testValue" + }, + "systemData": { + "createdBy": "app1", + "createdByType": "Application", + "createdAt": "2021-01-01T00:00:19.1234567Z", + "lastModifiedBy": "app1", + "lastModifiedByType": "Application", + "lastModifiedAt": "2021-01-01T00:00:19.1234567Z" + } + } + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json index 6908dffd625d..8c747fbbeb55 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json @@ -681,11 +681,11 @@ }, "location": { "type": "string", - "description": "Location of the PowerBI Dedicated resource." - }, - "sku": { - "$ref": "#/definitions/ResourceSku", - "description": "The SKU of the PowerBI Dedicated resource." + "description": "Location of the PowerBI Dedicated resource.", + "x-ms-mutability": [ + "create", + "read" + ] }, "tags": { "type": "object", @@ -700,8 +700,7 @@ } }, "required": [ - "location", - "sku" + "location" ], "x-ms-azure-resource": true }, @@ -709,6 +708,10 @@ "description": "Represents an instance of a Dedicated Capacity resource.", "type": "object", "properties": { + "sku": { + "$ref": "#/definitions/CapacitySku", + "description": "The SKU of the PowerBI Dedicated capacity resource." + }, "properties": { "x-ms-client-flatten": true, "$ref": "#/definitions/DedicatedCapacityProperties", @@ -719,6 +722,9 @@ { "$ref": "#/definitions/Resource" } + ], + "required": [ + "sku" ] }, "DedicatedCapacities": { @@ -742,7 +748,7 @@ "type": "object", "properties": { "sku": { - "$ref": "#/definitions/ResourceSku", + "$ref": "#/definitions/CapacitySku", "description": "The SKU of the Dedicated capacity resource." }, "tags": { @@ -803,7 +809,7 @@ "Scaling" ], "x-ms-enum": { - "name": "ProvisioningState", + "name": "CapacityProvisioningState", "modelAsString": true }, "readOnly": true, @@ -816,8 +822,8 @@ } ] }, - "ResourceSku": { - "description": "Represents the SKU name and Azure pricing tier for PowerBI Dedicated resource.", + "CapacitySku": { + "description": "Represents the SKU name and Azure pricing tier for PowerBI Dedicated capacity resource.", "type": "object", "properties": { "name": { @@ -832,7 +838,7 @@ "AutoPremiumHost" ], "x-ms-enum": { - "name": "SkuTier", + "name": "CapacitySkuTier", "modelAsString": true }, "description": "The name of the Azure pricing tier to which the SKU applies." @@ -873,7 +879,7 @@ "value": { "type": "array", "items": { - "$ref": "#/definitions/ResourceSku" + "$ref": "#/definitions/CapacitySku" }, "description": "The collection of available SKUs for new resources" } @@ -897,7 +903,7 @@ "type": "object", "properties": { "sku": { - "$ref": "#/definitions/ResourceSku", + "$ref": "#/definitions/CapacitySku", "description": "The SKU in SKU details for existing resources." } } diff --git a/specification/powerbidedicated/resource-manager/readme.azureresourceschema.md b/specification/powerbidedicated/resource-manager/readme.azureresourceschema.md index b366f69e18ed..39e0571286df 100644 --- a/specification/powerbidedicated/resource-manager/readme.azureresourceschema.md +++ b/specification/powerbidedicated/resource-manager/readme.azureresourceschema.md @@ -31,5 +31,6 @@ output-folder: $(azureresourceschema-folder)/schemas # all the input files in this apiVersion input-file: - Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json + - Microsoft.PowerBIdedicated/stable/2021-01-01/autoScaleVCores.json ``` diff --git a/specification/powerbidedicated/resource-manager/readme.md b/specification/powerbidedicated/resource-manager/readme.md index d3b0f3e003a5..7574c9b1d23e 100644 --- a/specification/powerbidedicated/resource-manager/readme.md +++ b/specification/powerbidedicated/resource-manager/readme.md @@ -37,6 +37,7 @@ These settings apply only when `--tag=package-2021-01-01` is specified on the co ``` yaml $(tag) == 'package-2021-01-01' input-file: - Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json +- Microsoft.PowerBIdedicated/stable/2021-01-01/autoScaleVCores.json ``` ### Tag: package-2017-10-01 From ec12937e47435e4e516d8d208495a82c3569f0c0 Mon Sep 17 00:00:00 2001 From: David Han <76010854+david-msft@users.noreply.github.com> Date: Thu, 4 Feb 2021 18:21:21 -0800 Subject: [PATCH 09/10] Update powerbidedicated.json Add Mode property --- .../stable/2021-01-01/powerbidedicated.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json index 8c747fbbeb55..1abaa26f7fe8 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json @@ -855,6 +855,18 @@ "administration": { "$ref": "#/definitions/DedicatedCapacityAdministrators", "description": "A collection of Dedicated capacity administrators" + }, + "mode": { + "description": "An array of administrator user identities", + "type": "string", + "enum": [ + "Gen1", + "Gen2" + ], + "x-ms-enum": { + "name": "State", + "modelAsString": true + } } } }, From 8667c4fc36017e4ccbdf30e8b54cfac2c0490e0e Mon Sep 17 00:00:00 2001 From: David Han <76010854+david-msft@users.noreply.github.com> Date: Thu, 4 Feb 2021 18:23:45 -0800 Subject: [PATCH 10/10] Update powerbidedicated.json Fix words --- .../stable/2021-01-01/powerbidedicated.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json index 1abaa26f7fe8..e646c27aec9c 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json @@ -857,14 +857,14 @@ "description": "A collection of Dedicated capacity administrators" }, "mode": { - "description": "An array of administrator user identities", + "description": "The capacity mode.", "type": "string", "enum": [ "Gen1", "Gen2" ], "x-ms-enum": { - "name": "State", + "name": "Mode", "modelAsString": true } }