Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1598,6 +1598,113 @@
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/locations/{location}/checkNameAvailability": {
"post": {
"tags": [
"Account"
],
"operationId": "Account_CheckNameAvailability",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order to be consistent with tag, operationId naming convention, use tag as Accounts and operationId as Accounts_CheckNameAvailability.

Copy link
Copy Markdown
Contributor Author

@ro-joowan ro-joowan Oct 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this one I would like to leave as is for this PR because we currently have existing APIs for "Account_Get", "Account_Create", etc. We will make the fix to "Accounts" in an upcoming API version, 2017-10-01, which has other breaking changes -- as we would like to bundle the breaking changes together.

"description": "Checks whether the specified account name is available or taken.",
"x-ms-examples": {
"Checks whether the specified account name is available or taken": { "$ref": "./examples/Adla_Account_CheckNameAvailability.json" }
},
"parameters": [
{
"name": "location",
"in": "path",
"required": true,
"type": "string",
"description": "The Resource location without whitespace."
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/CheckNameAvailabilityParameters"
},
"description": "Parameters supplied to check the Data Lake Analytics account name availability."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Successfully retrieved the Data Lake Analytics account name availability information.",
"schema": {
"$ref": "#/definitions/NameAvailabilityInformation"
}
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/locations/{location}/capability": {
"get": {
"tags": [
"Locations"
],
"operationId": "Locations_GetCapability",
"description": "Gets subscription-level properties and limits for Data Lake Analytics specified by Resource location.",
"x-ms-examples": {
"Gets subscription-level properties and limits for Data Lake Analytics specified by Resource location": { "$ref": "./examples/Adla_Locations_GetCapability.json" }
},
"parameters": [
{
"name": "location",
"in": "path",
"required": true,
"type": "string",
"description": "The Resource location without whitespace."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Successfully retrieved the subscription-level properties and limits for Data Lake Analytics specified by Resource location.",
"schema": {
"$ref": "#/definitions/CapabilityInformation"
}
},
"404": {
"description": "Subscription not found."
}
}
}
},
"/providers/Microsoft.DataLakeAnalytics/operations": {
"get": {
"tags": [
"Operations"
],
"operationId": "Operations_List",
"description": "Lists all of the available Data Lake Analytics REST API operations.",
"x-ms-examples": {
"Lists all of the available Data Lake Analytics REST API operations": { "$ref": "./examples/Adla_Operations_List.json" }
},
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Successfully listed the available operations for Data Lake Analytics.",
"schema": {
"$ref": "#/definitions/OperationListResult"
}
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -1831,7 +1938,7 @@
"type": "integer",
"format": "int32",
"readOnly": true,
"description": "the system defined maximum supported degree of parallelism for this account, which restricts the maximum value of parallelism the user can set for the account.."
"description": "the system defined maximum supported degree of parallelism for this account, which restricts the maximum value of parallelism the user can set for the account."
},
"systemMaxJobCount": {
"type": "integer",
Expand Down Expand Up @@ -2421,6 +2528,161 @@
},
"description": "Data Lake Analytics firewall rule update parameters"
},
"NameAvailabilityInformation": {
"properties": {
"nameAvailable": {
"type": "boolean",
"readOnly": true,
"description": "the Boolean value of true or false to indicate whether the Data Lake Analytics account name is available or not."
},
"reason": {
"type": "string",
"readOnly": true,
"description": "the reason why the Data Lake Analytics account name is not available, if nameAvailable is false."
},
"message": {
"type": "string",
"readOnly": true,
"description": "the message describing why the Data Lake Analytics account name is not available, if nameAvailable is false."
}
},
"description": "Data Lake Analytics account name availability result information"
},
"CheckNameAvailabilityParameters": {
"properties": {
"name": {
"type": "string",
"description": "the Data Lake Analytics name to check availability for."
},
"type": {
"type": "string",
"enum": [
"Microsoft.DataLakeAnalytics/accounts"
],
"description": "the Resource type. Note: This should not be set by the user, as the constant value is Microsoft.DataLakeAnalytics/accounts"
}
},
"required": [
"name",
"type"
],
"description": "Data Lake Analytics account name availability check parameters"
},
"CapabilityInformation": {
"properties": {
"subscriptionId": {
"type": "string",
"format": "uuid",
"readOnly": true,
"description": "the subscription credentials that uniquely identifies the subscription."
},
"state": {
"type": "string",
"enum": [
"Registered",
"Suspended",
"Deleted",
"Unregistered",
"Warned"
],
"x-ms-enum": {
"name": "SubscriptionState",
"modelAsString": true
},
"readOnly": true,
"description": "the subscription state."
},
"maxAccountCount": {
"type": "integer",
"format": "int32",
"readOnly": true,
"description": "the maximum supported number of accounts under this subscription."
},
"accountCount": {
"type": "integer",
"format": "int32",
"readOnly": true,
"description": "the current number of accounts under this subscription."
},
"migrationState": {
"type": "boolean",
"readOnly": true,
"description": "the Boolean value of true or false to indicate the maintenance state."
}
},
"description": "Subscription-level properties and limits for Data Lake Analytics"
},
"OperationDisplay": {
"properties": {
"provider": {
"type": "string",
"readOnly": true,
"description": "the Resource provider of the operation."
},
"resource": {
"type": "string",
"readOnly": true,
"description": "the Resource type of the operation."
},
"operation": {
"type": "string",
"readOnly": true,
"description": "a friendly name of the operation."
},
"description": {
"type": "string",
"readOnly": true,
"description": "a friendly description of the operation."
}
},
"description": "The display information for a particular operation"
},
"Operation": {
"properties": {
"name": {
"type": "string",
"readOnly": true,
"description": "the name of the operation."
},
"display": {
"$ref": "#/definitions/OperationDisplay",
"description": "the display information for the operation."
},
"origin": {
"type": "string",
"enum": [
"user",
"system",
"user,system"
],
"x-ms-enum": {
"name": "OperationOrigin",
"modelAsString": true
},
"readOnly": true,
"description": "the intended executor of the operation."
}
},
"description": "An available operation for Data Lake Analytics"
},
"OperationListResult": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Operation"
},
"readOnly": true,
"description": "the results of the list operation."
},
"nextLink": {
"type": "string",
"readOnly": true,
"description": "the link (url) to the next page of results."
}
},
"description": "The list of available operations for Data Lake Analytics"
},
"Resource": {
"description": "The Resource model definition.",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"api-version": "2016-11-01",
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"location": "EastUS2",
"parameters": {
"name": "contosoadla",
"type": "Microsoft.DataLakeAnalytics/accounts"
}
},
"responses": {
"200": {
"body": {
"nameAvailable": false,
"reason": "AlreadyExists",
"message": "An account named 'abc' already exists."
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"api-version": "2016-11-01",
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"location": "EastUS2"
},
"responses": {
"200": {
"body": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"state": "Registered",
"maxAccountCount": 150,
"accountCount": 100,
"migrationState": false
}
},
"404": {
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"api-version": "2016-11-01"
},
"responses": {
"200": {
"body": {
"value": [{
"name": "Microsoft.DataLakeAnalytics/operations/read",
"display": {
"provider": "Microsoft DataLakeAnalytics",
"resource": "Available Operations",
"operation": "Get Available Operations",
"description": "Get available operations of DataLakeAnalytics."
}
}],
"nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=<token>"
}
}
}
}
Loading