Skip to content

DataLakeAnalytics(Resource Manager) - Adding 'mixedTokensMode' property and 'transferAnalyticsUnits', 'transferEcoAnalyticsUnits' APIs spec #32712

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{

Check failure on line 1 in specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/account.json

View check run for this annotation

Azure Pipelines / Swagger PrettierCheck

specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/account.json#L1

specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/account.json(1,1): error : Code style issues found, please run prettier. > npm install > npx prettier --write specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/account.json
"swagger": "2.0",
"info": {
"title": "DataLakeAnalyticsAccountManagementClient",
Expand Down Expand Up @@ -1747,6 +1747,112 @@
}
}
}
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{resourceName}/transferAnalyticsUnits":{
"post": {
"tags": [
"Accounts_TransferAnalyticsUnits"
],
"operationId": "Accounts_TransferAnalyticsUnits",
"description": "Transfer Guarantee Analytics Units between allowed Data Lake Analytics accounts.",
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/AccountNameParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/TransferAnalyticsUnitsParameters"
},
"description": "Parameters supplied to transfer Guarantee Analytics Units between allowed accounts."
}
],
"responses": {
"200": {
"description": "Successfully transferred guarantee analytics units between accounts."
},
"409": {
"description": "Conflict. The operation is not allowed.",
"x-ms-error-response": true
},
"default": {
"schema": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
},
"description": ""
}
},
"x-ms-examples": {
"Transfer Guarantee Analytics Units between allowed Data Lake Analytics accounts. This supplies the user with computation services for Data Lake Analytics workloads.": {
"$ref": "./examples/Accounts_TransferAnalyticsUnits.json"
}
},
"x-ms-long-running-operation": true
}
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{resourceName}/transferEcoAnalyticsUnits":{
"post": {
"tags": [
"Accounts_TransferEcoAnalyticsUnits"
],
"operationId": "Accounts_TransferEcoAnalyticsUnits",
"description": "Transfer Eco-Analytics Units between allowed Data Lake Analytics accounts.",
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/AccountNameParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/TransferAnalyticsUnitsParameters"
},
"description": "Parameters supplied to transfer Eco-Analytics Units between allowed accounts."
}
],
"responses": {
"200": {
"description": "Successfully transferred Eco-Analytics units between accounts."
},
"409": {
"description": "Conflict. The operation is not allowed.",
"x-ms-error-response": true
},
"default": {
"schema": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
},
"description": ""
}
},
"x-ms-examples": {
"Transfer Eco-Analytics Units between allowed Data Lake Analytics accounts. This supplies the user with computation services for Data Lake Analytics workloads.": {
"$ref": "./examples/Accounts_TransferEcoAnalyticsUnits.json"
}
},
"x-ms-long-running-operation": true
}
}
},
"definitions": {
Expand Down Expand Up @@ -1933,6 +2039,18 @@
},
"description": "The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced."
},
"mixedTokensMode": {
"type": "string",
"enum": [
"Enabled",
"Disabled"
],
"x-ms-enum": {
"name": "MixedTokensMode",
"modelAsString": false
},
"description": "The current state of allowing or disallowing to use both guarantee Analytics Unit and Eco Analytics Unit together during Job execution."
},
"newTier": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -2908,6 +3026,18 @@
},
"description": "The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced."
},
"mixedTokensMode": {
"type": "string",
"enum": [
"Enabled",
"Disabled"
],
"x-ms-enum": {
"name": "MixedTokensMode",
"modelAsString": false
},
"description": "The current state of allowing or disallowing to use both guarantee Analytics Unit and Eco Analytics Unit together during Job execution."
},
"newTier": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -3048,6 +3178,18 @@
},
"description": "The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced."
},
"mixedTokensMode": {
"type": "string",
"enum": [
"Enabled",
"Disabled"
],
"x-ms-enum": {
"name": "MixedTokensMode",
"modelAsString": false
},
"description": "The current state of allowing or disallowing to use both guarantee Analytics Unit and Eco Analytics Unit together during Job execution."
},
"newTier": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -3490,6 +3632,47 @@
}
},
"description": "Data Lake Analytics account name availability check parameters."
},
"TransferAnalyticsUnitsParameters":{
"properties":{
"type": "object",
"properties": {
"newSystemMax": {
"type": "integer",
"description": "Current Account's updated Analytics Units"
},
"participants": {
"type": "array",
"description": "The list of Accounts provides its Analytics Units except the current Account",
"items": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/AnalyticsUnitsParameters"
}
},
"recipients": {
"type": "array",
"description": "The list of Accounts to receive the Analytics Units except the current Account",
"items": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/AnalyticsUnitsParameters"
}
}
}
}
},
"AnalyticsUnitsParameters": {
"type": "object",
"description": "The Analytics Units",
"properties": {
"id": {
"type": "string",
"description": "The Account Id - Format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}"
},
"newSystemMax": {
"type": "integer",
"description": "The updated Analytics Units"
}
}
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
],
"firewallState": "Enabled",
"firewallAllowAzureIps": "Enabled",
"mixedTokensMode": "Enabled",
"newTier": "Consumption",
"maxJobCount": 3,
"maxDegreeOfParallelism": 30,
Expand Down Expand Up @@ -119,6 +120,7 @@
],
"firewallState": "Enabled",
"firewallAllowAzureIps": "Enabled",
"mixedTokensMode": "Enabled",
"newTier": "Consumption",
"currentTier": "Consumption",
"maxJobCount": 3,
Expand Down Expand Up @@ -190,6 +192,7 @@
],
"firewallState": "Enabled",
"firewallAllowAzureIps": "Enabled",
"mixedTokensMode": "Enabled",
"newTier": "Consumption",
"currentTier": "Consumption",
"maxJobCount": 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
],
"firewallState": "Enabled",
"firewallAllowAzureIps": "Enabled",
"mixedTokensMode": "Enabled",
"newTier": "Consumption",
"currentTier": "Consumption",
"maxJobCount": 3,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{

Check failure on line 1 in specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_TransferAnalyticsUnits.json

View check run for this annotation

Azure Pipelines / Swagger PrettierCheck

specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_TransferAnalyticsUnits.json#L1

specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_TransferAnalyticsUnits.json(1,1): error : Code style issues found, please run prettier. > npm install > npx prettier --write specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_TransferAnalyticsUnits.json
"parameters": {
"api-version": "2019-11-01-preview",
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "contosorg",
"accountName": "contosoadla",
"parameters": {
"newSystemMax": 17,
"participants": [
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla_1",
"newSystemMax": 26
},
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla_3",
"newSystemMax": 12
}
],
"recipients": [
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla_2",
"newSystemMax": 18
}
]
}
},
"responses": {
"200": {},
"409": {
"body": {
"error": {
"code": "SettingUnbalanced",
"message": "The total System Max AnalyticsUnits is unbalanced."
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{

Check failure on line 1 in specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_TransferEcoAnalyticsUnits.json

View check run for this annotation

Azure Pipelines / Swagger PrettierCheck

specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_TransferEcoAnalyticsUnits.json#L1

specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_TransferEcoAnalyticsUnits.json(1,1): error : Code style issues found, please run prettier. > npm install > npx prettier --write specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_TransferEcoAnalyticsUnits.json
"parameters": {
"api-version": "2019-11-01-preview",
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "contosorg",
"accountName": "contosoadla",
"parameters": {
"newSystemMax": 17,
"participants": [
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla_1",
"newSystemMax": 26
},
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla_3",
"newSystemMax": 12
}
],
"recipients": [
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla_2",
"newSystemMax": 18
}
]
}
},
"responses": {
"200": {},
"409": {
"body": {
"error": {
"code": "SettingUnbalanced",
"message": "The total System Max Eco-AnalyticsUnits is unbalanced."
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
],
"firewallState": "Enabled",
"firewallAllowAzureIps": "Enabled",
"mixedTokensMode": "Enabled",
"newTier": "Consumption",
"maxJobCount": 1,
"maxDegreeOfParallelism": 1,
Expand Down Expand Up @@ -100,6 +101,7 @@
],
"firewallState": "Enabled",
"firewallAllowAzureIps": "Enabled",
"mixedTokensMode": "Enabled",
"newTier": "Consumption",
"currentTier": "Consumption",
"maxJobCount": 3,
Expand Down Expand Up @@ -171,6 +173,7 @@
],
"firewallState": "Enabled",
"firewallAllowAzureIps": "Enabled",
"mixedTokensMode": "Enabled",
"newTier": "Consumption",
"currentTier": "Consumption",
"maxJobCount": 3,
Expand Down Expand Up @@ -242,6 +245,7 @@
],
"firewallState": "Enabled",
"firewallAllowAzureIps": "Enabled",
"mixedTokensMode": "Enabled",
"newTier": "Consumption",
"currentTier": "Consumption",
"maxJobCount": 3,
Expand Down
Loading