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/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/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/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/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/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/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/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/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/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/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/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..e646c27aec9c --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json @@ -0,0 +1,1052 @@ +{ + "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.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "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" + ], + "x-ms-azure-resource": true + }, + "DedicatedCapacity": { + "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", + "description": "Properties of the provision operation request." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "required": [ + "sku" + ] + }, + "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/CapacitySku", + "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": "CapacityProvisioningState", + "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" + } + ] + }, + "CapacitySku": { + "description": "Represents the SKU name and Azure pricing tier for PowerBI Dedicated capacity 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": "CapacitySkuTier", + "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" + }, + "mode": { + "description": "The capacity mode.", + "type": "string", + "enum": [ + "Gen1", + "Gen2" + ], + "x-ms-enum": { + "name": "Mode", + "modelAsString": true + } + } + } + }, + "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/CapacitySku" + }, + "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/CapacitySku", + "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 0a9fe7a5e2bf..39e0571286df 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-2021-01-01 ``` Please also specify `--azureresourceschema-folder=`. @@ -22,3 +22,15 @@ input-file: - Microsoft.PowerBIdedicated/stable/2017-10-01/powerbidedicated.json ``` + +### Tag: schema-powerbidedicated-2021-01-01 and 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/2021-01-01/powerbidedicated.json + - Microsoft.PowerBIdedicated/stable/2021-01-01/autoScaleVCores.json + +``` diff --git a/specification/powerbidedicated/resource-manager/readme.go.md b/specification/powerbidedicated/resource-manager/readme.go.md index 84b614cf8a5d..d4c5dc4a848d 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-2021-01-01 ``` ### Tag: package-2017-10-01 and go @@ -23,4 +24,13 @@ Please also specify `--go-sdk-folder=`. + +``` 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 84b2d74562ab..7574c9b1d23e 100644 --- a/specification/powerbidedicated/resource-manager/readme.md +++ b/specification/powerbidedicated/resource-manager/readme.md @@ -26,10 +26,20 @@ These are the global settings for the PowerBIDedicated API. ``` yaml openapi-type: arm -tag: package-2017-10-01 +tag: package-2021-01-01 ``` +### Tag: package-2021-01-01 + +These settings apply only when `--tag=package-2021-01-01` is specified on the command line. + +``` 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 These settings apply only when `--tag=package-2017-10-01` is specified on the command line. @@ -97,6 +107,7 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-powerbidedicated ``` yaml $(java) && $(multiapi) batch: - tag: package-2017-10-01 + - tag: package-2021-01-01 ``` ### Tag: package-2017-10-01 and java @@ -112,6 +123,19 @@ regenerate-manager: true generate-interface: true ``` +### Tag: package-2021-01-01 and java + +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-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 +regenerate-manager: true +generate-interface: true +``` + ## Python See configuration in [readme.python.md](./readme.python.md)