diff --git a/sdk/datalake-analytics/arm-datalake-analytics/LICENSE.txt b/sdk/datalake-analytics/arm-datalake-analytics/LICENSE.txt new file mode 100644 index 000000000000..2d3163745319 --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2021 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/sdk/datalake-analytics/arm-datalake-analytics/README.md b/sdk/datalake-analytics/arm-datalake-analytics/README.md new file mode 100644 index 000000000000..79c4361896d1 --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/README.md @@ -0,0 +1,110 @@ +## Azure DataLakeAnalyticsAccountManagementClient SDK for JavaScript + +This package contains an isomorphic SDK for DataLakeAnalyticsAccountManagementClient. + +### Currently supported environments + +- Node.js version 6.x.x or higher +- Browser JavaScript + +### How to Install + +```bash +npm install @azure/arm-datalake-analytics +``` + +### How to use + +#### nodejs - client creation and list accounts as an example written in TypeScript. + +##### Install @azure/ms-rest-nodeauth + +- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. +```bash +npm install @azure/ms-rest-nodeauth@"^3.0.0" +``` + +##### Sample code + +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package +```typescript +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { DataLakeAnalyticsAccountManagementClient } = require("@azure/arm-datalake-analytics"); +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new DataLakeAnalyticsAccountManagementClient(creds, subscriptionId); + const filter = "testfilter"; + const top = 1; + const skip = 1; + const select = "testselect"; + const orderby = "testorderby"; + const count = true; + client.accounts.list(filter, top, skip, select, orderby, count).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +#### browser - Authentication, client creation and list accounts as an example written in JavaScript. + +##### Install @azure/ms-rest-browserauth + +```bash +npm install @azure/ms-rest-browserauth +``` + +##### Sample code + +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-datalake-analytics sample + + + + + + + + +``` + +## Related projects + +- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/datalake-analytics/arm-datalake-analytics/README.png) diff --git a/sdk/datalake-analytics/arm-datalake-analytics/package.json b/sdk/datalake-analytics/arm-datalake-analytics/package.json new file mode 100644 index 000000000000..bc834bc3ef9e --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/package.json @@ -0,0 +1,58 @@ +{ + "name": "@azure/arm-datalake-analytics", + "author": "Microsoft Corporation", + "description": "DataLakeAnalyticsAccountManagementClient Library with typescript type definitions for node.js and browser.", + "version": "1.0.0", + "dependencies": { + "@azure/ms-rest-azure-js": "^2.0.1", + "@azure/ms-rest-js": "^2.0.4", + "tslib": "^1.10.0" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "license": "MIT", + "main": "./dist/arm-datalake-analytics.js", + "module": "./esm/dataLakeAnalyticsAccountManagementClient.js", + "types": "./esm/dataLakeAnalyticsAccountManagementClient.d.ts", + "devDependencies": { + "typescript": "^3.5.3", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", + "rollup-plugin-sourcemaps": "^0.4.2", + "uglify-js": "^3.6.0" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/datalake-analytics/arm-datalake-analytics", + "repository": { + "type": "git", + "url": "https://github.com/Azure/azure-sdk-for-js.git" + }, + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "files": [ + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "esm/**/*.js", + "esm/**/*.js.map", + "esm/**/*.d.ts", + "esm/**/*.d.ts.map", + "src/**/*.ts", + "README.md", + "rollup.config.js", + "tsconfig.json" + ], + "scripts": { + "build": "tsc && rollup -c rollup.config.js && npm run minify", + "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-datalake-analytics.js.map'\" -o ./dist/arm-datalake-analytics.min.js ./dist/arm-datalake-analytics.js", + "prepack": "npm install && npm run build" + }, + "sideEffects": false, + "autoPublish": true +} diff --git a/sdk/datalake-analytics/arm-datalake-analytics/rollup.config.js b/sdk/datalake-analytics/arm-datalake-analytics/rollup.config.js new file mode 100644 index 000000000000..3c922c541319 --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/rollup.config.js @@ -0,0 +1,37 @@ +import rollup from "rollup"; +import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + +/** + * @type {rollup.RollupFileOptions} + */ +const config = { + input: "./esm/dataLakeAnalyticsAccountManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], + output: { + file: "./dist/arm-datalake-analytics.js", + format: "umd", + name: "Azure.ArmDatalakeAnalytics", + sourcemap: true, + globals: { + "@azure/ms-rest-js": "msRest", + "@azure/ms-rest-azure-js": "msRestAzure" + }, + banner: `/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */` + }, + plugins: [ + nodeResolve({ mainFields: ['module', 'main'] }), + sourcemaps() + ] +}; + +export default config; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/dataLakeAnalyticsAccountManagementClient.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/dataLakeAnalyticsAccountManagementClient.ts new file mode 100644 index 000000000000..a91597e62ced --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/dataLakeAnalyticsAccountManagementClient.ts @@ -0,0 +1,54 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "./models"; +import * as Mappers from "./models/mappers"; +import * as operations from "./operations"; +import { DataLakeAnalyticsAccountManagementClientContext } from "./dataLakeAnalyticsAccountManagementClientContext"; + + +class DataLakeAnalyticsAccountManagementClient extends DataLakeAnalyticsAccountManagementClientContext { + // Operation groups + accounts: operations.Accounts; + dataLakeStoreAccounts: operations.DataLakeStoreAccounts; + storageAccounts: operations.StorageAccounts; + computePolicies: operations.ComputePolicies; + firewallRules: operations.FirewallRules; + operations: operations.Operations; + locations: operations.Locations; + + /** + * Initializes a new instance of the DataLakeAnalyticsAccountManagementClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId Get subscription credentials which uniquely identify Microsoft Azure + * subscription. The subscription ID forms part of the URI for every service call. + * @param [options] The parameter options + */ + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.DataLakeAnalyticsAccountManagementClientOptions) { + super(credentials, subscriptionId, options); + this.accounts = new operations.Accounts(this); + this.dataLakeStoreAccounts = new operations.DataLakeStoreAccounts(this); + this.storageAccounts = new operations.StorageAccounts(this); + this.computePolicies = new operations.ComputePolicies(this); + this.firewallRules = new operations.FirewallRules(this); + this.operations = new operations.Operations(this); + this.locations = new operations.Locations(this); + } +} + +// Operation Specifications + +export { + DataLakeAnalyticsAccountManagementClient, + DataLakeAnalyticsAccountManagementClientContext, + Models as DataLakeAnalyticsAccountManagementModels, + Mappers as DataLakeAnalyticsAccountManagementMappers +}; +export * from "./operations"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/dataLakeAnalyticsAccountManagementClientContext.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/dataLakeAnalyticsAccountManagementClientContext.ts new file mode 100644 index 000000000000..4e527da3fa69 --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/dataLakeAnalyticsAccountManagementClientContext.ts @@ -0,0 +1,62 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as Models from "./models"; +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; + +const packageName = "@azure/arm-datalake-analytics"; +const packageVersion = "1.0.0"; + +export class DataLakeAnalyticsAccountManagementClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; + subscriptionId: string; + apiVersion?: string; + + /** + * Initializes a new instance of the DataLakeAnalyticsAccountManagementClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId Get subscription credentials which uniquely identify Microsoft Azure + * subscription. The subscription ID forms part of the URI for every service call. + * @param [options] The parameter options + */ + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.DataLakeAnalyticsAccountManagementClientOptions) { + if (credentials == undefined) { + throw new Error('\'credentials\' cannot be null.'); + } + if (subscriptionId == undefined) { + throw new Error('\'subscriptionId\' cannot be null.'); + } + + if (!options) { + options = {}; + } + if(!options.userAgent) { + const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); + options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; + } + + super(credentials, options); + + this.apiVersion = '2016-11-01'; + this.acceptLanguage = 'en-US'; + this.longRunningOperationRetryTimeout = 30; + this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; + this.requestContentType = "application/json; charset=utf-8"; + this.credentials = credentials; + this.subscriptionId = subscriptionId; + + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + this.acceptLanguage = options.acceptLanguage; + } + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; + } + } +} diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/models/accountsMappers.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/models/accountsMappers.ts new file mode 100644 index 000000000000..214a9a4e9d5a --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/models/accountsMappers.ts @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AddDataLakeStoreWithAccountParameters, + AddStorageAccountWithAccountParameters, + BaseResource, + CheckNameAvailabilityParameters, + ComputePolicy, + CreateComputePolicyWithAccountParameters, + CreateDataLakeAnalyticsAccountParameters, + CreateFirewallRuleWithAccountParameters, + DataLakeAnalyticsAccount, + DataLakeAnalyticsAccountBasic, + DataLakeAnalyticsAccountListResult, + DataLakeStoreAccountInformation, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + FirewallRule, + HiveMetastore, + NameAvailabilityInformation, + Resource, + StorageAccountInformation, + StorageContainer, + SubResource, + UpdateComputePolicyWithAccountParameters, + UpdateDataLakeAnalyticsAccountParameters, + UpdateDataLakeStoreWithAccountParameters, + UpdateFirewallRuleWithAccountParameters, + UpdateStorageAccountWithAccountParameters, + VirtualNetworkRule +} from "../models/mappers"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/models/computePoliciesMappers.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/models/computePoliciesMappers.ts new file mode 100644 index 000000000000..20e04096f924 --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/models/computePoliciesMappers.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + BaseResource, + ComputePolicy, + ComputePolicyListResult, + CreateOrUpdateComputePolicyParameters, + DataLakeAnalyticsAccount, + DataLakeAnalyticsAccountBasic, + DataLakeStoreAccountInformation, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + FirewallRule, + HiveMetastore, + Resource, + StorageAccountInformation, + StorageContainer, + SubResource, + UpdateComputePolicyParameters, + VirtualNetworkRule +} from "../models/mappers"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/models/dataLakeStoreAccountsMappers.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/models/dataLakeStoreAccountsMappers.ts new file mode 100644 index 000000000000..dbfb1a6b14ee --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/models/dataLakeStoreAccountsMappers.ts @@ -0,0 +1,27 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AddDataLakeStoreParameters, + BaseResource, + ComputePolicy, + DataLakeAnalyticsAccount, + DataLakeAnalyticsAccountBasic, + DataLakeStoreAccountInformation, + DataLakeStoreAccountInformationListResult, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + FirewallRule, + HiveMetastore, + Resource, + StorageAccountInformation, + StorageContainer, + SubResource, + VirtualNetworkRule +} from "../models/mappers"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/models/firewallRulesMappers.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/models/firewallRulesMappers.ts new file mode 100644 index 000000000000..7ade62ab51ba --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/models/firewallRulesMappers.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + BaseResource, + ComputePolicy, + CreateOrUpdateFirewallRuleParameters, + DataLakeAnalyticsAccount, + DataLakeAnalyticsAccountBasic, + DataLakeStoreAccountInformation, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + FirewallRule, + FirewallRuleListResult, + HiveMetastore, + Resource, + StorageAccountInformation, + StorageContainer, + SubResource, + UpdateFirewallRuleParameters, + VirtualNetworkRule +} from "../models/mappers"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/models/index.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/models/index.ts new file mode 100644 index 000000000000..75bb051e7a82 --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/models/index.ts @@ -0,0 +1,2308 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; +import * as msRest from "@azure/ms-rest-js"; + +export { BaseResource, CloudError }; + +/** + * The resource model definition. + */ +export interface Resource extends BaseResource { + /** + * The resource identifer. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The resource name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The resource type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The resource location. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * The resource tags. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tags?: { [propertyName: string]: string }; +} + +/** + * The resource model definition for a nested resource. + */ +export interface SubResource extends BaseResource { + /** + * The resource identifier. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The resource name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The resource type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; +} + +/** + * Data Lake Store account information. + */ +export interface DataLakeStoreAccountInformation extends SubResource { + /** + * The optional suffix for the Data Lake Store account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly suffix?: string; +} + +/** + * Azure Storage account information. + */ +export interface StorageAccountInformation extends SubResource { + /** + * The optional suffix for the storage account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly suffix?: string; +} + +/** + * Data Lake Analytics compute policy information. + */ +export interface ComputePolicy extends SubResource { + /** + * The AAD object identifier for the entity to create a policy for. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly objectId?: string; + /** + * The type of AAD object the object identifier refers to. Possible values include: 'User', + * 'Group', 'ServicePrincipal' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly objectType?: AADObjectType; + /** + * The maximum degree of parallelism per job this user can use to submit jobs. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly maxDegreeOfParallelismPerJob?: number; + /** + * The minimum priority per job this user can use to submit jobs. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly minPriorityPerJob?: number; +} + +/** + * An interface representing HiveMetastore. + */ +export interface HiveMetastore extends SubResource { + /** + * The serverUri for the Hive MetaStore + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly serverUri?: string; + /** + * The databaseName for the Hive MetaStore + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly databaseName?: string; + /** + * The runtimeVersion for the Hive MetaStore + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly runtimeVersion?: string; + /** + * The userName for the Hive MetaStore + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly userName?: string; + /** + * The password for the Hive MetaStore + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly password?: string; + /** + * The current state of the NestedResource. Possible values include: 'Succeeded', 'Canceled', + * 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nestedResourceProvisioningState?: NestedResourceProvisioningState; +} + +/** + * Data Lake Analytics VirtualNetwork Rule information. + */ +export interface VirtualNetworkRule extends SubResource { + /** + * The resource identifier for the subnet + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly subnetId?: string; + /** + * The current state of the VirtualNetwork Rule. Possible values include: 'Active', + * 'NetworkSourceDeleted', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly virtualNetworkRuleState?: VirtualNetworkRuleState; +} + +/** + * Data Lake Analytics firewall rule information. + */ +export interface FirewallRule extends SubResource { + /** + * The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End + * should be in the same protocol. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startIpAddress?: string; + /** + * The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End + * should be in the same protocol. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endIpAddress?: string; +} + +/** + * A Data Lake Analytics account object, containing all information associated with the named Data + * Lake Analytics account. + */ +export interface DataLakeAnalyticsAccount extends Resource { + /** + * The unique identifier associated with this Data Lake Analytics account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly accountId?: string; + /** + * The provisioning status of the Data Lake Analytics account. Possible values include: 'Failed', + * 'Creating', 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', + * 'Deleted', 'Undeleting', 'Canceled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: DataLakeAnalyticsAccountStatus; + /** + * The state of the Data Lake Analytics account. Possible values include: 'Active', 'Suspended' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly state?: DataLakeAnalyticsAccountState; + /** + * The account creation time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly creationTime?: Date; + /** + * The account last modified time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastModifiedTime?: Date; + /** + * The full CName endpoint for this account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endpoint?: string; + /** + * The default Data Lake Store account associated with this account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly defaultDataLakeStoreAccount?: string; + /** + * The list of Data Lake Store accounts associated with this account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataLakeStoreAccounts?: DataLakeStoreAccountInformation[]; + /** + * The list of Azure Blob Storage accounts associated with this account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly storageAccounts?: StorageAccountInformation[]; + /** + * The list of compute policies associated with this account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly computePolicies?: ComputePolicy[]; + /** + * The list of hiveMetastores associated with this account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly hiveMetastores?: HiveMetastore[]; + /** + * The list of virtualNetwork rules associated with this account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly virtualNetworkRules?: VirtualNetworkRule[]; + /** + * The list of firewall rules associated with this account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly firewallRules?: FirewallRule[]; + /** + * The current state of the IP address firewall for this account. Possible values include: + * 'Enabled', 'Disabled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly firewallState?: FirewallState; + /** + * The current state of allowing or disallowing IPs originating within Azure through the + * firewall. If the firewall is disabled, this is not enforced. Possible values include: + * 'Enabled', 'Disabled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly firewallAllowAzureIps?: FirewallAllowAzureIpsState; + /** + * The commitment tier for the next month. Possible values include: 'Consumption', + * 'Commitment_100AUHours', 'Commitment_500AUHours', 'Commitment_1000AUHours', + * 'Commitment_5000AUHours', 'Commitment_10000AUHours', 'Commitment_50000AUHours', + * 'Commitment_100000AUHours', 'Commitment_500000AUHours' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly newTier?: TierType; + /** + * The commitment tier in use for the current month. Possible values include: 'Consumption', + * 'Commitment_100AUHours', 'Commitment_500AUHours', 'Commitment_1000AUHours', + * 'Commitment_5000AUHours', 'Commitment_10000AUHours', 'Commitment_50000AUHours', + * 'Commitment_100000AUHours', 'Commitment_500000AUHours' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly currentTier?: TierType; + /** + * The maximum supported jobs running under the account at the same time. Default value: 3. + */ + maxJobCount?: number; + /** + * The system defined maximum supported jobs running under the account at the same time, which + * restricts the maximum number of running jobs the user can set for the account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemMaxJobCount?: number; + /** + * The maximum supported degree of parallelism for this account. Default value: 30. + */ + maxDegreeOfParallelism?: number; + /** + * 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. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemMaxDegreeOfParallelism?: number; + /** + * The maximum supported degree of parallelism per job for this account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly maxDegreeOfParallelismPerJob?: number; + /** + * The minimum supported priority per job for this account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly minPriorityPerJob?: number; + /** + * The number of days that job metadata is retained. Default value: 30. + */ + queryStoreRetention?: number; + /** + * The current state of the DebugDataAccessLevel for this account. Possible values include: + * 'All', 'Customer', 'None' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly debugDataAccessLevel?: DebugDataAccessLevel; +} + +/** + * A Data Lake Analytics account object, containing all information associated with the named Data + * Lake Analytics account. + */ +export interface DataLakeAnalyticsAccountBasic extends Resource { + /** + * The unique identifier associated with this Data Lake Analytics account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly accountId?: string; + /** + * The provisioning status of the Data Lake Analytics account. Possible values include: 'Failed', + * 'Creating', 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', + * 'Deleted', 'Undeleting', 'Canceled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: DataLakeAnalyticsAccountStatus; + /** + * The state of the Data Lake Analytics account. Possible values include: 'Active', 'Suspended' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly state?: DataLakeAnalyticsAccountState; + /** + * The account creation time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly creationTime?: Date; + /** + * The account last modified time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastModifiedTime?: Date; + /** + * The full CName endpoint for this account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endpoint?: string; +} + +/** + * Azure Storage blob container information. + */ +export interface StorageContainer extends SubResource { + /** + * The last modified time of the blob container. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastModifiedTime?: Date; +} + +/** + * SAS token information. + */ +export interface SasTokenInformation { + /** + * The access token for the associated Azure Storage Container. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly accessToken?: string; +} + +/** + * Data Lake Analytics VirtualNetwork rule list information. + */ +export interface VirtualNetworkRuleListResult { + /** + * The results of the list operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly value?: VirtualNetworkRule[]; + /** + * The link (url) to the next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * Data Lake Analytics HiveMetastore list information. + */ +export interface HiveMetastoreListResult { + /** + * The results of the list operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly value?: HiveMetastore[]; + /** + * The link (url) to the next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * The display information for a particular operation. + */ +export interface OperationDisplay { + /** + * The resource provider of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provider?: string; + /** + * The resource type of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resource?: string; + /** + * A friendly name of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly operation?: string; + /** + * A friendly description of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; +} + +/** + * An interface representing OperationMetaMetricAvailabilitiesSpecification. + */ +export interface OperationMetaMetricAvailabilitiesSpecification { + /** + * The timegrain for OperationMetaMetricAvailabilitiesSpecification. + */ + timeGrain?: string; + /** + * The blobDuration for OperationMetaMetricAvailabilitiesSpecification. + */ + blobDuration?: string; +} + +/** + * An interface representing OperationMetaMetricSpecification. + */ +export interface OperationMetaMetricSpecification { + /** + * The name for OperationMetaMetricSpecification. + */ + name?: string; + /** + * The displayName for OperationMetaMetricSpecification. + */ + displayName?: string; + /** + * The unit for OperationMetaMetricSpecification. + */ + unit?: string; + /** + * The aggregationType for OperationMetaMetricSpecification. + */ + aggregationType?: string; + /** + * The availabilities for OperationMetaMetricSpecification. + */ + availabilities?: OperationMetaMetricAvailabilitiesSpecification[]; +} + +/** + * An interface representing OperationMetaLogSpecification. + */ +export interface OperationMetaLogSpecification { + /** + * The name for OperationMetaLogSpecification. + */ + name?: string; + /** + * The displayName for OperationMetaLogSpecification. + */ + displayName?: string; + /** + * The blobDuration for OperationMetaLogSpecification. + */ + blobDuration?: string; +} + +/** + * An interface representing OperationMetaServiceSpecification. + */ +export interface OperationMetaServiceSpecification { + /** + * The metricSpecifications for OperationMetaServiceSpecification. + */ + metricSpecifications?: OperationMetaMetricSpecification[]; + /** + * The logSpecifications for OperationMetaServiceSpecification. + */ + logSpecifications?: OperationMetaLogSpecification[]; +} + +/** + * An interface representing OperationMetaPropertyInfo. + */ +export interface OperationMetaPropertyInfo { + /** + * The operations OperationMetaServiceSpecification. + */ + serviceSpecification?: OperationMetaServiceSpecification; +} + +/** + * An available operation for Data Lake Analytics. + */ +export interface Operation { + /** + * The name of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The display information for the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly display?: OperationDisplay; + /** + * The OperationMetaPropertyInfo for the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly properties?: OperationMetaPropertyInfo; + /** + * The intended executor of the operation. Possible values include: 'user', 'system', + * 'user,system' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly origin?: OperationOrigin; +} + +/** + * The list of available operations for Data Lake Analytics. + */ +export interface OperationListResult { + /** + * The results of the list operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly value?: Operation[]; + /** + * The link (url) to the next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * Subscription-level properties and limits for Data Lake Analytics. + */ +export interface CapabilityInformation { + /** + * The subscription credentials that uniquely identifies the subscription. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly subscriptionId?: string; + /** + * The subscription state. Possible values include: 'Registered', 'Suspended', 'Deleted', + * 'Unregistered', 'Warned' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly state?: SubscriptionState; + /** + * The maximum supported number of accounts under this subscription. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly maxAccountCount?: number; + /** + * The current number of accounts under this subscription. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly accountCount?: number; + /** + * The Boolean value of true or false to indicate the maintenance state. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly migrationState?: boolean; +} + +/** + * Data Lake Analytics account name availability result information. + */ +export interface NameAvailabilityInformation { + /** + * The Boolean value of true or false to indicate whether the Data Lake Analytics account name is + * available or not. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nameAvailable?: boolean; + /** + * The reason why the Data Lake Analytics account name is not available, if nameAvailable is + * false. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly reason?: string; + /** + * The message describing why the Data Lake Analytics account name is not available, if + * nameAvailable is false. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly message?: string; +} + +/** + * The parameters used to add a new Data Lake Store account while creating a new Data Lake + * Analytics account. + */ +export interface AddDataLakeStoreWithAccountParameters { + /** + * The unique name of the Data Lake Store account to add. + */ + name: string; + /** + * The optional suffix for the Data Lake Store account. + */ + suffix?: string; +} + +/** + * The parameters used to add a new Azure Storage account while creating a new Data Lake Analytics + * account. + */ +export interface AddStorageAccountWithAccountParameters { + /** + * The unique name of the Azure Storage account to add. + */ + name: string; + /** + * The access key associated with this Azure Storage account that will be used to connect to it. + */ + accessKey: string; + /** + * The optional suffix for the storage account. + */ + suffix?: string; +} + +/** + * The parameters used to create a new compute policy while creating a new Data Lake Analytics + * account. + */ +export interface CreateComputePolicyWithAccountParameters { + /** + * The unique name of the compute policy to create. + */ + name: string; + /** + * The AAD object identifier for the entity to create a policy for. + */ + objectId: string; + /** + * The type of AAD object the object identifier refers to. Possible values include: 'User', + * 'Group', 'ServicePrincipal' + */ + objectType: AADObjectType; + /** + * The maximum degree of parallelism per job this user can use to submit jobs. This property, the + * min priority per job property, or both must be passed. + */ + maxDegreeOfParallelismPerJob?: number; + /** + * The minimum priority per job this user can use to submit jobs. This property, the max degree + * of parallelism per job property, or both must be passed. + */ + minPriorityPerJob?: number; +} + +/** + * The parameters used to create a new firewall rule while creating a new Data Lake Analytics + * account. + */ +export interface CreateFirewallRuleWithAccountParameters { + /** + * The unique name of the firewall rule to create. + */ + name: string; + /** + * The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End + * should be in the same protocol. + */ + startIpAddress: string; + /** + * The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End + * should be in the same protocol. + */ + endIpAddress: string; +} + +/** + * The parameters to use for creating a Data Lake Analytics account. + */ +export interface CreateDataLakeAnalyticsAccountParameters { + /** + * The resource location. + */ + location: string; + /** + * The resource tags. + */ + tags?: { [propertyName: string]: string }; + /** + * The default Data Lake Store account associated with this account. + */ + defaultDataLakeStoreAccount: string; + /** + * The list of Data Lake Store accounts associated with this account. + */ + dataLakeStoreAccounts: AddDataLakeStoreWithAccountParameters[]; + /** + * The list of Azure Blob Storage accounts associated with this account. + */ + storageAccounts?: AddStorageAccountWithAccountParameters[]; + /** + * The list of compute policies associated with this account. + */ + computePolicies?: CreateComputePolicyWithAccountParameters[]; + /** + * The list of firewall rules associated with this account. + */ + firewallRules?: CreateFirewallRuleWithAccountParameters[]; + /** + * The current state of the IP address firewall for this account. Possible values include: + * 'Enabled', 'Disabled' + */ + firewallState?: FirewallState; + /** + * The current state of allowing or disallowing IPs originating within Azure through the + * firewall. If the firewall is disabled, this is not enforced. Possible values include: + * 'Enabled', 'Disabled' + */ + firewallAllowAzureIps?: FirewallAllowAzureIpsState; + /** + * The commitment tier for the next month. Possible values include: 'Consumption', + * 'Commitment_100AUHours', 'Commitment_500AUHours', 'Commitment_1000AUHours', + * 'Commitment_5000AUHours', 'Commitment_10000AUHours', 'Commitment_50000AUHours', + * 'Commitment_100000AUHours', 'Commitment_500000AUHours' + */ + newTier?: TierType; + /** + * The maximum supported jobs running under the account at the same time. Default value: 3. + */ + maxJobCount?: number; + /** + * The maximum supported degree of parallelism for this account. Default value: 30. + */ + maxDegreeOfParallelism?: number; + /** + * The maximum supported degree of parallelism per job for this account. + */ + maxDegreeOfParallelismPerJob?: number; + /** + * The minimum supported priority per job for this account. + */ + minPriorityPerJob?: number; + /** + * The number of days that job metadata is retained. Default value: 30. + */ + queryStoreRetention?: number; +} + +/** + * The parameters used to update a Data Lake Store account while updating a Data Lake Analytics + * account. + */ +export interface UpdateDataLakeStoreWithAccountParameters { + /** + * The unique name of the Data Lake Store account to update. + */ + name: string; + /** + * The optional suffix for the Data Lake Store account. + */ + suffix?: string; +} + +/** + * The parameters used to update an Azure Storage account while updating a Data Lake Analytics + * account. + */ +export interface UpdateStorageAccountWithAccountParameters { + /** + * The unique name of the Azure Storage account to update. + */ + name: string; + /** + * The updated access key associated with this Azure Storage account that will be used to connect + * to it. + */ + accessKey?: string; + /** + * The optional suffix for the storage account. + */ + suffix?: string; +} + +/** + * The parameters used to update a compute policy while updating a Data Lake Analytics account. + */ +export interface UpdateComputePolicyWithAccountParameters { + /** + * The unique name of the compute policy to update. + */ + name: string; + /** + * The AAD object identifier for the entity to create a policy for. + */ + objectId?: string; + /** + * The type of AAD object the object identifier refers to. Possible values include: 'User', + * 'Group', 'ServicePrincipal' + */ + objectType?: AADObjectType; + /** + * The maximum degree of parallelism per job this user can use to submit jobs. This property, the + * min priority per job property, or both must be passed. + */ + maxDegreeOfParallelismPerJob?: number; + /** + * The minimum priority per job this user can use to submit jobs. This property, the max degree + * of parallelism per job property, or both must be passed. + */ + minPriorityPerJob?: number; +} + +/** + * The parameters used to update a firewall rule while updating a Data Lake Analytics account. + */ +export interface UpdateFirewallRuleWithAccountParameters { + /** + * The unique name of the firewall rule to update. + */ + name: string; + /** + * The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End + * should be in the same protocol. + */ + startIpAddress?: string; + /** + * The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End + * should be in the same protocol. + */ + endIpAddress?: string; +} + +/** + * The parameters that can be used to update an existing Data Lake Analytics account. + */ +export interface UpdateDataLakeAnalyticsAccountParameters { + /** + * The resource tags. + */ + tags?: { [propertyName: string]: string }; + /** + * The list of Data Lake Store accounts associated with this account. + */ + dataLakeStoreAccounts?: UpdateDataLakeStoreWithAccountParameters[]; + /** + * The list of Azure Blob storage accounts associated with this account. + */ + storageAccounts?: UpdateStorageAccountWithAccountParameters[]; + /** + * The list of compute policies associated with this account. + */ + computePolicies?: UpdateComputePolicyWithAccountParameters[]; + /** + * The list of firewall rules associated with this account. + */ + firewallRules?: UpdateFirewallRuleWithAccountParameters[]; + /** + * The current state of the IP address firewall for this account. Disabling the firewall does not + * remove existing rules, they will just be ignored until the firewall is re-enabled. Possible + * values include: 'Enabled', 'Disabled' + */ + firewallState?: FirewallState; + /** + * The current state of allowing or disallowing IPs originating within Azure through the + * firewall. If the firewall is disabled, this is not enforced. Possible values include: + * 'Enabled', 'Disabled' + */ + firewallAllowAzureIps?: FirewallAllowAzureIpsState; + /** + * The commitment tier to use for next month. Possible values include: 'Consumption', + * 'Commitment_100AUHours', 'Commitment_500AUHours', 'Commitment_1000AUHours', + * 'Commitment_5000AUHours', 'Commitment_10000AUHours', 'Commitment_50000AUHours', + * 'Commitment_100000AUHours', 'Commitment_500000AUHours' + */ + newTier?: TierType; + /** + * The maximum supported jobs running under the account at the same time. + */ + maxJobCount?: number; + /** + * The maximum supported degree of parallelism for this account. + */ + maxDegreeOfParallelism?: number; + /** + * The maximum supported degree of parallelism per job for this account. + */ + maxDegreeOfParallelismPerJob?: number; + /** + * The minimum supported priority per job for this account. + */ + minPriorityPerJob?: number; + /** + * The number of days that job metadata is retained. + */ + queryStoreRetention?: number; +} + +/** + * The parameters used to add a new Data Lake Store account. + */ +export interface AddDataLakeStoreParameters { + /** + * The optional suffix for the Data Lake Store account. + */ + suffix?: string; +} + +/** + * The parameters used to add a new Azure Storage account. + */ +export interface AddStorageAccountParameters { + /** + * The access key associated with this Azure Storage account that will be used to connect to it. + */ + accessKey: string; + /** + * The optional suffix for the storage account. + */ + suffix?: string; +} + +/** + * The parameters used to update an Azure Storage account. + */ +export interface UpdateStorageAccountParameters { + /** + * The updated access key associated with this Azure Storage account that will be used to connect + * to it. + */ + accessKey?: string; + /** + * The optional suffix for the storage account. + */ + suffix?: string; +} + +/** + * The parameters used to create a new compute policy. + */ +export interface CreateOrUpdateComputePolicyParameters { + /** + * The AAD object identifier for the entity to create a policy for. + */ + objectId: string; + /** + * The type of AAD object the object identifier refers to. Possible values include: 'User', + * 'Group', 'ServicePrincipal' + */ + objectType: AADObjectType; + /** + * The maximum degree of parallelism per job this user can use to submit jobs. This property, the + * min priority per job property, or both must be passed. + */ + maxDegreeOfParallelismPerJob?: number; + /** + * The minimum priority per job this user can use to submit jobs. This property, the max degree + * of parallelism per job property, or both must be passed. + */ + minPriorityPerJob?: number; +} + +/** + * The parameters used to update a compute policy. + */ +export interface UpdateComputePolicyParameters { + /** + * The AAD object identifier for the entity to create a policy for. + */ + objectId?: string; + /** + * The type of AAD object the object identifier refers to. Possible values include: 'User', + * 'Group', 'ServicePrincipal' + */ + objectType?: AADObjectType; + /** + * The maximum degree of parallelism per job this user can use to submit jobs. This property, the + * min priority per job property, or both must be passed. + */ + maxDegreeOfParallelismPerJob?: number; + /** + * The minimum priority per job this user can use to submit jobs. This property, the max degree + * of parallelism per job property, or both must be passed. + */ + minPriorityPerJob?: number; +} + +/** + * The parameters used to create a new firewall rule. + */ +export interface CreateOrUpdateFirewallRuleParameters { + /** + * The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End + * should be in the same protocol. + */ + startIpAddress: string; + /** + * The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End + * should be in the same protocol. + */ + endIpAddress: string; +} + +/** + * The parameters used to update a firewall rule. + */ +export interface UpdateFirewallRuleParameters { + /** + * The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End + * should be in the same protocol. + */ + startIpAddress?: string; + /** + * The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End + * should be in the same protocol. + */ + endIpAddress?: string; +} + +/** + * Data Lake Analytics account name availability check parameters. + */ +export interface CheckNameAvailabilityParameters { + /** + * The Data Lake Analytics name to check availability for. + */ + name: string; +} + +/** + * The resource management error additional info. + */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly info?: any; +} + +/** + * The error detail. + */ +export interface ErrorDetail { + /** + * The error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly code?: string; + /** + * The error message. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly message?: string; + /** + * The error target. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly target?: string; + /** + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** + * Common error response for all Azure Resource Manager APIs to return error details for failed + * operations. (This also follows the OData error response format.). + * @summary Error response + */ +export interface ErrorResponse { + /** + * The error object. + */ + error?: ErrorDetail; +} + +/** + * Optional Parameters. + */ +export interface AccountsListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; + /** + * The number of items to return. Optional. + */ + top?: number; + /** + * The number of items to skip over before returning elements. Optional. + */ + skip?: number; + /** + * OData Select statement. Limits the properties on each entry to just those requested, e.g. + * Categories?$select=CategoryName,Description. Optional. + */ + select?: string; + /** + * OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) + * or "desc" depending on the order you'd like the values sorted, e.g. + * Categories?$orderby=CategoryName desc. Optional. + */ + orderby?: string; + /** + * The Boolean value of true or false to request a count of the matching resources included with + * the resources in the response, e.g. Categories?$count=true. Optional. + */ + count?: boolean; +} + +/** + * Optional Parameters. + */ +export interface AccountsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; + /** + * The number of items to return. Optional. + */ + top?: number; + /** + * The number of items to skip over before returning elements. Optional. + */ + skip?: number; + /** + * OData Select statement. Limits the properties on each entry to just those requested, e.g. + * Categories?$select=CategoryName,Description. Optional. + */ + select?: string; + /** + * OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) + * or "desc" depending on the order you'd like the values sorted, e.g. + * Categories?$orderby=CategoryName desc. Optional. + */ + orderby?: string; + /** + * The Boolean value of true or false to request a count of the matching resources included with + * the resources in the response, e.g. Categories?$count=true. Optional. + */ + count?: boolean; +} + +/** + * Optional Parameters. + */ +export interface AccountsUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * Parameters supplied to the update Data Lake Analytics account operation. + */ + parameters?: UpdateDataLakeAnalyticsAccountParameters; +} + +/** + * Optional Parameters. + */ +export interface AccountsBeginUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * Parameters supplied to the update Data Lake Analytics account operation. + */ + parameters?: UpdateDataLakeAnalyticsAccountParameters; +} + +/** + * Optional Parameters. + */ +export interface AccountsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; + /** + * The number of items to return. Optional. + */ + top?: number; + /** + * The number of items to skip over before returning elements. Optional. + */ + skip?: number; + /** + * OData Select statement. Limits the properties on each entry to just those requested, e.g. + * Categories?$select=CategoryName,Description. Optional. + */ + select?: string; + /** + * OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) + * or "desc" depending on the order you'd like the values sorted, e.g. + * Categories?$orderby=CategoryName desc. Optional. + */ + orderby?: string; + /** + * The Boolean value of true or false to request a count of the matching resources included with + * the resources in the response, e.g. Categories?$count=true. Optional. + */ + count?: boolean; +} + +/** + * Optional Parameters. + */ +export interface AccountsListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; + /** + * The number of items to return. Optional. + */ + top?: number; + /** + * The number of items to skip over before returning elements. Optional. + */ + skip?: number; + /** + * OData Select statement. Limits the properties on each entry to just those requested, e.g. + * Categories?$select=CategoryName,Description. Optional. + */ + select?: string; + /** + * OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) + * or "desc" depending on the order you'd like the values sorted, e.g. + * Categories?$orderby=CategoryName desc. Optional. + */ + orderby?: string; + /** + * The Boolean value of true or false to request a count of the matching resources included with + * the resources in the response, e.g. Categories?$count=true. Optional. + */ + count?: boolean; +} + +/** + * Optional Parameters. + */ +export interface DataLakeStoreAccountsListByAccountOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; + /** + * The number of items to return. Optional. + */ + top?: number; + /** + * The number of items to skip over before returning elements. Optional. + */ + skip?: number; + /** + * OData Select statement. Limits the properties on each entry to just those requested, e.g. + * Categories?$select=CategoryName,Description. Optional. + */ + select?: string; + /** + * OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) + * or "desc" depending on the order you'd like the values sorted, e.g. + * Categories?$orderby=CategoryName desc. Optional. + */ + orderby?: string; + /** + * The Boolean value of true or false to request a count of the matching resources included with + * the resources in the response, e.g. Categories?$count=true. Optional. + */ + count?: boolean; +} + +/** + * Optional Parameters. + */ +export interface DataLakeStoreAccountsAddOptionalParams extends msRest.RequestOptionsBase { + /** + * The details of the Data Lake Store account. + */ + parameters?: AddDataLakeStoreParameters; +} + +/** + * Optional Parameters. + */ +export interface DataLakeStoreAccountsListByAccountNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; + /** + * The number of items to return. Optional. + */ + top?: number; + /** + * The number of items to skip over before returning elements. Optional. + */ + skip?: number; + /** + * OData Select statement. Limits the properties on each entry to just those requested, e.g. + * Categories?$select=CategoryName,Description. Optional. + */ + select?: string; + /** + * OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) + * or "desc" depending on the order you'd like the values sorted, e.g. + * Categories?$orderby=CategoryName desc. Optional. + */ + orderby?: string; + /** + * The Boolean value of true or false to request a count of the matching resources included with + * the resources in the response, e.g. Categories?$count=true. Optional. + */ + count?: boolean; +} + +/** + * Optional Parameters. + */ +export interface StorageAccountsListByAccountOptionalParams extends msRest.RequestOptionsBase { + /** + * The OData filter. Optional. + */ + filter?: string; + /** + * The number of items to return. Optional. + */ + top?: number; + /** + * The number of items to skip over before returning elements. Optional. + */ + skip?: number; + /** + * OData Select statement. Limits the properties on each entry to just those requested, e.g. + * Categories?$select=CategoryName,Description. Optional. + */ + select?: string; + /** + * OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) + * or "desc" depending on the order you'd like the values sorted, e.g. + * Categories?$orderby=CategoryName desc. Optional. + */ + orderby?: string; + /** + * The Boolean value of true or false to request a count of the matching resources included with + * the resources in the response, e.g. Categories?$count=true. Optional. + */ + count?: boolean; +} + +/** + * Optional Parameters. + */ +export interface StorageAccountsUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The parameters containing the access key and suffix to update the storage account with, if + * any. Passing nothing results in no change. + */ + parameters?: UpdateStorageAccountParameters; +} + +/** + * Optional Parameters. + */ +export interface StorageAccountsListByAccountNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The OData filter. Optional. + */ + filter?: string; + /** + * The number of items to return. Optional. + */ + top?: number; + /** + * The number of items to skip over before returning elements. Optional. + */ + skip?: number; + /** + * OData Select statement. Limits the properties on each entry to just those requested, e.g. + * Categories?$select=CategoryName,Description. Optional. + */ + select?: string; + /** + * OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) + * or "desc" depending on the order you'd like the values sorted, e.g. + * Categories?$orderby=CategoryName desc. Optional. + */ + orderby?: string; + /** + * The Boolean value of true or false to request a count of the matching resources included with + * the resources in the response, e.g. Categories?$count=true. Optional. + */ + count?: boolean; +} + +/** + * Optional Parameters. + */ +export interface ComputePoliciesUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * Parameters supplied to update the compute policy. + */ + parameters?: UpdateComputePolicyParameters; +} + +/** + * Optional Parameters. + */ +export interface FirewallRulesUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * Parameters supplied to update the firewall rule. + */ + parameters?: UpdateFirewallRuleParameters; +} + +/** + * An interface representing DataLakeAnalyticsAccountManagementClientOptions. + */ +export interface DataLakeAnalyticsAccountManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * Data Lake Analytics account list information. + * @extends Array + */ +export interface DataLakeAnalyticsAccountListResult extends Array { + /** + * The link (url) to the next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Data Lake Store account list information. + * @extends Array + */ +export interface DataLakeStoreAccountInformationListResult extends Array { + /** + * The link (url) to the next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Azure Storage account list information. + * @extends Array + */ +export interface StorageAccountInformationListResult extends Array { + /** + * The link (url) to the next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * The list of blob containers associated with the storage account attached to the Data Lake + * Analytics account. + * @extends Array + */ +export interface StorageContainerListResult extends Array { + /** + * The link (url) to the next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * The SAS response that contains the storage account, container and associated SAS token for + * connection use. + * @extends Array + */ +export interface SasTokenInformationListResult extends Array { + /** + * The link (url) to the next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * The list of compute policies in the account. + * @extends Array + */ +export interface ComputePolicyListResult extends Array { + /** + * The link (url) to the next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Data Lake Analytics firewall rule list information. + * @extends Array + */ +export interface FirewallRuleListResult extends Array { + /** + * The link (url) to the next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * Defines values for AADObjectType. + * Possible values include: 'User', 'Group', 'ServicePrincipal' + * @readonly + * @enum {string} + */ +export type AADObjectType = 'User' | 'Group' | 'ServicePrincipal'; + +/** + * Defines values for NestedResourceProvisioningState. + * Possible values include: 'Succeeded', 'Canceled', 'Failed' + * @readonly + * @enum {string} + */ +export type NestedResourceProvisioningState = 'Succeeded' | 'Canceled' | 'Failed'; + +/** + * Defines values for VirtualNetworkRuleState. + * Possible values include: 'Active', 'NetworkSourceDeleted', 'Failed' + * @readonly + * @enum {string} + */ +export type VirtualNetworkRuleState = 'Active' | 'NetworkSourceDeleted' | 'Failed'; + +/** + * Defines values for FirewallState. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type FirewallState = 'Enabled' | 'Disabled'; + +/** + * Defines values for FirewallAllowAzureIpsState. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type FirewallAllowAzureIpsState = 'Enabled' | 'Disabled'; + +/** + * Defines values for TierType. + * Possible values include: 'Consumption', 'Commitment_100AUHours', 'Commitment_500AUHours', + * 'Commitment_1000AUHours', 'Commitment_5000AUHours', 'Commitment_10000AUHours', + * 'Commitment_50000AUHours', 'Commitment_100000AUHours', 'Commitment_500000AUHours' + * @readonly + * @enum {string} + */ +export type TierType = 'Consumption' | 'Commitment_100AUHours' | 'Commitment_500AUHours' | 'Commitment_1000AUHours' | 'Commitment_5000AUHours' | 'Commitment_10000AUHours' | 'Commitment_50000AUHours' | 'Commitment_100000AUHours' | 'Commitment_500000AUHours'; + +/** + * Defines values for DebugDataAccessLevel. + * Possible values include: 'All', 'Customer', 'None' + * @readonly + * @enum {string} + */ +export type DebugDataAccessLevel = 'All' | 'Customer' | 'None'; + +/** + * Defines values for DataLakeAnalyticsAccountStatus. + * Possible values include: 'Failed', 'Creating', 'Running', 'Succeeded', 'Patching', 'Suspending', + * 'Resuming', 'Deleting', 'Deleted', 'Undeleting', 'Canceled' + * @readonly + * @enum {string} + */ +export type DataLakeAnalyticsAccountStatus = 'Failed' | 'Creating' | 'Running' | 'Succeeded' | 'Patching' | 'Suspending' | 'Resuming' | 'Deleting' | 'Deleted' | 'Undeleting' | 'Canceled'; + +/** + * Defines values for DataLakeAnalyticsAccountState. + * Possible values include: 'Active', 'Suspended' + * @readonly + * @enum {string} + */ +export type DataLakeAnalyticsAccountState = 'Active' | 'Suspended'; + +/** + * Defines values for OperationOrigin. + * Possible values include: 'user', 'system', 'user,system' + * @readonly + * @enum {string} + */ +export type OperationOrigin = 'user' | 'system' | 'user,system'; + +/** + * Defines values for SubscriptionState. + * Possible values include: 'Registered', 'Suspended', 'Deleted', 'Unregistered', 'Warned' + * @readonly + * @enum {string} + */ +export type SubscriptionState = 'Registered' | 'Suspended' | 'Deleted' | 'Unregistered' | 'Warned'; + +/** + * Contains response data for the list operation. + */ +export type AccountsListResponse = DataLakeAnalyticsAccountListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataLakeAnalyticsAccountListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type AccountsListByResourceGroupResponse = DataLakeAnalyticsAccountListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataLakeAnalyticsAccountListResult; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type AccountsCreateResponse = DataLakeAnalyticsAccount & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataLakeAnalyticsAccount; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type AccountsGetResponse = DataLakeAnalyticsAccount & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataLakeAnalyticsAccount; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type AccountsUpdateResponse = DataLakeAnalyticsAccount & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataLakeAnalyticsAccount; + }; +}; + +/** + * Contains response data for the checkNameAvailability operation. + */ +export type AccountsCheckNameAvailabilityResponse = NameAvailabilityInformation & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NameAvailabilityInformation; + }; +}; + +/** + * Contains response data for the beginCreate operation. + */ +export type AccountsBeginCreateResponse = DataLakeAnalyticsAccount & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataLakeAnalyticsAccount; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type AccountsBeginUpdateResponse = DataLakeAnalyticsAccount & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataLakeAnalyticsAccount; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type AccountsListNextResponse = DataLakeAnalyticsAccountListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataLakeAnalyticsAccountListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type AccountsListByResourceGroupNextResponse = DataLakeAnalyticsAccountListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataLakeAnalyticsAccountListResult; + }; +}; + +/** + * Contains response data for the listByAccount operation. + */ +export type DataLakeStoreAccountsListByAccountResponse = DataLakeStoreAccountInformationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataLakeStoreAccountInformationListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DataLakeStoreAccountsGetResponse = DataLakeStoreAccountInformation & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataLakeStoreAccountInformation; + }; +}; + +/** + * Contains response data for the listByAccountNext operation. + */ +export type DataLakeStoreAccountsListByAccountNextResponse = DataLakeStoreAccountInformationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataLakeStoreAccountInformationListResult; + }; +}; + +/** + * Contains response data for the listByAccount operation. + */ +export type StorageAccountsListByAccountResponse = StorageAccountInformationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: StorageAccountInformationListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type StorageAccountsGetResponse = StorageAccountInformation & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: StorageAccountInformation; + }; +}; + +/** + * Contains response data for the listStorageContainers operation. + */ +export type StorageAccountsListStorageContainersResponse = StorageContainerListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: StorageContainerListResult; + }; +}; + +/** + * Contains response data for the getStorageContainer operation. + */ +export type StorageAccountsGetStorageContainerResponse = StorageContainer & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: StorageContainer; + }; +}; + +/** + * Contains response data for the listSasTokens operation. + */ +export type StorageAccountsListSasTokensResponse = SasTokenInformationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SasTokenInformationListResult; + }; +}; + +/** + * Contains response data for the listByAccountNext operation. + */ +export type StorageAccountsListByAccountNextResponse = StorageAccountInformationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: StorageAccountInformationListResult; + }; +}; + +/** + * Contains response data for the listStorageContainersNext operation. + */ +export type StorageAccountsListStorageContainersNextResponse = StorageContainerListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: StorageContainerListResult; + }; +}; + +/** + * Contains response data for the listSasTokensNext operation. + */ +export type StorageAccountsListSasTokensNextResponse = SasTokenInformationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SasTokenInformationListResult; + }; +}; + +/** + * Contains response data for the listByAccount operation. + */ +export type ComputePoliciesListByAccountResponse = ComputePolicyListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComputePolicyListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ComputePoliciesCreateOrUpdateResponse = ComputePolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComputePolicy; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ComputePoliciesGetResponse = ComputePolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComputePolicy; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type ComputePoliciesUpdateResponse = ComputePolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComputePolicy; + }; +}; + +/** + * Contains response data for the listByAccountNext operation. + */ +export type ComputePoliciesListByAccountNextResponse = ComputePolicyListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComputePolicyListResult; + }; +}; + +/** + * Contains response data for the listByAccount operation. + */ +export type FirewallRulesListByAccountResponse = FirewallRuleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: FirewallRuleListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type FirewallRulesCreateOrUpdateResponse = FirewallRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: FirewallRule; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type FirewallRulesGetResponse = FirewallRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: FirewallRule; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type FirewallRulesUpdateResponse = FirewallRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: FirewallRule; + }; +}; + +/** + * Contains response data for the listByAccountNext operation. + */ +export type FirewallRulesListByAccountNextResponse = FirewallRuleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: FirewallRuleListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = OperationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; +}; + +/** + * Contains response data for the getCapability operation. + */ +export type LocationsGetCapabilityResponse = CapabilityInformation & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CapabilityInformation; + }; +}; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/models/locationsMappers.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/models/locationsMappers.ts new file mode 100644 index 000000000000..62e252cdf7b9 --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/models/locationsMappers.ts @@ -0,0 +1,14 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + CapabilityInformation, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse +} from "../models/mappers"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/models/mappers.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/models/mappers.ts new file mode 100644 index 000000000000..55ec34b33d4a --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/models/mappers.ts @@ -0,0 +1,2180 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; +import * as msRest from "@azure/ms-rest-js"; + +export const CloudError = CloudErrorMapper; +export const BaseResource = BaseResourceMapper; + +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + readOnly: true, + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const SubResource: msRest.CompositeMapper = { + serializedName: "SubResource", + type: { + name: "Composite", + className: "SubResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const DataLakeStoreAccountInformation: msRest.CompositeMapper = { + serializedName: "DataLakeStoreAccountInformation", + type: { + name: "Composite", + className: "DataLakeStoreAccountInformation", + modelProperties: { + ...SubResource.type.modelProperties, + suffix: { + readOnly: true, + serializedName: "properties.suffix", + type: { + name: "String" + } + } + } + } +}; + +export const StorageAccountInformation: msRest.CompositeMapper = { + serializedName: "StorageAccountInformation", + type: { + name: "Composite", + className: "StorageAccountInformation", + modelProperties: { + ...SubResource.type.modelProperties, + suffix: { + readOnly: true, + serializedName: "properties.suffix", + type: { + name: "String" + } + } + } + } +}; + +export const ComputePolicy: msRest.CompositeMapper = { + serializedName: "ComputePolicy", + type: { + name: "Composite", + className: "ComputePolicy", + modelProperties: { + ...SubResource.type.modelProperties, + objectId: { + readOnly: true, + serializedName: "properties.objectId", + type: { + name: "Uuid" + } + }, + objectType: { + readOnly: true, + serializedName: "properties.objectType", + type: { + name: "String" + } + }, + maxDegreeOfParallelismPerJob: { + readOnly: true, + serializedName: "properties.maxDegreeOfParallelismPerJob", + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + minPriorityPerJob: { + readOnly: true, + serializedName: "properties.minPriorityPerJob", + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const HiveMetastore: msRest.CompositeMapper = { + serializedName: "HiveMetastore", + type: { + name: "Composite", + className: "HiveMetastore", + modelProperties: { + ...SubResource.type.modelProperties, + serverUri: { + readOnly: true, + serializedName: "properties.serverUri", + type: { + name: "String" + } + }, + databaseName: { + readOnly: true, + serializedName: "properties.databaseName", + type: { + name: "String" + } + }, + runtimeVersion: { + readOnly: true, + serializedName: "properties.runtimeVersion", + type: { + name: "String" + } + }, + userName: { + readOnly: true, + serializedName: "properties.userName", + type: { + name: "String" + } + }, + password: { + readOnly: true, + serializedName: "properties.password", + type: { + name: "String" + } + }, + nestedResourceProvisioningState: { + readOnly: true, + serializedName: "properties.nestedResourceProvisioningState", + type: { + name: "Enum", + allowedValues: [ + "Succeeded", + "Canceled", + "Failed" + ] + } + } + } + } +}; + +export const VirtualNetworkRule: msRest.CompositeMapper = { + serializedName: "VirtualNetworkRule", + type: { + name: "Composite", + className: "VirtualNetworkRule", + modelProperties: { + ...SubResource.type.modelProperties, + subnetId: { + readOnly: true, + serializedName: "properties.subnetId", + type: { + name: "String" + } + }, + virtualNetworkRuleState: { + readOnly: true, + serializedName: "properties.virtualNetworkRuleState", + type: { + name: "Enum", + allowedValues: [ + "Active", + "NetworkSourceDeleted", + "Failed" + ] + } + } + } + } +}; + +export const FirewallRule: msRest.CompositeMapper = { + serializedName: "FirewallRule", + type: { + name: "Composite", + className: "FirewallRule", + modelProperties: { + ...SubResource.type.modelProperties, + startIpAddress: { + readOnly: true, + serializedName: "properties.startIpAddress", + type: { + name: "String" + } + }, + endIpAddress: { + readOnly: true, + serializedName: "properties.endIpAddress", + type: { + name: "String" + } + } + } + } +}; + +export const DataLakeAnalyticsAccount: msRest.CompositeMapper = { + serializedName: "DataLakeAnalyticsAccount", + type: { + name: "Composite", + className: "DataLakeAnalyticsAccount", + modelProperties: { + ...Resource.type.modelProperties, + accountId: { + readOnly: true, + serializedName: "properties.accountId", + type: { + name: "Uuid" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "Enum", + allowedValues: [ + "Failed", + "Creating", + "Running", + "Succeeded", + "Patching", + "Suspending", + "Resuming", + "Deleting", + "Deleted", + "Undeleting", + "Canceled" + ] + } + }, + state: { + readOnly: true, + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "Active", + "Suspended" + ] + } + }, + creationTime: { + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + readOnly: true, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + endpoint: { + readOnly: true, + serializedName: "properties.endpoint", + type: { + name: "String" + } + }, + defaultDataLakeStoreAccount: { + readOnly: true, + serializedName: "properties.defaultDataLakeStoreAccount", + type: { + name: "String" + } + }, + dataLakeStoreAccounts: { + readOnly: true, + serializedName: "properties.dataLakeStoreAccounts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataLakeStoreAccountInformation" + } + } + } + }, + storageAccounts: { + readOnly: true, + serializedName: "properties.storageAccounts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageAccountInformation" + } + } + } + }, + computePolicies: { + readOnly: true, + serializedName: "properties.computePolicies", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputePolicy" + } + } + } + }, + hiveMetastores: { + readOnly: true, + serializedName: "properties.hiveMetastores", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HiveMetastore" + } + } + } + }, + virtualNetworkRules: { + readOnly: true, + serializedName: "properties.virtualNetworkRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualNetworkRule" + } + } + } + }, + firewallRules: { + readOnly: true, + serializedName: "properties.firewallRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FirewallRule" + } + } + } + }, + firewallState: { + readOnly: true, + serializedName: "properties.firewallState", + type: { + name: "Enum", + allowedValues: [ + "Enabled", + "Disabled" + ] + } + }, + firewallAllowAzureIps: { + readOnly: true, + serializedName: "properties.firewallAllowAzureIps", + type: { + name: "Enum", + allowedValues: [ + "Enabled", + "Disabled" + ] + } + }, + newTier: { + readOnly: true, + serializedName: "properties.newTier", + type: { + name: "Enum", + allowedValues: [ + "Consumption", + "Commitment_100AUHours", + "Commitment_500AUHours", + "Commitment_1000AUHours", + "Commitment_5000AUHours", + "Commitment_10000AUHours", + "Commitment_50000AUHours", + "Commitment_100000AUHours", + "Commitment_500000AUHours" + ] + } + }, + currentTier: { + readOnly: true, + serializedName: "properties.currentTier", + type: { + name: "Enum", + allowedValues: [ + "Consumption", + "Commitment_100AUHours", + "Commitment_500AUHours", + "Commitment_1000AUHours", + "Commitment_5000AUHours", + "Commitment_10000AUHours", + "Commitment_50000AUHours", + "Commitment_100000AUHours", + "Commitment_500000AUHours" + ] + } + }, + maxJobCount: { + serializedName: "properties.maxJobCount", + defaultValue: 3, + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + systemMaxJobCount: { + readOnly: true, + serializedName: "properties.systemMaxJobCount", + type: { + name: "Number" + } + }, + maxDegreeOfParallelism: { + serializedName: "properties.maxDegreeOfParallelism", + defaultValue: 30, + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + systemMaxDegreeOfParallelism: { + readOnly: true, + serializedName: "properties.systemMaxDegreeOfParallelism", + type: { + name: "Number" + } + }, + maxDegreeOfParallelismPerJob: { + readOnly: true, + serializedName: "properties.maxDegreeOfParallelismPerJob", + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + minPriorityPerJob: { + readOnly: true, + serializedName: "properties.minPriorityPerJob", + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + queryStoreRetention: { + serializedName: "properties.queryStoreRetention", + defaultValue: 30, + constraints: { + InclusiveMaximum: 180, + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + debugDataAccessLevel: { + readOnly: true, + serializedName: "properties.debugDataAccessLevel", + type: { + name: "Enum", + allowedValues: [ + "All", + "Customer", + "None" + ] + } + } + } + } +}; + +export const DataLakeAnalyticsAccountBasic: msRest.CompositeMapper = { + serializedName: "DataLakeAnalyticsAccountBasic", + type: { + name: "Composite", + className: "DataLakeAnalyticsAccountBasic", + modelProperties: { + ...Resource.type.modelProperties, + accountId: { + readOnly: true, + serializedName: "properties.accountId", + type: { + name: "Uuid" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "Enum", + allowedValues: [ + "Failed", + "Creating", + "Running", + "Succeeded", + "Patching", + "Suspending", + "Resuming", + "Deleting", + "Deleted", + "Undeleting", + "Canceled" + ] + } + }, + state: { + readOnly: true, + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "Active", + "Suspended" + ] + } + }, + creationTime: { + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + readOnly: true, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + endpoint: { + readOnly: true, + serializedName: "properties.endpoint", + type: { + name: "String" + } + } + } + } +}; + +export const StorageContainer: msRest.CompositeMapper = { + serializedName: "StorageContainer", + type: { + name: "Composite", + className: "StorageContainer", + modelProperties: { + ...SubResource.type.modelProperties, + lastModifiedTime: { + readOnly: true, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const SasTokenInformation: msRest.CompositeMapper = { + serializedName: "SasTokenInformation", + type: { + name: "Composite", + className: "SasTokenInformation", + modelProperties: { + accessToken: { + readOnly: true, + serializedName: "accessToken", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualNetworkRuleListResult: msRest.CompositeMapper = { + serializedName: "VirtualNetworkRuleListResult", + type: { + name: "Composite", + className: "VirtualNetworkRuleListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualNetworkRule" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const HiveMetastoreListResult: msRest.CompositeMapper = { + serializedName: "HiveMetastoreListResult", + type: { + name: "Composite", + className: "HiveMetastoreListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HiveMetastore" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const OperationDisplay: msRest.CompositeMapper = { + serializedName: "OperationDisplay", + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + readOnly: true, + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + readOnly: true, + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + readOnly: true, + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const OperationMetaMetricAvailabilitiesSpecification: msRest.CompositeMapper = { + serializedName: "OperationMetaMetricAvailabilitiesSpecification", + type: { + name: "Composite", + className: "OperationMetaMetricAvailabilitiesSpecification", + modelProperties: { + timeGrain: { + serializedName: "timeGrain", + type: { + name: "String" + } + }, + blobDuration: { + serializedName: "blobDuration", + type: { + name: "String" + } + } + } + } +}; + +export const OperationMetaMetricSpecification: msRest.CompositeMapper = { + serializedName: "OperationMetaMetricSpecification", + type: { + name: "Composite", + className: "OperationMetaMetricSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + aggregationType: { + serializedName: "aggregationType", + type: { + name: "String" + } + }, + availabilities: { + serializedName: "availabilities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationMetaMetricAvailabilitiesSpecification" + } + } + } + } + } + } +}; + +export const OperationMetaLogSpecification: msRest.CompositeMapper = { + serializedName: "OperationMetaLogSpecification", + type: { + name: "Composite", + className: "OperationMetaLogSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + blobDuration: { + serializedName: "blobDuration", + type: { + name: "String" + } + } + } + } +}; + +export const OperationMetaServiceSpecification: msRest.CompositeMapper = { + serializedName: "OperationMetaServiceSpecification", + type: { + name: "Composite", + className: "OperationMetaServiceSpecification", + modelProperties: { + metricSpecifications: { + serializedName: "metricSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationMetaMetricSpecification" + } + } + } + }, + logSpecifications: { + serializedName: "logSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationMetaLogSpecification" + } + } + } + } + } + } +}; + +export const OperationMetaPropertyInfo: msRest.CompositeMapper = { + serializedName: "OperationMetaPropertyInfo", + type: { + name: "Composite", + className: "OperationMetaPropertyInfo", + modelProperties: { + serviceSpecification: { + serializedName: "serviceSpecification", + type: { + name: "Composite", + className: "OperationMetaServiceSpecification" + } + } + } + } +}; + +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + display: { + readOnly: true, + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + }, + properties: { + readOnly: true, + serializedName: "properties", + type: { + name: "Composite", + className: "OperationMetaPropertyInfo" + } + }, + origin: { + readOnly: true, + serializedName: "origin", + type: { + name: "String" + } + } + } + } +}; + +export const OperationListResult: msRest.CompositeMapper = { + serializedName: "OperationListResult", + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const CapabilityInformation: msRest.CompositeMapper = { + serializedName: "CapabilityInformation", + type: { + name: "Composite", + className: "CapabilityInformation", + modelProperties: { + subscriptionId: { + readOnly: true, + serializedName: "subscriptionId", + type: { + name: "Uuid" + } + }, + state: { + readOnly: true, + serializedName: "state", + type: { + name: "String" + } + }, + maxAccountCount: { + readOnly: true, + serializedName: "maxAccountCount", + type: { + name: "Number" + } + }, + accountCount: { + readOnly: true, + serializedName: "accountCount", + type: { + name: "Number" + } + }, + migrationState: { + readOnly: true, + serializedName: "migrationState", + type: { + name: "Boolean" + } + } + } + } +}; + +export const NameAvailabilityInformation: msRest.CompositeMapper = { + serializedName: "NameAvailabilityInformation", + type: { + name: "Composite", + className: "NameAvailabilityInformation", + modelProperties: { + nameAvailable: { + readOnly: true, + serializedName: "nameAvailable", + type: { + name: "Boolean" + } + }, + reason: { + readOnly: true, + serializedName: "reason", + type: { + name: "String" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const AddDataLakeStoreWithAccountParameters: msRest.CompositeMapper = { + serializedName: "AddDataLakeStoreWithAccountParameters", + type: { + name: "Composite", + className: "AddDataLakeStoreWithAccountParameters", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + suffix: { + serializedName: "properties.suffix", + type: { + name: "String" + } + } + } + } +}; + +export const AddStorageAccountWithAccountParameters: msRest.CompositeMapper = { + serializedName: "AddStorageAccountWithAccountParameters", + type: { + name: "Composite", + className: "AddStorageAccountWithAccountParameters", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + accessKey: { + required: true, + serializedName: "properties.accessKey", + type: { + name: "String" + } + }, + suffix: { + serializedName: "properties.suffix", + type: { + name: "String" + } + } + } + } +}; + +export const CreateComputePolicyWithAccountParameters: msRest.CompositeMapper = { + serializedName: "CreateComputePolicyWithAccountParameters", + type: { + name: "Composite", + className: "CreateComputePolicyWithAccountParameters", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + objectId: { + required: true, + serializedName: "properties.objectId", + type: { + name: "Uuid" + } + }, + objectType: { + required: true, + serializedName: "properties.objectType", + type: { + name: "String" + } + }, + maxDegreeOfParallelismPerJob: { + serializedName: "properties.maxDegreeOfParallelismPerJob", + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + minPriorityPerJob: { + serializedName: "properties.minPriorityPerJob", + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const CreateFirewallRuleWithAccountParameters: msRest.CompositeMapper = { + serializedName: "CreateFirewallRuleWithAccountParameters", + type: { + name: "Composite", + className: "CreateFirewallRuleWithAccountParameters", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + startIpAddress: { + required: true, + serializedName: "properties.startIpAddress", + type: { + name: "String" + } + }, + endIpAddress: { + required: true, + serializedName: "properties.endIpAddress", + type: { + name: "String" + } + } + } + } +}; + +export const CreateDataLakeAnalyticsAccountParameters: msRest.CompositeMapper = { + serializedName: "CreateDataLakeAnalyticsAccountParameters", + type: { + name: "Composite", + className: "CreateDataLakeAnalyticsAccountParameters", + modelProperties: { + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + defaultDataLakeStoreAccount: { + required: true, + serializedName: "properties.defaultDataLakeStoreAccount", + type: { + name: "String" + } + }, + dataLakeStoreAccounts: { + required: true, + serializedName: "properties.dataLakeStoreAccounts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AddDataLakeStoreWithAccountParameters" + } + } + } + }, + storageAccounts: { + serializedName: "properties.storageAccounts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AddStorageAccountWithAccountParameters" + } + } + } + }, + computePolicies: { + serializedName: "properties.computePolicies", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CreateComputePolicyWithAccountParameters" + } + } + } + }, + firewallRules: { + serializedName: "properties.firewallRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CreateFirewallRuleWithAccountParameters" + } + } + } + }, + firewallState: { + serializedName: "properties.firewallState", + type: { + name: "Enum", + allowedValues: [ + "Enabled", + "Disabled" + ] + } + }, + firewallAllowAzureIps: { + serializedName: "properties.firewallAllowAzureIps", + type: { + name: "Enum", + allowedValues: [ + "Enabled", + "Disabled" + ] + } + }, + newTier: { + serializedName: "properties.newTier", + type: { + name: "Enum", + allowedValues: [ + "Consumption", + "Commitment_100AUHours", + "Commitment_500AUHours", + "Commitment_1000AUHours", + "Commitment_5000AUHours", + "Commitment_10000AUHours", + "Commitment_50000AUHours", + "Commitment_100000AUHours", + "Commitment_500000AUHours" + ] + } + }, + maxJobCount: { + serializedName: "properties.maxJobCount", + defaultValue: 3, + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + maxDegreeOfParallelism: { + serializedName: "properties.maxDegreeOfParallelism", + defaultValue: 30, + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + maxDegreeOfParallelismPerJob: { + serializedName: "properties.maxDegreeOfParallelismPerJob", + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + minPriorityPerJob: { + serializedName: "properties.minPriorityPerJob", + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + queryStoreRetention: { + serializedName: "properties.queryStoreRetention", + defaultValue: 30, + constraints: { + InclusiveMaximum: 180, + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const UpdateDataLakeStoreWithAccountParameters: msRest.CompositeMapper = { + serializedName: "UpdateDataLakeStoreWithAccountParameters", + type: { + name: "Composite", + className: "UpdateDataLakeStoreWithAccountParameters", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + suffix: { + serializedName: "properties.suffix", + type: { + name: "String" + } + } + } + } +}; + +export const UpdateStorageAccountWithAccountParameters: msRest.CompositeMapper = { + serializedName: "UpdateStorageAccountWithAccountParameters", + type: { + name: "Composite", + className: "UpdateStorageAccountWithAccountParameters", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + accessKey: { + serializedName: "properties.accessKey", + type: { + name: "String" + } + }, + suffix: { + serializedName: "properties.suffix", + type: { + name: "String" + } + } + } + } +}; + +export const UpdateComputePolicyWithAccountParameters: msRest.CompositeMapper = { + serializedName: "UpdateComputePolicyWithAccountParameters", + type: { + name: "Composite", + className: "UpdateComputePolicyWithAccountParameters", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + objectId: { + serializedName: "properties.objectId", + type: { + name: "Uuid" + } + }, + objectType: { + serializedName: "properties.objectType", + type: { + name: "String" + } + }, + maxDegreeOfParallelismPerJob: { + serializedName: "properties.maxDegreeOfParallelismPerJob", + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + minPriorityPerJob: { + serializedName: "properties.minPriorityPerJob", + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const UpdateFirewallRuleWithAccountParameters: msRest.CompositeMapper = { + serializedName: "UpdateFirewallRuleWithAccountParameters", + type: { + name: "Composite", + className: "UpdateFirewallRuleWithAccountParameters", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + startIpAddress: { + serializedName: "properties.startIpAddress", + type: { + name: "String" + } + }, + endIpAddress: { + serializedName: "properties.endIpAddress", + type: { + name: "String" + } + } + } + } +}; + +export const UpdateDataLakeAnalyticsAccountParameters: msRest.CompositeMapper = { + serializedName: "UpdateDataLakeAnalyticsAccountParameters", + type: { + name: "Composite", + className: "UpdateDataLakeAnalyticsAccountParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + dataLakeStoreAccounts: { + serializedName: "properties.dataLakeStoreAccounts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpdateDataLakeStoreWithAccountParameters" + } + } + } + }, + storageAccounts: { + serializedName: "properties.storageAccounts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpdateStorageAccountWithAccountParameters" + } + } + } + }, + computePolicies: { + serializedName: "properties.computePolicies", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpdateComputePolicyWithAccountParameters" + } + } + } + }, + firewallRules: { + serializedName: "properties.firewallRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpdateFirewallRuleWithAccountParameters" + } + } + } + }, + firewallState: { + serializedName: "properties.firewallState", + type: { + name: "Enum", + allowedValues: [ + "Enabled", + "Disabled" + ] + } + }, + firewallAllowAzureIps: { + serializedName: "properties.firewallAllowAzureIps", + type: { + name: "Enum", + allowedValues: [ + "Enabled", + "Disabled" + ] + } + }, + newTier: { + serializedName: "properties.newTier", + type: { + name: "Enum", + allowedValues: [ + "Consumption", + "Commitment_100AUHours", + "Commitment_500AUHours", + "Commitment_1000AUHours", + "Commitment_5000AUHours", + "Commitment_10000AUHours", + "Commitment_50000AUHours", + "Commitment_100000AUHours", + "Commitment_500000AUHours" + ] + } + }, + maxJobCount: { + serializedName: "properties.maxJobCount", + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + maxDegreeOfParallelism: { + serializedName: "properties.maxDegreeOfParallelism", + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + maxDegreeOfParallelismPerJob: { + serializedName: "properties.maxDegreeOfParallelismPerJob", + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + minPriorityPerJob: { + serializedName: "properties.minPriorityPerJob", + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + queryStoreRetention: { + serializedName: "properties.queryStoreRetention", + constraints: { + InclusiveMaximum: 180, + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const AddDataLakeStoreParameters: msRest.CompositeMapper = { + serializedName: "AddDataLakeStoreParameters", + type: { + name: "Composite", + className: "AddDataLakeStoreParameters", + modelProperties: { + suffix: { + serializedName: "properties.suffix", + type: { + name: "String" + } + } + } + } +}; + +export const AddStorageAccountParameters: msRest.CompositeMapper = { + serializedName: "AddStorageAccountParameters", + type: { + name: "Composite", + className: "AddStorageAccountParameters", + modelProperties: { + accessKey: { + required: true, + serializedName: "properties.accessKey", + type: { + name: "String" + } + }, + suffix: { + serializedName: "properties.suffix", + type: { + name: "String" + } + } + } + } +}; + +export const UpdateStorageAccountParameters: msRest.CompositeMapper = { + serializedName: "UpdateStorageAccountParameters", + type: { + name: "Composite", + className: "UpdateStorageAccountParameters", + modelProperties: { + accessKey: { + serializedName: "properties.accessKey", + type: { + name: "String" + } + }, + suffix: { + serializedName: "properties.suffix", + type: { + name: "String" + } + } + } + } +}; + +export const CreateOrUpdateComputePolicyParameters: msRest.CompositeMapper = { + serializedName: "CreateOrUpdateComputePolicyParameters", + type: { + name: "Composite", + className: "CreateOrUpdateComputePolicyParameters", + modelProperties: { + objectId: { + required: true, + serializedName: "properties.objectId", + type: { + name: "Uuid" + } + }, + objectType: { + required: true, + serializedName: "properties.objectType", + type: { + name: "String" + } + }, + maxDegreeOfParallelismPerJob: { + serializedName: "properties.maxDegreeOfParallelismPerJob", + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + minPriorityPerJob: { + serializedName: "properties.minPriorityPerJob", + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const UpdateComputePolicyParameters: msRest.CompositeMapper = { + serializedName: "UpdateComputePolicyParameters", + type: { + name: "Composite", + className: "UpdateComputePolicyParameters", + modelProperties: { + objectId: { + serializedName: "properties.objectId", + type: { + name: "Uuid" + } + }, + objectType: { + serializedName: "properties.objectType", + type: { + name: "String" + } + }, + maxDegreeOfParallelismPerJob: { + serializedName: "properties.maxDegreeOfParallelismPerJob", + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + minPriorityPerJob: { + serializedName: "properties.minPriorityPerJob", + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const CreateOrUpdateFirewallRuleParameters: msRest.CompositeMapper = { + serializedName: "CreateOrUpdateFirewallRuleParameters", + type: { + name: "Composite", + className: "CreateOrUpdateFirewallRuleParameters", + modelProperties: { + startIpAddress: { + required: true, + serializedName: "properties.startIpAddress", + type: { + name: "String" + } + }, + endIpAddress: { + required: true, + serializedName: "properties.endIpAddress", + type: { + name: "String" + } + } + } + } +}; + +export const UpdateFirewallRuleParameters: msRest.CompositeMapper = { + serializedName: "UpdateFirewallRuleParameters", + type: { + name: "Composite", + className: "UpdateFirewallRuleParameters", + modelProperties: { + startIpAddress: { + serializedName: "properties.startIpAddress", + type: { + name: "String" + } + }, + endIpAddress: { + serializedName: "properties.endIpAddress", + type: { + name: "String" + } + } + } + } +}; + +export const CheckNameAvailabilityParameters: msRest.CompositeMapper = { + serializedName: "CheckNameAvailabilityParameters", + type: { + name: "Composite", + className: "CheckNameAvailabilityParameters", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + required: true, + isConstant: true, + serializedName: "type", + defaultValue: 'Microsoft.DataLakeAnalytics/accounts', + type: { + name: "String" + } + } + } + } +}; + +export const ErrorAdditionalInfo: msRest.CompositeMapper = { + serializedName: "ErrorAdditionalInfo", + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + info: { + readOnly: true, + serializedName: "info", + type: { + name: "Object" + } + } + } + } +}; + +export const ErrorDetail: msRest.CompositeMapper = { + serializedName: "ErrorDetail", + type: { + name: "Composite", + className: "ErrorDetail", + modelProperties: { + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + }, + target: { + readOnly: true, + serializedName: "target", + type: { + name: "String" + } + }, + details: { + readOnly: true, + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + }, + additionalInfo: { + readOnly: true, + serializedName: "additionalInfo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } + } + } + } +}; + +export const ErrorResponse: msRest.CompositeMapper = { + serializedName: "ErrorResponse", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + } +}; + +export const DataLakeAnalyticsAccountListResult: msRest.CompositeMapper = { + serializedName: "DataLakeAnalyticsAccountListResult", + type: { + name: "Composite", + className: "DataLakeAnalyticsAccountListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataLakeAnalyticsAccountBasic" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DataLakeStoreAccountInformationListResult: msRest.CompositeMapper = { + serializedName: "DataLakeStoreAccountInformationListResult", + type: { + name: "Composite", + className: "DataLakeStoreAccountInformationListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataLakeStoreAccountInformation" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const StorageAccountInformationListResult: msRest.CompositeMapper = { + serializedName: "StorageAccountInformationListResult", + type: { + name: "Composite", + className: "StorageAccountInformationListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageAccountInformation" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const StorageContainerListResult: msRest.CompositeMapper = { + serializedName: "StorageContainerListResult", + type: { + name: "Composite", + className: "StorageContainerListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageContainer" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SasTokenInformationListResult: msRest.CompositeMapper = { + serializedName: "SasTokenInformationListResult", + type: { + name: "Composite", + className: "SasTokenInformationListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SasTokenInformation" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ComputePolicyListResult: msRest.CompositeMapper = { + serializedName: "ComputePolicyListResult", + type: { + name: "Composite", + className: "ComputePolicyListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputePolicy" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const FirewallRuleListResult: msRest.CompositeMapper = { + serializedName: "FirewallRuleListResult", + type: { + name: "Composite", + className: "FirewallRuleListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FirewallRule" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/models/operationsMappers.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/models/operationsMappers.ts new file mode 100644 index 000000000000..425066b45906 --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/models/operationsMappers.ts @@ -0,0 +1,21 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + Operation, + OperationDisplay, + OperationListResult, + OperationMetaLogSpecification, + OperationMetaMetricAvailabilitiesSpecification, + OperationMetaMetricSpecification, + OperationMetaPropertyInfo, + OperationMetaServiceSpecification +} from "../models/mappers"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/models/parameters.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/models/parameters.ts new file mode 100644 index 000000000000..1f682281cc09 --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/models/parameters.ts @@ -0,0 +1,210 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; + +export const acceptLanguage: msRest.OperationParameter = { + parameterPath: "acceptLanguage", + mapper: { + serializedName: "accept-language", + defaultValue: 'en-US', + type: { + name: "String" + } + } +}; +export const accountName: msRest.OperationURLParameter = { + parameterPath: "accountName", + mapper: { + required: true, + serializedName: "accountName", + type: { + name: "String" + } + } +}; +export const apiVersion: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; +export const computePolicyName: msRest.OperationURLParameter = { + parameterPath: "computePolicyName", + mapper: { + required: true, + serializedName: "computePolicyName", + type: { + name: "String" + } + } +}; +export const containerName: msRest.OperationURLParameter = { + parameterPath: "containerName", + mapper: { + required: true, + serializedName: "containerName", + type: { + name: "String" + } + } +}; +export const count: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "count" + ], + mapper: { + serializedName: "$count", + type: { + name: "Boolean" + } + } +}; +export const dataLakeStoreAccountName: msRest.OperationURLParameter = { + parameterPath: "dataLakeStoreAccountName", + mapper: { + required: true, + serializedName: "dataLakeStoreAccountName", + type: { + name: "String" + } + } +}; +export const filter: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "filter" + ], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; +export const firewallRuleName: msRest.OperationURLParameter = { + parameterPath: "firewallRuleName", + mapper: { + required: true, + serializedName: "firewallRuleName", + type: { + name: "String" + } + } +}; +export const location: msRest.OperationURLParameter = { + parameterPath: "location", + mapper: { + required: true, + serializedName: "location", + type: { + name: "String" + } + } +}; +export const nextPageLink: msRest.OperationURLParameter = { + parameterPath: "nextPageLink", + mapper: { + required: true, + serializedName: "nextLink", + type: { + name: "String" + } + }, + skipEncoding: true +}; +export const orderby: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "orderby" + ], + mapper: { + serializedName: "$orderby", + type: { + name: "String" + } + } +}; +export const resourceGroupName: msRest.OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + required: true, + serializedName: "resourceGroupName", + type: { + name: "String" + } + } +}; +export const select: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "select" + ], + mapper: { + serializedName: "$select", + type: { + name: "String" + } + } +}; +export const skip: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "skip" + ], + mapper: { + serializedName: "$skip", + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + } +}; +export const storageAccountName: msRest.OperationURLParameter = { + parameterPath: "storageAccountName", + mapper: { + required: true, + serializedName: "storageAccountName", + type: { + name: "String" + } + } +}; +export const subscriptionId: msRest.OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + required: true, + serializedName: "subscriptionId", + type: { + name: "String" + } + } +}; +export const top: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "top" + ], + mapper: { + serializedName: "$top", + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + } +}; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/models/storageAccountsMappers.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/models/storageAccountsMappers.ts new file mode 100644 index 000000000000..4c68633e306a --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/models/storageAccountsMappers.ts @@ -0,0 +1,31 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AddStorageAccountParameters, + BaseResource, + ComputePolicy, + DataLakeAnalyticsAccount, + DataLakeAnalyticsAccountBasic, + DataLakeStoreAccountInformation, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + FirewallRule, + HiveMetastore, + Resource, + SasTokenInformation, + SasTokenInformationListResult, + StorageAccountInformation, + StorageAccountInformationListResult, + StorageContainer, + StorageContainerListResult, + SubResource, + UpdateStorageAccountParameters, + VirtualNetworkRule +} from "../models/mappers"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/accounts.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/accounts.ts new file mode 100644 index 000000000000..5e3ed0e5e074 --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/accounts.ts @@ -0,0 +1,581 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/accountsMappers"; +import * as Parameters from "../models/parameters"; +import { DataLakeAnalyticsAccountManagementClientContext } from "../dataLakeAnalyticsAccountManagementClientContext"; + +/** Class representing a Accounts. */ +export class Accounts { + private readonly client: DataLakeAnalyticsAccountManagementClientContext; + + /** + * Create a Accounts. + * @param {DataLakeAnalyticsAccountManagementClientContext} client Reference to the service client. + */ + constructor(client: DataLakeAnalyticsAccountManagementClientContext) { + this.client = client; + } + + /** + * Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. + * This includes a link to the next page, if any. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: Models.AccountsListOptionalParams): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: Models.AccountsListOptionalParams, callback: msRest.ServiceCallback): void; + list(options?: Models.AccountsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. + * This includes a link to the next page, if any. + * @param resourceGroupName The name of the Azure resource group. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: Models.AccountsListByResourceGroupOptionalParams): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: Models.AccountsListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: Models.AccountsListByResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Creates the specified Data Lake Analytics account. This supplies the user with computation + * services for Data Lake Analytics workloads. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param parameters Parameters supplied to create a new Data Lake Analytics account. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, accountName: string, parameters: Models.CreateDataLakeAnalyticsAccountParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,accountName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets details of the specified Data Lake Analytics account. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Updates the Data Lake Analytics account object specified by the accountName with the contents of + * the account object. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, accountName: string, options?: Models.AccountsUpdateOptionalParams): Promise { + return this.beginUpdate(resourceGroupName,accountName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Begins the delete process for the Data Lake Analytics account object specified by the account + * name. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,accountName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Checks whether the specified account name is available or taken. + * @param location The resource location without whitespace. + * @param parameters Parameters supplied to check the Data Lake Analytics account name + * availability. + * @param [options] The optional parameters + * @returns Promise + */ + checkNameAvailability(location: string, parameters: Models.CheckNameAvailabilityParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location The resource location without whitespace. + * @param parameters Parameters supplied to check the Data Lake Analytics account name + * availability. + * @param callback The callback + */ + checkNameAvailability(location: string, parameters: Models.CheckNameAvailabilityParameters, callback: msRest.ServiceCallback): void; + /** + * @param location The resource location without whitespace. + * @param parameters Parameters supplied to check the Data Lake Analytics account name + * availability. + * @param options The optional parameters + * @param callback The callback + */ + checkNameAvailability(location: string, parameters: Models.CheckNameAvailabilityParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkNameAvailability(location: string, parameters: Models.CheckNameAvailabilityParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + parameters, + options + }, + checkNameAvailabilityOperationSpec, + callback) as Promise; + } + + /** + * Creates the specified Data Lake Analytics account. This supplies the user with computation + * services for Data Lake Analytics workloads. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param parameters Parameters supplied to create a new Data Lake Analytics account. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreate(resourceGroupName: string, accountName: string, parameters: Models.CreateDataLakeAnalyticsAccountParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + parameters, + options + }, + beginCreateOperationSpec, + options); + } + + /** + * Updates the Data Lake Analytics account object specified by the accountName with the contents of + * the account object. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, accountName: string, options?: Models.AccountsBeginUpdateOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * Begins the delete process for the Data Lake Analytics account object specified by the account + * name. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. + * This includes a link to the next page, if any. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.AccountsListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.AccountsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.AccountsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. + * This includes a link to the next page, if any. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: Models.AccountsListByResourceGroupNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: Models.AccountsListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.AccountsListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/accounts", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.select, + Parameters.orderby, + Parameters.count, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataLakeAnalyticsAccountListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.select, + Parameters.orderby, + Parameters.count, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataLakeAnalyticsAccountListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataLakeAnalyticsAccount + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/locations/{location}/checkNameAvailability", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CheckNameAvailabilityParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.NameAvailabilityInformation + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginCreateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CreateDataLakeAnalyticsAccountParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DataLakeAnalyticsAccount + }, + 201: { + bodyMapper: Mappers.DataLakeAnalyticsAccount + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.UpdateDataLakeAnalyticsAccountParameters + }, + responses: { + 200: { + bodyMapper: Mappers.DataLakeAnalyticsAccount + }, + 201: { + bodyMapper: Mappers.DataLakeAnalyticsAccount + }, + 202: { + bodyMapper: Mappers.DataLakeAnalyticsAccount + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.select, + Parameters.orderby, + Parameters.count, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataLakeAnalyticsAccountListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.select, + Parameters.orderby, + Parameters.count, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataLakeAnalyticsAccountListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/computePolicies.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/computePolicies.ts new file mode 100644 index 000000000000..2477c2ce11e4 --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/computePolicies.ts @@ -0,0 +1,410 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/computePoliciesMappers"; +import * as Parameters from "../models/parameters"; +import { DataLakeAnalyticsAccountManagementClientContext } from "../dataLakeAnalyticsAccountManagementClientContext"; + +/** Class representing a ComputePolicies. */ +export class ComputePolicies { + private readonly client: DataLakeAnalyticsAccountManagementClientContext; + + /** + * Create a ComputePolicies. + * @param {DataLakeAnalyticsAccountManagementClientContext} client Reference to the service client. + */ + constructor(client: DataLakeAnalyticsAccountManagementClientContext) { + this.client = client; + } + + /** + * Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. + * An account supports, at most, 50 policies + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAccount(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param callback The callback + */ + listByAccount(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param options The optional parameters + * @param callback The callback + */ + listByAccount(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAccount(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + listByAccountOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates the specified compute policy. During update, the compute policy with the + * specified name will be replaced with this new compute policy. An account supports, at most, 50 + * policies + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param computePolicyName The name of the compute policy to create or update. + * @param parameters Parameters supplied to create or update the compute policy. The max degree of + * parallelism per job property, min priority per job property, or both must be present. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, accountName: string, computePolicyName: string, parameters: Models.CreateOrUpdateComputePolicyParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param computePolicyName The name of the compute policy to create or update. + * @param parameters Parameters supplied to create or update the compute policy. The max degree of + * parallelism per job property, min priority per job property, or both must be present. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, accountName: string, computePolicyName: string, parameters: Models.CreateOrUpdateComputePolicyParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param computePolicyName The name of the compute policy to create or update. + * @param parameters Parameters supplied to create or update the compute policy. The max degree of + * parallelism per job property, min priority per job property, or both must be present. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, accountName: string, computePolicyName: string, parameters: Models.CreateOrUpdateComputePolicyParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, accountName: string, computePolicyName: string, parameters: Models.CreateOrUpdateComputePolicyParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + computePolicyName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Gets the specified Data Lake Analytics compute policy. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param computePolicyName The name of the compute policy to retrieve. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, accountName: string, computePolicyName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param computePolicyName The name of the compute policy to retrieve. + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, computePolicyName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param computePolicyName The name of the compute policy to retrieve. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, computePolicyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, computePolicyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + computePolicyName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Updates the specified compute policy. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param computePolicyName The name of the compute policy to update. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, accountName: string, computePolicyName: string, options?: Models.ComputePoliciesUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param computePolicyName The name of the compute policy to update. + * @param callback The callback + */ + update(resourceGroupName: string, accountName: string, computePolicyName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param computePolicyName The name of the compute policy to update. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, accountName: string, computePolicyName: string, options: Models.ComputePoliciesUpdateOptionalParams, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, accountName: string, computePolicyName: string, options?: Models.ComputePoliciesUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + computePolicyName, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified compute policy from the specified Data Lake Analytics account + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param computePolicyName The name of the compute policy to delete. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, accountName: string, computePolicyName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param computePolicyName The name of the compute policy to delete. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, accountName: string, computePolicyName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param computePolicyName The name of the compute policy to delete. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, accountName: string, computePolicyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, accountName: string, computePolicyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + computePolicyName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. + * An account supports, at most, 50 policies + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ComputePolicyListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies/{computePolicyName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.computePolicyName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CreateOrUpdateComputePolicyParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ComputePolicy + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies/{computePolicyName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.computePolicyName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ComputePolicy + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies/{computePolicyName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.computePolicyName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.UpdateComputePolicyParameters + }, + responses: { + 200: { + bodyMapper: Mappers.ComputePolicy + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies/{computePolicyName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.computePolicyName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ComputePolicyListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/dataLakeStoreAccounts.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/dataLakeStoreAccounts.ts new file mode 100644 index 000000000000..321c4c6ccb18 --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/dataLakeStoreAccounts.ts @@ -0,0 +1,343 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/dataLakeStoreAccountsMappers"; +import * as Parameters from "../models/parameters"; +import { DataLakeAnalyticsAccountManagementClientContext } from "../dataLakeAnalyticsAccountManagementClientContext"; + +/** Class representing a DataLakeStoreAccounts. */ +export class DataLakeStoreAccounts { + private readonly client: DataLakeAnalyticsAccountManagementClientContext; + + /** + * Create a DataLakeStoreAccounts. + * @param {DataLakeAnalyticsAccountManagementClientContext} client Reference to the service client. + */ + constructor(client: DataLakeAnalyticsAccountManagementClientContext) { + this.client = client; + } + + /** + * Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics + * account. The response includes a link to the next page, if any. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAccount(resourceGroupName: string, accountName: string, options?: Models.DataLakeStoreAccountsListByAccountOptionalParams): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param callback The callback + */ + listByAccount(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param options The optional parameters + * @param callback The callback + */ + listByAccount(resourceGroupName: string, accountName: string, options: Models.DataLakeStoreAccountsListByAccountOptionalParams, callback: msRest.ServiceCallback): void; + listByAccount(resourceGroupName: string, accountName: string, options?: Models.DataLakeStoreAccountsListByAccountOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + listByAccountOperationSpec, + callback) as Promise; + } + + /** + * Updates the specified Data Lake Analytics account to include the additional Data Lake Store + * account. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param dataLakeStoreAccountName The name of the Data Lake Store account to add. + * @param [options] The optional parameters + * @returns Promise + */ + add(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options?: Models.DataLakeStoreAccountsAddOptionalParams): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param dataLakeStoreAccountName The name of the Data Lake Store account to add. + * @param callback The callback + */ + add(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param dataLakeStoreAccountName The name of the Data Lake Store account to add. + * @param options The optional parameters + * @param callback The callback + */ + add(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options: Models.DataLakeStoreAccountsAddOptionalParams, callback: msRest.ServiceCallback): void; + add(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options?: Models.DataLakeStoreAccountsAddOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + dataLakeStoreAccountName, + options + }, + addOperationSpec, + callback); + } + + /** + * Gets the specified Data Lake Store account details in the specified Data Lake Analytics account. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param dataLakeStoreAccountName The name of the Data Lake Store account to retrieve + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param dataLakeStoreAccountName The name of the Data Lake Store account to retrieve + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param dataLakeStoreAccountName The name of the Data Lake Store account to retrieve + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + dataLakeStoreAccountName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Updates the Data Lake Analytics account specified to remove the specified Data Lake Store + * account. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param dataLakeStoreAccountName The name of the Data Lake Store account to remove + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param dataLakeStoreAccountName The name of the Data Lake Store account to remove + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param dataLakeStoreAccountName The name of the Data Lake Store account to remove + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + dataLakeStoreAccountName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics + * account. The response includes a link to the next page, if any. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAccountNext(nextPageLink: string, options?: Models.DataLakeStoreAccountsListByAccountNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAccountNext(nextPageLink: string, options: Models.DataLakeStoreAccountsListByAccountNextOptionalParams, callback: msRest.ServiceCallback): void; + listByAccountNext(nextPageLink: string, options?: Models.DataLakeStoreAccountsListByAccountNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/dataLakeStoreAccounts", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.select, + Parameters.orderby, + Parameters.count, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataLakeStoreAccountInformationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const addOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/dataLakeStoreAccounts/{dataLakeStoreAccountName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.dataLakeStoreAccountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.AddDataLakeStoreParameters + }, + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/dataLakeStoreAccounts/{dataLakeStoreAccountName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.dataLakeStoreAccountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataLakeStoreAccountInformation + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/dataLakeStoreAccounts/{dataLakeStoreAccountName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.dataLakeStoreAccountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.select, + Parameters.orderby, + Parameters.count, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataLakeStoreAccountInformationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/firewallRules.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/firewallRules.ts new file mode 100644 index 000000000000..307627c1b1bf --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/firewallRules.ts @@ -0,0 +1,404 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/firewallRulesMappers"; +import * as Parameters from "../models/parameters"; +import { DataLakeAnalyticsAccountManagementClientContext } from "../dataLakeAnalyticsAccountManagementClientContext"; + +/** Class representing a FirewallRules. */ +export class FirewallRules { + private readonly client: DataLakeAnalyticsAccountManagementClientContext; + + /** + * Create a FirewallRules. + * @param {DataLakeAnalyticsAccountManagementClientContext} client Reference to the service client. + */ + constructor(client: DataLakeAnalyticsAccountManagementClientContext) { + this.client = client; + } + + /** + * Lists the Data Lake Analytics firewall rules within the specified Data Lake Analytics account. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAccount(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param callback The callback + */ + listByAccount(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param options The optional parameters + * @param callback The callback + */ + listByAccount(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAccount(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + listByAccountOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates the specified firewall rule. During update, the firewall rule with the + * specified name will be replaced with this new firewall rule. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param firewallRuleName The name of the firewall rule to create or update. + * @param parameters Parameters supplied to create or update the firewall rule. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, accountName: string, firewallRuleName: string, parameters: Models.CreateOrUpdateFirewallRuleParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param firewallRuleName The name of the firewall rule to create or update. + * @param parameters Parameters supplied to create or update the firewall rule. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, accountName: string, firewallRuleName: string, parameters: Models.CreateOrUpdateFirewallRuleParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param firewallRuleName The name of the firewall rule to create or update. + * @param parameters Parameters supplied to create or update the firewall rule. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, accountName: string, firewallRuleName: string, parameters: Models.CreateOrUpdateFirewallRuleParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, accountName: string, firewallRuleName: string, parameters: Models.CreateOrUpdateFirewallRuleParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + firewallRuleName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Gets the specified Data Lake Analytics firewall rule. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param firewallRuleName The name of the firewall rule to retrieve. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, accountName: string, firewallRuleName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param firewallRuleName The name of the firewall rule to retrieve. + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, firewallRuleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param firewallRuleName The name of the firewall rule to retrieve. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, firewallRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, firewallRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + firewallRuleName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Updates the specified firewall rule. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param firewallRuleName The name of the firewall rule to update. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, accountName: string, firewallRuleName: string, options?: Models.FirewallRulesUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param firewallRuleName The name of the firewall rule to update. + * @param callback The callback + */ + update(resourceGroupName: string, accountName: string, firewallRuleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param firewallRuleName The name of the firewall rule to update. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, accountName: string, firewallRuleName: string, options: Models.FirewallRulesUpdateOptionalParams, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, accountName: string, firewallRuleName: string, options?: Models.FirewallRulesUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + firewallRuleName, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified firewall rule from the specified Data Lake Analytics account + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param firewallRuleName The name of the firewall rule to delete. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, accountName: string, firewallRuleName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param firewallRuleName The name of the firewall rule to delete. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, accountName: string, firewallRuleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param firewallRuleName The name of the firewall rule to delete. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, accountName: string, firewallRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, accountName: string, firewallRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + firewallRuleName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Lists the Data Lake Analytics firewall rules within the specified Data Lake Analytics account. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.FirewallRuleListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.firewallRuleName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CreateOrUpdateFirewallRuleParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.FirewallRule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.firewallRuleName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.FirewallRule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.firewallRuleName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.UpdateFirewallRuleParameters + }, + responses: { + 200: { + bodyMapper: Mappers.FirewallRule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.firewallRuleName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.FirewallRuleListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/index.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/index.ts new file mode 100644 index 000000000000..08994582c382 --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/index.ts @@ -0,0 +1,16 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export * from "./accounts"; +export * from "./dataLakeStoreAccounts"; +export * from "./storageAccounts"; +export * from "./computePolicies"; +export * from "./firewallRules"; +export * from "./operations"; +export * from "./locations"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/locations.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/locations.ts new file mode 100644 index 000000000000..de472e5794ad --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/locations.ts @@ -0,0 +1,83 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/locationsMappers"; +import * as Parameters from "../models/parameters"; +import { DataLakeAnalyticsAccountManagementClientContext } from "../dataLakeAnalyticsAccountManagementClientContext"; + +/** Class representing a Locations. */ +export class Locations { + private readonly client: DataLakeAnalyticsAccountManagementClientContext; + + /** + * Create a Locations. + * @param {DataLakeAnalyticsAccountManagementClientContext} client Reference to the service client. + */ + constructor(client: DataLakeAnalyticsAccountManagementClientContext) { + this.client = client; + } + + /** + * Gets subscription-level properties and limits for Data Lake Analytics specified by resource + * location. + * @param location The resource location without whitespace. + * @param [options] The optional parameters + * @returns Promise + */ + getCapability(location: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location The resource location without whitespace. + * @param callback The callback + */ + getCapability(location: string, callback: msRest.ServiceCallback): void; + /** + * @param location The resource location without whitespace. + * @param options The optional parameters + * @param callback The callback + */ + getCapability(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getCapability(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + options + }, + getCapabilityOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getCapabilityOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/locations/{location}/capability", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CapabilityInformation + }, + 404: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/operations.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/operations.ts new file mode 100644 index 000000000000..4cdbe79764b7 --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/operations.ts @@ -0,0 +1,73 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/operationsMappers"; +import * as Parameters from "../models/parameters"; +import { DataLakeAnalyticsAccountManagementClientContext } from "../dataLakeAnalyticsAccountManagementClientContext"; + +/** Class representing a Operations. */ +export class Operations { + private readonly client: DataLakeAnalyticsAccountManagementClientContext; + + /** + * Create a Operations. + * @param {DataLakeAnalyticsAccountManagementClientContext} client Reference to the service client. + */ + constructor(client: DataLakeAnalyticsAccountManagementClientContext) { + this.client = client; + } + + /** + * Lists all of the available Data Lake Analytics REST API operations. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.DataLakeAnalytics/operations", + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/storageAccounts.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/storageAccounts.ts new file mode 100644 index 000000000000..3c9b20ca8809 --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/storageAccounts.ts @@ -0,0 +1,738 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/storageAccountsMappers"; +import * as Parameters from "../models/parameters"; +import { DataLakeAnalyticsAccountManagementClientContext } from "../dataLakeAnalyticsAccountManagementClientContext"; + +/** Class representing a StorageAccounts. */ +export class StorageAccounts { + private readonly client: DataLakeAnalyticsAccountManagementClientContext; + + /** + * Create a StorageAccounts. + * @param {DataLakeAnalyticsAccountManagementClientContext} client Reference to the service client. + */ + constructor(client: DataLakeAnalyticsAccountManagementClientContext) { + this.client = client; + } + + /** + * Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake + * Analytics account. The response includes a link to the next page, if any. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAccount(resourceGroupName: string, accountName: string, options?: Models.StorageAccountsListByAccountOptionalParams): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param callback The callback + */ + listByAccount(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param options The optional parameters + * @param callback The callback + */ + listByAccount(resourceGroupName: string, accountName: string, options: Models.StorageAccountsListByAccountOptionalParams, callback: msRest.ServiceCallback): void; + listByAccount(resourceGroupName: string, accountName: string, options?: Models.StorageAccountsListByAccountOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + listByAccountOperationSpec, + callback) as Promise; + } + + /** + * Updates the specified Data Lake Analytics account to add an Azure Storage account. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param storageAccountName The name of the Azure Storage account to add + * @param parameters The parameters containing the access key and optional suffix for the Azure + * Storage Account. + * @param [options] The optional parameters + * @returns Promise + */ + add(resourceGroupName: string, accountName: string, storageAccountName: string, parameters: Models.AddStorageAccountParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param storageAccountName The name of the Azure Storage account to add + * @param parameters The parameters containing the access key and optional suffix for the Azure + * Storage Account. + * @param callback The callback + */ + add(resourceGroupName: string, accountName: string, storageAccountName: string, parameters: Models.AddStorageAccountParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param storageAccountName The name of the Azure Storage account to add + * @param parameters The parameters containing the access key and optional suffix for the Azure + * Storage Account. + * @param options The optional parameters + * @param callback The callback + */ + add(resourceGroupName: string, accountName: string, storageAccountName: string, parameters: Models.AddStorageAccountParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + add(resourceGroupName: string, accountName: string, storageAccountName: string, parameters: Models.AddStorageAccountParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + storageAccountName, + parameters, + options + }, + addOperationSpec, + callback); + } + + /** + * Gets the specified Azure Storage account linked to the given Data Lake Analytics account. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param storageAccountName The name of the Azure Storage account for which to retrieve the + * details. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, accountName: string, storageAccountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param storageAccountName The name of the Azure Storage account for which to retrieve the + * details. + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, storageAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param storageAccountName The name of the Azure Storage account for which to retrieve the + * details. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, storageAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, storageAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + storageAccountName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as + * the access key and/or suffix. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param storageAccountName The Azure Storage account to modify + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, accountName: string, storageAccountName: string, options?: Models.StorageAccountsUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param storageAccountName The Azure Storage account to modify + * @param callback The callback + */ + update(resourceGroupName: string, accountName: string, storageAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param storageAccountName The Azure Storage account to modify + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, accountName: string, storageAccountName: string, options: Models.StorageAccountsUpdateOptionalParams, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, accountName: string, storageAccountName: string, options?: Models.StorageAccountsUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + storageAccountName, + options + }, + updateOperationSpec, + callback); + } + + /** + * Updates the specified Data Lake Analytics account to remove an Azure Storage account. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param storageAccountName The name of the Azure Storage account to remove + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, accountName: string, storageAccountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param storageAccountName The name of the Azure Storage account to remove + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, accountName: string, storageAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param storageAccountName The name of the Azure Storage account to remove + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, accountName: string, storageAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, accountName: string, storageAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + storageAccountName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics + * and Azure Storage account combination. The response includes a link to the next page of results, + * if any. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param storageAccountName The name of the Azure storage account from which to list blob + * containers. + * @param [options] The optional parameters + * @returns Promise + */ + listStorageContainers(resourceGroupName: string, accountName: string, storageAccountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param storageAccountName The name of the Azure storage account from which to list blob + * containers. + * @param callback The callback + */ + listStorageContainers(resourceGroupName: string, accountName: string, storageAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param storageAccountName The name of the Azure storage account from which to list blob + * containers. + * @param options The optional parameters + * @param callback The callback + */ + listStorageContainers(resourceGroupName: string, accountName: string, storageAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listStorageContainers(resourceGroupName: string, accountName: string, storageAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + storageAccountName, + options + }, + listStorageContainersOperationSpec, + callback) as Promise; + } + + /** + * Gets the specified Azure Storage container associated with the given Data Lake Analytics and + * Azure Storage accounts. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param storageAccountName The name of the Azure storage account from which to retrieve the blob + * container. + * @param containerName The name of the Azure storage container to retrieve + * @param [options] The optional parameters + * @returns Promise + */ + getStorageContainer(resourceGroupName: string, accountName: string, storageAccountName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param storageAccountName The name of the Azure storage account from which to retrieve the blob + * container. + * @param containerName The name of the Azure storage container to retrieve + * @param callback The callback + */ + getStorageContainer(resourceGroupName: string, accountName: string, storageAccountName: string, containerName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param storageAccountName The name of the Azure storage account from which to retrieve the blob + * container. + * @param containerName The name of the Azure storage container to retrieve + * @param options The optional parameters + * @param callback The callback + */ + getStorageContainer(resourceGroupName: string, accountName: string, storageAccountName: string, containerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getStorageContainer(resourceGroupName: string, accountName: string, storageAccountName: string, containerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + storageAccountName, + containerName, + options + }, + getStorageContainerOperationSpec, + callback) as Promise; + } + + /** + * Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account + * and container combination. + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param storageAccountName The name of the Azure storage account for which the SAS token is being + * requested. + * @param containerName The name of the Azure storage container for which the SAS token is being + * requested. + * @param [options] The optional parameters + * @returns Promise + */ + listSasTokens(resourceGroupName: string, accountName: string, storageAccountName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param storageAccountName The name of the Azure storage account for which the SAS token is being + * requested. + * @param containerName The name of the Azure storage container for which the SAS token is being + * requested. + * @param callback The callback + */ + listSasTokens(resourceGroupName: string, accountName: string, storageAccountName: string, containerName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param storageAccountName The name of the Azure storage account for which the SAS token is being + * requested. + * @param containerName The name of the Azure storage container for which the SAS token is being + * requested. + * @param options The optional parameters + * @param callback The callback + */ + listSasTokens(resourceGroupName: string, accountName: string, storageAccountName: string, containerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSasTokens(resourceGroupName: string, accountName: string, storageAccountName: string, containerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + storageAccountName, + containerName, + options + }, + listSasTokensOperationSpec, + callback) as Promise; + } + + /** + * Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake + * Analytics account. The response includes a link to the next page, if any. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAccountNext(nextPageLink: string, options?: Models.StorageAccountsListByAccountNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAccountNext(nextPageLink: string, options: Models.StorageAccountsListByAccountNextOptionalParams, callback: msRest.ServiceCallback): void; + listByAccountNext(nextPageLink: string, options?: Models.StorageAccountsListByAccountNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAccountNextOperationSpec, + callback) as Promise; + } + + /** + * Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics + * and Azure Storage account combination. The response includes a link to the next page of results, + * if any. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listStorageContainersNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listStorageContainersNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listStorageContainersNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listStorageContainersNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listStorageContainersNextOperationSpec, + callback) as Promise; + } + + /** + * Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account + * and container combination. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSasTokensNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSasTokensNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSasTokensNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSasTokensNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSasTokensNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.select, + Parameters.orderby, + Parameters.count, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.StorageAccountInformationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const addOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.storageAccountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.AddStorageAccountParameters, + required: true + } + }, + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.storageAccountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.StorageAccountInformation + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.storageAccountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.UpdateStorageAccountParameters + }, + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.storageAccountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listStorageContainersOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}/containers", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.storageAccountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.StorageContainerListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getStorageContainerOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}/containers/{containerName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.storageAccountName, + Parameters.containerName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.StorageContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listSasTokensOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}/containers/{containerName}/listSasTokens", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.storageAccountName, + Parameters.containerName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SasTokenInformationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.select, + Parameters.orderby, + Parameters.count, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.StorageAccountInformationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listStorageContainersNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.StorageContainerListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listSasTokensNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SasTokenInformationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/tsconfig.json b/sdk/datalake-analytics/arm-datalake-analytics/tsconfig.json new file mode 100644 index 000000000000..422b584abd5e --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "es6", + "moduleResolution": "node", + "strict": true, + "target": "es5", + "sourceMap": true, + "declarationMap": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "lib": ["es6", "dom"], + "declaration": true, + "outDir": "./esm", + "importHelpers": true + }, + "include": ["./src/**/*.ts"], + "exclude": ["node_modules"] +}