diff --git a/packages/@azure/arm-datalake-analytics/.npmignore b/packages/@azure/arm-datalake-analytics/.npmignore new file mode 100644 index 000000000000..a07a455ac10c --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/.npmignore @@ -0,0 +1,35 @@ +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/arm-datalake-analytics/LICENSE.txt b/packages/@azure/arm-datalake-analytics/LICENSE.txt new file mode 100644 index 000000000000..5431ba98b936 --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2018 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/packages/@azure/arm-datalake-analytics/README.md b/packages/@azure/arm-datalake-analytics/README.md new file mode 100644 index 000000000000..8ea78fded4d6 --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/README.md @@ -0,0 +1,79 @@ +# 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 +``` +npm install @azure/arm-datalake-analytics +``` + + +## How to use + +### nodejs - Authentication, client creation and list accounts as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { DataLakeAnalyticsAccountManagementClient, DataLakeAnalyticsAccountManagementModels, DataLakeAnalyticsAccountManagementMappers } from "@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. + +- index.html +```html + + + + @azure/arm-datalake-analytics sample + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-datalake-analytics/lib/account/dataLakeAnalyticsAccountManagementClient.ts b/packages/@azure/arm-datalake-analytics/lib/account/dataLakeAnalyticsAccountManagementClient.ts new file mode 100644 index 000000000000..945488151c51 --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/lib/account/dataLakeAnalyticsAccountManagementClient.ts @@ -0,0 +1,55 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 "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/packages/@azure/arm-datalake-analytics/lib/account/dataLakeAnalyticsAccountManagementClientContext.ts b/packages/@azure/arm-datalake-analytics/lib/account/dataLakeAnalyticsAccountManagementClientContext.ts new file mode 100644 index 000000000000..555a5aabb15f --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/lib/account/dataLakeAnalyticsAccountManagementClientContext.ts @@ -0,0 +1,66 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 "ms-rest-js"; +import * as msRestAzure from "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; + + acceptLanguage: string; + + longRunningOperationRetryTimeout: number; + + /** + * 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 = {}; + } + 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; + + this.addUserAgentInfo(`${packageName}/${packageVersion}`); + 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/packages/@azure/arm-datalake-analytics/lib/account/models/accountsMappers.ts b/packages/@azure/arm-datalake-analytics/lib/account/models/accountsMappers.ts new file mode 100644 index 000000000000..429b0ec454ed --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/lib/account/models/accountsMappers.ts @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + DataLakeAnalyticsAccountListResult, + DataLakeAnalyticsAccountBasic, + Resource, + BaseResource, + CloudError, + CreateDataLakeAnalyticsAccountParameters, + AddDataLakeStoreWithAccountParameters, + AddStorageAccountWithAccountParameters, + CreateComputePolicyWithAccountParameters, + CreateFirewallRuleWithAccountParameters, + DataLakeAnalyticsAccount, + DataLakeStoreAccountInformation, + SubResource, + StorageAccountInformation, + ComputePolicy, + FirewallRule, + UpdateDataLakeAnalyticsAccountParameters, + UpdateDataLakeStoreWithAccountParameters, + UpdateStorageAccountWithAccountParameters, + UpdateComputePolicyWithAccountParameters, + UpdateFirewallRuleWithAccountParameters, + CheckNameAvailabilityParameters, + NameAvailabilityInformation, + StorageContainer +} from "../models/mappers"; + diff --git a/packages/@azure/arm-datalake-analytics/lib/account/models/computePoliciesMappers.ts b/packages/@azure/arm-datalake-analytics/lib/account/models/computePoliciesMappers.ts new file mode 100644 index 000000000000..40e52df0fa4d --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/lib/account/models/computePoliciesMappers.ts @@ -0,0 +1,27 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ComputePolicyListResult, + ComputePolicy, + SubResource, + BaseResource, + CloudError, + CreateOrUpdateComputePolicyParameters, + UpdateComputePolicyParameters, + Resource, + DataLakeStoreAccountInformation, + StorageAccountInformation, + FirewallRule, + DataLakeAnalyticsAccount, + DataLakeAnalyticsAccountBasic, + StorageContainer +} from "../models/mappers"; + diff --git a/packages/@azure/arm-datalake-analytics/lib/account/models/dataLakeStoreAccountsMappers.ts b/packages/@azure/arm-datalake-analytics/lib/account/models/dataLakeStoreAccountsMappers.ts new file mode 100644 index 000000000000..c2ea001762a1 --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/lib/account/models/dataLakeStoreAccountsMappers.ts @@ -0,0 +1,26 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + DataLakeStoreAccountInformationListResult, + DataLakeStoreAccountInformation, + SubResource, + BaseResource, + CloudError, + AddDataLakeStoreParameters, + Resource, + StorageAccountInformation, + ComputePolicy, + FirewallRule, + DataLakeAnalyticsAccount, + DataLakeAnalyticsAccountBasic, + StorageContainer +} from "../models/mappers"; + diff --git a/packages/@azure/arm-datalake-analytics/lib/account/models/firewallRulesMappers.ts b/packages/@azure/arm-datalake-analytics/lib/account/models/firewallRulesMappers.ts new file mode 100644 index 000000000000..9ecf4be993ea --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/lib/account/models/firewallRulesMappers.ts @@ -0,0 +1,27 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + FirewallRuleListResult, + FirewallRule, + SubResource, + BaseResource, + CloudError, + CreateOrUpdateFirewallRuleParameters, + UpdateFirewallRuleParameters, + Resource, + DataLakeStoreAccountInformation, + StorageAccountInformation, + ComputePolicy, + DataLakeAnalyticsAccount, + DataLakeAnalyticsAccountBasic, + StorageContainer +} from "../models/mappers"; + diff --git a/packages/@azure/arm-datalake-analytics/lib/account/models/index.ts b/packages/@azure/arm-datalake-analytics/lib/account/models/index.ts new file mode 100644 index 000000000000..1d581a4c898f --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/lib/account/models/index.ts @@ -0,0 +1,2299 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 "ms-rest-azure-js"; +import * as msRest from "ms-rest-js"; + +export { BaseResource, CloudError }; + + +/** + * @interface + * An interface representing Resource. + * The resource model definition. + * + * @extends BaseResource + */ +export interface Resource extends BaseResource { + /** + * @member {string} [id] The resource identifer. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] The resource name. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] The resource type. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {string} [location] The resource location. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly location?: string; + /** + * @member {{ [propertyName: string]: string }} [tags] The resource tags. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing SubResource. + * The resource model definition for a nested resource. + * + * @extends BaseResource + */ +export interface SubResource extends BaseResource { + /** + * @member {string} [id] The resource identifier. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] The resource name. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] The resource type. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; +} + +/** + * @interface + * An interface representing DataLakeStoreAccountInformation. + * Data Lake Store account information. + * + * @extends SubResource + */ +export interface DataLakeStoreAccountInformation extends SubResource { + /** + * @member {string} [suffix] 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; +} + +/** + * @interface + * An interface representing StorageAccountInformation. + * Azure Storage account information. + * + * @extends SubResource + */ +export interface StorageAccountInformation extends SubResource { + /** + * @member {string} [suffix] 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; +} + +/** + * @interface + * An interface representing ComputePolicy. + * Data Lake Analytics compute policy information. + * + * @extends SubResource + */ +export interface ComputePolicy extends SubResource { + /** + * @member {string} [objectId] 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; + /** + * @member {AADObjectType} [objectType] 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; + /** + * @member {number} [maxDegreeOfParallelismPerJob] 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; + /** + * @member {number} [minPriorityPerJob] 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; +} + +/** + * @interface + * An interface representing FirewallRule. + * Data Lake Analytics firewall rule information. + * + * @extends SubResource + */ +export interface FirewallRule extends SubResource { + /** + * @member {string} [startIpAddress] 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; + /** + * @member {string} [endIpAddress] 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; +} + +/** + * @interface + * An interface representing DataLakeAnalyticsAccount. + * A Data Lake Analytics account object, containing all information associated + * with the named Data Lake Analytics account. + * + * @extends Resource + */ +export interface DataLakeAnalyticsAccount extends Resource { + /** + * @member {string} [accountId] 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; + /** + * @member {DataLakeAnalyticsAccountStatus} [provisioningState] 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; + /** + * @member {DataLakeAnalyticsAccountState} [state] 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; + /** + * @member {Date} [creationTime] The account creation time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly creationTime?: Date; + /** + * @member {Date} [lastModifiedTime] The account last modified time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastModifiedTime?: Date; + /** + * @member {string} [endpoint] 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; + /** + * @member {string} [defaultDataLakeStoreAccount] 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; + /** + * @member {DataLakeStoreAccountInformation[]} [dataLakeStoreAccounts] 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[]; + /** + * @member {StorageAccountInformation[]} [storageAccounts] 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[]; + /** + * @member {ComputePolicy[]} [computePolicies] 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[]; + /** + * @member {FirewallRule[]} [firewallRules] 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[]; + /** + * @member {FirewallState} [firewallState] 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; + /** + * @member {FirewallAllowAzureIpsState} [firewallAllowAzureIps] 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; + /** + * @member {TierType} [newTier] 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; + /** + * @member {TierType} [currentTier] 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; + /** + * @member {number} [maxJobCount] The maximum supported jobs running under + * the account at the same time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.**. Default value: 3 . + */ + readonly maxJobCount?: number; + /** + * @member {number} [systemMaxJobCount] 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; + /** + * @member {number} [maxDegreeOfParallelism] The maximum supported degree of + * parallelism for this account. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.**. Default value: 30 . + */ + readonly maxDegreeOfParallelism?: number; + /** + * @member {number} [systemMaxDegreeOfParallelism] 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; + /** + * @member {number} [maxDegreeOfParallelismPerJob] 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; + /** + * @member {number} [minPriorityPerJob] 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; + /** + * @member {number} [queryStoreRetention] The number of days that job + * metadata is retained. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.**. Default value: 30 . + */ + readonly queryStoreRetention?: number; +} + +/** + * @interface + * An interface representing DataLakeAnalyticsAccountBasic. + * A Data Lake Analytics account object, containing all information associated + * with the named Data Lake Analytics account. + * + * @extends Resource + */ +export interface DataLakeAnalyticsAccountBasic extends Resource { + /** + * @member {string} [accountId] 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; + /** + * @member {DataLakeAnalyticsAccountStatus} [provisioningState] 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; + /** + * @member {DataLakeAnalyticsAccountState} [state] 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; + /** + * @member {Date} [creationTime] The account creation time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly creationTime?: Date; + /** + * @member {Date} [lastModifiedTime] The account last modified time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastModifiedTime?: Date; + /** + * @member {string} [endpoint] 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; +} + +/** + * @interface + * An interface representing StorageContainer. + * Azure Storage blob container information. + * + * @extends SubResource + */ +export interface StorageContainer extends SubResource { + /** + * @member {Date} [lastModifiedTime] 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; +} + +/** + * @interface + * An interface representing SasTokenInformation. + * SAS token information. + * + */ +export interface SasTokenInformation { + /** + * @member {string} [accessToken] 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; +} + +/** + * @interface + * An interface representing OperationDisplay. + * The display information for a particular operation. + * + */ +export interface OperationDisplay { + /** + * @member {string} [provider] The resource provider of the operation. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provider?: string; + /** + * @member {string} [resource] The resource type of the operation. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly resource?: string; + /** + * @member {string} [operation] A friendly name of the operation. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly operation?: string; + /** + * @member {string} [description] A friendly description of the operation. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly description?: string; +} + +/** + * @interface + * An interface representing Operation. + * An available operation for Data Lake Analytics. + * + */ +export interface Operation { + /** + * @member {string} [name] The name of the operation. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {OperationDisplay} [display] The display information for the + * operation. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly display?: OperationDisplay; + /** + * @member {OperationOrigin} [origin] 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; +} + +/** + * @interface + * An interface representing OperationListResult. + * The list of available operations for Data Lake Analytics. + * + */ +export interface OperationListResult { + /** + * @member {Operation[]} [value] The results of the list operation. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly value?: Operation[]; + /** + * @member {string} [nextLink] 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 + * An interface representing CapabilityInformation. + * Subscription-level properties and limits for Data Lake Analytics. + * + */ +export interface CapabilityInformation { + /** + * @member {string} [subscriptionId] 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; + /** + * @member {SubscriptionState} [state] 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; + /** + * @member {number} [maxAccountCount] 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; + /** + * @member {number} [accountCount] 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; + /** + * @member {boolean} [migrationState] 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; +} + +/** + * @interface + * An interface representing NameAvailabilityInformation. + * Data Lake Analytics account name availability result information. + * + */ +export interface NameAvailabilityInformation { + /** + * @member {boolean} [nameAvailable] 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; + /** + * @member {string} [reason] 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; + /** + * @member {string} [message] 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; +} + +/** + * @interface + * An interface representing AddDataLakeStoreWithAccountParameters. + * The parameters used to add a new Data Lake Store account while creating a + * new Data Lake Analytics account. + * + */ +export interface AddDataLakeStoreWithAccountParameters { + /** + * @member {string} name The unique name of the Data Lake Store account to + * add. + */ + name: string; + /** + * @member {string} [suffix] The optional suffix for the Data Lake Store + * account. + */ + suffix?: string; +} + +/** + * @interface + * An interface representing AddStorageAccountWithAccountParameters. + * The parameters used to add a new Azure Storage account while creating a new + * Data Lake Analytics account. + * + */ +export interface AddStorageAccountWithAccountParameters { + /** + * @member {string} name The unique name of the Azure Storage account to add. + */ + name: string; + /** + * @member {string} accessKey The access key associated with this Azure + * Storage account that will be used to connect to it. + */ + accessKey: string; + /** + * @member {string} [suffix] The optional suffix for the storage account. + */ + suffix?: string; +} + +/** + * @interface + * An interface representing CreateComputePolicyWithAccountParameters. + * The parameters used to create a new compute policy while creating a new Data + * Lake Analytics account. + * + */ +export interface CreateComputePolicyWithAccountParameters { + /** + * @member {string} name The unique name of the compute policy to create. + */ + name: string; + /** + * @member {string} objectId The AAD object identifier for the entity to + * create a policy for. + */ + objectId: string; + /** + * @member {AADObjectType} objectType The type of AAD object the object + * identifier refers to. Possible values include: 'User', 'Group', + * 'ServicePrincipal' + */ + objectType: AADObjectType; + /** + * @member {number} [maxDegreeOfParallelismPerJob] 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; + /** + * @member {number} [minPriorityPerJob] 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; +} + +/** + * @interface + * An interface representing CreateFirewallRuleWithAccountParameters. + * The parameters used to create a new firewall rule while creating a new Data + * Lake Analytics account. + * + */ +export interface CreateFirewallRuleWithAccountParameters { + /** + * @member {string} name The unique name of the firewall rule to create. + */ + name: string; + /** + * @member {string} startIpAddress 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; + /** + * @member {string} endIpAddress 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; +} + +/** + * @interface + * An interface representing CreateDataLakeAnalyticsAccountParameters. + * The parameters to use for creating a Data Lake Analytics account. + * + */ +export interface CreateDataLakeAnalyticsAccountParameters { + /** + * @member {string} location The resource location. + */ + location: string; + /** + * @member {{ [propertyName: string]: string }} [tags] The resource tags. + */ + tags?: { [propertyName: string]: string }; + /** + * @member {string} defaultDataLakeStoreAccount The default Data Lake Store + * account associated with this account. + */ + defaultDataLakeStoreAccount: string; + /** + * @member {AddDataLakeStoreWithAccountParameters[]} dataLakeStoreAccounts + * The list of Data Lake Store accounts associated with this account. + */ + dataLakeStoreAccounts: AddDataLakeStoreWithAccountParameters[]; + /** + * @member {AddStorageAccountWithAccountParameters[]} [storageAccounts] The + * list of Azure Blob Storage accounts associated with this account. + */ + storageAccounts?: AddStorageAccountWithAccountParameters[]; + /** + * @member {CreateComputePolicyWithAccountParameters[]} [computePolicies] The + * list of compute policies associated with this account. + */ + computePolicies?: CreateComputePolicyWithAccountParameters[]; + /** + * @member {CreateFirewallRuleWithAccountParameters[]} [firewallRules] The + * list of firewall rules associated with this account. + */ + firewallRules?: CreateFirewallRuleWithAccountParameters[]; + /** + * @member {FirewallState} [firewallState] The current state of the IP + * address firewall for this account. Possible values include: 'Enabled', + * 'Disabled' + */ + firewallState?: FirewallState; + /** + * @member {FirewallAllowAzureIpsState} [firewallAllowAzureIps] 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; + /** + * @member {TierType} [newTier] 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; + /** + * @member {number} [maxJobCount] The maximum supported jobs running under + * the account at the same time. Default value: 3 . + */ + maxJobCount?: number; + /** + * @member {number} [maxDegreeOfParallelism] The maximum supported degree of + * parallelism for this account. Default value: 30 . + */ + maxDegreeOfParallelism?: number; + /** + * @member {number} [maxDegreeOfParallelismPerJob] The maximum supported + * degree of parallelism per job for this account. + */ + maxDegreeOfParallelismPerJob?: number; + /** + * @member {number} [minPriorityPerJob] The minimum supported priority per + * job for this account. + */ + minPriorityPerJob?: number; + /** + * @member {number} [queryStoreRetention] The number of days that job + * metadata is retained. Default value: 30 . + */ + queryStoreRetention?: number; +} + +/** + * @interface + * An interface representing UpdateDataLakeStoreWithAccountParameters. + * The parameters used to update a Data Lake Store account while updating a + * Data Lake Analytics account. + * + */ +export interface UpdateDataLakeStoreWithAccountParameters { + /** + * @member {string} name The unique name of the Data Lake Store account to + * update. + */ + name: string; + /** + * @member {string} [suffix] The optional suffix for the Data Lake Store + * account. + */ + suffix?: string; +} + +/** + * @interface + * An interface representing UpdateStorageAccountWithAccountParameters. + * The parameters used to update an Azure Storage account while updating a Data + * Lake Analytics account. + * + */ +export interface UpdateStorageAccountWithAccountParameters { + /** + * @member {string} name The unique name of the Azure Storage account to + * update. + */ + name: string; + /** + * @member {string} [accessKey] The updated access key associated with this + * Azure Storage account that will be used to connect to it. + */ + accessKey?: string; + /** + * @member {string} [suffix] The optional suffix for the storage account. + */ + suffix?: string; +} + +/** + * @interface + * An interface representing UpdateComputePolicyWithAccountParameters. + * The parameters used to update a compute policy while updating a Data Lake + * Analytics account. + * + */ +export interface UpdateComputePolicyWithAccountParameters { + /** + * @member {string} name The unique name of the compute policy to update. + */ + name: string; + /** + * @member {string} [objectId] The AAD object identifier for the entity to + * create a policy for. + */ + objectId?: string; + /** + * @member {AADObjectType} [objectType] The type of AAD object the object + * identifier refers to. Possible values include: 'User', 'Group', + * 'ServicePrincipal' + */ + objectType?: AADObjectType; + /** + * @member {number} [maxDegreeOfParallelismPerJob] 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; + /** + * @member {number} [minPriorityPerJob] 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; +} + +/** + * @interface + * An interface representing UpdateFirewallRuleWithAccountParameters. + * The parameters used to update a firewall rule while updating a Data Lake + * Analytics account. + * + */ +export interface UpdateFirewallRuleWithAccountParameters { + /** + * @member {string} name The unique name of the firewall rule to update. + */ + name: string; + /** + * @member {string} [startIpAddress] 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; + /** + * @member {string} [endIpAddress] 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; +} + +/** + * @interface + * An interface representing UpdateDataLakeAnalyticsAccountParameters. + * The parameters that can be used to update an existing Data Lake Analytics + * account. + * + */ +export interface UpdateDataLakeAnalyticsAccountParameters { + /** + * @member {{ [propertyName: string]: string }} [tags] The resource tags. + */ + tags?: { [propertyName: string]: string }; + /** + * @member {UpdateDataLakeStoreWithAccountParameters[]} + * [dataLakeStoreAccounts] The list of Data Lake Store accounts associated + * with this account. + */ + dataLakeStoreAccounts?: UpdateDataLakeStoreWithAccountParameters[]; + /** + * @member {UpdateStorageAccountWithAccountParameters[]} [storageAccounts] + * The list of Azure Blob storage accounts associated with this account. + */ + storageAccounts?: UpdateStorageAccountWithAccountParameters[]; + /** + * @member {UpdateComputePolicyWithAccountParameters[]} [computePolicies] The + * list of compute policies associated with this account. + */ + computePolicies?: UpdateComputePolicyWithAccountParameters[]; + /** + * @member {UpdateFirewallRuleWithAccountParameters[]} [firewallRules] The + * list of firewall rules associated with this account. + */ + firewallRules?: UpdateFirewallRuleWithAccountParameters[]; + /** + * @member {FirewallState} [firewallState] 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; + /** + * @member {FirewallAllowAzureIpsState} [firewallAllowAzureIps] 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; + /** + * @member {TierType} [newTier] 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; + /** + * @member {number} [maxJobCount] The maximum supported jobs running under + * the account at the same time. + */ + maxJobCount?: number; + /** + * @member {number} [maxDegreeOfParallelism] The maximum supported degree of + * parallelism for this account. + */ + maxDegreeOfParallelism?: number; + /** + * @member {number} [maxDegreeOfParallelismPerJob] The maximum supported + * degree of parallelism per job for this account. + */ + maxDegreeOfParallelismPerJob?: number; + /** + * @member {number} [minPriorityPerJob] The minimum supported priority per + * job for this account. + */ + minPriorityPerJob?: number; + /** + * @member {number} [queryStoreRetention] The number of days that job + * metadata is retained. + */ + queryStoreRetention?: number; +} + +/** + * @interface + * An interface representing AddDataLakeStoreParameters. + * The parameters used to add a new Data Lake Store account. + * + */ +export interface AddDataLakeStoreParameters { + /** + * @member {string} [suffix] The optional suffix for the Data Lake Store + * account. + */ + suffix?: string; +} + +/** + * @interface + * An interface representing AddStorageAccountParameters. + * The parameters used to add a new Azure Storage account. + * + */ +export interface AddStorageAccountParameters { + /** + * @member {string} accessKey The access key associated with this Azure + * Storage account that will be used to connect to it. + */ + accessKey: string; + /** + * @member {string} [suffix] The optional suffix for the storage account. + */ + suffix?: string; +} + +/** + * @interface + * An interface representing UpdateStorageAccountParameters. + * The parameters used to update an Azure Storage account. + * + */ +export interface UpdateStorageAccountParameters { + /** + * @member {string} [accessKey] The updated access key associated with this + * Azure Storage account that will be used to connect to it. + */ + accessKey?: string; + /** + * @member {string} [suffix] The optional suffix for the storage account. + */ + suffix?: string; +} + +/** + * @interface + * An interface representing CreateOrUpdateComputePolicyParameters. + * The parameters used to create a new compute policy. + * + */ +export interface CreateOrUpdateComputePolicyParameters { + /** + * @member {string} objectId The AAD object identifier for the entity to + * create a policy for. + */ + objectId: string; + /** + * @member {AADObjectType} objectType The type of AAD object the object + * identifier refers to. Possible values include: 'User', 'Group', + * 'ServicePrincipal' + */ + objectType: AADObjectType; + /** + * @member {number} [maxDegreeOfParallelismPerJob] 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; + /** + * @member {number} [minPriorityPerJob] 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; +} + +/** + * @interface + * An interface representing UpdateComputePolicyParameters. + * The parameters used to update a compute policy. + * + */ +export interface UpdateComputePolicyParameters { + /** + * @member {string} [objectId] The AAD object identifier for the entity to + * create a policy for. + */ + objectId?: string; + /** + * @member {AADObjectType} [objectType] The type of AAD object the object + * identifier refers to. Possible values include: 'User', 'Group', + * 'ServicePrincipal' + */ + objectType?: AADObjectType; + /** + * @member {number} [maxDegreeOfParallelismPerJob] 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; + /** + * @member {number} [minPriorityPerJob] 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; +} + +/** + * @interface + * An interface representing CreateOrUpdateFirewallRuleParameters. + * The parameters used to create a new firewall rule. + * + */ +export interface CreateOrUpdateFirewallRuleParameters { + /** + * @member {string} startIpAddress 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; + /** + * @member {string} endIpAddress 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; +} + +/** + * @interface + * An interface representing UpdateFirewallRuleParameters. + * The parameters used to update a firewall rule. + * + */ +export interface UpdateFirewallRuleParameters { + /** + * @member {string} [startIpAddress] 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; + /** + * @member {string} [endIpAddress] 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; +} + +/** + * @interface + * An interface representing CheckNameAvailabilityParameters. + * Data Lake Analytics account name availability check parameters. + * + */ +export interface CheckNameAvailabilityParameters { + /** + * @member {string} name The Data Lake Analytics name to check availability + * for. + */ + name: string; +} + +/** + * @interface + * An interface representing AccountsListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AccountsListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] OData filter. Optional. + */ + filter?: string; + /** + * @member {number} [top] The number of items to return. Optional. + */ + top?: number; + /** + * @member {number} [skip] The number of items to skip over before returning + * elements. Optional. + */ + skip?: number; + /** + * @member {string} [select] OData Select statement. Limits the properties on + * each entry to just those requested, e.g. + * Categories?$select=CategoryName,Description. Optional. + */ + select?: string; + /** + * @member {string} [orderby] 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; + /** + * @member {boolean} [count] 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; +} + +/** + * @interface + * An interface representing AccountsListByResourceGroupOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AccountsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] OData filter. Optional. + */ + filter?: string; + /** + * @member {number} [top] The number of items to return. Optional. + */ + top?: number; + /** + * @member {number} [skip] The number of items to skip over before returning + * elements. Optional. + */ + skip?: number; + /** + * @member {string} [select] OData Select statement. Limits the properties on + * each entry to just those requested, e.g. + * Categories?$select=CategoryName,Description. Optional. + */ + select?: string; + /** + * @member {string} [orderby] 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; + /** + * @member {boolean} [count] 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; +} + +/** + * @interface + * An interface representing AccountsUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AccountsUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {UpdateDataLakeAnalyticsAccountParameters} [parameters] Parameters + * supplied to the update Data Lake Analytics account operation. + */ + parameters?: UpdateDataLakeAnalyticsAccountParameters; +} + +/** + * @interface + * An interface representing AccountsBeginUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AccountsBeginUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {UpdateDataLakeAnalyticsAccountParameters} [parameters] Parameters + * supplied to the update Data Lake Analytics account operation. + */ + parameters?: UpdateDataLakeAnalyticsAccountParameters; +} + +/** + * @interface + * An interface representing DataLakeStoreAccountsListByAccountOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface DataLakeStoreAccountsListByAccountOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] OData filter. Optional. + */ + filter?: string; + /** + * @member {number} [top] The number of items to return. Optional. + */ + top?: number; + /** + * @member {number} [skip] The number of items to skip over before returning + * elements. Optional. + */ + skip?: number; + /** + * @member {string} [select] OData Select statement. Limits the properties on + * each entry to just those requested, e.g. + * Categories?$select=CategoryName,Description. Optional. + */ + select?: string; + /** + * @member {string} [orderby] 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; + /** + * @member {boolean} [count] 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; +} + +/** + * @interface + * An interface representing DataLakeStoreAccountsAddOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface DataLakeStoreAccountsAddOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {AddDataLakeStoreParameters} [parameters] The details of the Data + * Lake Store account. + */ + parameters?: AddDataLakeStoreParameters; +} + +/** + * @interface + * An interface representing StorageAccountsListByAccountOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface StorageAccountsListByAccountOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] The OData filter. Optional. + */ + filter?: string; + /** + * @member {number} [top] The number of items to return. Optional. + */ + top?: number; + /** + * @member {number} [skip] The number of items to skip over before returning + * elements. Optional. + */ + skip?: number; + /** + * @member {string} [select] OData Select statement. Limits the properties on + * each entry to just those requested, e.g. + * Categories?$select=CategoryName,Description. Optional. + */ + select?: string; + /** + * @member {string} [orderby] 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; + /** + * @member {boolean} [count] 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; +} + +/** + * @interface + * An interface representing StorageAccountsUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface StorageAccountsUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {UpdateStorageAccountParameters} [parameters] The parameters + * containing the access key and suffix to update the storage account with, + * if any. Passing nothing results in no change. + */ + parameters?: UpdateStorageAccountParameters; +} + +/** + * @interface + * An interface representing ComputePoliciesUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ComputePoliciesUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {UpdateComputePolicyParameters} [parameters] Parameters supplied + * to update the compute policy. + */ + parameters?: UpdateComputePolicyParameters; +} + +/** + * @interface + * An interface representing FirewallRulesUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface FirewallRulesUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {UpdateFirewallRuleParameters} [parameters] Parameters supplied to + * update the firewall rule. + */ + parameters?: UpdateFirewallRuleParameters; +} + +/** + * @interface + * An interface representing DataLakeAnalyticsAccountManagementClientOptions. + * @extends AzureServiceClientOptions + */ +export interface DataLakeAnalyticsAccountManagementClientOptions extends AzureServiceClientOptions { + /** + * @member {string} [baseUri] + */ + baseUri?: string; +} + + +/** + * @interface + * An interface representing the DataLakeAnalyticsAccountListResult. + * Data Lake Analytics account list information. + * + * @extends Array + */ +export interface DataLakeAnalyticsAccountListResult extends Array { + /** + * @member {string} [nextLink] 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 + * An interface representing the DataLakeStoreAccountInformationListResult. + * Data Lake Store account list information. + * + * @extends Array + */ +export interface DataLakeStoreAccountInformationListResult extends Array { + /** + * @member {string} [nextLink] 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 + * An interface representing the StorageAccountInformationListResult. + * Azure Storage account list information. + * + * @extends Array + */ +export interface StorageAccountInformationListResult extends Array { + /** + * @member {string} [nextLink] 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 + * An interface representing the StorageContainerListResult. + * The list of blob containers associated with the storage account attached to + * the Data Lake Analytics account. + * + * @extends Array + */ +export interface StorageContainerListResult extends Array { + /** + * @member {string} [nextLink] 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 + * An interface representing the SasTokenInformationListResult. + * The SAS response that contains the storage account, container and associated + * SAS token for connection use. + * + * @extends Array + */ +export interface SasTokenInformationListResult extends Array { + /** + * @member {string} [nextLink] 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 + * An interface representing the ComputePolicyListResult. + * The list of compute policies in the account. + * + * @extends Array + */ +export interface ComputePolicyListResult extends Array { + /** + * @member {string} [nextLink] 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 + * An interface representing the FirewallRuleListResult. + * Data Lake Analytics firewall rule list information. + * + * @extends Array + */ +export interface FirewallRuleListResult extends Array { + /** + * @member {string} [nextLink] 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' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: AADObjectType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum AADObjectType { + User = 'User', + Group = 'Group', + ServicePrincipal = 'ServicePrincipal', +} + +/** + * Defines values for FirewallState. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export enum FirewallState { + Enabled = 'Enabled', + Disabled = 'Disabled', +} + +/** + * Defines values for FirewallAllowAzureIpsState. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export enum FirewallAllowAzureIpsState { + Enabled = 'Enabled', + Disabled = '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 enum TierType { + Consumption = 'Consumption', + Commitment100AUHours = 'Commitment_100AUHours', + Commitment500AUHours = 'Commitment_500AUHours', + Commitment1000AUHours = 'Commitment_1000AUHours', + Commitment5000AUHours = 'Commitment_5000AUHours', + Commitment10000AUHours = 'Commitment_10000AUHours', + Commitment50000AUHours = 'Commitment_50000AUHours', + Commitment100000AUHours = 'Commitment_100000AUHours', + Commitment500000AUHours = 'Commitment_500000AUHours', +} + +/** + * Defines values for DataLakeAnalyticsAccountStatus. + * Possible values include: 'Failed', 'Creating', 'Running', 'Succeeded', + * 'Patching', 'Suspending', 'Resuming', 'Deleting', 'Deleted', 'Undeleting', + * 'Canceled' + * @readonly + * @enum {string} + */ +export enum DataLakeAnalyticsAccountStatus { + Failed = 'Failed', + Creating = 'Creating', + Running = 'Running', + Succeeded = 'Succeeded', + Patching = 'Patching', + Suspending = 'Suspending', + Resuming = 'Resuming', + Deleting = 'Deleting', + Deleted = 'Deleted', + Undeleting = 'Undeleting', + Canceled = 'Canceled', +} + +/** + * Defines values for DataLakeAnalyticsAccountState. + * Possible values include: 'Active', 'Suspended' + * @readonly + * @enum {string} + */ +export enum DataLakeAnalyticsAccountState { + Active = 'Active', + Suspended = 'Suspended', +} + +/** + * Defines values for OperationOrigin. + * Possible values include: 'user', 'system', 'user,system' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: OperationOrigin = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum OperationOrigin { + User = 'user', + System = 'system', + Usersystem = 'user,system', +} + +/** + * Defines values for SubscriptionState. + * Possible values include: 'Registered', 'Suspended', 'Deleted', + * 'Unregistered', 'Warned' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: SubscriptionState = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum SubscriptionState { + Registered = 'Registered', + Suspended = 'Suspended', + Deleted = 'Deleted', + Unregistered = 'Unregistered', + Warned = '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/packages/@azure/arm-datalake-analytics/lib/account/models/locationsMappers.ts b/packages/@azure/arm-datalake-analytics/lib/account/models/locationsMappers.ts new file mode 100644 index 000000000000..64eade394771 --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/lib/account/models/locationsMappers.ts @@ -0,0 +1,15 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + CapabilityInformation, + CloudError +} from "../models/mappers"; + diff --git a/packages/@azure/arm-datalake-analytics/lib/account/models/mappers.ts b/packages/@azure/arm-datalake-analytics/lib/account/models/mappers.ts new file mode 100644 index 000000000000..b3be3f9e42bd --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/lib/account/models/mappers.ts @@ -0,0 +1,1746 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 "ms-rest-azure-js"; +import * as msRest from "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 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" + } + } + } + }, + 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: { + readOnly: true, + serializedName: "properties.maxJobCount", + defaultValue: 3, + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + systemMaxJobCount: { + readOnly: true, + serializedName: "properties.systemMaxJobCount", + type: { + name: "Number" + } + }, + maxDegreeOfParallelism: { + readOnly: true, + 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: { + readOnly: true, + serializedName: "properties.queryStoreRetention", + defaultValue: 30, + constraints: { + InclusiveMaximum: 180, + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + } + } + } +}; + +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 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 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" + } + }, + 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 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/packages/@azure/arm-datalake-analytics/lib/account/models/operationsMappers.ts b/packages/@azure/arm-datalake-analytics/lib/account/models/operationsMappers.ts new file mode 100644 index 000000000000..2edcc577920e --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/lib/account/models/operationsMappers.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + OperationListResult, + Operation, + OperationDisplay, + CloudError +} from "../models/mappers"; + diff --git a/packages/@azure/arm-datalake-analytics/lib/account/models/parameters.ts b/packages/@azure/arm-datalake-analytics/lib/account/models/parameters.ts new file mode 100644 index 000000000000..dbf23feee975 --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/lib/account/models/parameters.ts @@ -0,0 +1,211 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 "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/packages/@azure/arm-datalake-analytics/lib/account/models/storageAccountsMappers.ts b/packages/@azure/arm-datalake-analytics/lib/account/models/storageAccountsMappers.ts new file mode 100644 index 000000000000..37f29e77a0e2 --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/lib/account/models/storageAccountsMappers.ts @@ -0,0 +1,30 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + StorageAccountInformationListResult, + StorageAccountInformation, + SubResource, + BaseResource, + CloudError, + AddStorageAccountParameters, + UpdateStorageAccountParameters, + StorageContainerListResult, + StorageContainer, + SasTokenInformationListResult, + SasTokenInformation, + Resource, + DataLakeStoreAccountInformation, + ComputePolicy, + FirewallRule, + DataLakeAnalyticsAccount, + DataLakeAnalyticsAccountBasic +} from "../models/mappers"; + diff --git a/packages/@azure/arm-datalake-analytics/lib/account/operations/accounts.ts b/packages/@azure/arm-datalake-analytics/lib/account/operations/accounts.ts new file mode 100644 index 000000000000..345bbff37748 --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/lib/account/operations/accounts.ts @@ -0,0 +1,564 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 "ms-rest-js"; +import * as msRestAzure from "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, 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, 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, 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, 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?: msRest.RequestOptionsBase): 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: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, 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?: msRest.RequestOptionsBase): 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: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, 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.CloudError + } + }, + 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.CloudError + } + }, + 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.CloudError + } + }, + 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.CloudError + } + }, + 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.CloudError + } + }, + 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.CloudError + } + }, + 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.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataLakeAnalyticsAccountListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataLakeAnalyticsAccountListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-datalake-analytics/lib/account/operations/computePolicies.ts b/packages/@azure/arm-datalake-analytics/lib/account/operations/computePolicies.ts new file mode 100644 index 000000000000..1ebe71e80003 --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/lib/account/operations/computePolicies.ts @@ -0,0 +1,408 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 "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, 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, 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, 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, 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, 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, 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.CloudError + } + }, + 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.CloudError + } + }, + 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.CloudError + } + }, + 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.CloudError + } + }, + 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.CloudError + } + }, + serializer +}; + +const listByAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ComputePolicyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-datalake-analytics/lib/account/operations/dataLakeStoreAccounts.ts b/packages/@azure/arm-datalake-analytics/lib/account/operations/dataLakeStoreAccounts.ts new file mode 100644 index 000000000000..54dce6acc29c --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/lib/account/operations/dataLakeStoreAccounts.ts @@ -0,0 +1,335 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 "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, 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, 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, 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, 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?: 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, 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.CloudError + } + }, + 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.CloudError + } + }, + 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.CloudError + } + }, + 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.CloudError + } + }, + serializer +}; + +const listByAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataLakeStoreAccountInformationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-datalake-analytics/lib/account/operations/firewallRules.ts b/packages/@azure/arm-datalake-analytics/lib/account/operations/firewallRules.ts new file mode 100644 index 000000000000..c07786939e7d --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/lib/account/operations/firewallRules.ts @@ -0,0 +1,402 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 "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, 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, 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, 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, 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, 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, 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.CloudError + } + }, + 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.CloudError + } + }, + 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.CloudError + } + }, + 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.CloudError + } + }, + 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.CloudError + } + }, + serializer +}; + +const listByAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.FirewallRuleListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-datalake-analytics/lib/account/operations/index.ts b/packages/@azure/arm-datalake-analytics/lib/account/operations/index.ts new file mode 100644 index 000000000000..155c83a8e205 --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/lib/account/operations/index.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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/packages/@azure/arm-datalake-analytics/lib/account/operations/locations.ts b/packages/@azure/arm-datalake-analytics/lib/account/operations/locations.ts new file mode 100644 index 000000000000..5746ee6ac12f --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/lib/account/operations/locations.ts @@ -0,0 +1,84 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 "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, 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.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-datalake-analytics/lib/account/operations/operations.ts b/packages/@azure/arm-datalake-analytics/lib/account/operations/operations.ts new file mode 100644 index 000000000000..fe77c9e97247 --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/lib/account/operations/operations.ts @@ -0,0 +1,74 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 "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, 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.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-datalake-analytics/lib/account/operations/storageAccounts.ts b/packages/@azure/arm-datalake-analytics/lib/account/operations/storageAccounts.ts new file mode 100644 index 000000000000..cac4e67486c3 --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/lib/account/operations/storageAccounts.ts @@ -0,0 +1,724 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 "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, 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, 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, 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, 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, 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, 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, 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, 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?: 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, 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, 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, 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.CloudError + } + }, + 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.CloudError + } + }, + 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.CloudError + } + }, + 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.CloudError + } + }, + 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.CloudError + } + }, + 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.CloudError + } + }, + 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.CloudError + } + }, + 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.CloudError + } + }, + serializer +}; + +const listByAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.StorageAccountInformationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listStorageContainersNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.StorageContainerListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listSasTokensNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SasTokenInformationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-datalake-analytics/package.json b/packages/@azure/arm-datalake-analytics/package.json new file mode 100644 index 000000000000..ce2a4b481fa1 --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/package.json @@ -0,0 +1,39 @@ +{ + "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": { + "ms-rest-azure-js": "~0.17.165", + "ms-rest-js": "~0.22.434" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "license": "MIT", + "main": "./cjs/dataLakeAnalyticsAccountManagementClient.js", + "module": "./esm/dataLakeAnalyticsAccountManagementClient.js", + "types": "./cjs/dataLakeAnalyticsAccountManagementClient.d.ts", + "devDependencies": { + "tslib": "^1.9.3", + "typescript": "^3.0.3", + "webpack": "^4.17.2", + "webpack-cli": "^3.1.0" + }, + "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/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" + }, + "scripts": { + "build": "tsc && tsc -p tsconfig.esm.json && webpack", + "prepare": "npm run build" + } +} diff --git a/packages/@azure/arm-datalake-analytics/tsconfig.esm.json b/packages/@azure/arm-datalake-analytics/tsconfig.esm.json new file mode 100644 index 000000000000..0b3aed07505c --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/tsconfig.esm.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig", + "compilerOptions": { + "outDir": "./esm", + "module": "es6", + "target": "es5" + } +} diff --git a/packages/@azure/arm-datalake-analytics/tsconfig.json b/packages/@azure/arm-datalake-analytics/tsconfig.json new file mode 100644 index 000000000000..d5b25971c029 --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/tsconfig.json @@ -0,0 +1,18 @@ +{ + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "strict": true, + "target": "es6", + "sourceMap": true, + "declarationMap": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "lib": ["es6"], + "declaration": true, + "outDir": "./cjs" + }, + "include": ["./lib/**/*"], + "exclude": ["node_modules"] +} diff --git a/packages/@azure/arm-datalake-analytics/webpack.config.js b/packages/@azure/arm-datalake-analytics/webpack.config.js new file mode 100644 index 000000000000..f2c9d088531e --- /dev/null +++ b/packages/@azure/arm-datalake-analytics/webpack.config.js @@ -0,0 +1,30 @@ +// This is a template webpack config file with minimal configuration. +// Users are free to create their own webpack configuration files in their application. +const path = require('path'); + +/** + * @type {import('webpack').Configuration} + */ +const config = { + mode: 'production', + entry: './esm/dataLakeAnalyticsAccountManagementClient.js', + devtool: 'source-map', + output: { + filename: 'dataLakeAnalyticsAccountManagementClientBundle.js', + path: __dirname, + libraryTarget: 'var', + library: 'dataLakeAnalyticsAccountManagementClient' + }, + // "ms-rest-js" and "ms-rest-azure-js" are dependencies of this library. + // Customer is expected to import/include this library in browser javascript + // (probably using the script tag in their html file). + externals: { + "ms-rest-js": "msRest", + "ms-rest-azure-js": "msRestAzure" + }, + resolve: { + extensions: [".tsx", ".ts", ".js"] + } +}; + +module.exports = config;